:root{
  --navy:#162B4B; --navy-900:#111D35; --blue:#4975EB; --teal:#22B5A7; --violet:#9888E8;
  --ink:#162B4B; --muted:#53627B; --line:#E1E8F0; --soft:#EEF2F8; --bg:#F7F9FC; --card:#FFFFFF;
  --radius:18px; --shadow:0 1px 2px rgba(22,43,75,.06),0 12px 32px -12px rgba(22,43,75,.18);
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.82);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--navy)}
.brand img{height:56px;width:auto;display:block}
.site-nav a{display:inline-flex;align-items:center;padding:9px 16px;border:1px solid var(--line);border-radius:999px;color:var(--navy);font-size:14px;font-weight:600;text-decoration:none;transition:border-color .15s,background .15s}
.site-nav a:hover{border-color:#CBD5E3;background:var(--bg)}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:-20% -10% auto auto;width:720px;height:720px;background:radial-gradient(closest-side,rgba(73,117,235,.16),transparent 70%);pointer-events:none}
.hero::after{content:"";position:absolute;inset:auto auto -30% -15%;width:640px;height:640px;background:radial-gradient(closest-side,rgba(34,181,167,.12),transparent 70%);pointer-events:none}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;padding-top:72px;padding-bottom:72px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--teal)}
h1{font-size:clamp(2.3rem,5vw,3.6rem);line-height:1.05;letter-spacing:-.035em;font-weight:800;margin:20px 0 20px;color:var(--navy)}
.lede{font-size:1.15rem;color:var(--navy);font-weight:500;margin:0 0 12px}
.copy p{max-width:560px;color:var(--muted);margin:0 0 14px}

