@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('/tokens.css');

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  color: var(--foreground);
  background: var(--background);
  --radius-card: calc(var(--radius) + 4px);
  --radius-pill: 9999px;
  --shadow-paper: 0 1px 2px oklch(0 0 0 / 5%);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 3px;
}
button:active:not(:disabled) { transform: translateY(1px); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
p { line-height: 1.6; color: var(--muted-foreground); }
.wrap { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 44px; }
.brand-symbol { width: 36px; height: 40px; }
.brand-wordmark { width: 140px; height: 30px; }
.small-button, .button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: .875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out;
}
.small-button, .primary { background: var(--gradient-action); color: var(--primary-foreground); }
.small-button:hover:not(:disabled), .primary:hover:not(:disabled) { filter: brightness(.95); }
.hero { display: grid; place-items: center; min-height: calc(100svh - 185px); padding-block: 56px; text-align: center; }
.hero-copy { max-width: 760px; }
.hero .eyebrow, .hero-meta { justify-content: center; }
.eyebrow { color: var(--primary); display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 500; line-height: 1.4; }
.line { display: none; }
.hero h1 { font-size: 3rem; letter-spacing: -.03em; line-height: 1.15; margin: 24px 0; }
.hero h1 > span { color: var(--primary); }
.hero-copy > p { max-width: 580px; margin: 0 auto 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; color: var(--muted-foreground); font-size: .75rem; }
.hero-meta span:before { content: '✓'; color: var(--success); margin-right: 8px; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.25; margin-top: 16px; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; line-height: 1.5; list-style: none; position: relative; padding: 12px 32px 12px 0; min-height: 44px; font-size: .875rem; font-weight: 500; }
summary:after { content: '+'; position: absolute; right: 4px; color: var(--primary); }
details[open] summary:after { content: '−'; }
details p { font-size: .875rem; margin-top: 12px; }
.footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; color: var(--muted-foreground); font-size: .75rem; }
.footer .brand-symbol { width: 28px; height: 32px; }
.footer .brand-wordmark { width: 112px; height: 24px; }
.text-button { color: var(--muted-foreground); background: transparent; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: .875rem; padding: 8px 12px; min-height: 44px; transition: background-color 150ms ease-out; }
.text-button:hover:not(:disabled) { background: var(--muted); color: var(--foreground); }
.skip { position: absolute; left: 12px; top: -80px; padding: 12px; background: var(--primary); color: var(--primary-foreground); z-index: 10; border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }
.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; }
.contact-shell { padding-block: 32px 64px; min-height: 80vh; }
.contact-card { max-width: 528px; margin: 24px auto 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-paper); }
.contact-card h1 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; margin: 16px 0; outline: none; }
.contact-card > p { font-size: .875rem; }
#contact-form { display: grid; gap: 24px; margin-top: 32px; }
.contact-field { display: grid; gap: 8px; }
.contact-field label { font-size: .875rem; font-weight: 500; }
.contact-field input { width: 100%; min-height: 48px; border: 1px solid var(--input); border-radius: var(--radius-pill); padding: 12px 20px; background: var(--muted); color: var(--foreground); font-size: 1rem; }
.contact-field input::placeholder { color: var(--muted-foreground); }
.contact-field input:focus-visible { outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent); outline-offset: 2px; border-color: var(--ring); }
.contact-field input[aria-invalid="true"] { border-color: var(--destructive); }
.field-error, .submit-error { color: var(--destructive); font-size: .875rem; }
.field-hint, .contact-disclosure { font-size: .75rem; line-height: 1.5; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); cursor: pointer; }
.consent-label input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.contact-disclosure button { border: 0; padding: 0; background: none; color: var(--primary); text-decoration: underline; font-size: inherit; }
.quiz-shell { padding-block: 32px 64px; min-height: 80vh; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted-foreground); }
.progress-track { height: 4px; margin: 16px 0 40px; background: var(--data-track); border-radius: 4px; overflow: hidden; }
.progress-track span { height: 100%; background: var(--gradient-action); display: block; transition: width 200ms ease-out; }
.quiz-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.quiz-layout aside { background: var(--sidebar); border: 1px solid var(--sidebar-border); border-radius: var(--radius-card); padding: 24px 16px; align-self: start; }
.quiz-layout aside > .eyebrow { padding-inline: 12px; }
.quiz-layout aside ol { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 4px; }
.quiz-layout aside li { color: var(--muted-foreground); border-radius: var(--radius-pill); padding: 12px; font-size: .75rem; display: flex; gap: 12px; align-items: center; min-height: 44px; }
.quiz-layout aside li.active { color: var(--primary-foreground); background: var(--gradient-action); }
.quiz-layout aside li.complete { color: var(--foreground); }
.aside-note { font-size: .75rem; margin-top: 24px; padding-inline: 12px; }
.question-panel { max-width: 704px; }
.question-panel h1 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; margin-top: 16px; outline: none; }
.question-description { font-size: .875rem; margin-top: 16px; }
#options { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.option { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--input); padding: 16px 24px; min-height: 56px; border-radius: 28px; cursor: pointer; font-size: .875rem; line-height: 1.5; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.option:hover { border-color: color-mix(in oklab, var(--ring) 50%, var(--border)); background: var(--secondary); }
.option:has(input:checked) { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); }
.option:has(input:focus-visible) { outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent); outline-offset: 3px; }
.option input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.quiz-actions { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.private-note { font-size: .75rem; margin-top: 24px; text-align: center; }
.insight { font-size: .875rem; line-height: 1.5; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--secondary); padding: 16px 24px; margin-top: 24px; color: var(--secondary-foreground); }
#other-wrap { margin-top: 24px; }
#other-wrap label { font-size: .875rem; }
textarea { display: block; width: 100%; margin-top: 12px; background: var(--muted); border: 1px solid var(--input); color: var(--foreground); border-radius: var(--radius-card); padding: 16px; resize: vertical; }
textarea::placeholder { color: var(--muted-foreground); }
.result-shell { padding-block: 48px 64px; max-width: 1000px; min-height: 80vh; }
.result-shell h1 { font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.25; margin: 16px 0; outline: none; }
.result-intro { max-width: 704px; font-size: .875rem; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.result-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; background: var(--card); box-shadow: var(--shadow-paper); }
.result-card h2 { font-size: .875rem; letter-spacing: 0; margin: 0; font-weight: 500; color: var(--muted-foreground); }
.big-number { display: block; font-size: 2.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--foreground); line-height: 1.25; margin: 16px 0; }
.big-number small { font-size: 1rem; letter-spacing: 0; font-weight: 400; color: var(--muted-foreground); }
.result-card strong:not(.big-number) { font-size: 1rem; font-weight: 600; }
.result-card p { font-size: .875rem; margin-top: 12px; }
.result-bars { display: grid; gap: 24px; margin: 24px 0 32px; }
.result-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: .875rem; }
.result-bar strong { font-variant-numeric: tabular-nums; font-weight: 500; }
.result-bar > div { height: 8px; grid-column: 1 / -1; background: var(--data-track); border-radius: 4px; overflow: hidden; }
.result-bar i { height: 100%; background: var(--data-self); display: block; }
.muted { color: var(--muted-foreground); }
.result-section-title { font-size: 1.125rem; letter-spacing: 0; line-height: 1.3; margin-top: 40px; }
.recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.recommendations article { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-paper); }
.recommendations span { color: var(--muted-foreground); font-size: .75rem; }
.recommendations h3 { font-size: 1.125rem; line-height: 1.3; margin: 16px 0 12px; }
.recommendations p { font-size: .875rem; }
.context-note { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--secondary); padding: 16px 24px; margin-top: 32px; font-size: .875rem; }
.context-note p + p { margin-top: 8px; }
.result-controls { display: flex; gap: 24px; margin-top: 32px; }
.methodology { margin-top: 32px; }
.methodology p { font-size: .875rem; }
.methodology li { font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; margin: 8px 0; }
dialog { max-width: 576px; width: calc(100% - 40px); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius-card); padding: 24px; box-shadow: 0 16px 48px oklch(0 0 0 / 16%); }
dialog::backdrop { background: oklch(0.17 0.015 282.06 / 45%); }
dialog h2 { font-size: 1.5rem; margin: 24px 0; }
dialog p { font-size: .875rem; margin-top: 16px; }
.dialog-close { float: right; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; }
  .hero h1 { font-size: 2.25rem; }
  .quiz-layout { grid-template-columns: 224px 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; gap: 12px; }
  .brand-symbol { width: 28px; height: 32px; }
  .brand-wordmark { width: 112px; height: 24px; }
  .hero { padding-block: 40px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-copy > p { max-width: 100%; }
  .hero-meta { gap: 12px; }
  .footer { flex-wrap: wrap; gap: 16px; }
  .footer > span { order: 3; width: 100%; }
  .quiz-shell { padding-top: 24px; }
  .contact-card { padding: 24px; margin-top: 16px; }
  .quiz-layout { display: block; }
  .quiz-layout aside { display: none; }
  .progress-track { margin-bottom: 32px; }
  .option { padding: 16px 20px; }
  .result-shell { padding-block: 32px 48px; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .recommendations { grid-template-columns: 1fr; }
  .result-controls { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand-wordmark { width: 96px; }
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .footer, .result-controls, .skip, dialog { display: none !important; }
  :root { background: white; color: black; }
  .wrap { width: 100%; }
  .result-shell { padding: 0; }
  .result-card, .recommendations article { break-inside: avoid; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .recommendations { grid-template-columns: 1fr; }
}
