/* /beyond-vibe-coding/ — waiting-list landing for the paid book "Beyond Vibe Coding".
   Builds on books.css (the .bk3d hovering book, .book-peek, the .bkr reader) and the
   studio tokens. Everything here is prefixed .bvc-.

   Where /blocks/ is warm paper + dots, this page echoes the book's own cover: a faint
   indigo blueprint grid on near-white. Same design system, recognisably a different,
   more serious object. */

.bvc { --bvc-max: 72rem; color: var(--ink); }
.bvc-wrap { max-width: var(--bvc-max); margin: 0 auto; padding: 0 1.25rem; }
.bvc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.bvc-kicker {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 0.7rem;
}
.bvc-h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin: 0.9rem 0 1rem; color: var(--ink);
}
.bvc-h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.9rem; color: var(--ink);
}
.bvc-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 35rem; margin: 0 0 1.75rem; }
.bvc-lede b { color: var(--ink); font-weight: 600; }
.bvc-p { font-size: 1.02rem; line-height: 1.65; color: var(--muted); max-width: 40rem; margin: 0; }
.bvc-p + .bvc-p { margin-top: 1rem; }
.bvc-p--lead { font-size: 1.12rem; color: var(--ink); }
.bvc-p--muted { font-size: 0.95rem; }
.bvc-eyebrow { font-weight: 600; letter-spacing: 0.01em; }

/* ------------------------------------------------------------- hero */
.bvc-hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(1100px 600px at 76% -12%, rgba(99, 102, 241, 0.18), transparent 62%),
    var(--c-paper);
  overflow: hidden;
}
/* the cover's blueprint grid */
.bvc-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.11) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
  mask-image: linear-gradient(180deg, #000 50%, transparent);
}
.bvc-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem 3.5rem; align-items: center;
}
.bvc-hero__copy { max-width: 36rem; }
.bvc-hero__art {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 1rem 0 0.5rem;
}
.bvc-hero__art .bk3d { width: min(100%, 350px); }
.bvc-hero__art[data-bkr] { cursor: pointer; }

/* form */
.bvc-form { max-width: 34rem; }
/* the row/note are flex boxes — a bare [hidden] would lose to display:flex */
.bvc-form [hidden], .bvc-sticky[hidden] { display: none !important; }
.bvc-form__row { display: flex; gap: 0.6rem; align-items: stretch; }
.bvc-input { flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: 0.85rem 1.15rem; background: #fff; }
.bvc-submit { flex: 0 0 auto; padding: 0.85rem 1.35rem; font-size: 1rem; white-space: nowrap; }
.bvc-form__note {
  display: flex; align-items: flex-start; gap: 0.4rem;
  margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4;
}
.bvc-form__note svg { color: var(--signal); flex: 0 0 auto; margin-top: 0.15rem; }
.bvc-form__note span { flex: 1 1 auto; min-width: 0; }
.bvc-form__note b { color: var(--ink); font-weight: 600; }
.bvc-form__error { margin: 0.7rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--danger); }
.bvc-form.is-busy .bvc-submit { opacity: 0.75; pointer-events: none; }