/* Form card */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.start-card{padding:32px}
.start-card h2{font-size:1.25rem;letter-spacing:-.02em;margin:0 0 4px}
.start-card .sub{color:var(--muted);font-size:15px;margin:0 0 22px}
label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}
input{display:block;width:100%;margin-top:6px;padding:13px 14px;font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1px solid #CBD5E3;border-radius:12px;transition:border-color .15s,box-shadow .15s}
input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(73,117,235,.18)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;font:inherit;font-weight:600;cursor:pointer;transition:transform .12s,background .15s,box-shadow .15s}
.btn-primary{width:100%;padding:15px 18px;background:var(--navy);color:#fff;font-size:16px;box-shadow:0 8px 20px -8px rgba(22,43,75,.6)}
.btn-primary:hover{background:#1D3760;transform:translateY(-1px)}
.btn-primary svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2}
.btn-ghost{padding:10px 14px;background:transparent;color:var(--muted);border:1px solid var(--line)}
.btn-ghost:hover{color:var(--navy);border-color:#CBD5E3;background:#fff}
.note{color:var(--muted);font-size:14px;margin:16px 0 0;text-align:center}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}


/* Be strip */
.bes{border-top:1px solid var(--line);background:#fff}
.bes .wrap{padding-top:28px;padding-bottom:28px}
.bes-label{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 14px;text-align:center}
.be-list{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0;list-style:none}
.be-list li{display:flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:600;background:var(--bg)}
.be-icon{width:18px;height:18px;fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Flow: questions (navy stage) and pages (results, feedback, messages) */
.flow-stage{position:relative;overflow:hidden;min-height:calc(100vh - 76px - 64px);display:flex;align-items:flex-start;justify-content:center;padding:56px 24px;background:var(--bg)}
body[data-flow="questions"] .flow-stage{background:#182943}
body[data-flow="questions"] .flow-stage::before{content:"";position:absolute;top:-25%;right:-10%;width:760px;height:760px;background:radial-gradient(closest-side,rgba(73,117,235,.30),transparent 70%);pointer-events:none}
body[data-flow="questions"] .flow-stage::after{content:"";position:absolute;bottom:-35%;left:-12%;width:680px;height:680px;background:radial-gradient(closest-side,rgba(34,181,167,.22),transparent 70%);pointer-events:none}
.flow-card{position:relative;z-index:1;width:100%;max-width:760px;padding:36px}
body[data-flow="questions"] .flow-card{border:0;box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
body[data-flow="page"] .flow-card{max-width:820px;padding:48px}

/* Questions */
.progress-head{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;margin-bottom:10px}
.progress-head strong{color:var(--navy)}
.progress{height:8px;border-radius:99px;background:var(--soft);overflow:hidden}
.progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--blue),var(--teal));transition:width .3s ease}
body[data-flow="questions"] .flow-card h1{font-size:clamp(1.8rem,4vw,2.5rem);text-align:center;margin:40px 0 28px}
.pairing-note{text-align:center;margin:24px 0 -12px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.choice{min-height:168px;padding:20px;border:1.5px solid #D6DFEC;border-radius:16px;background:linear-gradient(180deg,#F7F9FD,#EDF2FA);color:var(--navy);font:inherit;font-size:clamp(1.35rem,3.5vw,1.9rem);font-weight:700;letter-spacing:-.02em;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s,background .15s}
.choice:hover{border-color:var(--blue);background:#fff;transform:translateY(-2px);box-shadow:0 14px 28px -14px rgba(73,117,235,.55)}
.choice.selected{border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 14px 28px -14px rgba(22,43,75,.7)}
.q-hint{text-align:center;color:var(--muted);font-size:15px;margin:22px 0 0}
.nav{display:flex;justify-content:flex-start;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
.loading{display:flex;flex-direction:column;align-items:center;gap:18px;padding:40px 0}
body[data-flow="questions"] .loading h1{margin:0;font-size:1.6rem}
.spinner{width:36px;height:36px;border-radius:50%;border:3px solid var(--soft);border-top-color:var(--blue);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Buttons the flow uses */
.flow-card button.primary,.flow-card button.secondary{font:inherit;font-weight:600;font-size:15px;border-radius:12px;padding:11px 18px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.flow-card button.primary{background:var(--navy);color:#fff;border:1px solid var(--navy)}
.flow-card button.primary:hover{background:#1D3760}
.flow-card button.secondary{background:#fff;color:var(--muted);border:1px solid var(--line)}
.flow-card button.secondary:hover{color:var(--navy);border-color:#CBD5E3}
.flow-card button:disabled{opacity:.55;cursor:default}
.muted{color:var(--muted);font-size:15px}

/* Results */
body[data-flow="page"] .flow-card h1{font-size:clamp(1.9rem,4.5vw,2.6rem);margin:0 0 18px}
.flow-card h2{font-size:1.35rem;letter-spacing:-.02em;color:var(--navy);margin:36px 0 10px}
.flow-card h3{font-size:1.05rem;color:var(--navy);margin:24px 0 6px}
.flow-card p,.flow-card li{color:#34445E}
.save-status{margin:0 0 28px;padding:12px 16px;border-radius:12px;background:var(--soft);color:var(--navy);font-size:15px;font-weight:500}
.save-status.is-done{background:#E7F6F4;color:#14665E}
.save-status.is-error{background:#FFF4E5;color:#7A4B00}
.definitions{padding:20px 22px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.definitions p{font-size:15px;margin:0 0 8px}
.definitions p:last-child{margin-bottom:0}
.result-heading{display:flex;align-items:center;gap:4px;font-size:1.6rem!important;margin-top:36px!important}
.result-heading .be-icon{width:28px;height:28px;margin-right:6px}
.narrative ol{padding-left:1.3em}
.narrative li{margin:6px 0}
.narrative table{margin:12px 0 4px;border-radius:10px}
.narrative caption{font-weight:700;color:var(--navy)}
.closing-reminder{margin-top:36px;padding:20px 22px;border-left:4px solid var(--teal);background:var(--bg);border-radius:0 12px 12px 0}
.closing-reminder h3{margin-top:0}
.closing-reminder p:last-child{margin-bottom:0}

/* Feedback and tool interest */
.feedback-section{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
#feedback-form{margin-top:20px}
.feedback-card{margin:16px 0;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.feedback-question{min-width:0;margin:0;padding:0;border:0}
.feedback-question legend{display:block;width:100%;padding:0;margin:0 0 12px;font-weight:600;color:var(--navy);line-height:1.4}
.feedback-options{display:grid;gap:4px}
.feedback-option{display:flex;gap:10px;align-items:flex-start;padding:6px 0;cursor:pointer;font-weight:400;margin:0}
.feedback-option input{width:auto;margin:5px 0 0;accent-color:var(--navy);flex-shrink:0}
.feedback-comment{display:block;margin-top:14px;font-size:14px;font-weight:600}
.feedback-comment textarea{display:block;width:100%;min-height:90px;resize:vertical;margin:6px 0;padding:12px;border:1px solid #CBD5E3;border-radius:12px;font:inherit;font-size:15px;color:var(--ink)}
.feedback-comment textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(73,117,235,.18)}
.feedback-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.feedback-clear{display:block;margin-top:6px;padding:2px 0;background:none;border:0;color:var(--blue);text-decoration:underline;font:inherit;font-size:14px;cursor:pointer}
.whats-next{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.tool-interest{margin-top:12px;padding:20px 22px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.tool-interest p:first-child{margin-top:0;font-weight:600;color:var(--navy)}
.check-row{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:0 0 6px}
.check-row input{width:auto;margin:5px 0 0;accent-color:var(--navy);flex-shrink:0}
.human-check{margin-top:16px}
.form-status{color:#B54708;font-size:14px;font-weight:500;margin:12px 0 0;min-height:0}
.form-status:empty{display:none}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:#fff}
.site-footer .wrap{display:flex;justify-content:space-between;align-items:center;height:64px;font-size:14px;color:var(--muted)}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--navy)}

/* Mockup-only switcher */
.mock-switch{position:fixed;right:16px;bottom:16px;z-index:20;display:flex;gap:4px;padding:4px;background:var(--navy-900);border-radius:999px;box-shadow:var(--shadow)}
.mock-switch button{border:0;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;font-weight:600;color:#C9D3E6;background:transparent;cursor:pointer}
.mock-switch button.on{background:#fff;color:var(--navy)}

[hidden]{display:none!important}

/* Intro: the deck's animated logo, rebuilt in code */
/* Same sequence as the deck: one dot appears at the top, the seven fan out
   clockwise around the circle, then the ring and logo fade in together. */
.intro{--s:min(52vmin,230px);position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#182943;transition:opacity 1s cubic-bezier(.4,0,.2,1),visibility 1s;cursor:pointer}
.intro.done{opacity:0;visibility:hidden}
.intro-stage{position:relative;width:var(--s);height:var(--s);transition:transform 1s cubic-bezier(.4,0,.2,1)}
.intro.done .intro-stage{transform:scale(.92)}
.intro-stage svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.intro .ring{fill:none;stroke:rgba(176,192,228,.55);stroke-width:5;opacity:0}
.intro .dot{transform-box:view-box;transform-origin:500px 500px;transform:rotate(0deg);opacity:0}
.intro-mark{position:absolute;left:21%;top:24%;width:58%;opacity:0}
.intro.play .dot{animation:fadeIn .5s ease .3s forwards,dotFan 2.4s cubic-bezier(.45,.05,.25,1) .9s forwards}
.intro.play .ring{animation:fadeIn .8s ease 3.3s forwards}
.intro.play .intro-mark{animation:markIn .8s ease 3.3s forwards}
@keyframes fadeIn{to{opacity:1}}
@keyframes dotFan{from{transform:rotate(0deg)}to{transform:rotate(var(--a))}}
@keyframes markIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
body.intro-on{overflow:hidden}
.revealed .hero .copy{animation:fadeUp 1s cubic-bezier(.2,.7,.2,1) .15s both}
.revealed .start-card{animation:fadeUp 1s cubic-bezier(.2,.7,.2,1) .3s both}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .intro.play .dot{animation:none;opacity:1;transform:rotate(var(--a))}
  .intro.play .ring,.intro.play .intro-mark{animation-duration:.01s;animation-delay:0s}
  .revealed .hero .copy,.revealed .start-card{animation:none}
}

@media (max-width:860px){
  .hero .wrap{grid-template-columns:1fr;gap:32px;padding-top:40px;padding-bottom:48px}
}
@media (max-width:560px){
  .wrap{padding:0 16px}
  .brand img{height:44px}
  .start-card,.flow-card,body[data-flow="page"] .flow-card{padding:22px}
  .flow-stage{padding:24px 16px}
  .choices{grid-template-columns:1fr}
  .choice{min-height:112px}
  .site-footer .wrap{flex-direction:column;justify-content:center;gap:2px;height:auto;padding-top:16px;padding-bottom:16px}
}

/* Text pages (privacy) */
.doc{max-width:720px;margin:0 auto;padding:56px 24px 72px}
.doc h1{font-size:clamp(2rem,4.5vw,2.8rem);margin:16px 0 8px}
.doc .updated{color:var(--muted);font-size:14px;margin:0 0 32px}
.doc h2{font-size:1.2rem;letter-spacing:-.015em;margin:36px 0 8px;color:var(--navy)}
.doc p,.doc li{color:#34445E}
.doc ul{padding-left:1.2em;margin:8px 0 0}
.doc li{margin:6px 0}
.doc a{color:var(--blue)}
.doc .decide{background:#FFF6E5;border:1px dashed #E3A645;border-radius:8px;padding:1px 6px;color:#7A4B00;font-weight:600}
@media (max-width:560px){.doc{padding:32px 16px 48px}}

.copy > h1:first-child{margin-top:0}
.flow-card > .feedback-section:first-child{margin-top:0;padding-top:0;border-top:0}
