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

:root {
  color-scheme: light;
  --ink: #153b3a;
  --ink-strong: #102e2e;
  --muted: #5d706c;
  --line: #d9e2dc;
  --paper: #f5f7f3;
  --surface: #ffffff;
  --teal-soft: #e7efea;
  --orange: #f2a65a;
  --orange-deep: #8a4b08;
  --good: #1c705d;
  --danger: #a13b2d;
  font-family: "DM Sans", "Aptos", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
.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; }
body {
  margin: 0;
  color: var(--ink-strong);
  background:
    radial-gradient(circle at 88% 8%, rgba(242,166,90,.14), transparent 23rem),
    linear-gradient(180deg, #f8faf7 0%, var(--paper) 36rem);
}
button, a { font: inherit; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #0c6257; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-shell { max-width: 1180px; min-height: 100vh; padding: 0 32px; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(21,59,58,.13); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 148px; height: auto; display: block; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(28,112,93,.1); }
.topbar-divider { width: 1px; height: 14px; background: var(--line); margin: 0 3px; }
main { flex: 1; display: flex; align-items: center; padding: 52px 0 70px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(40px, 8vw, 96px); align-items: center; }
.hero-copy { max-width: 690px; }
.eyebrow, .eyebrow-label { margin: 0 0 18px; color: var(--good); font-size: .75rem; line-height: 1.3; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 20px; color: var(--ink); font-size: clamp(2.8rem, 6vw, 5.15rem); line-height: .99; letter-spacing: -.065em; font-weight: 600; }
.hero-lede { max-width: 610px; margin-bottom: 26px; color: #465d58; font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(21,59,58,.15); }
.button-primary:hover { background: #0e504b; }
.button-primary span { color: var(--orange); font-size: 1.15rem; }
.button-secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.button-secondary:hover { border-color: #9bb5aa; background: #f9fcfa; }
.quiet-note { color: var(--muted); font-size: .88rem; }
.trust-line { margin-top: 47px; padding-top: 19px; border-top: 1px solid var(--line); display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: .9rem; }
.trust-marker { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: #e3ece6; font-size: .65rem; font-weight: 700; }
.hero-panel, .side-panel, .result-panel { border: 1px solid rgba(21,59,58,.16); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: 0 20px 55px rgba(21,59,58,.07); }
.hero-panel { padding: 24px 25px 0; transform: translateY(20px); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .12em; }
.panel-index { color: #9aa9a2; }
.scope-list { padding: 5px 0; }
.scope-item { display: flex; align-items: center; gap: 15px; padding: 17px 0; border-bottom: 1px solid #e9efeb; }
.scope-item:last-child { border-bottom: 0; }
.scope-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--teal-soft); font-size: .68rem; font-weight: 700; }
.scope-item strong, .scope-item small { display: block; }
.scope-item strong { margin-bottom: 4px; font-size: .94rem; }
.scope-item small { color: var(--muted); font-size: .8rem; }
.panel-foot { min-height: 52px; margin: 0 -25px; padding: 0 25px; border-radius: 0 0 15px 15px; display: flex; align-items: center; gap: 11px; color: #536761; background: #edf3ee; font-size: .76rem; }
.signal-line { width: 27px; height: 2px; background: var(--orange); }
.site-footer { padding: 18px 0 26px; border-top: 1px solid rgba(21,59,58,.13); }
.privacy-note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .76rem; }
.privacy-note p { margin: 0; line-height: 1.5; }
.privacy-icon { flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid #9fb2a9; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: .7rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 15px; color: #72837d; font-size: .75rem; }
.footer-links a { color: #526760; }
.noscript-note { padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Interactive questionnaire */
.quiz-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(25px, 5vw, 64px); align-items: start; }
.quiz-main { min-width: 0; max-width: 760px; }
.quiz-head { margin-bottom: 30px; }
.quiz-head h1, .quiz-head h2 { margin-bottom: 10px; color: var(--ink); font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 600; }
.quiz-head p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.quiz-progress { margin-bottom: 27px; }
.progress-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: .77rem; font-weight: 600; }
.progress-track { height: 7px; border-radius: 99px; overflow: hidden; background: #dfe8e2; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--ink); transition: width .25s ease; }
.question-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 13px 30px rgba(21,59,58,.05); }
.question-card h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.18; letter-spacing: -.035em; }
.question-hint { margin: 0 0 21px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.option-list { display: grid; gap: 9px; }
.option-button { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #d8e2dc; border-radius: 9px; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.option-button:hover { border-color: #7f9e91; background: #f8fbf8; transform: translateY(-1px); }
.option-button[aria-pressed="true"] { border-color: var(--ink); background: #eaf1ec; box-shadow: inset 0 0 0 1px var(--ink); }
.option-mark { flex: 0 0 auto; width: 19px; height: 19px; border: 1.5px solid #aabbb1; border-radius: 5px; display: grid; place-items: center; color: white; font-size: .7rem; font-weight: 700; }
.option-button[aria-pressed="true"] .option-mark { border-color: var(--ink); background: var(--ink); }
.option-single .option-mark { border-radius: 50%; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; }
.link-button { padding: 8px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.validation-message { min-height: 1.3em; margin: 11px 0 0; color: var(--danger); font-size: .82rem; }
.side-panel { position: sticky; top: 25px; padding: 20px; }
.side-panel h2 { margin: 0 0 14px; color: var(--ink); font-size: .9rem; letter-spacing: -.01em; }
.side-stat { padding: 12px 0; border-top: 1px solid #e7eeea; }
.side-stat span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.side-stat strong { font-size: .84rem; line-height: 1.45; }
.side-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #e7eeea; color: var(--muted); font-size: .75rem; line-height: 1.5; }

/* Results */
.results-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(25px, 5vw, 64px); align-items: start; }
.result-main { max-width: 760px; }
.result-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--good); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.result-main h1 { margin-bottom: 13px; font-size: clamp(2.3rem, 5vw, 4.3rem); }
.result-intro { max-width: 650px; margin-bottom: 24px; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.recommendation-card { padding: clamp(22px, 3vw, 30px); border: 1px solid rgba(21,59,58,.17); border-radius: 15px; background: #fff; box-shadow: 0 15px 35px rgba(21,59,58,.06); }
.recommendation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.recommendation-label { color: var(--muted); font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.recommendation-card h2 { margin: 8px 0 10px; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.04em; }
.recommendation-card p { color: #4e625c; line-height: 1.6; }
.match-score { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: #edf3ee; font-size: .76rem; font-weight: 700; }
.fit-points { margin: 15px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit-points li { display: flex; gap: 10px; align-items: flex-start; color: #3d5650; font-size: .9rem; line-height: 1.5; }
.fit-points li::before { content: "✓"; flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--good); font-size: .68rem; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.service-links { display: grid; gap: 10px; margin-top: 16px; }
.service-link { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--ink); background: #fbfcfa; text-decoration: none; font-weight: 600; }
.service-link:hover { border-color: #95b0a4; background: #f1f6f2; }
.service-link span:last-child { color: #9b672e; }
.result-side { padding: 20px; border-radius: 14px; color: #fff; background: var(--ink); }
.result-side h2 { margin: 0 0 12px; color: #fff; font-size: .95rem; }
.result-side p { margin: 0; color: #d6e4dc; font-size: .83rem; line-height: 1.6; }
.result-side .side-stat { border-color: rgba(255,255,255,.16); }
.result-side .side-stat span { color: #bdd0c6; }
.result-side .side-stat strong { color: white; }
.result-bottom { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.result-bottom .link-button { color: var(--muted); }

@media (max-width: 800px) {
  .site-shell { padding: 0 22px; }
  main { padding: 36px 0 52px; }
  .hero-grid, .quiz-layout, .results-layout { grid-template-columns: 1fr; gap: 25px; }
  .hero-panel { max-width: 540px; transform: none; }
  .side-panel { position: static; }
  .result-side { max-width: 760px; }
  .trust-line { margin-top: 32px; }
}
@media (max-width: 520px) {
  .site-shell { padding: 0 16px; }
  .topbar { height: 70px; }
  .brand img { width: 122px; }
  .topbar-meta { gap: 7px; font-size: .56rem; letter-spacing: .08em; }
  .topbar-divider { margin: 0 1px; }
  main { align-items: flex-start; padding: 34px 0 42px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 3.55rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .trust-line { align-items: flex-start; font-size: .82rem; }
  .hero-panel { padding: 19px 18px 0; }
  .panel-foot { margin-left: -18px; margin-right: -18px; padding: 0 18px; }
  .question-card { padding: 18px 15px; }
  .question-actions { align-items: stretch; }
  .question-actions .button { padding: 0 16px; }
  .recommendation-top { gap: 10px; }
  .result-actions { display: grid; }
  .result-actions .button { width: 100%; }
  .footer-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
