:root {
  --surface: #f8fbff;
  --surface-low: #eef5ff;
  --surface-high: #e1ebf8;
  --white: #fff;
  --ink: #102245;
  --muted: #5d6c86;
  --line: #d7e1f0;
  --primary: #2567d9;
  --primary-dark: #174ba9;
  --primary-soft: #e1ecff;
  --yellow: #f4b942;
  --yellow-soft: #fff2cd;
  --success: #16805a;
  --shadow: 0 24px 70px rgb(24 73 148 / 12%);
  --shadow-small: 0 14px 36px rgb(24 73 148 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:where(a, button, input):focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow-soft); color: var(--ink); }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-180%); padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header, .flow-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(215 225 240 / 80%); background: rgb(248 251 255 / 88%); backdrop-filter: blur(18px); }
.header-inner, .flow-header-inner { min-height: 78px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { border-radius: 12px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.18rem; letter-spacing: -.03em; }
.brand small { margin-top: .28rem; color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; margin-inline: auto; color: #425574; font-size: .9rem; font-weight: 650; }
.desktop-nav a:hover { color: var(--primary); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 14px; padding: .72rem 1.2rem; font-weight: 750; line-height: 1.2; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgb(37 103 217 / 24%); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button-secondary:hover { border-color: #afc1dc; box-shadow: var(--shadow-small); }
.button-yellow { background: var(--yellow); color: #302000; box-shadow: 0 12px 28px rgb(244 185 66 / 25%); }
.button-small { min-height: 44px; padding-inline: 1.1rem; font-size: .86rem; }
.button-large { min-height: 56px; padding: .9rem 1.45rem; }

.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: .5rem; border-radius: 999px; padding: .48rem .78rem; background: var(--primary-soft); color: var(--primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow-yellow { background: var(--yellow-soft); color: #815400; }
.eyebrow-light { background: rgb(255 255 255 / 13%); color: #fff; }
em { color: var(--primary); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }

.hero { position: relative; overflow: hidden; padding: 7rem 0 6rem; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; left: -420px; top: -380px; border: 1px solid #cdddf5; border-radius: 50%; box-shadow: 0 0 0 95px rgb(225 236 255 / 45%), 0 0 0 190px rgb(225 236 255 / 24%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 5rem; align-items: center; }
.hero-copy h1 { max-width: 720px; margin: 1.4rem 0 1.3rem; font-size: clamp(3.15rem, 5.6vw, 5.3rem); line-height: .99; letter-spacing: -.06em; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.5rem; color: #52647f; font-size: .78rem; font-weight: 650; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.visual-glow { position: absolute; border-radius: 50%; filter: blur(5px); }
.visual-glow-one { inset: 5% 1% auto auto; width: 300px; height: 300px; background: #dce9ff; }
.visual-glow-two { inset: auto auto 5% 0; width: 250px; height: 250px; background: var(--yellow-soft); }
.preview-card { position: relative; z-index: 2; width: min(430px, 88%); border: 1px solid rgb(255 255 255 / 85%); border-radius: 30px; padding: 1.4rem; background: rgb(255 255 255 / 92%); box-shadow: 0 35px 90px rgb(29 79 154 / 20%); transform: rotate(1.5deg); }
.preview-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.preview-icon, .recommendation-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 850; }
.preview-top div { display: grid; }
.preview-top strong { font-size: .82rem; }
.preview-top small, .preview-footer, .recommendation-card small { color: var(--muted); font-size: .66rem; }
.status-pill { border-radius: 999px; padding: .34rem .58rem; background: #e6f7f1; color: var(--success); font-size: .64rem; font-weight: 800; }
.preview-question { padding: 1.4rem 0 .9rem; }
.preview-question > small { color: var(--primary); font-weight: 750; }
.preview-question > strong { display: block; margin: .25rem 0 1rem; font-size: 1.15rem; }
.mini-option { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; border: 1px solid var(--line); border-radius: 12px; padding: .72rem .8rem; color: #5a6b84; font-size: .72rem; font-weight: 650; }
.mini-option span { width: 14px; height: 14px; border: 1.5px solid #9eabc0; border-radius: 50%; }
.mini-option.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.mini-option.active span { border: 4px solid var(--primary); }
.preview-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .9rem; }
.preview-footer b { color: var(--ink); }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem; border: 1px solid #fff; border-radius: 16px; padding: .8rem .95rem; background: rgb(255 255 255 / 93%); box-shadow: var(--shadow-small); }
.floating-note > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--yellow-soft); color: #8c5c00; font-weight: 900; }
.floating-note div { display: grid; }
.floating-note strong { font-size: .72rem; }
.floating-note small { color: var(--muted); font-size: .61rem; }
.note-one { left: -1%; top: 19%; }
.note-two { right: -2%; bottom: 17%; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; padding: 1.35rem 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.trust-strip p { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.trust-strip div div { display: flex; flex-wrap: wrap; gap: 2rem; font-weight: 800; font-size: .82rem; }
.section { padding: 7rem 0; }
.section-soft { background: var(--surface-low); }
.intro-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 6rem; align-items: start; }
.intro-grid h2, .section-heading h2, .audience-panel h2, .final-cta h2 { margin: 1.2rem 0 0; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.intro-copy { padding-top: 2.8rem; color: var(--muted); font-size: 1.02rem; }
.intro-copy p { margin: 0 0 1rem; }
.section-heading { max-width: 680px; margin-bottom: 2.8rem; }
.section-heading > p { color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { position: relative; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem; background: #fff; box-shadow: var(--shadow-small); }
.feature-card.featured { background: var(--primary); color: #fff; transform: translateY(-12px); }
.feature-number { position: absolute; right: 1.5rem; top: 1.3rem; color: #9bb0cd; font-weight: 800; }
.featured .feature-number, .featured p { color: #dce9ff; }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 2.5rem 0 2rem; border-radius: 18px; background: var(--yellow-soft); color: #8b5b00; font-size: 1.5rem; font-weight: 900; }
.featured .feature-icon { background: var(--yellow); }
.feature-card h3 { margin: 0 0 .7rem; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }
.audience-panel { display: grid; grid-template-columns: 1fr .8fr; gap: 5rem; border-radius: 32px; padding: 4.5rem; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.audience-panel h2 em { color: var(--yellow); }
.audience-panel p { color: #bfcbe0; margin-bottom: 2rem; }
.audience-panel ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.audience-panel li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; border: 1px solid rgb(255 255 255 / 12%); border-radius: 18px; padding: 1rem; background: rgb(255 255 255 / 5%); }
.audience-panel li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgb(244 185 66 / 15%); color: var(--yellow); font-weight: 850; }
.audience-panel li div { display: grid; }
.audience-panel li small { color: #aebbd0; }
.final-cta { padding: 5rem 0 7rem; text-align: center; }
.final-cta .container { display: flex; flex-direction: column; align-items: center; }
.final-cta img { margin-bottom: 1.2rem; border-radius: 16px; }
.final-cta p { max-width: 590px; margin: 1rem auto 1.8rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 105px; display: flex; align-items: center; gap: 2rem; }
.footer-inner p { margin-inline: auto; color: var(--muted); font-size: .82rem; }
.footer-inner > a { color: var(--primary); font-size: .82rem; font-weight: 750; }

.flow-page, .result-page { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #e7f0ff 0, var(--surface) 38%); }
.flow-header-inner { justify-content: space-between; }
.secure-note { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.secure-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgb(22 128 90 / 10%); }
.flow-main { min-height: calc(100vh - 79px); display: grid; place-items: start center; padding: 4.2rem 1.5rem; }
.flow-shell { width: min(720px, 100%); }
.flow-progress-meta { display: flex; justify-content: space-between; margin-bottom: .6rem; color: var(--muted); font-size: .76rem; }
.flow-progress-meta strong { color: var(--primary); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dfe7f2; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #4d8eff); transition: width 240ms ease; }
.question-card { margin-top: 1.25rem; border: 1px solid rgb(255 255 255 / 90%); border-radius: 28px; padding: 3rem; background: rgb(255 255 255 / 94%); box-shadow: var(--shadow); }
.question-card h1 { margin: 1rem 0 .7rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.question-helper { margin: 0 0 2rem; color: var(--muted); }
.form-error { margin-bottom: 1.2rem; border: 1px solid #f1b7b7; border-radius: 12px; padding: .75rem 1rem; background: #fff0f0; color: #982e2e; font-size: .86rem; font-weight: 650; }
.option-list { display: grid; gap: .75rem; margin: 0; padding: 0; border: 0; }
.option-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; border: 1.5px solid var(--line); border-radius: 17px; padding: 1rem 1.1rem; background: #fff; cursor: pointer; transition: border 150ms ease, background 150ms ease, transform 150ms ease; }
.option-card:hover { border-color: #96b3df; transform: translateY(-1px); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { width: 22px; height: 22px; border: 2px solid #a5b4c9; border-radius: 50%; box-shadow: inset 0 0 0 5px #fff; }
.option-copy { display: grid; }
.option-copy strong { font-size: .95rem; }
.option-copy small { color: var(--muted); font-size: .78rem; }
.option-arrow { color: #9cabc0; }
.option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgb(37 103 217 / 8%); }
.option-card input:checked + .radio-mark { border-color: var(--primary); background: var(--primary); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.text-field { display: grid; gap: .55rem; }
.text-field > span { font-size: .82rem; font-weight: 750; }
.text-field input { width: 100%; min-height: 58px; border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem 1rem; color: var(--ink); font-size: 1rem; }
.text-field input:focus { border-color: var(--primary); outline: 3px solid rgb(37 103 217 / 10%); }
.text-field small { color: var(--muted); }
.question-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.flow-footnote { margin: 1rem 1rem 0; color: var(--muted); text-align: center; font-size: .7rem; }

.result-main { min-height: calc(100vh - 79px); display: grid; place-items: center; padding: 4rem 1.5rem 5rem; }
.result-shell { width: min(760px, 100%); border: 1px solid rgb(255 255 255 / 90%); border-radius: 30px; padding: 3.5rem; background: rgb(255 255 255 / 95%); box-shadow: var(--shadow); text-align: center; }
.result-check { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 1.2rem; border-radius: 20px; background: #e3f6ef; color: var(--success); font-size: 1.7rem; font-weight: 900; transform: rotate(-4deg); }
.result-overline { margin: 1.5rem 0 .25rem; color: var(--muted); }
.result-shell h1 { margin: 0; color: var(--primary); font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.result-description { max-width: 610px; margin: 1.2rem auto 1.8rem; color: var(--muted); }
.recommendation-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; border: 1px solid #c8dbf7; border-radius: 18px; padding: 1.1rem; background: var(--primary-soft); text-align: left; }
.recommendation-card > div:nth-child(2) { display: grid; }
.recommendation-card strong { font-size: 1rem; }
.recommendation-card > span { border-radius: 999px; padding: .38rem .65rem; background: var(--primary); color: #fff; font-size: .64rem; font-weight: 800; }
.result-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.result-summary div { display: grid; border: 1px solid var(--line); border-radius: 15px; padding: .9rem; text-align: left; }
.result-summary small { color: var(--muted); }
.result-summary strong { font-size: .85rem; }
.development-note { display: grid; grid-template-columns: auto 1fr; gap: .8rem; margin-top: 1.4rem; border-radius: 15px; padding: 1rem; background: var(--yellow-soft); text-align: left; }
.development-note > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #4f3500; font-weight: 900; }
.development-note strong { font-size: .85rem; }
.development-note p { margin: .15rem 0 0; color: #785b20; font-size: .76rem; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 5rem; }
  .hero-grid, .intro-grid, .audience-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .intro-grid { gap: 1rem; }
  .intro-copy { padding-top: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card.featured { transform: none; }
  .audience-panel { gap: 2.5rem; padding: 3rem; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1160px); }
  .site-header .brand small { display: none; }
  .site-header .button-small { padding-inline: .8rem; font-size: .72rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-copy h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; gap: .4rem; }
  .hero-visual { min-height: 400px; }
  .preview-card { width: 92%; padding: 1rem; }
  .floating-note { display: none; }
  .trust-strip .container { display: block; text-align: center; }
  .trust-strip div div { justify-content: center; gap: .65rem 1.2rem; margin-top: .8rem; }
  .section { padding: 4.5rem 0; }
  .intro-grid h2, .section-heading h2, .audience-panel h2, .final-cta h2 { font-size: 2.5rem; }
  .audience-panel { width: 100%; border-radius: 0; padding: 3.5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: .7rem; padding: 2rem 0; text-align: center; }
  .footer-inner p { margin: 0; }
  .flow-main, .result-main { padding: 2rem 1rem 3rem; }
  .question-card, .result-shell { border-radius: 22px; padding: 1.5rem; }
  .question-card h1 { font-size: 2.15rem; }
  .question-actions { display: grid; grid-template-columns: 1fr 1.2fr; }
  .question-actions .button { padding-inline: .7rem; font-size: .8rem; }
  .secure-note { font-size: .65rem; }
  .recommendation-card { grid-template-columns: auto 1fr; }
  .recommendation-card > span { grid-column: 2; width: fit-content; }
  .result-summary { grid-template-columns: 1fr; }
  .result-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Workspace Tabs */
.workspace-tabs { display: flex; gap: 1rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 2rem; padding-top: 1rem; scrollbar-width: none; }
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tab { flex: 0 0 auto; padding: 0.75rem 1.5rem; font-weight: 500; white-space: nowrap; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.workspace-tab:hover { color: var(--text); }
.workspace-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.workspace-panel { display: none; }
.workspace-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
