/* ═══════════════════════════════════════════════════════════════
   The Brief — AI Tools Assessment landing page
   Loads AFTER css/style.css and reuses its tokens (:root, style.css:8-21).
   Nothing here redefines the palette or the type stack.
   ═══════════════════════════════════════════════════════════════ */

/* ═══ Reveal primitives ═══════════════════════════════════════
   Elements start hidden and js/brief.js animates them in.
   THREE independent failsafes un-hide them, because this page
   carries the money and must never render blank:
     1. html.no-motion-fallback  — set by brief.js if GSAP is missing
     2. <noscript>               — JS disabled entirely
     3. prefers-reduced-motion   — user preference
   ═══════════════════════════════════════════════════════════ */
.rv       { opacity: 0; transform: translateY(28px); }
.rv-fast  { opacity: 0; transform: translateY(14px); }
.sl-mask  { display: block; overflow: hidden; }

html.no-motion-fallback .rv,
html.no-motion-fallback .rv-fast,
html.no-motion-fallback .sl-inner {
  opacity: 1 !important;
  transform: none !important;
}
html.no-motion-fallback .bstep-line i,
html.no-motion-fallback .bg-frame rect { all: revert; }
html.no-motion-fallback .bstep-line i { transform: scaleY(1) !important; }
html.no-motion-fallback .bg-frame rect { stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-fast, .sl-inner { opacity: 1 !important; transform: none !important; }
  .bstep-line i { transform: scaleY(1) !important; }
  .bg-frame rect { stroke-dashoffset: 0 !important; }
}

/* ═══ Nav ══════════════════════════════════════════════════════
   style.css:151 sets .nav to position:fixed with NO background.
   The homepage gets away with that because js/main.js hides the
   nav on scroll. This page doesn't load main.js, so without a
   backdrop the body text scrolls under a transparent bar.
   js/brief.js toggles .is-solid past the hero.
   ═══════════════════════════════════════════════════════════ */
.nav {
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s var(--ease),
              border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-solid {
  background-color: rgba(21, 21, 21, .82);
  -webkit-backdrop-filter: blur(11px) saturate(150%);
  backdrop-filter: blur(11px) saturate(150%);
  border-bottom-color: var(--line);
}

/* ═══ Vertical rhythm ══════════════════════════════════════════
   One spacing scale for the whole page. Nothing should use a
   hand-picked margin: pick the nearest step. This is what keeps
   the page feeling set rather than assembled.
   ═══════════════════════════════════════════════════════════ */
:root {
  --sp-xs: .5rem;    /*  8px */
  --sp-sm: .9rem;    /* 14px */
  --sp-md: 1.4rem;   /* 22px */
  --sp-lg: 2.2rem;   /* 35px */
  --sp-xl: 3.4rem;   /* 54px */
}

/* Flow utility: consistent gaps between siblings without per-element
   margins. Override per block with --flow. */
.flow > * + * { margin-top: var(--flow, var(--sp-md)); }

/* ═══ Scroll progress ═══ */
.bprog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; pointer-events: none; background: transparent;
}
.bprog i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0); transform-origin: 0 50%;
}
html.no-motion-fallback .bprog { display: none; }

/* ═══ Layout ═══ */
.bw   { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1.3rem, 5vw, 2.8rem); }
.bw-n { max-width: 780px; }
.bsec { padding: clamp(4.5rem, 12vh, 8rem) 0; position: relative; }
.bsec + .bsec { border-top: 1px solid var(--line); }

.blabel {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: var(--sp-sm);
}
/* Headings cap at a readable measure. Left to run the full 1060px they
   read as a banner rather than a sentence, and the rag goes to pieces. */
.bh2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.14; letter-spacing: -.012em;
  max-width: 26ch;
  margin-bottom: var(--sp-md);
}
.bh2 em { font-style: italic; color: var(--gold); }
.blede {
  font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--silver);
  line-height: 1.62; max-width: 62ch;
}
/* No negative pull between heading and lede. It measured inconsistently once
   SplitText wraps the heading in overflow-hidden masks, and .bh2's own
   margin-bottom already sets the gap. One rule, one behaviour. */
