  :root{
    /* ---- light mode (near-white) ---- */
    --bg:#F9FAFB;
    --surface:#FFFFFF;
    --border:#E5E7EB;
    --ink:#0A0A0B;          /* primary text + primary action */
    --on-action:#FFFFFF;    /* text that sits on a primary action */
    --text2:#6B6B70;
    --violet:#4D2F70;       /* semantic: "the AI did this" + chart principal bars */
    --green:#2F9E6E;
    --amber:#C88B00;
    --coral:#D2553A;
    --green-tint:#DCF0E6;
    --amber-tint:#F7E8D2;
    --coral-tint:#FBE2DB;
    --shadow: 0 24px 60px -36px rgba(18,14,60,0.13);
    --btn-shadow: 0 12px 22px -8px rgba(18,14,60,0.30);
    --band:#FFFFFF;          /* alternating section — pure white vs gray-50 */
    --radius:14px;
    --radius-lg:18px;
    --seam:46px;             /* curved section seam radius */
  }

  @media (prefers-color-scheme: dark){
    :root{
      /* ---- dark mode (near-black) ---- */
      --bg:#1A1C22;
      --surface:#26282F;
      --border:#383A4C;
      --ink:#F5F5F4;          /* primary text + primary action flips to white */
      --on-action:#0A0A0B;    /* black text on the white action */
      --text2:#9E9EAE;
      --violet:#7A5498;
      --green:#34D399;
      --amber:#C88B00;
      --coral:#F2654B;
      --green-tint:rgba(52,211,153,0.14);
      --amber-tint:rgba(200,139,0,0.14);
      --coral-tint:rgba(242,101,75,0.14);
      --shadow: 0 24px 60px -30px rgba(0,0,0,0.45);
      --btn-shadow: 0 14px 26px -10px rgba(0,0,0,0.42);
      --band:#1E2028;
    }
  }


  *{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-behavior:smooth; }
  body{
    font-family:'Sora', sans-serif;
    font-weight:400;
    background:var(--bg);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    line-height:1.5;
  }
  .num{ font-variant-numeric: tabular-nums; }
  a{ color:inherit; }
  img, svg{ display:block; max-width:100%; }
  .wrap{ max-width:1140px; margin:0 auto; padding:0 32px; position:relative; }

  /* ---------- nav ---------- */
  header{ position:sticky; top:0; z-index:50; padding:16px 0; background:color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
  .nav-inner{ display:flex; align-items:center; justify-content:space-between; }
  .brand{ display:flex; align-items:center; gap:13px; font-weight:600; font-size:22px; letter-spacing:-0.02em; }
  .brand-logo-card{
    width:48px; height:48px; flex-shrink:0;
    background:#FFFFFF;
    border-radius:11px;
    box-shadow:0 2px 8px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.06);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .brand-logo{ width:38px; height:38px; object-fit:contain; display:block; }
  .spark{ width:20px; height:20px; flex-shrink:0; }

  /* primary action: ink fill, inverse text — same rule works in both modes */
  .btn{
    font-family:inherit; font-weight:600; font-size:15px;
    background:var(--ink); color:var(--on-action);
    border:none; border-radius:999px; padding:12px 22px;
    cursor:pointer; white-space:nowrap;
    transition:transform .15s ease, opacity .15s ease;
  }
  .btn:hover{ opacity:0.9; }
  .btn:active{ transform:scale(0.97); }
  .btn:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
  .btn-sm{ font-size:14px; padding:10px 18px; }

  /* elevated primary action (hero + final waitlist) */
  .signup .btn{ box-shadow:var(--btn-shadow); }

  /* two-tone headlines: key words stay ink, the rest reads in a quieter grey */
  .dim{ color:var(--text2); }

  /* inline emoji icons — no bounding box, naturally colorful */
  .icon{ font-style:normal; line-height:1; vertical-align:-0.06em; margin:0 0.1em; }

  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13px; font-weight:500; color:var(--text2);
    border:1px solid var(--border); background:var(--surface);
    padding:6px 13px; border-radius:999px; margin-bottom:24px;
  }
  .eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); }

  /* ---------- bands: alternating shades joined by a curved seam ---------- */
  .band{ position:relative; padding:74px 0 120px; }
  .band-a{ background:var(--bg); }
  .band-b{ background:var(--band); }
  .seam{
    margin-top:calc(-1 * var(--seam));
    padding-top:calc(74px + var(--seam));
    border-top-left-radius:var(--seam); border-top-right-radius:var(--seam);
    border-top:1px solid var(--border);
  }
  /* mirror of .seam: rounds the section's BOTTOM and dips down over the next band */
  .seam-down{
    margin-bottom:calc(-1 * var(--seam));
    padding-bottom:calc(74px + var(--seam));
    border-bottom-left-radius:var(--seam); border-bottom-right-radius:var(--seam);
    border-bottom:1px solid var(--border);
    z-index:2;
  }

  /* ---------- hero ---------- */
  .hero{ padding-top:56px; }
  /* subtle grid pattern that fades from the headline side inward */
  .hero::before{
    content:'';
    position:absolute; inset:0;
    background-image:
      linear-gradient(rgba(80,70,200,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(80,70,200,0.05) 1px, transparent 1px);
    background-size:36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 65% 85% at 28% 48%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 78%);
    mask-image: radial-gradient(ellipse 65% 85% at 28% 48%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 78%);
    pointer-events:none; z-index:0;
  }
  @media (prefers-color-scheme:dark){
    .hero::before{
      background-image:
        linear-gradient(rgba(130,110,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130,110,255,0.055) 1px, transparent 1px);
    }
  }
  .hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:60px; align-items:center; position:relative; z-index:1; }
  h1{
    font-size:clamp(40px, 5.2vw, 62px);
    font-weight:700; line-height:1.02; letter-spacing:-0.035em;
    margin-bottom:24px;
  }
  .hero-sub{ font-size:19px; line-height:1.55; color:var(--text2); max-width:480px; margin-bottom:34px; }
  .hero-sub strong{ color:var(--ink); font-weight:600; }

  .signup{ display:flex; gap:10px; max-width:440px; margin-bottom:14px; }
  .signup input{
    flex:1; font-family:inherit; font-size:15px; padding:13px 18px;
    border-radius:999px; border:1px solid var(--border);
    background:var(--surface); color:var(--ink);
  }
  .signup input::placeholder{ color:var(--text2); opacity:0.8; }
  .signup input:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
  .signup-note{ font-size:13px; color:var(--text2); margin-top:20px; }
  .form-success{
    display:none; align-items:center; gap:9px;
    background:var(--green-tint); color:var(--green);
    font-size:14px; font-weight:500; padding:13px 18px;
    border-radius:999px; max-width:440px; margin-bottom:14px;
  }
  .form-success.show{ display:flex; }
  .signup.hide{ display:none; }

  /* ---------- product demo: the app shown inside an iPhone ---------- */
  .device{
    width:300px; margin:0 auto; position:relative;
    background:linear-gradient(160deg,#17181E,#08080C);
    border-radius:46px; padding:11px;
    box-shadow: 0 44px 80px -34px rgba(10,10,11,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .screen{
    position:relative; border-radius:36px; overflow:hidden;
    background:var(--surface); height:582px;
    display:flex; flex-direction:column;
  }
  .island{ position:absolute; top:9px; left:50%; transform:translateX(-50%); width:82px; height:23px; background:#000; border-radius:12px; z-index:6; }
  .statusbar{ display:flex; justify-content:space-between; align-items:center; padding:10px 21px 3px; font-size:12.5px; font-weight:600; color:var(--ink); }
  .statusbar .sb{ width:54px; height:15px; }
  .app-head{ display:flex; align-items:center; gap:9px; padding:7px 17px 11px; border-bottom:1px solid var(--border); }
  .app-head .title{ font-size:13.5px; font-weight:600; line-height:1.1; }
  .app-head .who{ font-size:11px; color:var(--text2); line-height:1.1; }
  .stage{ position:relative; flex:1; overflow:hidden; }
  .inputbar{ margin:0 13px 13px; display:flex; align-items:center; gap:10px; background:var(--bg); border:1px solid var(--border); border-radius:999px; padding:9px 14px; font-size:12.5px; color:var(--text2); }
  .inputbar svg{ flex-shrink:0; }

  .chat-phase{ position:absolute; left:0; right:0; bottom:0; padding:16px; animation: chatPhase 9s ease-in-out infinite; }
  .bubble-user{
    margin-left:auto; background:var(--ink); color:var(--on-action);
    font-size:14.5px; line-height:1.4; padding:11px 15px;
    border-radius:16px 16px 4px 16px; max-width:94%; width:fit-content;
  }
  /* text is filled by JS and wraps naturally; the caret is a border so it always sits
     flush with the last character and wraps along with the text */
  .typewriter{ border-right:2px solid var(--on-action); animation: caretBlink 1.1s steps(1, end) infinite; }

  .card-phase{ position:absolute; left:0; right:0; bottom:0; padding:16px; opacity:0; transform:translateY(14px); animation: cardPhase 9s ease-in-out infinite; }
  /* AI-originated card: the one place violet appears — thin left-edge accent + sparkle */
  .confirm-card{
    background:var(--surface); border:1px solid var(--border);
    border-left:3px solid var(--violet);
    border-radius:12px; padding:15px 17px;
  }
  .confirm-title{ display:flex; align-items:center; gap:7px; font-size:12px; font-weight:500; color:var(--text2); margin-bottom:11px; }
  .confirm-row{ display:flex; justify-content:space-between; font-size:14px; padding:7px 0; border-bottom:1px solid var(--border); }
  .confirm-row:last-of-type{ border-bottom:none; }
  .confirm-row .label{ color:var(--text2); }
  .confirm-row .value{ font-weight:500; }
  .apply-btn{
    margin-top:13px; width:100%; background:var(--ink); color:var(--on-action);
    font-family:inherit; font-weight:600; font-size:14px; border:none;
    border-radius:10px; padding:11px; text-align:center;
    animation: applyPulse 9s ease-in-out infinite;
  }

  @keyframes chatPhase{ 0%,4%{opacity:1;} 44%{opacity:1;} 50%,100%{opacity:0;} }
  @keyframes caretBlink{ 0%,50%{ border-right-color: var(--on-action); } 50.01%,100%{ border-right-color: transparent; } }
  @keyframes cardPhase{ 0%,48%{opacity:0; transform:translateY(14px);} 58%{opacity:1; transform:translateY(0);} 94%{opacity:1; transform:translateY(0);} 100%{opacity:0; transform:translateY(-10px);} }
  @keyframes applyPulse{ 0%,73%{box-shadow:0 0 0 0 rgba(122,84,152,0);} 78%{box-shadow:0 0 0 5px rgba(122,84,152,0.16);} 83%,100%{box-shadow:0 0 0 0 rgba(122,84,152,0);} }
  @media (prefers-reduced-motion: reduce){
    .chat-phase, .card-phase, .typewriter, .apply-btn{ animation:none !important; }
    .chat-phase{ opacity:0; }
    .card-phase{ opacity:1; transform:none; }
  }

  /* ---------- section scaffolding ---------- */
  .section{ /* vertical rhythm handled by .band */ }
  .sec-head{ max-width:620px; margin-bottom:36px; }
  .sec-head h2{ font-size:clamp(27px,3.2vw,36px); font-weight:700; letter-spacing:-0.025em; line-height:1.12; margin-bottom:12px; }
  .sec-head p{ color:var(--text2); font-size:17px; line-height:1.55; }

  /* ---------- compare section grid (same violet mesh as hero, center radial fade) ---------- */
  .compare-section{ position:relative; }
  /* section ::before kept as an empty rule — grid is now on the tiles themselves */
  .compare-section .wrap{ z-index:1; }

  /* ---------- comparison ---------- */
  .compare-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
  .compare-tile{
    background:var(--surface);
    border:1px solid var(--border); border-radius:var(--radius); padding:22px 20px;
    position:relative; overflow:hidden; isolation:isolate;
  }
  .compare-tile::before{
    content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background-image:
      linear-gradient(rgba(80,70,200,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(80,70,200,0.08) 1px, transparent 1px);
    background-size:28px 28px;
    -webkit-mask-image: linear-gradient(135deg, transparent 0%, black 100%);
    mask-image: linear-gradient(135deg, transparent 0%, black 100%);
  }
  @media (prefers-color-scheme:dark){
    .compare-tile::before{
      background-image:
        linear-gradient(rgba(130,110,255,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130,110,255,0.10) 1px, transparent 1px);
    }
  }
  .compare-tile .tag{ display:inline-block; font-size:12px; font-weight:500; color:var(--text2); border:1px solid var(--border); padding:3px 9px; border-radius:999px; margin-bottom:14px; }
  .compare-tile h3{ font-size:16px; font-weight:600; margin-bottom:7px; letter-spacing:-0.01em; }
  .compare-tile p{ font-size:14px; line-height:1.5; color:var(--text2); }

  /* ---------- bento ---------- */
  .bento-grid{ display:grid; grid-template-columns:1.3fr 1fr; grid-template-rows:auto auto; gap:14px; }
  .tile{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
  .tile .q{ font-size:18px; font-weight:600; letter-spacing:-0.02em; line-height:1.25; margin-bottom:6px; }
  .tile .kicker{ font-size:12px; font-weight:500; color:var(--text2); margin-bottom:10px; }
  .tile .cap{ font-size:13.5px; color:var(--text2); line-height:1.5; }

  /* forecast tile — AI forecast carries the violet left-edge accent at bento level */
  .tile-forecast{ grid-column:1; grid-row:1 / span 2; border-left:3px solid var(--violet); display:flex; flex-direction:column; justify-content:space-between; min-height:300px; }
  .mini-labels{ display:none; } /* replaced by fc-chart */
  .fc-chart{ margin:18px 0 10px; }
  .fc-cols{ display:flex; align-items:flex-end; gap:7px; }
  .fc-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; justify-content:flex-end; min-height:122px; }
  .fc-val{ font-size:10.5px; font-weight:700; color:var(--ink); line-height:1; white-space:nowrap; }
  .fc-bar{ width:60%; display:flex; flex-direction:column; flex-shrink:0; border-radius:4px 4px 0 0; overflow:hidden; }
  .fc-i{ background:var(--amber); min-height:2px; }
  .fc-p{ background:var(--violet); }
  .fc-mos{ display:flex; gap:7px; margin-top:5px; padding-top:5px; border-top:1px solid var(--border); }
  .fc-mo{ flex:1; text-align:center; font-size:10px; color:var(--text2); font-weight:500; }
  .legend{ display:flex; gap:16px; font-size:11.5px; color:var(--text2); margin-top:2px; }
  .legend span{ display:inline-flex; align-items:center; gap:6px; }
  .swatch{ width:9px; height:9px; border-radius:2px; }

  .tile-interest .figure{ font-size:48px; font-weight:700; color:var(--amber); line-height:1; letter-spacing:-0.03em; margin:14px 0 4px; }

  .install-row{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
  .install-row:last-child{ border-bottom:none; }
  .install-row .item{ font-weight:500; }
  .install-row .sub{ color:var(--text2); font-size:12px; }
  .install-row .amt{ font-weight:600; }
  .tile-interest{ grid-column:2; grid-row:1; }
  .tile-installment{ grid-column:2; grid-row:2; }

  /* ---------- reflect band ---------- */
  .reflect-inner{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
  .reflect-copy h2{ font-size:clamp(26px,3vw,33px); font-weight:700; letter-spacing:-0.025em; line-height:1.18; margin-bottom:16px; }
  .reflect-copy p{ font-size:16px; line-height:1.65; color:var(--text2); }
  .reflect-copy .tie{ margin-top:16px; color:var(--ink); font-weight:500; }
  .q-stack{ display:flex; flex-direction:column; gap:10px; }
  .q-card{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:15px 16px; font-size:14.5px; font-weight:500; letter-spacing:-0.01em; display:flex; align-items:center; gap:11px; }

  /* ---------- final cta ---------- */
  .final-inner{ padding:6px 0; text-align:center; }
  .final-inner h2{ font-size:clamp(28px,3.6vw,40px); font-weight:700; letter-spacing:-0.03em; margin-bottom:14px; }
  .final-inner > p{ font-size:17px; color:var(--text2); max-width:440px; margin:0 auto 28px; line-height:1.55; }
  .final-inner .signup, .final-inner .form-success{ margin-left:auto; margin-right:auto; }

  /* ---------- footer ---------- */
  footer{ padding:34px 0 46px; }
  /* the CTA's downward seam covers the footer's top --seam px, so the visible
     footer is the box minus that overlap; keep top/bottom symmetric in the VISIBLE area */
  footer.band{ padding-top:calc(var(--seam) + 34px); padding-bottom:34px; }
  .foot-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
  .foot-brand{ display:flex; align-items:center; gap:12px; font-weight:600; font-size:18px; }
  .foot-brand .brand-logo{ width:48px; height:48px; }
  .foot-right{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  footer p{ font-size:13px; color:var(--text2); }

  /* ---------- responsive ---------- */
  @media (max-width:920px){
    .hero-grid{ grid-template-columns:1fr; gap:44px; }
    .device{ margin:0 auto; }
    .compare-grid{ grid-template-columns:1fr; }
    .bento-grid{ grid-template-columns:1fr; }
    .tile-forecast, .tile-interest, .tile-installment{ grid-column:1; grid-row:auto; }
    .tile-forecast{ min-height:auto; }
    .reflect-inner{ grid-template-columns:1fr; gap:32px; }
  }
  @media (max-width:560px){
    .wrap{ padding:0 18px; }
    .signup{ flex-direction:column; }
    .signup .btn{ width:100%; }
    .final-inner{ padding:6px 0; }
    .device{ width:268px; }
    .screen{ height:520px; }
    :root{ --seam:34px; }
    .band{ padding:56px 0 92px; }
    .seam{ padding-top:calc(56px + var(--seam)); }
    .seam-down{ padding-bottom:calc(56px + var(--seam)); }
    .hero{ padding-top:40px; }
    footer.band{ padding-top:calc(var(--seam) + 26px); padding-bottom:26px; }
  }
