:root{
    --bg:#F4F8FC;--surface:#FFFFFF;--surface-blue:#EAF3FF;--ink:#132133;--muted:#5A6B82;
    --blue:#1E5AA8;--blue-bright:#2E7BD6;--navy:#0F2747;--green:#3D8B6D;--taupe:#B8AA98;--border:#DCE6F0;
    --ring:0 0 0 3px rgba(30,90,168,.26);
    --shadow:0 30px 70px -34px rgba(15,39,71,.55);
    --shadow-sm:0 8px 22px -12px rgba(15,39,71,.4);
    --maxw:1200px;
    --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }
  @media (prefers-color-scheme:dark){:root{
    --bg:#0B1626;--surface:#132234;--surface-blue:#17293F;--ink:#EAF1F9;--muted:#9DB0C6;
    --blue:#5AA0EC;--blue-bright:#7DB8F5;--navy:#0F2747;--green:#5FB88F;--taupe:#C7BAA8;--border:#26384F;
    --shadow:0 30px 70px -34px rgba(0,0,0,.75);--shadow-sm:0 8px 22px -12px rgba(0,0,0,.6);
  }}
  :root[data-theme="light"]{--bg:#F4F8FC;--surface:#FFFFFF;--surface-blue:#EAF3FF;--ink:#132133;--muted:#5A6B82;--blue:#1E5AA8;--blue-bright:#2E7BD6;--navy:#0F2747;--green:#3D8B6D;--taupe:#B8AA98;--border:#DCE6F0;--shadow:0 30px 70px -34px rgba(15,39,71,.55);--shadow-sm:0 8px 22px -12px rgba(15,39,71,.4);}
  :root[data-theme="dark"]{--bg:#0B1626;--surface:#132234;--surface-blue:#17293F;--ink:#EAF1F9;--muted:#9DB0C6;--blue:#5AA0EC;--blue-bright:#7DB8F5;--navy:#0F2747;--green:#5FB88F;--taupe:#C7BAA8;--border:#26384F;--shadow:0 30px 70px -34px rgba(0,0,0,.75);--shadow-sm:0 8px 22px -12px rgba(0,0,0,.6);}

  *{box-sizing:border-box;}
  body{margin:0;color:var(--ink);font-family:var(--sans);line-height:1.55;-webkit-font-smoothing:antialiased;
    background:url("/assets/scaffolding.jpg") center center / cover no-repeat fixed, var(--bg);}
  body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
    background:linear-gradient(180deg,
      color-mix(in srgb,var(--bg) 80%,transparent) 0%,
      color-mix(in srgb,var(--bg) 46%,transparent) 24%,
      color-mix(in srgb,var(--bg) 34%,transparent) 55%,
      color-mix(in srgb,var(--bg) 74%,transparent) 100%);}
  :root[data-theme="dark"] body::before,@media (prefers-color-scheme:dark){body::before{
    background:linear-gradient(180deg,rgba(11,22,38,.86) 0%,rgba(11,22,38,.58) 26%,rgba(11,22,38,.5) 55%,rgba(11,22,38,.8) 100%);}}
  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
  a{color:var(--blue);}
  h1,h2,h3,h4{margin:0;letter-spacing:-.015em;text-wrap:balance;font-family:var(--sans);}
  p{margin:0;}
  @media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;}}
  button:focus-visible,a:focus-visible{outline:none;box-shadow:var(--ring);}

  header{position:sticky;top:0;z-index:20;backdrop-filter:blur(12px);background:color-mix(in srgb,var(--navy) 95%,transparent);border-bottom:1px solid rgba(255,255,255,.1);}
  .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px;}
  .brand{display:flex;text-decoration:none;color:inherit;align-items:center;gap:11px;background:none;border:0;cursor:pointer;padding:0;}
  .brand .mk{width:30px;height:30px;border-radius:9px;overflow:hidden;display:grid;place-items:center;}
  .brand b{font-weight:800;font-size:19px;letter-spacing:-.03em;color:var(--navy);}
  .brand b span{color:var(--blue);}
  :root[data-theme="dark"] .brand b{color:var(--ink);}
  header .brand b{color:#fff;} header .brand b span{color:#7db8f5;}
  nav.links{display:flex;gap:2px;}
  nav.links button,nav.links a{font:inherit;text-decoration:none;font-weight:600;font-size:14px;color:#c9d8ec;background:none;border:0;padding:8px 12px;border-radius:9px;cursor:pointer;}
  nav.links button:hover,nav.links a:hover{color:#fff;background:rgba(255,255,255,.1);}
  .cta{font:inherit;font-weight:700;cursor:pointer;border:0;border-radius:11px;padding:11px 17px;color:#fff;background:linear-gradient(135deg,var(--blue-bright),var(--blue));box-shadow:var(--shadow-sm);}
  .cta:hover{filter:brightness(1.06);}
  .cta.sm{padding:9px 15px;font-size:14px;}
  .cta.ghost{background:transparent;color:var(--blue);border:1.5px solid var(--border);box-shadow:none;}

  .view{display:none;}
  .view.active{display:block;}
  .fade{animation:fade .5s ease both;}
  .fade.d1{animation-delay:.06s;}.fade.d2{animation-delay:.13s;}.fade.d3{animation-delay:.2s;}
  @keyframes fade{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}

  /* hero sits in a solid navy panel so text is always legible over the photo */
  .hero-top{text-align:center;padding:34px 30px 28px;margin:24px auto 4px;max-width:780px;
    background:linear-gradient(160deg,var(--navy),color-mix(in srgb,var(--navy) 80%,var(--blue)));
    border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:var(--shadow);}
  .eyebrow{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#bcd6f5;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);padding:6px 13px;border-radius:999px;}
  .hero-top h1{font-size:clamp(30px,4.4vw,46px);font-weight:800;margin:16px 0 0;line-height:1.03;color:#fff;}
  .hero-top h1 .g{background:linear-gradient(120deg,#7db8f5,#6fe0ad);-webkit-background-clip:text;background-clip:text;color:transparent;}
  .hero-top .sub{color:#c9d8ec;font-size:17px;margin:12px auto 0;max-width:56ch;}
  .trustrow{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin:16px 0 2px;}
  .trustrow span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#d6e3f3;font-weight:600;}
  .trustrow .tk{width:17px;height:17px;border-radius:50%;background:rgba(111,224,173,.2);color:#8fe9c0;display:grid;place-items:center;flex:none;}

  .stage{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:22px;align-items:stretch;padding:16px 0 14px;max-width:920px;margin:0 auto;}

  /* centre: dominant white chat */
  .chat{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;}
  .chat::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--blue-bright),var(--green));}
  .chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);background:var(--surface-blue);}
  .chat-head .t{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15.5px;color:var(--blue);}
  .chat-head .t .glow{width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,var(--blue-bright),var(--navy));display:grid;place-items:center;}
  .chat-head .live{font-size:11.5px;color:var(--green);font-weight:700;display:inline-flex;align-items:center;gap:6px;}
  .chat-head .live .d{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 20%,transparent);}
  .chat-body{padding:24px 20px;display:flex;flex-direction:column;gap:15px;flex:1;}
  .msg{display:flex;gap:12px;max-width:94%;}
  .msg .av{width:32px;height:32px;border-radius:9px;flex:none;background:linear-gradient(135deg,var(--blue-bright),var(--navy));display:grid;place-items:center;}
  .msg .bub{background:var(--surface-blue);border:1px solid var(--border);border-radius:6px 16px 16px 16px;padding:13px 15px;font-size:14.5px;color:var(--ink);}
  .chips{display:flex;gap:9px;flex-wrap:wrap;padding-left:44px;}
  .chip{font-size:13px;font-weight:600;color:var(--blue);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 13px;cursor:pointer;transition:.15s;}
  .chip:hover{border-color:var(--blue);background:var(--surface-blue);}
  .composer{display:flex;align-items:center;gap:10px;margin:0 18px 10px;border:1.5px solid var(--border);border-radius:14px;padding:9px 9px 9px 10px;background:var(--surface);box-shadow:var(--shadow-sm);}
  .composer .add{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--blue);border:1px dashed var(--border);border-radius:10px;padding:8px 11px;cursor:pointer;flex:none;}
  .composer input{flex:1;border:0;outline:none;background:transparent;font:inherit;font-size:14.5px;color:var(--ink);min-width:0;}
  .composer input::placeholder{color:var(--muted);}
  .composer .send{border:0;border-radius:10px;background:linear-gradient(135deg,var(--blue-bright),var(--blue));color:#fff;font:inherit;font-weight:700;font-size:13.5px;padding:9px 15px;cursor:pointer;flex:none;}
  .undertext{padding:0 20px 18px;font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:flex-start;}
  .undertext svg{flex:none;margin-top:1px;color:var(--blue);}

  /* right: preparation packet strip */
  .packet{display:flex;flex-direction:column;gap:11px;}
  .packet .lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#fff;padding:6px 11px;background:var(--navy);border:1px solid var(--navy);border-radius:8px;align-self:flex-start;}
  .pk{background:color-mix(in srgb,var(--surface) 84%,transparent);backdrop-filter:blur(10px);border:1px solid color-mix(in srgb,var(--surface) 60%,var(--border));border-radius:14px;padding:13px 14px;box-shadow:var(--shadow-sm);}
  .pk .ph{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;}
  .pk .ph .ic{width:26px;height:26px;border-radius:8px;background:var(--surface-blue);color:var(--blue);display:grid;place-items:center;flex:none;}
  .pk .tl{display:flex;flex-direction:column;gap:6px;margin-top:10px;}
  .pk .tl .r{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);}
  .pk .tl .r .n{width:9px;height:9px;border-radius:50%;flex:none;background:var(--border);}
  .pk .tl .r.on .n{background:var(--green);}
  .pk .tl .r.on{color:var(--ink);font-weight:600;}
  .docchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
  .docchip{font-size:11px;color:var(--muted);background:var(--surface-blue);border:1px solid var(--border);border-radius:7px;padding:4px 8px;}
  .docchip.out{color:var(--navy);background:color-mix(in srgb,var(--green) 14%,#fff);border-color:color-mix(in srgb,var(--green) 34%,var(--border));}
  .docchip.out[role="button"]{cursor:pointer;transition:filter .12s,border-color .12s;}
  .docchip.out[role="button"]:hover{filter:brightness(.97);border-color:var(--green);}
  .docchip.out.pdf{font-weight:700;color:#fff;background:var(--navy);border-color:transparent;}
  /* Scrollable if content overflows, but no visible scrollbar (founder request). */
  .packet{overflow-y:auto;scrollbar-width:none;}
  .packet::-webkit-scrollbar{width:0;height:0;}
  .doc-picker{display:flex;flex-direction:column;gap:3px;margin-top:8px;}
  .doc-picker label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink);cursor:pointer;}
  .doc-picker input[disabled]{opacity:.55;}
  .choice-card{background:var(--surface-blue);border:1px solid var(--border);border-radius:12px;padding:13px 13px 11px;}
  .choice-card .choice-q{margin:0 0 10px;font-size:13px;font-weight:700;color:var(--navy);}
  .choice-opts{display:flex;flex-direction:column;gap:7px;}
  .choice-btn{text-align:left;font:inherit;font-size:13px;font-weight:600;color:var(--blue);background:#fff;border:1px solid var(--border);border-radius:10px;padding:9px 12px;cursor:pointer;transition:border-color .12s,color .12s,opacity .12s;}
  .choice-btn:hover{border-color:var(--blue);background:var(--surface-blue);}
  .choice-btn.primary{color:#fff;background:linear-gradient(135deg,var(--blue-bright),var(--blue));border-color:transparent;}
  .choice-btn.primary:hover{opacity:.92;color:#fff;}
  .choice-note{margin:10px 0 0;font-size:11.5px;color:var(--muted);}
  .doc-checklist{background:var(--surface-blue);border:1px solid var(--border);border-radius:12px;padding:13px 13px 11px;}
  .doc-checklist .dc-q{margin:0 0 9px;font-size:12.5px;font-weight:700;color:var(--navy);}
  .dc-rows{display:flex;flex-direction:column;gap:7px;margin-bottom:11px;}
  .dc-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--navy);cursor:pointer;}
  .dc-continue{font:inherit;font-size:13px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--blue-bright),var(--blue));border:0;border-radius:10px;padding:8px 14px;cursor:pointer;transition:opacity .12s;}
  .dc-continue:hover{opacity:.92;}
  .elig-card{border:1px solid var(--border);border-radius:12px;padding:13px 14px;background:var(--surface-blue);}

  /* DARK-MODE READABILITY for the in-chat cards. These live inside .chat, whose background is
     a HARDCODED white — but they were written as var(--surface-blue) panels with var(--navy)
     headings. --surface-blue flips to #17293F under prefers-color-scheme:dark while --navy is
     the same near-black in both themes, so the heading went dark-on-dark: the reported
     "blue on blue" on "What would you like to do next?". Pin the surface AND the text to their
     light-theme values, since the panel behind them never darkens. */
  .choice-card,.doc-checklist,.elig-card{background:#EAF3FF;border-color:#DCE6F0;color:#22303f;}
  .choice-card .choice-q,.doc-checklist .dc-q,.dc-row{color:#0F2747;}
  .choice-note{color:#5A6B82;}
  /* The buttons inside them have their own hardcoded white background, so their blue must be
     the light-theme blue too — the dark-theme #5AA0EC on white is barely legible. */
  .choice-btn{color:#1E5AA8;}
  .choice-btn:hover{border-color:#1E5AA8;background:#EAF3FF;}
  .elig-card.ok{background:color-mix(in srgb,var(--green) 12%,#fff);border-color:color-mix(in srgb,var(--green) 34%,var(--border));}
  .elig-card.note{background:#FFF7EC;border-color:#F3D9AE;}
  .elig-head{margin:0 0 7px;font-size:13.5px;font-weight:700;color:var(--navy);}
  .elig-card.note .elig-head{color:#6B4A12;}
  .elig-reasons{margin:0 0 7px;padding-left:18px;font-size:12.5px;color:var(--navy);display:flex;flex-direction:column;gap:3px;}
  .elig-hint{margin:0 0 7px;font-size:12.5px;color:var(--blue);}
  .elig-src{margin:0;font-size:10.5px;color:var(--muted);line-height:1.4;}
  .checks{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;}
  .checks li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);}
  .checks li .c{width:16px;height:16px;border-radius:5px;background:color-mix(in srgb,var(--green) 15%,transparent);color:var(--green);display:grid;place-items:center;flex:none;}
  .deadline{background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 8%,var(--surface)),var(--surface));border:1px solid var(--border);border-radius:13px;padding:12px 13px;font-size:12.5px;}
  .deadline b{color:var(--ink);}

  /* boundary footer line */
  .boundary-strip{text-align:center;color:var(--muted);font-size:12px;padding:11px 18px;max-width:74ch;margin:18px auto 0;background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:12px;}

  /* subpages — legal/policy text sits on a solid white card for readability over the photo */
  .page{padding:30px 34px 26px;max-width:760px;margin:30px auto;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);}
  .page .back{font:inherit;text-decoration:none;font-weight:700;font-size:13.5px;color:var(--blue);background:none;border:0;padding:0;cursor:pointer;}
  .page h1{font-size:clamp(26px,3.4vw,38px);font-weight:800;margin:14px 0 6px;}
  .page .lede{font-size:16px;color:var(--muted);margin-bottom:6px;}
  .draft-tag{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#7a5c12;background:#FBF0D2;border:1px solid #ECD69A;border-radius:999px;padding:5px 11px;margin:4px 0;}
  :root[data-theme="dark"] .draft-tag{color:#F1D58A;background:#33290F;border-color:#54451f;}
  .page h2{font-size:20px;font-weight:800;margin:24px 0 8px;}
  .page p,.page li{font-size:14.5px;color:var(--ink);}
  .page p{margin:8px 0;}
  .page ul{margin:8px 0;padding-left:20px;display:flex;flex-direction:column;gap:6px;}
  .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0;}
  .card{background:var(--surface-blue);border:1px solid var(--border);border-radius:15px;padding:16px;}
  .card .ic{width:36px;height:36px;border-radius:10px;background:var(--surface);display:grid;place-items:center;color:var(--blue);margin-bottom:10px;}
  .card h3{margin:0;font-size:15px;font-weight:800;}
  .card p{font-size:13px;color:var(--muted);margin-top:5px;}
  .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0;}
  .contact-grid .c{background:var(--surface-blue);border:1px solid var(--border);border-radius:13px;padding:14px 16px;}
  .contact-grid .c .k{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;}
  .contact-grid .c .v{font-size:15px;font-weight:700;margin-top:3px;}
  .callout{background:var(--surface-blue);border:1px solid var(--border);border-radius:14px;padding:16px 18px;margin:16px 0;font-size:14px;}
  .boundaries{background:var(--surface-blue);border:1px solid var(--border);border-radius:16px;padding:18px 20px;margin:24px 0 6px;}
  .boundaries h4{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--blue);margin:0 0 10px;}
  .boundaries ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;}
  .boundaries li{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:flex-start;}
  .boundaries li svg{flex:none;margin-top:2px;color:var(--green);}
  .fineprint{margin-top:20px;font-size:12px;color:var(--muted);max-width:70ch;}

  footer{border-top:1px solid var(--border);margin-top:26px;padding:30px 0 46px;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(6px);}
  .foot{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;}
  .foot .cols{display:flex;gap:44px;flex-wrap:wrap;}
  .foot h4{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 8px;}
  .foot button.link,.foot a.link{display:block;font:inherit;font-size:14px;color:var(--ink);background:none;border:0;padding:4px 0;cursor:pointer;text-align:left;text-decoration:none;}
  .foot button.link:hover,.foot a.link:hover{color:var(--blue);}
  .foot .fineprint{margin-top:10px;}

  @media (max-width:1000px){
    .stage{grid-template-columns:1fr;}
    .packet{order:2;}
    nav.links{display:none;}
    .cards,.boundaries ul,.contact-grid{grid-template-columns:1fr;}
  }
  @media (max-width:600px){.page{padding:22px 20px;}}