/* Any block following the intro copy gets one consistent step. */
.blede + .bgrid,
.blede + .bcalc,
.blede + .bsteps,
.blede + .bfaq { margin-top: var(--sp-lg); }
/* ...and copy that follows a block gets the same step back. */
.bgrid + .blede { margin-top: var(--sp-lg); }
.bguar ol + .blede { margin-top: var(--sp-md); }

/* ═══ Hero ═══ */
.bhero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 7rem 0 4rem; position: relative; overflow: hidden;
}
.bhero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 55% at 30% 40%, rgba(201,151,99,.16), transparent 70%);
  pointer-events: none; filter: blur(20px);
}
.bhero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.015em; margin: 0 0 var(--sp-md);
  max-width: 16ch;
}
.bhero h1 em { font-style: italic; color: var(--gold); }

.bprice-row {
  display: flex; align-items: flex-end; gap: var(--sp-md);
  flex-wrap: wrap; margin: var(--sp-xl) 0 var(--sp-lg);
  padding-top: var(--sp-lg); border-top: 1px solid var(--line);
}
.bprice {
  font-family: var(--serif); font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  line-height: .9; color: var(--bone); font-variant-numeric: tabular-nums;
}
/* Struck-through original. Keeps the $599 anchor visible so the launch rate
   reads as a discount rather than as the product's actual worth. */
.bprice-was {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: .9; color: var(--silver); text-decoration: line-through;
  text-decoration-thickness: 1px; opacity: .75;
  font-variant-numeric: tabular-nums;
}
.bprice-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); line-height: 1.7; }
.bprice-meta b { display: block; color: var(--silver); font-weight: 400; }
.bprice-tag {
  display: inline-block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--gold-hi);
  padding: .38rem .7rem; margin-bottom: var(--sp-sm);
}

/* ═══ Buttons ═══ */
.bcta {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--gold);
  padding: 1.15rem 2.4rem; border: 1px solid var(--gold);
  position: relative; overflow: hidden;
  transition: color .45s var(--ease), background .45s var(--ease);
}
.bcta span { position: relative; z-index: 1; }
.bcta::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.bcta:hover { color: var(--gold); }
.bcta:hover::before { transform: translateY(0); }
.bcta-note { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; color: var(--silver); margin-top: var(--sp-md); }

.bscroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--silver);
}

/* ═══ Cards ═══ */
.bgrid { display: grid; gap: 1.15rem; }
.bgrid.g3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.bgrid.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.bcard {
  border: 1px solid var(--line); background: var(--ink-2);
  padding: 1.7rem 1.75rem; transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.bcard:hover { border-color: rgba(201,151,99,.5); transform: translateY(-4px); }
.bcard .num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--gold); display: block; margin-bottom: var(--sp-sm); }
.bcard .num-muted { color: var(--silver); }
.bcard h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.22; letter-spacing: -.008em; margin-bottom: var(--sp-xs); }
.bcard p { color: var(--silver); line-height: 1.62; font-size: .94rem; max-width: 46ch; }
.bcard .num + .blist { margin-top: calc(var(--sp-xs) * -1); }

/* ═══ Calculator ═══ */
.bcalc {
  border: 1px solid var(--line); background: var(--ink-2);
  display: grid; grid-template-columns: 1fr .85fr;
}
.bcalc-in  { padding: clamp(1.7rem, 3.4vw, 2.6rem); }
.bcalc-out {
  padding: clamp(1.7rem, 3.4vw, 2.6rem);
  border-left: 1px solid var(--line); background: rgba(201,151,99,.05);
  display: flex; flex-direction: column; justify-content: center;
}
.bfield { margin-bottom: var(--sp-lg); }
.bfield:last-child { margin-bottom: 0; }
.bfield-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-md); margin-bottom: var(--sp-xs); }
.bfield label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.bfield output { font-family: var(--serif); font-size: 1.5rem; color: var(--bone); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; background: var(--line);
  outline: none; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(201,151,99,.16); }
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: 0;
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 6px; }

.bout-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-sm); }
.bout-num {
  font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 3.6rem);
  line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.bout-sub { color: var(--silver); font-size: .9rem; line-height: 1.6; margin-top: var(--sp-md); max-width: 42ch; }
