  :root{
    --bg: #f8fafb;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --accent: #3b4fe8;
    --accent-2: #2e3ecb;
    --accent-soft: rgba(59,79,232,0.10);
    --gold: #a9772f;
    --success: #16a34a;
    --warning: #d97706;
    --fail: #dc2626;
    --radius: 14px;
    --ease: cubic-bezier(.16,1,.3,1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  html{ scroll-behavior:smooth; }

  body{
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; }
  button{ font-family: inherit; cursor:pointer; border:none; }

  img, svg{ display:block; max-width:100%; }

  :focus-visible{
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
  }

  .wrap{
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ---------- Sticky top group (header + status bar, stacked as one unit) ---------- */
  .sticky-top-group{
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
  }

  /* ---------- Nav ---------- */
  header{
    transition: border-color .3s ease, background .3s ease;
  }
  header.scrolled{
    background: rgba(248,250,251,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 18px 0;
  }
  .logo{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .logo-mark-svg{ display:block; flex-shrink:0; }
  .lm-bg{ fill: var(--surface); stroke: var(--border-strong); stroke-width:1; }
  .lm-mark{ stroke: var(--accent); stroke-width:2.6; stroke-linecap:square; stroke-linejoin:miter; fill:none; }
  .lm-dot{ fill: var(--accent); filter: drop-shadow(0 0 3px rgba(59,79,232,0.55)); animation: lm-pulse 2.6s ease-in-out infinite; }
  @keyframes lm-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.5; } }
  @media (prefers-reduced-motion: reduce){ .lm-dot{ animation:none; } }
  .nav-links{
    display:flex;
    align-items:center;
    gap: 28px;
  }
  .nav-links a.login{
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color .2s ease;
  }
  .nav-links a.login:hover{ color: var(--text); }

  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  }
  .btn-primary{
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 24px -8px rgba(59,79,232,0.5);
  }
  .btn-primary:hover{
    transform: translateY(-1px);
    background: #3ee0c9;
    box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 12px 28px -8px rgba(59,79,232,0.65);
  }
  .btn-ghost{
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
  }
  .btn-ghost:hover{
    border-color: rgba(15,23,42,0.3);
    background: var(--surface-2);
  }
  .btn-lg{ padding: 14px 26px; font-size: 1rem; }

  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    padding: 132px 0 116px;
    z-index:1;
  }

  /* Doodle arrows surrounding the headline/input before a scan starts */
  .hero-arrows{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:0;
    opacity:1;
    transition: opacity .5s var(--ease);
  }
  .hero-arrows.hidden{ opacity:0; }
  .hero-arrow{ position:absolute; width:74px; height:42px; }
  .hero-arrow-lottie{ width:100%; height:100%; }
  .hero-arrow-lottie svg{ width:100% !important; height:100% !important; display:block; }
  .ha-1{ top:4%;    left:4%;   transform: rotate(170deg); }
  .ha-2{ top:-1%;   left:40%;  transform: rotate(200deg); }
  .ha-3{ top:6%;    right:3%;  transform: rotate(255deg); }
  .ha-4{ top:42%;   left:-1%;  transform: rotate(150deg); }
  .ha-5{ top:40%;   right:-2%; transform: rotate(280deg); }
  .ha-6{ bottom:6%; left:8%;   transform: rotate(80deg); }
  .ha-7{ bottom:0%; left:44%;  transform: rotate(20deg); }
  .ha-8{ bottom:4%; right:6%;  transform: rotate(-35deg); }

  /* Two states: centered (idle) <-> two-column (once a scan starts) */
  .hero-inner{
    position:relative;
    z-index:1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:0;
    transition: gap .6s var(--ease);
  }
  .hero-text{
    flex: 0 1 620px;
    text-align:center;
    transition: flex-basis .6s var(--ease);
  }
  .hero-text .lead{ margin-left:auto; margin-right:auto; }
  .hero-text .scan-form{ margin-left:auto; margin-right:auto; }
  .scroll-panel{
    flex: 0 0 0px;
    width:0;
    opacity:0;
    overflow:hidden;
    transition: flex-basis .6s var(--ease), opacity .45s var(--ease), width .6s var(--ease);
  }
  .hero-inner.scanning{ gap:56px; }
  .hero-inner.scanning .hero-text{
    flex: 1 1 0;
    text-align:left;
    max-width:560px;
  }
  .hero-inner.scanning .hero-text .lead,
  .hero-inner.scanning .hero-text .scan-form{
    margin-left:0; margin-right:0;
  }
  .hero-inner.scanning .scroll-panel{
    flex: 1 1 0;
    width:auto;
    opacity:1;
    overflow:visible;
  }

  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    background: var(--accent-soft);
    border: 1px solid rgba(59,79,232,0.25);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 22px;
  }
  .eyebrow .dot{
    width:6px; height:6px; border-radius:50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(22,163,74,0.9);
  }
  h1{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  h1 .grad{
    color: var(--accent);
  }
  .hero p.lead{
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 34px;
  }

  .scan-form{
    display:flex;
    gap:10px;
    max-width: 460px;
    margin-bottom: 14px;
  }
  .scan-form input{
    flex:1;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.95rem;
    padding: 13px 16px;
    border-radius: 9px;
    font-family: var(--font-body);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .scan-form input::placeholder{ color: var(--text-faint); }
  .scan-form input:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,79,232,0.18);
    outline: none;
  }
  .hero-note{
    font-size: 0.82rem;
    color: var(--text-faint);
  }

  /* ---------- Hero load-in choreography ---------- */
  @keyframes hero-rise{
    from{ opacity:0; transform: translateY(16px); }
    to{ opacity:1; transform: translateY(0); }
  }
  @keyframes hero-rise-side{
    from{ opacity:0; transform: translateY(10px) scale(.97); }
    to{ opacity:1; transform: translateY(0) scale(1); }
  }
  .hero-anim{
    opacity:0;
    animation: hero-rise .8s var(--ease) forwards;
  }
  @media (prefers-reduced-motion: reduce){
    .hero-anim{ opacity:1; animation:none; }
  }

  /* ---------- Ticker strip ---------- */
  .ticker-strip{
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  .ticker-strip::before, .ticker-strip::after{
    content:'';
    position:absolute; top:0; bottom:0; width:60px; z-index:2; pointer-events:none;
  }
  .ticker-strip::before{ left:0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
  .ticker-strip::after{ right:0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
  .ticker-track{
    display:flex;
    gap: 44px;
    width: max-content;
    padding: 13px 0;
    animation: ticker-scroll 32s linear infinite;
  }
  .ticker-strip:hover .ticker-track{ animation-play-state: paused; }
  @keyframes ticker-scroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }
  .ticker-item{
    display:flex; align-items:center; gap:8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-faint);
    white-space: nowrap;
  }
  .ticker-item .t-dot{
    width:5px; height:5px; border-radius:50%;
    background: var(--success);
    flex-shrink:0;
  }
  .ticker-item .t-pass{ color: var(--text-muted); }

  /* ---------- Tilt / cursor glow ---------- */
  .tilt{
    transition: transform .2s var(--ease);
    will-change: transform;
  }
  .tilt-glow{ position:relative; overflow:hidden; }
  .tilt-glow::after{
    content:'';
    position:absolute; inset:0;
    border-radius:inherit;
    background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(59,79,232,0.16), transparent 65%);
    opacity:0;
    transition: opacity .3s ease;
    pointer-events:none;
  }
  .tilt-glow:hover::after{ opacity:1; }
  @media (prefers-reduced-motion: reduce){
    .tilt{ transform:none !important; transition:none; }
  }

  /* ---------- Hero visual: playful "scroll for results" prompt ---------- */
  .scroll-panel{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 18px;
    padding: 60px 30px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 40px -24px rgba(15,23,42,0.22);
    text-align:center;
  }
  .scroll-hint-lottie{
    width: 76px;
    height: 76px;
    overflow: hidden;
  }
  .scroll-hint-lottie svg{ width:100% !important; height:100% !important; display:block; }
  .scroll-panel-text{
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ---------- Sections shared ---------- */
  section{ position:relative; z-index:1; }
  .section-pad{ padding: 88px 0; }
  /* Tighter vertical rhythm specifically for "why this matters" and
     pricing — requested so both stand a better chance of fitting in
     one screen alongside the sticky header/status bar. Other sections
     (how-it-works, results, etc.) are intentionally left as-is. */
  #problem.section-pad, #pricing.section-pad{ padding: 36px 0; }
  #pricing{ scroll-margin-top: 90px; }
  #problem .section-head, #pricing .section-head{ margin: 0 auto 18px; }
  #problem .section-head h2, #pricing .section-head h2{ font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 8px; }
  #problem .section-head p, #pricing .section-head p{ font-size: 0.86rem; }
  #problem .section-head .eyebrow, #pricing .section-head .eyebrow{ margin-bottom: 10px; }

  /* Generic scroll-entrance classes, used for section-level reveals
     (as distinct from the card-level reveals like .step/.feature/.plan) */
  .reveal-fade{ opacity:0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-fade.in-view{ opacity:1; transform: translateY(0); }
  .reveal-left{ opacity:0; transform: translateX(-34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-left.in-view{ opacity:1; transform: translateX(0); }
  .reveal-right{ opacity:0; transform: translateX(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-right.in-view{ opacity:1; transform: translateX(0); }
  @media (prefers-reduced-motion: reduce){
    .reveal-fade, .reveal-left, .reveal-right{ opacity:1; transform:none; transition:none; }
  }

  .section-head{
    max-width: 620px;
    margin: 0 auto 52px;
    text-align:center;
  }
  .section-head .eyebrow{ margin-bottom: 16px; }
  .section-head h2{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.015em;
    margin-bottom: 14px;
  }
  .section-head p{
    color: var(--text-muted);
    font-size: 1.02rem;
  }

  .divider{
    height:1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  }

  /* ---------- How it works ---------- */
  #how{ position:relative; }

  .how-deco{
    position:absolute;
    top:-8px;
    width:120px;
    height:120px;
    object-fit:contain;
    box-sizing:border-box;
    border-radius:14px;
    border:1px solid var(--border);
    background:var(--surface);
    padding:10px;
    box-shadow:0 16px 32px -16px rgba(15,23,42,0.25);
    z-index:2;
    transform: translateY(-30px) rotate(-25deg);
  }
  .how-deco-left{ left:-8px; }
  .how-deco-right{ right:-8px; transform: translateY(-30px) rotate(25deg); }
  @media (prefers-reduced-motion: reduce){
    .how-deco{ transform:none; }
  }

  .steps-wrap{ position:relative; }
  .how-node-path{
    position:absolute;
    top:0; bottom:0;
    width:50px;
    height:100%;
    opacity:0;
    transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s;
  }
  .how-node-left{ left:-30px; transform: translateX(-40px); }
  .how-node-left.in-view{ opacity:1; transform: translateX(0); }
  .how-node-right{ right:-30px; transform: translateX(40px) scaleX(-1); }
  .how-node-right.in-view{ opacity:1; transform: translateX(0) scaleX(-1); }
  .node-path-line{ fill:none; stroke: var(--accent); stroke-width:6; stroke-linecap:round; opacity:0.28; }
  .node-path-dot{ fill: var(--accent); opacity:0.4; }
  @media (prefers-reduced-motion: reduce){
    .how-node-path{ opacity: 1; transform:none !important; }
  }
  @media (max-width: 1100px){
    .how-node-path{ display:none; }
  }

  .steps{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .step{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: border-color .25s ease;
    opacity:0; transform: translateY(30px);
  }
  .step.in-view{ opacity:1; transform: translateY(0); transition: opacity .65s var(--ease), transform .65s var(--ease), border-color .25s ease; }
  .step:nth-child(1).in-view{ transition-delay: 0s; }
  .step:nth-child(2).in-view{ transition-delay: .09s; }
  .step:nth-child(3).in-view{ transition-delay: .18s; }
  .step:hover{ border-color: rgba(59,79,232,0.35); transform: translateY(-3px); }
  .step-num{
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
  }
  .step h3{
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .step p{
    color: var(--text-muted);
    font-size: 0.93rem;
  }

  /* ---------- Features (bento) ---------- */
  .features{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(170px, auto);
    gap: 20px;
  }
  .feature{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    opacity:0; transform: scale(.95);
    transition: border-color .25s ease, transform .2s var(--ease);
    display:flex; flex-direction:column;
  }
  .feature.in-view{ opacity:1; transform: scale(1); transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .25s ease; }
  .feature:nth-child(1).in-view{ transition-delay: 0s; }
  .feature:nth-child(2).in-view{ transition-delay: .06s; }
  .feature:nth-child(3).in-view{ transition-delay: .12s; }
  .feature:nth-child(4).in-view{ transition-delay: .18s; }
  .feature:nth-child(5).in-view{ transition-delay: .24s; }
  .feature:nth-child(6).in-view{ transition-delay: .30s; }
  .feature:hover{ border-color: rgba(59,79,232,0.3); }
  .feature.wide{
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .feature.wide .feature-copy{ flex:1; }
  .feature-icon{
    width: 34px; height:34px;
    border-radius: 9px;
    background: var(--accent-soft);
    display:flex; align-items:center; justify-content:center;
    margin-bottom: 16px;
    color: var(--accent-2);
    flex-shrink:0;
  }
  .feature h3{
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .feature p{
    color: var(--text-muted);
    font-size: 0.89rem;
  }

  /* mini animated bar readout for the wide feature card */
  .mini-scan{
    display:flex;
    align-items:flex-end;
    gap: 5px;
    height: 54px;
    flex-shrink:0;
    padding: 0 4px;
  }
  .mini-scan span{
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    animation: bar-bounce 1.6s ease-in-out infinite;
  }
  .mini-scan span:nth-child(1){ height:38%; animation-delay: 0s; }
  .mini-scan span:nth-child(2){ height:70%; animation-delay: .12s; }
  .mini-scan span:nth-child(3){ height:50%; animation-delay: .24s; }
  .mini-scan span:nth-child(4){ height:88%; animation-delay: .36s; }
  .mini-scan span:nth-child(5){ height:60%; animation-delay: .48s; }
  @keyframes bar-bounce{
    0%,100%{ transform: scaleY(1); opacity:.85; }
    50%{ transform: scaleY(1.28); opacity:1; }
  }
  @media (prefers-reduced-motion: reduce){
    .mini-scan span{ animation:none; }
  }
  @media (max-width: 880px){
    .feature.wide{ grid-column: span 1; flex-direction:column; align-items:flex-start; }
  }

  /* ---------- Pricing ---------- */
  .pricing-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
    scroll-margin-top: 90px;
  }
  .plan{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px;
    display:flex;
    flex-direction:column;
    position:relative;
    transition: border-color .25s ease;
    opacity:0; transform: translateY(24px);
  }
  .plan.in-view{ opacity:1; transform: translateY(0); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s ease; }
  .plan:nth-child(1).in-view{ transition-delay: 0s; }
  .plan:nth-child(2).in-view{ transition-delay: .08s; }
  .plan:nth-child(3).in-view{ transition-delay: .16s; }
  .plan:nth-child(4).in-view{ transition-delay: .24s; }
  .plan:hover{ transform: translateY(-4px); }
  .plan.in-view:hover{ transform: translateY(-4px); }
  .plan.featured{
    border-color: rgba(59,79,232,0.5);
    background: linear-gradient(180deg, rgba(59,79,232,0.08), var(--surface) 60%);
  }
  .plan.pro{
    border-color: rgba(201,162,75,0.4);
  }
  .plan-badge{
    position:absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--accent);
    color:#ffffff;
  }
  .plan.pro .plan-badge{
    background: var(--gold);
    color: #1a1400;
  }
  .plan-name{
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .plan-price{
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .plan-price span{
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-body);
  }
  .plan-desc{
    color: var(--text-faint);
    font-size: 0.74rem;
    margin-bottom: 12px;
  }
  .plan-features{
    margin-bottom: 14px;
    flex-grow:1;
  }
  .plan-features li{
    display:flex;
    align-items:flex-start;
    gap:6px;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 3px 0;
  }
  .plan-features li svg{ width:13px; height:13px; flex-shrink:0; margin-top:2px; color: var(--success); }
  .plan .btn{ width:100%; }

  /* ---------- FAQ ---------- */
  .faq{
    max-width: 720px;
    margin: 0 auto;
  }
  .faq-item{
    border-bottom: 1px solid var(--border);
    opacity:0; transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .faq-item.in-view{ opacity:1; transform: translateY(0); }
  .faq-item:nth-child(1).in-view{ transition-delay: 0s; }
  .faq-item:nth-child(2).in-view{ transition-delay: .06s; }
  .faq-item:nth-child(3).in-view{ transition-delay: .12s; }
  .faq-item:nth-child(4).in-view{ transition-delay: .18s; }
  @media (prefers-reduced-motion: reduce){
    .faq-item{ opacity:1; transform:none; transition:none; }
  }
  .faq-q{
    width:100%;
    text-align:left;
    background:none;
    color: var(--text);
    padding: 20px 4px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.98rem;
  }
  .faq-q .icon{
    transition: transform .25s ease;
    color: var(--text-muted);
    flex-shrink:0;
    margin-left: 16px;
  }
  .faq-item.open .faq-q .icon{ transform: rotate(45deg); }
  .faq-a{
    max-height:0;
    overflow:hidden;
    transition: max-height .3s ease;
  }
  .faq-a p{
    padding: 0 4px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 620px;
  }

  /* ---------- Final CTA ---------- */
  .cta-banner{
    background: rgba(59,79,232,0.08);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    padding: 56px 40px;
    text-align:center;
  }
  .cta-banner h2{
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    margin-bottom: 12px;
  }
  .cta-banner p{
    color: var(--text-muted);
    margin-bottom: 28px;
  }
  .cta-banner .btn-row{
    display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  }

  /* ---------- Footer ---------- */
  footer{
    border-top: 1px solid var(--border);
    padding: 40px 0;
  }
  .footer-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap: 16px;
  }
  .footer-links{
    display:flex;
    gap: 24px;
  }
  .footer-links a{
    color: var(--text-muted);
    font-size: 0.86rem;
    transition: color .2s ease;
  }
  .footer-links a:hover{ color: var(--text); }
  .footer-copy{
    color: var(--text-faint);
    font-size: 0.82rem;
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1200px){
    .pricing-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 880px){
    .hero{ padding-top: 60px; }
    .hero-arrows{ display:none; }
    .hero-inner{ flex-direction:column; }
    .hero-inner.scanning{ flex-direction:column; gap:32px; }
    .hero-inner.scanning .hero-text{ text-align:center; max-width:none; }
    .hero-inner.scanning .hero-text .lead,
    .hero-inner.scanning .hero-text .scan-form{ margin-left:auto; margin-right:auto; }
    .hero p.lead{ max-width:none; }
    .how-deco, .how-node-path{ display:none; }
    .steps, .features, .pricing-grid{ grid-template-columns: 1fr; }
    .nav-links{ gap: 14px; }
    .section-pad{ padding: 64px 0; }
  }
  @media (max-width: 520px){
    .scan-form{ flex-direction:column; }
    .footer-row{ flex-direction:column; align-items:flex-start; }
  }

/* ============================================================
   Scrollytelling flow additions (v2 — live-scan landing page)
   ============================================================ */

/* Scan-status bar — a normal stacked child of .sticky-top-group now,
   not independently positioned, so there's no offset math needed and
   no risk of it rendering clipped under the header.

   Uses a max-height collapse (not transform) to hide/show: transform
   still reserves the element's flow space and, once nested inside the
   same sticky wrapper as the header, a translateY shift big enough to
   move it "off-screen" actually moved it up into/over the header's own
   box instead. max-height:0 has zero footprint and zero visual
   presence when hidden, and grows downward when shown. */
.scan-status-bar{
  max-height: 0;
  overflow: hidden;
  background: rgba(248,250,251,0.94);
  backdrop-filter: blur(10px);
  transition: max-height .35s var(--ease);
}
.scan-status-bar.visible{
  max-height: 60px;
  border-bottom: 1px solid var(--border);
}
.scan-status-row{
  display:flex; align-items:center; gap:14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 0;
}
.scan-status-row .ssb-url{ color: var(--text); }
.scan-status-track{
  flex:1;
  height:4px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow:hidden;
}
.scan-status-fill{
  height:100%;
  width:4%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:4px;
  transition: width .5s var(--ease);
}
.scan-status-row .ssb-state{ flex-shrink:0; }
.scan-status-row .ssb-state.state-failed{ color:var(--fail); }
.scan-status-row .ssb-state.state-complete{ color: var(--success); }

/* Problem / narrative section */
.problem-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.problem-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  opacity:0; transform: translateY(16px);
}
.problem-card.in-view{ opacity:1; transform: translateY(0); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.problem-card:nth-child(1).in-view{ transition-delay: 0s; }
.problem-card:nth-child(2).in-view{ transition-delay: .08s; }
.problem-card:nth-child(3).in-view{ transition-delay: .16s; }
.problem-card .p-mark{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--fail);
  margin-bottom: 6px;
  display:inline-block;
}
.problem-card h3{
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.problem-card p{ color: var(--text-muted); font-size: 0.78rem; }
.stat-number{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display:flex; align-items:baseline; gap:6px;
}
.stat-unit{
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
}
.stat-source{
  display:inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.stat-source:hover{ color: var(--accent-2); border-color: var(--accent-2); }

/* Results section */
.results-section{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}
.results-head{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.results-head h2{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.results-head .r-url{
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.9rem;
}
.results-summary{
  display:flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.results-summary span{ display:flex; align-items:center; gap:6px; }
.results-summary .rs-dot{ width:7px; height:7px; border-radius:50%; }
.rs-dot.pass{ background: var(--success); }
.rs-dot.warning{ background: var(--warning); }
.rs-dot.fail{ background: var(--fail); }

.results-state{
  text-align:center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.results-state .spinner{
  width: 34px; height:34px;
  border-radius:50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent-2);
  margin: 0 auto 20px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.results-state .r-msg{
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.results-state .r-count{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 8px;
}

.result-row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.result-row:last-child{ border-bottom:none; }
.result-row .r-page{ color: var(--text); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-row .r-badge{
  flex-shrink:0;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.r-badge.pass{ background: rgba(22,163,74,0.12); color: var(--success); }
.r-badge.warning{ background: rgba(217,119,6,0.12); color: var(--warning); }
.r-badge.fail{ background: rgba(220,38,38,0.12); color: var(--fail); }

.results-error{
  text-align:center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.results-error h3{ color: var(--text); font-family: var(--font-display); margin-bottom: 10px; }

.results-cta{
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
.results-cta p{ color: var(--text-muted); font-size: 0.9rem; }

/* Scroll cue under hero */
.scroll-cue{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin-top: 42px;
  animation: cue-bob 2s ease-in-out infinite;
}
@keyframes cue-bob{
  0%,100%{ transform: translateY(0); } 50%{ transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue{ animation:none; }
}

/* ============================================================
   Auth pages (login, signup, forgot-password) — shared styles
   ============================================================ */
.auth-section{
  display:flex;
  justify-content:center;
  padding: 64px 24px 96px;
  min-height: calc(100vh - 300px);
}
.auth-card{
  width:100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 20px 40px -24px rgba(15,23,42,0.14);
  align-self: flex-start;
  margin-top: 40px;
}
.auth-card h1{
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.auth-error{
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: var(--fail);
  font-size: 0.86rem;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 20px;
}
/* Added during the merge: the design assumed signup redirects away on success,
   but this page renders a "check your email" state in place. Same shape as
   .auth-error, using the success colour already defined above. */
.auth-success{
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  color: var(--success);
  font-size: 0.86rem;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.auth-plan-note{
  background: var(--accent-soft);
  border: 1px solid rgba(59,79,232,0.2);
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.auth-plan-note strong{ color: var(--accent); }
.auth-form{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.auth-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.auth-field label{
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
}
.auth-field input{
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 9px;
  font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-hint{
  font-size: 0.78rem;
  color: var(--text-faint);
}
.auth-submit{
  width:100%;
  margin-top: 4px;
}
.auth-link{
  display:inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}
.auth-link:hover{ text-decoration: underline; }
.auth-divider{
  height:1px;
  background: var(--border);
  margin: 24px 0 20px;
}
.auth-footer-text{
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer-text a{
  color: var(--accent);
  font-weight: 500;
}
.auth-footer-text a:hover{ text-decoration: underline; }

@media (max-width: 520px){
  .auth-card{ padding: 32px 24px; margin-top: 0; }
  .auth-section{ padding: 40px 16px 64px; }
}