/* post-submit state card (built by landing.js) */
.bvc-form__state {
  margin-top: 0.25rem; padding: 1.15rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line));
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.bvc-state__head { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.35rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.bvc-state__head svg { color: var(--signal); flex: 0 0 auto; }
.bvc-state__p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.bvc-state__p b { color: var(--ink); font-weight: 600; }
.bvc-state__actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-top: 0.9rem; }
.bvc-state__link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--accent-strong); cursor: pointer; text-decoration: none; }
.bvc-state__link:hover { text-decoration: underline; }
.bvc-state__again { font-size: 0.82rem; color: var(--muted); }
.bvc-state__again button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* dark variant (final band) */
.bvc-form--dark .bvc-input { background: rgba(255, 255, 255, 0.96); border-color: transparent; }
.bvc-form--dark .bvc-form__note { color: rgba(255, 255, 255, 0.72); }
.bvc-form--dark .bvc-form__note b { color: #fff; }
.bvc-form--dark .bvc-form__error { color: #ffb4b4; }
.bvc-form--dark .bvc-form__state { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.bvc-form--dark .bvc-state__head { color: #fff; }
.bvc-form--dark .bvc-state__p { color: rgba(255, 255, 255, 0.78); }
.bvc-form--dark .bvc-state__p b { color: #fff; }
.bvc-form--dark .bvc-state__link { color: #c7c9ff; }
.bvc-form--dark .bvc-state__again, .bvc-form--dark .bvc-state__again button { color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------- sections */
.bvc-section { padding: 4.5rem 0; }
.bvc-section__head { max-width: 42rem; margin-bottom: 2.25rem; }
.bvc-section + .bvc-section { border-top: 1px solid var(--line); }

/* the thesis */
.bvc-gap { background: var(--surface-2); }
.bvc-gap__wrap { max-width: 46rem; }

/* three real systems */
.bvc-systems__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bvc-sys {
  position: relative; padding: 1.5rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm);
}
.bvc-sys__part { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.bvc-sys__name { margin: 0.6rem 0 0.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.bvc-sys__sub { margin: 0 0 0.8rem; font-size: 0.88rem; font-weight: 500; color: var(--accent-strong); line-height: 1.4; }
.bvc-sys__body { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

/* what's inside — the five parts */
.bvc-parts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.bvc-part {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.bvc-part--done { border-left-color: var(--accent); }
.bvc-part--writing { border-left-color: var(--signal); }
.bvc-part__head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.bvc-part__num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.bvc-part__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.bvc-part__state {
  margin-left: auto; flex: 0 0 auto;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}
.bvc-part__state[data-state="done"] { color: var(--accent-strong); background: #eef0fd; border-color: #d9dcfb; }
.bvc-part__state[data-state="writing"] { color: #2a8f80; background: #eaf7f4; border-color: #cdebe4; }
.bvc-part__domain { margin: 0.35rem 0 0.7rem; font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.bvc-part__lift { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--ink); max-width: 52rem; }

/* one real page */
.bvc-page { background: var(--surface-2); }
.bvc-page__grid {
  display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: 3rem 4rem; align-items: center;
}
.bvc-sheet { margin: 0; }
.bvc-sheet img {
  display: block; width: 100%; height: auto;
  border-radius: 6px; background: #fff;
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.06), 0 22px 50px -18px rgba(26, 26, 46, 0.35), 0 8px 18px -8px rgba(26, 26, 46, 0.18);
  transform: rotate(-1.2deg);
}
.bvc-page__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.bvc-page__list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.bvc-page__list div { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.bvc-page__list b { color: var(--ink); font-weight: 600; }
.bvc-page__n {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  background: var(--accent); color: #fff; margin-top: 0.1rem;
}
.bvc-page__peek { margin-top: 1.5rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-strong); cursor: pointer; }
.bvc-page__peek:hover { text-decoration: underline; }

/* not in this book */
.bvc-not__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.bvc-not__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.bvc-not__x {
  flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; margin-top: 0.15rem;
  background: #fdeceb; color: #c2412f;
}
.bvc-not__what { margin: 0 0 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.bvc-not__why { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* written in the open */
.bvc-progress { background: var(--surface-2); }
.bvc-progress__wrap { max-width: 46rem; }
.bvc-progress__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 1.5rem 0 1.25rem; }
.bvc-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.bvc-stat__n { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.bvc-stat__n small { font-size: 1.2rem; font-weight: 600; color: var(--muted); }
.bvc-stat__l { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); }
.bvc-progress__bar { height: 8px; border-radius: 99px; background: #e3e5ef; overflow: hidden; margin-bottom: 1.5rem; }
.bvc-progress__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

/* who it's for */
.bvc-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bvc-who__card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.bvc-who__card h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.bvc-who__card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

/* author */
.bvc-author { background: var(--surface-2); }
.bvc-author__row { display: flex; gap: 1.75rem; align-items: center; }
.bvc-author__photo {
  flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; object-position: 62% 8%;
  background: radial-gradient(circle at 50% 30%, #eceefe, #d9dcfb); box-shadow: var(--shadow);
}
.bvc-author__name { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }

/* faq */
.bvc-faq__wrap { max-width: 46rem; }
.bvc-faq__list { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.bvc-faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0 1.1rem; }
.bvc-faq__item summary {
  cursor: pointer; list-style: none; padding: 0.95rem 0; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.bvc-faq__item summary::-webkit-details-marker { display: none; }
.bvc-faq__item summary::after {
  content: '+'; flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 500; color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent); transition: transform 0.2s ease;
}
.bvc-faq__item[open] summary::after { transform: rotate(45deg); }
.bvc-faq__item p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

/* final band */
.bvc-final { padding-top: 1rem; }
.bvc-final__band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: 2.75rem 3rem;
  border-radius: var(--radius); background: var(--surface-ink); color: var(--c-paper);
  box-shadow: var(--shadow);
}
.bvc-final__band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 15% 110%, rgba(99, 102, 241, 0.35), transparent 65%);
}
.bvc-final__art { position: relative; }
.bvc-final__art img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); }
.bvc-final__copy { position: relative; }
.bvc-final__copy h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 0.5rem; }
.bvc-final__copy > p { color: rgba(255, 255, 255, 0.74); margin: 0 0 1.4rem; max-width: 36rem; line-height: 1.55; }

/* sticky mobile CTA */
.bvc-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 254, 247, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform 0.25s ease;
}
.bvc-sticky.is-on { transform: none; }
.bvc-sticky__txt { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.bvc-sticky__btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .bvc-systems__grid, .bvc-who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bvc-page__grid { grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 800px) {
  .bvc-hero { padding: 1rem 0 2.5rem; }
  .bvc-hero__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  /* Book first, but small: the form has to stay inside the first screen. */
  .bvc-hero__art { order: -1; padding: 0.25rem 0 0; }
  .bvc-hero__art .bk3d { width: min(42vw, 176px); }
  .bvc-hero__art .book-peek { font-size: 0.74rem; padding: 0.36rem 0.7rem; bottom: 12%; }
  .bvc-hero__copy { max-width: none; text-align: left; }
  .bvc-h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); margin: 0.6rem 0 0.6rem; }
  .bvc-lede { font-size: 1rem; margin-bottom: 1.1rem; }
  .bvc-form__note { font-size: 0.8rem; }
  .bvc-form__row { flex-direction: column; }
  .bvc-submit { width: 100%; }
  .bvc-section { padding: 3.25rem 0; }
  .bvc-page__grid { grid-template-columns: 1fr; }
  .bvc-sheet { max-width: 330px; margin: 0 auto; }
  .bvc-not__grid { grid-template-columns: 1fr; }
  .bvc-part__state { margin-left: 0; }
  .bvc-progress__stats { gap: 1.5rem 2rem; }
  .bvc-stat__n { font-size: 2rem; }
  .bvc-final__band { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1.5rem; }
  .bvc-final__art { display: none; }
  .bvc-sticky { display: flex; }
  .bvc { padding-bottom: 3.5rem; }
}
@media (max-width: 560px) {
  .bvc-systems__grid, .bvc-who__grid { grid-template-columns: 1fr; }
  .bvc-author__row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .bvc-sticky, .bvc-faq__item summary::after { transition: none; }
}
