/* ===================================================================
   THE CLOSER LAB: shared design system (Archivo + Newsreader, ice accent)
   Reference build by Sarah. Drives both /analyse-my-call and /results.
   To recolor the whole site, swap the 3 --accent lines in :root.
   =================================================================== */
:root{
  /* surfaces */
  --bg:        #0d0c0b;
  --bg-grad-1: #161412;
  --bg-grad-2: #0b0a09;
  --card:      #131210;
  --card-top:  #1a1815;

  /* ink */
  --ink:       #f3efe8;
  --ink-soft:  rgba(243,239,232,0.66);
  --ink-faint: rgba(243,239,232,0.40);
  --ink-ghost: rgba(243,239,232,0.26);
  --line:      rgba(243,239,232,0.11);
  --line-soft: rgba(243,239,232,0.07);

  /* accent (swap as a set to recolor)
       ice       : #7fa9c9 / #5f87a6 / rgba(127,169,201,0.18)  (cold, tech)
       champagne : #d5bd92 / #b89a68 / rgba(213,189,146,0.16)  (warm, too beige)
       mono      : #f3efe8 / #cfc8ba / rgba(243,239,232,0.14)  (active, monochrome) */
  --accent:     #f3efe8;
  --accent-deep:#cfc8ba;
  --accent-glow:rgba(243,239,232,0.14);

  /* highlighter mark on the key word (the one spot of colour) */
  --mark:       #f4e94d;

  /* form fields */
  --field:     #1c1a17;
  --field-line:rgba(243,239,232,0.13);

  /* type */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif:"Newsreader", Georgia, "Times New Roman", serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* layered atmosphere */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(125% 125% at 50% 35%, transparent 56%, rgba(0,0,0,0.55) 100%),
    radial-gradient(120% 80% at 50% -10%, var(--bg-grad-1) 0%, transparent 55%),
    radial-gradient(90% 70% at 50% 120%, var(--bg-grad-2) 0%, transparent 60%),
    var(--bg);
}
.spotlight{
  position:fixed; top:-12vh; left:50%; transform:translateX(-50%);
  width:min(1100px,130vw); height:520px; z-index:0; pointer-events:none;
  background:radial-gradient(58% 60% at 50% 28%, rgba(243,239,232,0.045) 0%, transparent 66%);
  filter:blur(10px);
}
body::after{
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* blueprint grid texture: lab / data motif, fades out from the top */
.gridtex{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(243,239,232,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,232,0.032) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(125% 95% at 50% -5%, #000 30%, transparent 78%);
          mask-image:radial-gradient(125% 95% at 50% -5%, #000 30%, transparent 78%);
}

.wrap{ position:relative; z-index:2; }

/* ── header ─────────────────────────────────────────── */
header.top{
  display:flex; flex-direction:column; align-items:center; gap:0;
  padding:38px 24px 0;
}
.wordmark{
  font-family:var(--serif); font-weight:400; font-size:30px;
  letter-spacing:0.01em; color:var(--ink); text-decoration:none;
}
.wordmark .dot{ color:var(--accent); }
.wordmark img{ display:block; height:22px; width:auto; max-width:72vw; }
.rule{
  width:100%; max-width:760px; height:1px;
  background:linear-gradient(90deg,transparent,var(--line) 18%,var(--line) 82%,transparent);
  margin-top:30px;
}

/* ── layout + state machine ─────────────────────────── */
main{ max-width:760px; margin:0 auto; padding:64px 28px 90px; }
.col{ max-width:760px; margin:0 auto; padding:0 28px; }
.state{ display:none; }
.state.active{ display:block; animation:fadeUp .45s ease both; }
@keyframes fadeUp{ from{opacity:0; transform:translateY(12px);} to{opacity:1; transform:translateY(0);} }

/* ── eyebrow / headline / sub ───────────────────────── */
.eyebrow{
  display:block;
  font-size:13px; font-weight:600; letter-spacing:0.04em;
  color:var(--ink-faint); margin-bottom:26px;
}
.eyebrow::before{ content:none; }

h1{
  font-family:var(--sans); font-weight:800;
  font-size:clamp(42px,7.2vw,68px); line-height:1.02; letter-spacing:-0.025em;
  color:var(--ink); max-width:14ch;
}
h1 .em{ position:relative; display:inline-block; z-index:0; font-family:var(--sans); font-weight:800; font-style:normal; letter-spacing:-0.025em; color:#141109; }
h1 .em::before{
  content:""; position:absolute; z-index:-1;
  left:-0.09em; right:-0.09em; top:-0.05em; bottom:-0.08em;
  background:var(--mark); transform:rotate(-1.5deg); transform-origin:left center; pointer-events:none;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M8,9 C2,19 2,43 9,53 C70,58 140,57 192,51 C198,42 198,16 191,7 C130,2 64,3 8,9 Z' fill='%23000'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M8,9 C2,19 2,43 9,53 C70,58 140,57 192,51 C198,42 198,16 191,7 C130,2 64,3 8,9 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%; mask-size:100% 100%; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}

.sub{
  margin-top:26px; font-size:clamp(17px,2.1vw,20px); line-height:1.55;
  color:var(--ink-soft); max-width:54ch;
}
.sub b{ color:var(--ink); font-weight:600; }

/* ── the three promises ─────────────────────────────── */
.promises{
  margin-top:52px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.promise{ background:var(--bg); padding:24px 22px 26px; display:flex; flex-direction:column; gap:11px; }
.promise .num{ font-family:var(--serif); font-style:italic; font-size:22px; color:var(--accent); line-height:1; }
.promise .lbl{ font-size:14.5px; line-height:1.42; color:var(--ink-soft); max-width:22ch; }
.promise .lbl b{ color:var(--ink); font-weight:600; }

/* ── form card ──────────────────────────────────────── */
.card{
  margin-top:46px;
  background:linear-gradient(180deg,var(--card-top),var(--card));
  border:1px solid var(--line); border-radius:10px; padding:38px 38px 34px;
  box-shadow:0 1px 0 rgba(243,239,232,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.7);
}
.field-group{ margin-bottom:24px; }
.field-group:last-of-type{ margin-bottom:0; }
label{
  display:block; font-size:11.5px; font-weight:600; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:11px;
}
input[type=email], textarea{
  width:100%; font-family:var(--sans); font-size:16px; color:var(--ink);
  background:var(--field); border:1px solid var(--field-line); border-radius:7px;
  padding:15px 16px; transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input[type=email]{ height:52px; }
textarea{ min-height:152px; resize:vertical; line-height:1.5; }
::placeholder{ color:var(--ink-ghost); font-style:italic; }
input[type=email]:focus, textarea:focus{
  outline:none; border-color:var(--accent); background:#211e1a; box-shadow:0 0 0 3px var(--accent-glow);
}
.help{ margin-top:10px; font-size:13px; line-height:1.5; color:var(--ink-faint); }
.help.tiny{ color:var(--ink-ghost); margin-top:4px; }
.email-error{ display:none; margin-top:8px; font-size:12.5px; color:#d7593a; }
.email-error.visible{ display:block; }

/* CTA: accent-fill, warms to bone on hover */
.cta{
  margin-top:28px; width:100%; height:60px; border:none; cursor:pointer;
  font-family:var(--sans); font-size:16px; font-weight:700; letter-spacing:0.005em;
  border-radius:8px; display:flex; align-items:center; justify-content:center; gap:12px;
  background:var(--accent); color:#11161a;
  transition:transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
  box-shadow:0 14px 34px -12px var(--accent-glow);
}
.cta .arrow{ transition:transform .2s ease; display:inline-block; }
.cta:not(:disabled):hover{ background:var(--ink); color:#11161a; box-shadow:0 14px 34px -10px rgba(243,239,232,0.28); transform:translateY(-1px); }
.cta:not(:disabled):hover .arrow{ transform:translateX(5px); }
.cta:active{ transform:translateY(0); }
.cta:disabled{ background:var(--field); color:var(--ink-ghost); cursor:not-allowed; box-shadow:none; }

.reassure{ margin-top:20px; display:flex; flex-wrap:wrap; gap:7px 18px; font-size:12.5px; color:var(--ink-faint); }
.reassure span{ display:flex; align-items:center; gap:8px; }
.reassure span::before{ content:""; width:4px; height:4px; border-radius:50%; background:var(--accent); display:block; opacity:.8; }

/* ── footer trust line ──────────────────────────────── */
footer{ max-width:760px; margin:0 auto; padding:0 28px 70px; text-align:center; }
.trust{
  font-size:11.5px; font-weight:500; letter-spacing:0.13em; text-transform:uppercase;
  color:var(--ink-ghost); display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:9px 14px;
}
.trust .sep{ width:3px; height:3px; border-radius:50%; background:var(--ink-ghost); display:inline-block; }

/* ── loading + error states ─────────────────────────── */
.center-state{ text-align:center; padding:120px 0; }
.loading-line{ font-size:12px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--accent); }
.loading-bar{ width:180px; height:1.5px; background:var(--line); margin:20px auto 0; overflow:hidden; position:relative; }
.loading-bar::after{ content:""; position:absolute; left:-100%; top:0; width:100%; height:100%; background:var(--accent); animation:scan 1.4s ease-in-out infinite; }
@keyframes scan{ from{left:-100%;} to{left:100%;} }
.error-msg{ font-family:var(--serif); font-size:18px; line-height:1.6; color:var(--ink-soft); margin:0 auto 26px; max-width:46ch; }
.link-btn{ background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:13px; letter-spacing:0.04em; color:var(--accent); border-bottom:1px solid transparent; transition:border-color .2s; }
.link-btn:hover{ border-bottom-color:var(--accent); }

/* ===================================================================
   RESULTS PAGE COMPONENTS (same system)
   =================================================================== */
.step-label{
  display:flex; align-items:center; gap:13px;
  font-size:12px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--accent); margin-bottom:8px;
}
.step-label::before{ content:""; width:26px; height:1px; background:var(--accent); display:block; }

.grade-block{ display:flex; align-items:center; gap:26px; padding:26px 0 30px; border-bottom:1px solid var(--line); margin-bottom:34px; }
.grade-letter{ font-family:var(--sans); font-weight:800; font-size:76px; line-height:1; letter-spacing:-0.04em; color:var(--accent); min-width:58px; }
.grade-meta{ display:flex; flex-direction:column; gap:5px; }
.grade-label{ font-size:11.5px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--ink-faint); }
.grade-caption{ font-family:var(--serif); font-style:italic; font-size:18px; color:var(--ink-soft); line-height:1.5; }

.pattern-block{ padding-bottom:30px; border-bottom:1px solid var(--line); margin-bottom:30px; }
.pattern-badge{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent); background:var(--accent-glow); border:1px solid rgba(243,239,232,0.22);
  border-radius:999px; padding:6px 14px; margin-bottom:16px;
}
.pattern-block h3{ font-family:var(--sans); font-weight:700; font-size:23px; letter-spacing:-0.015em; color:var(--ink); margin-bottom:12px; }
.pattern-block p{ font-size:17px; line-height:1.7; color:var(--ink-soft); }

.mismatch-block, .fix-block{ border-left:2px solid var(--accent); padding:16px 22px; margin-bottom:24px; background:rgba(243,239,232,0.02); border-radius:0 8px 8px 0; }
.mismatch-label, .needed-label, .fix-label, .verdict-label, .turning-reframe-label{
  display:block; font-size:11.5px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--accent); margin-bottom:10px;
}
.mismatch-block p, .fix-block p{ font-size:17px; line-height:1.7; color:var(--ink); }

.needed-block, .verdict-block{
  background:linear-gradient(180deg,var(--card-top),var(--card)); border:1px solid var(--line);
  border-radius:10px; padding:22px 26px; margin-bottom:38px;
  box-shadow:0 30px 60px -34px rgba(0,0,0,0.7);
}
.needed-block p{ font-size:17px; line-height:1.7; color:var(--ink); font-weight:500; }
.verdict-text{ font-family:var(--serif); font-style:italic; font-size:20px; line-height:1.5; color:var(--ink); }

.findings-label, .turning-label{ display:block; font-size:11.5px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:16px; }
.findings{ list-style:none; margin-bottom:42px; }
.findings li{ display:grid; grid-template-columns:16px 1fr; gap:14px; align-items:baseline; padding:13px 0; font-size:17px; color:var(--ink); line-height:1.6; border-bottom:1px solid var(--line-soft); }
.findings li:first-child{ border-top:1px solid var(--line-soft); }
.findings li::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); margin-top:9px; }

.turning-point{ margin-bottom:48px; }
.turning-quote{ font-family:var(--serif); font-style:italic; font-size:18px; line-height:1.6; color:var(--ink-soft); border-left:2px solid var(--line); padding-left:18px; margin:0 0 20px; }
.turning-reframe{ background:rgba(243,239,232,0.04); border-left:2px solid var(--accent); padding:16px 20px; border-radius:0 8px 8px 0; }
.turning-reframe-text{ font-size:17px; line-height:1.6; color:var(--ink); }

/* calendar / book-a-call */
.calendar-section{ padding:48px 0 0; border-top:1px solid var(--line); }
.calendar-section h3{ font-family:var(--sans); font-weight:700; font-size:clamp(22px,3.5vw,30px); letter-spacing:-0.02em; color:var(--ink); margin-bottom:12px; }
.calendar-section p{ font-size:16px; line-height:1.65; color:var(--ink-soft); margin-bottom:24px; }
.btn-link{
  display:inline-flex; align-items:center; gap:10px; font-family:var(--sans); font-weight:700; font-size:15px;
  color:#11161a; background:var(--accent); border-radius:8px; padding:16px 30px; text-decoration:none;
  box-shadow:0 14px 34px -12px var(--accent-glow); transition:transform .16s ease, box-shadow .2s, background .2s;
}
.btn-link:hover{ background:var(--ink); transform:translateY(-1px); box-shadow:0 14px 34px -10px rgba(243,239,232,0.28); }

.retry{ display:inline-block; margin-top:18px; font-size:13px; letter-spacing:0.04em; color:var(--ink-faint); cursor:pointer; text-decoration:none; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
.retry:hover{ color:var(--ink); border-bottom-color:var(--ink); }

/* method / founder block */
.method-section{ padding:52px 0; border-top:1px solid var(--line); margin-top:48px; }
.method-label{ display:block; font-size:12px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; }
.method-title{ font-family:var(--sans); font-weight:800; font-size:clamp(24px,4vw,34px); letter-spacing:-0.02em; color:var(--ink); margin-bottom:16px; }
.method-body{ font-size:16px; line-height:1.7; color:var(--ink-soft); margin-bottom:36px; max-width:60ch; }
.method-stats{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:28px; }
.method-stat{ padding:24px 16px; text-align:center; border-right:1px solid var(--line); }
.method-stat:last-child{ border-right:none; }
.method-stat-num{ display:block; font-family:var(--sans); font-weight:800; font-size:clamp(26px,4vw,34px); letter-spacing:-0.03em; color:var(--ink); }
.method-stat-label{ display:block; margin-top:6px; font-size:10.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink-faint); }
.method-foot{ font-family:var(--serif); font-style:italic; font-size:15px; line-height:1.6; color:var(--ink-soft); max-width:60ch; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width:680px){
  .wordmark img{ height:17px; }
  main{ padding:48px 22px 64px; }
  .col{ padding:0 22px; }
  .promises{ grid-template-columns:1fr; background:transparent; border-bottom:none; }
  .promise{ padding:20px 4px; border-bottom:1px solid var(--line-soft); }
  .promise:last-child{ border-bottom:none; }
  .card{ padding:28px 22px 26px; border-radius:9px; }
  .cta{ height:56px; }
  .grade-letter{ font-size:60px; }
  .method-stats{ grid-template-columns:1fr; }
  .method-stat{ border-right:none; border-bottom:1px solid var(--line); }
  .method-stat:last-child{ border-bottom:none; }
  /* even, one-per-line on mobile instead of ragged 1+2 wrap */
  .reassure{ flex-direction:column; gap:10px; }
  footer .trust{ flex-direction:column; gap:9px; }
  footer .trust .sep{ display:none; }
}

/* ===================================================================
   MOTION LAYER: "alive": restrained entrances + ambient life.
   Everything is gated behind prefers-reduced-motion AND an html.js flag,
   so the page stays fully visible without JS or for reduced-motion users.
   =================================================================== */
@media (prefers-reduced-motion: no-preference){

  /* reveal-on-scroll / on-load base. --r gives a per-element stagger. */
  html.js [data-reveal]{
    opacity:0; transform:translateY(16px);
    transition:opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
    transition-delay:calc(var(--r,0) * 85ms);
    will-change:opacity, transform;
  }
  html.js [data-reveal].in{ opacity:1; transform:none; }

  /* step-label accent rule draws in */
  html.js .step-label::before{ width:0; transition:width .6s ease .28s; }
  html.js .step-label.in::before{ width:26px; }

  /* ambient spotlight breathe so the canvas isn't dead-still */
  .spotlight{ animation:breathe 11s ease-in-out infinite; }
  @keyframes breathe{
    0%,100%{ opacity:.82; transform:translateX(-50%) scale(1); }
    50%    { opacity:1;   transform:translateX(-50%) scale(1.06); }
  }

  /* promise hover lift */
  .promise{ transition:transform .25s ease, background .25s ease; }
  @media (hover:hover){ .promise:hover{ transform:translateY(-3px); background:var(--card); } }

  /* CTA: slow glow-breathe to draw the eye, light sheen sweep on hover */
  .cta:not(:disabled){ position:relative; overflow:hidden; animation:ctaGlow 3.8s ease-in-out infinite; }
  @keyframes ctaGlow{
    0%,100%{ box-shadow:0 14px 34px -14px var(--accent-glow); }
    50%    { box-shadow:0 16px 42px -9px  var(--accent-glow); }
  }
  .cta:not(:disabled)::after{
    content:""; position:absolute; top:0; left:-130%; width:55%; height:100%;
    background:linear-gradient(100deg, transparent, rgba(255,255,255,0.20), transparent);
    transform:skewX(-18deg); pointer-events:none;
  }
  .cta:not(:disabled):hover::after{ animation:sheen .7s ease; }
  @keyframes sheen{ from{ left:-130%; } to{ left:130%; } }

  /* results: grade letter entrance */
  html.js .grade-block.in .grade-letter{ animation:gradeIn .75s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes gradeIn{
    from{ opacity:0; transform:scale(.82); filter:blur(6px); }
    to  { opacity:1; transform:none;       filter:blur(0); }
  }

  /* results: findings stagger (JS tags each li) */
  html.js .findings li[data-reveal]{ opacity:0; transform:translateX(-8px); transition:opacity .5s ease, transform .5s ease; transition-delay:calc(var(--r,0) * 80ms); }
  html.js .findings li[data-reveal].in{ opacity:1; transform:none; }

  /* the "better line" reframe = the screenshot moment: one soft highlight pulse */
  html.js .turning-reframe.in{ animation:reframePulse 1.8s ease .2s 1; }
  @keyframes reframePulse{
    0%  { box-shadow:0 0 0 0 var(--accent-glow); }
    45% { box-shadow:0 0 0 4px var(--accent-glow); }
    100%{ box-shadow:0 0 0 0 rgba(243,239,232,0); }
  }

  /* loading line: gentle breathe while the engine reads */
  html.js .loading-line{ animation:loadPulse 1.6s ease-in-out infinite; }
  @keyframes loadPulse{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }
}

/* ===================================================================
   HERO LIVE-READ DEMO + TRY CUE
   A miniature of the tool: a call snippet types in, a scan line sweeps,
   it resolves to a buyer-style badge plus the better line. Shows the
   user what to do and the value they get, before they read anything.
   =================================================================== */
.readdemo{
  margin-top:42px;
  background:linear-gradient(180deg,var(--card-top),var(--card));
  border:1px solid var(--line); border-radius:12px;
  padding:20px 22px 22px; position:relative; overflow:hidden;
  box-shadow:0 30px 60px -34px rgba(0,0,0,0.7);
}
.readdemo-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.readdemo-tag{ font-size:10.5px; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--accent); }
.readdemo-dots{ display:flex; gap:6px; }
.readdemo-dots i{ width:6px; height:6px; border-radius:50%; background:var(--ink-ghost); display:block; transition:background .3s ease; }
.readdemo-dots i.on{ background:var(--accent); }
.readdemo-call{ position:relative; min-height:56px; padding:2px 0 14px; }
.readdemo-line{ font-family:var(--serif); font-style:italic; font-size:18px; line-height:1.5; color:var(--ink-soft); }
.readdemo-line .caret{ display:inline-block; width:2px; height:1.05em; background:var(--accent); margin-left:1px; vertical-align:-2px; }
.readdemo-scan{ position:absolute; left:-8px; right:-8px; top:0; height:2px; background:linear-gradient(90deg,transparent,var(--accent),transparent); opacity:0; box-shadow:0 0 14px var(--accent-glow); pointer-events:none; }
.readdemo-out{ border-top:1px solid var(--line); padding-top:15px; opacity:0; transform:translateY(8px); transition:opacity .5s ease, transform .5s ease; min-height:64px; }
.readdemo.revealed .readdemo-out{ opacity:1; transform:none; }
.readdemo-badge{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); background:var(--accent-glow); border:1px solid rgba(243,239,232,0.22); border-radius:999px; padding:6px 14px; margin-bottom:11px; min-height:14px; }
.readdemo-fix{ font-size:15px; line-height:1.5; color:var(--ink); }
.readdemo-fix span{ display:block; font-size:10.5px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:5px; }
.readdemo-fix em{ font-style:normal; }

.trycue{ display:flex; flex-direction:column; align-items:center; gap:6px; margin:30px 0 -6px; }
.trycue span:first-child{ font-size:11.5px; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; color:var(--ink-faint); }
.trycue .arrow{ color:var(--accent); font-size:18px; line-height:1; }

@media (prefers-reduced-motion: no-preference){
  .readdemo.scanning .readdemo-scan{ animation:rdScan 1s ease-in-out; }
  @keyframes rdScan{ 0%{ opacity:0; top:0; } 12%{ opacity:1; } 88%{ opacity:1; } 100%{ opacity:0; top:100%; } }
  .readdemo-line .caret{ animation:caretBlink .9s step-end infinite; }
  @keyframes caretBlink{ 0%,100%{ opacity:1; } 50%{ opacity:0; } }
  html.js .trycue .arrow{ animation:bob 1.8s ease-in-out infinite; }
  @keyframes bob{ 0%,100%{ transform:translateY(0); opacity:.65; } 50%{ transform:translateY(5px); opacity:1; } }
  html.js .em{ color:var(--ink); transition:color .35s ease .55s; }
  html.js h1.in .em{ color:#141109; }
  html.js .em::before{ transform:rotate(-1.5deg) scaleX(0); }
  html.js h1.in .em::before{ transition:transform .5s cubic-bezier(.5,.1,.3,1) .45s; transform:rotate(-1.5deg) scaleX(1); }
}

@media (max-width:680px){
  .readdemo{ margin-top:34px; padding:16px 16px 18px; }
  .readdemo-line{ font-size:16px; }
  .readdemo-out{ min-height:0; }
  .readdemo-fix{ font-size:14.5px; }
  /* tighter pen loop + thinner stroke so it does not crowd the tight headline lines */
  h1 .em::before{ left:-0.08em; right:-0.08em; }
}

/* ===================================================================
   CLOSER QUIZ (/quiz): shares the system, adds quiz + result components.
   Red (--mark) is used only on the data, the one stat that defines a type.
   =================================================================== */
.quiz-top{ display:flex; align-items:center; gap:16px; margin-bottom:36px; }
.q-count{ font-size:12px; font-weight:700; letter-spacing:0.16em; color:var(--ink-faint); white-space:nowrap; font-variant-numeric:tabular-nums; }
.quiz-progress{ flex:1; height:2px; background:var(--line); position:relative; border-radius:2px; overflow:hidden; }
.quiz-progress-fill{ position:absolute; inset:0 auto 0 0; width:0; background:var(--ink); transition:width .5s cubic-bezier(.22,.61,.36,1); }

.question{ font-family:var(--sans); font-weight:800; font-size:clamp(26px,4.4vw,40px); line-height:1.12; letter-spacing:-0.02em; color:var(--ink); max-width:20ch; margin-bottom:30px; }
.options{ display:flex; flex-direction:column; gap:12px; }
.option{ text-align:left; width:100%; cursor:pointer; font-family:var(--sans); font-size:16.5px; line-height:1.45; color:var(--ink-soft);
  background:linear-gradient(180deg,var(--card-top),var(--card)); border:1px solid var(--line); border-radius:11px; padding:18px 20px;
  display:flex; align-items:center; gap:15px; transition:border-color .18s, background .18s, color .18s, transform .12s; }
.option .opt-key{ flex:0 0 auto; width:24px; height:24px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:var(--ink-faint); transition:background .18s, border-color .18s, color .18s; }
@media (hover:hover){
  .option:hover{ border-color:var(--ink-faint); background:var(--card); color:var(--ink); transform:translateY(-1px); }
  .option:hover .opt-key{ border-color:var(--ink); color:var(--ink); }
}
.option.chosen{ border-color:var(--mark); color:var(--ink); }
.option.chosen .opt-key{ background:var(--mark); border-color:var(--mark); color:#141109; }

.q-back{ margin-top:22px; background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:13px; letter-spacing:0.03em; color:var(--ink-faint); transition:color .2s; }
.q-back:hover{ color:var(--ink); }

/* result */
.archetype-name{ font-family:var(--sans); font-weight:800; font-size:clamp(42px,7.4vw,68px); line-height:1.0; letter-spacing:-0.03em; color:var(--ink); margin-bottom:16px; }
.archetype-id{ font-family:var(--serif); font-style:italic; font-size:clamp(19px,2.5vw,24px); line-height:1.5; color:var(--ink-soft); max-width:32ch; margin-bottom:38px; }

.stat-figure{ display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:start; padding:28px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:36px; }
.stat-num{ font-family:var(--sans); font-weight:800; font-size:clamp(46px,8vw,74px); line-height:.86; letter-spacing:-0.04em; color:var(--mark); }
.stat-body{ font-size:16px; line-height:1.62; color:var(--ink); }
.stat-source{ display:block; margin-top:11px; font-size:11.5px; letter-spacing:0.04em; color:var(--ink-faint); }

.blindspot-block{ border-left:2px solid var(--mark); padding:16px 22px; margin-bottom:26px; background:rgba(244,233,77,0.07); border-radius:0 8px 8px 0; }
.blindspot-label{ display:block; font-size:11.5px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--mark); margin-bottom:10px; }
.blindspot-block p{ font-size:17px; line-height:1.65; color:var(--ink); }

/* email gate + gated playbook */
.gate-card h3{ font-family:var(--sans); font-weight:700; font-size:20px; letter-spacing:-0.01em; color:var(--ink); margin-bottom:8px; }
.gate-card p{ font-size:15px; line-height:1.6; color:var(--ink-soft); margin-bottom:20px; }
#state-result.unlocked .gate-card{ display:none; }
#state-result:not(.unlocked) .playbook{ display:none; }
.playbook{ animation:fadeUp .55s ease both; }

@media (max-width:680px){
  .stat-figure{ grid-template-columns:1fr; gap:10px; }
  .question{ font-size:clamp(24px,7vw,32px); }
}
