:root {
  --ink: #211b2d;
  --muted: #625b6b;
  --purple: #4d387f;
  --purple-dark: #30224f;
  --gold: #ffcc32;
  --gold-soft: #ffe18a;
  --paper: #ffffff;
  --wash: #f7f4fa;
  --line: #ded6e6;
  --success: #176b45;
  --danger: #9f2d2d;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(48, 34, 79, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
a { color: var(--purple); }
img { max-width: 100%; }
button, input { font: inherit; }
button, .button { min-height: 48px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 200;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: #fff;
}
.skip-link:focus { top: 1rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(77, 56, 127, .13);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand img { display: block; width: auto; height: 54px; }
.desktop-nav { display: flex; align-items: center; gap: 1.35rem; }
.desktop-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.mobile-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: white; padding: .6rem 1rem; }
.mobile-nav { display: none; padding: 0 1rem 1rem; }
.mobile-nav.open { display: grid; gap: .35rem; }
.mobile-nav a { padding: .8rem; border-radius: .8rem; text-decoration: none; font-weight: 700; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.3rem;
  color: var(--purple-dark);
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { background: var(--gold-soft); }
.button.secondary { border: 1px solid var(--purple); color: var(--purple); background: white; }
.button.dark { color: white; background: var(--purple); }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 204, 50, .24), transparent 26rem),
    linear-gradient(135deg, #30224f 0%, #5a428e 100%);
}
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 3rem; padding: 4.5rem 0; }
.eyebrow { margin: 0 0 .8rem; color: var(--purple); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { margin-top: 0; line-height: 1.14; }
h1 { font-size: clamp(2.35rem, 5vw, 4.3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { font-size: 1.18rem; }
.lede { font-size: 1.15rem; line-height: 1.75; }
.hero-card, .card {
  border: 1px solid rgba(77, 56, 127, .14);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.25rem, 4vw, 2.3rem); }
.card { padding: 1.5rem; }
.question-box { margin-top: 1.3rem; }
.choice-grid { display: grid; gap: .7rem; margin: 1rem 0; }
.choice {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.choice.selected { border-color: var(--purple); color: white; background: var(--purple); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.5rem; }
.trust-list span { padding: .75rem .9rem; border-radius: 12px; background: rgba(255,255,255,.1); }
.doctor-image { border-radius: 26px; box-shadow: var(--shadow); }

.section { padding: 4.5rem 0; }
.section.white { background: white; }
.section.dark { color: white; background: var(--purple-dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature { height: 100%; }
.notice { padding: 1rem; border: 1px solid #ecd79e; border-radius: 12px; background: #fff8df; color: #5b4610; }
.notice.error { border-color: #ebbbbb; background: #fff0f0; color: var(--danger); }
.notice.success { border-color: #aad6c1; background: #effaf4; color: var(--success); }

.assessment-shell { padding: 3.5rem 0 5rem; }
.progress { height: 10px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress > span { display: block; height: 100%; background: var(--gold); transition: width .25s ease; }
.assessment-card { margin-top: 1.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); }
.assessment-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.result { display: none; }
.result.visible { display: block; }

form { display: grid; gap: 1rem; }
label { font-weight: 750; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  min-height: 48px;
  margin-top: .35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  background: white;
}
.checkbox { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; }
.checkbox input { margin-top: .3rem; }
.fine-print { color: var(--muted); font-size: .84rem; }

.legal h2 { margin-top: 2.25rem; font-size: 1.55rem; }
.legal h3 { margin-top: 1.5rem; }
.legal li { margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }

.site-footer { padding: 3.5rem 0 1.5rem; color: white; background: var(--purple-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: white; }
.footer-links { display: grid; gap: .55rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .82rem; color: rgba(255,255,255,.78); }

.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 20, 50, .76); }
.modal-panel { position: relative; width: min(520px, 100%); border-radius: 22px; padding: 1.5rem; background: white; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: .8rem; top: .8rem; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.phone-large { font-size: 1.6rem; font-weight: 900; color: var(--purple); }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 3rem 0; gap: 2rem; }
  .trust-list { grid-template-columns: 1fr; }
  h1 { font-size: 2.45rem; }
  .section { padding: 3rem 0; }
  .button-row .button { width: 100%; }
  .assessment-actions { flex-direction: column-reverse; }
  .assessment-actions .button { width: 100%; }
}

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