.bout-cmp { margin-top: var(--sp-lg); padding-top: var(--sp-md); border-top: 1px solid var(--line); font-size: .9rem; color: var(--silver); line-height: 1.6; }
.bout-cmp b { color: var(--gold); font-weight: 500; }

/* ═══ Four steps, with the drawing line ═══ */
.bsteps { position: relative; padding-left: 3.4rem; }
.bstep-line { position: absolute; left: 8px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.bstep-line i { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; display: block; }
.bstep { position: relative; padding: 0 0 2.6rem; }
.bstep:last-child { padding-bottom: 0; }
.bstep::before {
  content: ""; position: absolute; left: -3.4rem; top: .55rem;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line);
  transition: border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.bstep.on::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(201,151,99,.14); }
.bstep .sn { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--gold); display: block; margin-bottom: var(--sp-xs); }
.bstep h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.22; letter-spacing: -.008em; margin-bottom: var(--sp-xs); }
.bstep p { color: var(--silver); line-height: 1.62; max-width: 58ch; }

/* ═══ Guarantee ═══ */
.bguar { position: relative; padding: clamp(2.2rem, 5vw, 3.6rem); }
.bg-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bg-frame rect { fill: rgba(201,151,99,.05); stroke: var(--gold); stroke-width: 1; }
.bguar-inner { position: relative; }
/* line-height must stay >= 1 here. Playfair's ascent+descent is ~1.34em, so a
   value under 1 makes the glyph paint outside its own line box and the flat top
   bar of the "5" lands on the label above it. */
.bguar-n {
  font-family: var(--serif); font-size: clamp(4.5rem, 13vw, 8.5rem);
  line-height: 1; margin-top: var(--sp-lg);
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.bguar-n small {
  font-size: .22em; font-family: var(--mono); letter-spacing: .13em;
  text-transform: uppercase; color: var(--silver);
  display: block; margin-top: var(--sp-sm); line-height: 1.4;
}
.bguar .bh2 { margin-top: var(--sp-lg); }
.bguar ol { margin: var(--sp-md) 0 0 1.15rem; color: var(--silver); }
.bguar ol li { margin: var(--sp-sm) 0; line-height: 1.62; padding-left: .35rem; max-width: 62ch; }
.bguar ol li b { color: var(--bone); font-weight: 600; }

/* ═══ Lists ═══ */
.blist { list-style: none; }
.blist li { padding: .65rem 0 .65rem 1.7rem; position: relative; color: var(--silver); line-height: 1.55; border-bottom: 1px solid var(--line); }
.blist li:last-child { border-bottom: 0; }
.blist li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.blist.no li::before { content: "×"; color: var(--silver); opacity: .7; }

/* ═══ FAQ ═══ */
.bfaq details { border-bottom: 1px solid var(--line); }
.bfaq summary {
  cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1.4rem;
  padding: 1.35rem 0; transition: color .3s var(--ease);
}
.bfaq summary:hover { color: var(--gold); }
.bfaq summary::-webkit-details-marker { display: none; }
.bfaq summary::after { content: "+"; color: var(--gold); font-family: var(--mono); flex: none; transition: transform .3s var(--ease); }
.bfaq details[open] summary::after { transform: rotate(45deg); }
.bfaq p { color: var(--silver); line-height: 1.68; padding-bottom: var(--sp-md); max-width: 64ch; }

/* ═══ Close + footer ═══ */
.bclose { text-align: center; padding: clamp(5rem, 14vh, 9rem) 0; }
.bclose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.14; letter-spacing: -.012em;
  max-width: 30ch; margin: 0 auto var(--sp-lg);
}
.bfoot {
  border-top: 1px solid var(--line); padding: 2.2rem 0 3.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; color: var(--silver);
}
.bfoot a { color: var(--silver); text-decoration: none; }
.bfoot a:hover { color: var(--gold); }

/* ═══ Responsive ═══ */
@media (max-width: 860px) {
  .bcalc { grid-template-columns: 1fr; }
  .bcalc-out { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .bsteps { padding-left: 2.5rem; }
  .bstep::before { left: -2.5rem; width: 13px; height: 13px; }
  .bstep-line { left: 6px; }
  .bhero { min-height: auto; padding-top: 6.5rem; }
  .bscroll { display: none; }
}
