:root {
  --bg: #fffafa;
  --surface: #ffffff;
  --surface-2: #f8f3f6;
  --surface-3: #f3e7ed;
  --ink: #261c22;
  --ink-soft: #665860;
  --ink-faint: #887982;
  --brand: #8f2457;
  --brand-strong: #6f1741;
  --brand-soft: #f7dce9;
  --rose: #dc6f9e;
  --teal: #19796f;
  --teal-soft: #dff4ef;
  --amber: #9a6114;
  --amber-soft: #fff0cf;
  --danger: #a93442;
  --danger-soft: #fde4e7;
  --slate: #52606d;
  --slate-soft: #edf1f4;
  --line: #e8dce2;
  --line-strong: #d8c6cf;
  --shadow-sm: 0 8px 24px rgba(80, 31, 56, .08);
  --shadow-md: 0 18px 50px rgba(80, 31, 56, .13);
  --shadow-lg: 0 30px 80px rgba(80, 31, 56, .18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --container: 1180px;
  --focus: #1c71b8;
}

html[data-theme="dark"] {
  --bg: #171217;
  --surface: #211920;
  --surface-2: #2b2028;
  --surface-3: #38242e;
  --ink: #fff8fb;
  --ink-soft: #d7c9d0;
  --ink-faint: #b6a5ae;
  --brand: #ef7cab;
  --brand-strong: #ff9fc3;
  --brand-soft: #442234;
  --rose: #f58ab5;
  --teal: #69cbbd;
  --teal-soft: #173c38;
  --amber: #efb45c;
  --amber-soft: #49371c;
  --danger: #ff8994;
  --danger-soft: #4b2026;
  --slate: #b8c2ca;
  --slate-soft: #283038;
  --line: #45343d;
  --line-strong: #5c4651;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .22);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .36);
  --focus: #7fc5ff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; }

button, input, select { font: inherit; }

button { color: inherit; }

img, svg { display: block; max-width: 100%; }

p, h1, h2, h3, h4 { margin-top: 0; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.75rem); }
h3 { font-size: 1.22rem; }

::selection { background: var(--brand-soft); color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow-container { max-width: 900px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.utility-bar {
  background: var(--brand-strong);
  color: #fff;
  font-size: .82rem;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.utility-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
}

.brand-mark svg { width: 32px; height: 32px; }

.brand > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.brand strong { font-size: 1.2rem; letter-spacing: -.03em; }
.brand small { color: var(--ink-soft); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-nav > a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 750;
}

.primary-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: right .22s ease;
}

.primary-nav > a:hover { color: var(--brand); }
.primary-nav > a:hover::after { right: 0; }

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.icon-button:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand-soft); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 92px;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--brand-soft) 78%, transparent), transparent 30%),
    linear-gradient(145deg, var(--bg) 0%, color-mix(in srgb, var(--brand-soft) 35%, var(--bg)) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 55%, transparent));
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  pointer-events: none;
}

.hero-orb-one { width: 340px; height: 340px; top: -160px; right: 7%; }
.hero-orb-two { width: 170px; height: 170px; bottom: 15px; left: -70px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--brand-soft); }

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-weight: 840;
  letter-spacing: -.065em;
}

.hero h1 span { color: var(--brand); }

.hero-lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 820;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 11px 24px color-mix(in srgb, var(--brand) 25%, transparent); }
.button-primary:hover { background: var(--brand-strong); box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 32%, transparent); }
.button-secondary { background: var(--surface); color: var(--brand); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--brand); background: var(--brand-soft); }
.button-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.button-quiet:hover { color: var(--brand); border-color: var(--brand); }
.button-light { background: #fff; color: #6f1741; box-shadow: 0 10px 25px rgba(0,0,0,.14); }
.button-small { min-height: 40px; padding: 9px 15px; font-size: .86rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--ink-soft);
}

.hero-trust > div {
  display: grid;
  gap: 1px;
  padding: 0 22px;
  border-left: 1px solid var(--line-strong);
}

.hero-trust > div:first-child { padding-left: 0; border-left: 0; }
.hero-trust strong { color: var(--ink); font-size: .92rem; }
.hero-trust span { font-size: .78rem; }

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -8px 22px auto;
  height: 12px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--rose));
  opacity: .8;
}

.panel-kicker {
  margin: 0 0 16px 4px;
  color: var(--ink-faint);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rule-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  padding: 18px;
  border-radius: 18px;
}

.rule-card + .rule-card { margin-top: 12px; }
.rule-card-safe { background: var(--teal-soft); }
.rule-card-caution { background: var(--amber-soft); }
.rule-card h2 { margin: 1px 0 5px; font-size: 1.08rem; letter-spacing: -.02em; }
.rule-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

.rule-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}
.rule-card-safe .rule-icon { color: var(--teal); }
.rule-card-caution .rule-icon { color: var(--amber); }
.rule-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rule-card-safe .rule-icon svg path:first-child { fill: currentColor; opacity: .12; }
.rule-card-caution .rule-icon svg path:first-child { fill: currentColor; opacity: .12; }

.timeline-mini {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 24px 5px 9px;
}

.timeline-label { color: var(--ink-faint); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.timeline-line { position: relative; height: 2px; background: var(--line-strong); display: flex; justify-content: space-between; }
.timeline-line i { width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; border: 2px solid var(--surface); background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.panel-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); font-size: .8rem; text-align: center; }

.notice-strip { border-block: 1px solid var(--line); background: var(--surface); }
.notice-inner { min-height: 72px; display: flex; align-items: center; gap: 14px; }
.notice-inner svg { flex: 0 0 auto; width: 25px; height: 25px; fill: none; stroke: var(--brand); stroke-width: 1.8; }
.notice-inner p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.notice-inner strong { color: var(--ink); }

.section { padding: 105px 0; }
.soft-section { background: var(--surface-2); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { margin-bottom: 0; color: var(--ink-soft); font-size: 1.06rem; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading > div:first-child { max-width: 700px; }

.planner-section { background: linear-gradient(180deg, var(--bg), var(--surface-2) 52%, var(--bg)); }
.planner-shell {
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 24px 26px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.stepper-item { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: .82rem; }
.stepper-item span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: .75rem; font-weight: 850; }
.stepper-item.is-active { color: var(--brand); }
.stepper-item.is-active span { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper-item.is-complete { color: var(--teal); }
.stepper-item.is-complete span { border-color: var(--teal); background: var(--teal); color: #fff; }
.stepper-line { width: 56px; height: 1px; background: var(--line-strong); }

.planner-step { margin: 0; padding: 40px; border: 0; }
.planner-step legend { width: 100%; margin-bottom: 6px; font-size: 1.75rem; font-weight: 830; letter-spacing: -.035em; line-height: 1.2; }
.fieldset-help { margin-bottom: 28px; color: var(--ink-soft); }
.choice-grid { display: grid; gap: 14px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }

.choice-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.choice-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.choice-card:has(input:checked) .choice-check { border: 6px solid var(--brand); }
.choice-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 14px; background: var(--surface-2); color: var(--brand); }
.choice-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice-card strong { margin-bottom: 7px; }
.choice-card small { color: var(--ink-soft); line-height: 1.45; }

.form-grid { display: grid; gap: 18px; margin-top: 24px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .86rem; font-weight: 800; }
.field input, .field select, .search-field input {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .search-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.field small { color: var(--ink-faint); font-size: .75rem; }
.conditional-field { display: none; }
.conditional-field.is-visible { display: grid; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-card {
  position: relative;
  min-height: 95px;
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.check-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.check-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 38%, var(--surface)); }
.check-card input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--brand); }
.check-card span { display: grid; gap: 5px; }
.check-card small { color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }

.safety-list { display: grid; gap: 10px; }
.safety-row {
  display: grid;
  grid-template-columns: 22px 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.safety-row:hover { border-color: var(--brand); }
.safety-row:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 32%, var(--surface)); }
.safety-row input { width: 19px; height: 19px; accent-color: var(--brand); }
.safety-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: -.02em; }
.safety-row > span:last-child { display: grid; gap: 3px; }
.safety-row small { color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.planner-review { margin-top: 22px; padding: 15px 17px; border-radius: 14px; background: var(--surface-2); color: var(--ink-soft); font-size: .84rem; }

.planner-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.planner-actions.align-right { justify-content: flex-end; }
.form-message { min-height: 0; margin-top: 14px; color: var(--danger); font-size: .84rem; font-weight: 700; }
.form-message:not(:empty) { padding: 10px 13px; border-radius: 10px; background: var(--danger-soft); }

.results-shell {
  max-width: 1080px;
  margin: 38px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.results-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.results-header .eyebrow { margin-bottom: 7px; }
.results-header h2 { margin-bottom: 9px; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.results-header p { max-width: 700px; margin: 0; color: var(--ink-soft); }
.results-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.results-alert { margin: 20px 0 0; padding: 15px 17px; border-left: 4px solid var(--amber); border-radius: 12px; background: var(--amber-soft); color: var(--ink); font-size: .9rem; }
.result-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0; color: var(--ink-soft); font-size: .78rem; }
.result-legend span { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-now { background: var(--teal); }
.status-discuss { background: var(--amber); }
.status-avoid { background: var(--danger); }
.status-notroutine { background: var(--slate); }
.result-groups { display: grid; gap: 24px; }
.result-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; }
.result-group-count { min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 7px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-soft); font-size: .68rem; }
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result-card { position: relative; padding: 18px 18px 17px 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.result-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--slate); }
.result-card[data-status="now"]::before { background: var(--teal); }
.result-card[data-status="discuss"]::before { background: var(--amber); }
.result-card[data-status="avoid"]::before { background: var(--danger); }
.result-card[data-status="notroutine"]::before { background: var(--slate); }
.result-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-card h4 { margin: 0 0 6px; font-size: 1rem; }
.result-card p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.result-tag { flex: 0 0 auto; padding: 5px 8px; border-radius: var(--radius-pill); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.result-card[data-status="now"] .result-tag { background: var(--teal-soft); color: var(--teal); }
.result-card[data-status="discuss"] .result-tag { background: var(--amber-soft); color: var(--amber); }
.result-card[data-status="avoid"] .result-tag { background: var(--danger-soft); color: var(--danger); }
.result-card[data-status="notroutine"] .result-tag { background: var(--slate-soft); color: var(--slate); }
.result-source { display: block; margin-top: 9px; color: var(--ink-faint); font-size: .67rem; }
.result-footer-note { margin-top: 25px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); color: var(--ink-soft); font-size: .84rem; }
.result-footer-note strong { color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card { position: relative; min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -45px; bottom: -45px; background: var(--brand-soft); opacity: .7; }
.feature-number { display: inline-flex; margin-bottom: 44px; color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.22rem; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: var(--ink-soft); font-size: .9rem; }

.matrix-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.search-field { position: relative; width: min(100%, 300px); }
.search-field svg { position: absolute; top: 50%; left: 13px; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--ink-faint); stroke-width: 1.8; stroke-linecap: round; }
.search-field input { min-height: 43px; padding: 9px 12px 9px 40px; }
.filter-pills { display: flex; gap: 6px; }
.filter-pill { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-soft); font-size: .75rem; font-weight: 800; cursor: pointer; }
.filter-pill:hover, .filter-pill.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.mobile-phase-tabs { display: none; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.data-matrix { width: 100%; min-width: 920px; border-collapse: collapse; }
.data-matrix th, .data-matrix td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-matrix th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-soft); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.data-matrix th:first-child { width: 20%; }
.data-matrix th:nth-child(2) { width: 11%; }
.data-matrix tbody tr:last-child td { border-bottom: 0; }
.data-matrix tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 22%, transparent); }
.vaccine-name { display: block; margin-bottom: 5px; font-weight: 830; line-height: 1.3; }
.vaccine-detail { display: block; color: var(--ink-faint); font-size: .72rem; line-height: 1.35; }
.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: var(--radius-pill); font-size: .67rem; font-weight: 850; white-space: nowrap; }
.type-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.type-badge.nonlive { background: var(--teal-soft); color: var(--teal); }
.type-badge.nonlive::before { background: var(--teal); }
.type-badge.live { background: var(--danger-soft); color: var(--danger); }
.type-badge.live::before { background: var(--danger); }
.matrix-cell { color: var(--ink-soft); font-size: .83rem; line-height: 1.5; }
.matrix-cell strong { color: var(--ink); }
.empty-state { padding: 40px; color: var(--ink-soft); text-align: center; }
.table-note { margin: 13px 5px 0; color: var(--ink-faint); font-size: .76rem; }

.dark-section { position: relative; overflow: hidden; background: #2a1721; color: #fff; }
.dark-section::before { content: ""; position: absolute; inset: -220px -160px auto auto; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(220,111,158,.22), transparent 65%); }
.light-heading .eyebrow { color: #f7a4c5; }
.light-heading p { color: #d8c7cf; }
.treatment-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.treatment-card { min-height: 270px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.065); backdrop-filter: blur(10px); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.treatment-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.095); }
.treatment-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.treatment-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.1); color: #f7a4c5; font-weight: 900; font-size: .8rem; }
.risk-chip { padding: 5px 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,.09); color: #eadde3; font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.treatment-card h3 { margin-bottom: 7px; color: #fff; }
.treatment-examples { min-height: 34px; margin-bottom: 17px; color: #cdbac3; font-size: .76rem; line-height: 1.4; }
.treatment-points { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.treatment-points li { position: relative; padding-left: 16px; color: #eadde3; font-size: .82rem; line-height: 1.45; }
.treatment-points li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: #ef8fb6; }
.treatment-source { display: block; margin-top: 16px; color: #aa939e; font-size: .67rem; }

.accordion { display: grid; gap: 11px; }
.faq-item { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); overflow: hidden; }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { position: relative; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); }
.faq-item summary span::before, .faq-item summary span::after { content: ""; position: absolute; top: 11px; left: 6px; width: 12px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .2s ease; }
.faq-item summary span::after { transform: rotate(90deg); }
.faq-item[open] summary span::after { transform: rotate(0); }
.faq-item[open] summary { color: var(--brand); }
.faq-item div { padding: 0 23px 22px; }
.faq-item p { margin: 0; color: var(--ink-soft); }

.evidence-section { background: var(--surface-2); }
.review-badge { min-width: 230px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.review-badge span, .review-badge small { display: block; color: var(--ink-faint); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-badge strong { display: block; margin: 2px 0; }
.evidence-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.evidence-callout { position: sticky; top: 105px; padding: 26px; border-radius: var(--radius-md); background: var(--brand-strong); color: #fff; box-shadow: var(--shadow-md); }
.evidence-callout h3 { margin: 0 0 11px; font-size: 1rem; }
.evidence-callout h3:not(:first-child) { margin-top: 25px; }
.evidence-callout ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; color: #f4dfe8; font-size: .84rem; }
.references { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.references h3 { margin-bottom: 20px; }
.references ol { display: grid; gap: 14px; margin: 0; padding-left: 23px; }
.references li { padding-left: 6px; color: var(--ink-soft); font-size: .82rem; }
.references li::marker { color: var(--brand); font-weight: 850; }
.references a { color: var(--brand); font-weight: 760; text-underline-offset: 3px; }
.references span { color: var(--ink); font-weight: 760; }

.cta-section { padding: 0 0 100px; background: var(--surface-2); }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 48px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-card .eyebrow { color: #ffd1e2; }
.cta-card h2 { max-width: 760px; margin-bottom: 11px; font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-card p { max-width: 700px; margin: 0; color: #f4dce6; }
.cta-card .button { flex: 0 0 auto; }

.site-footer { padding: 65px 0 25px; background: #1d1117; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .65fr .65fr 1.3fr; gap: 38px; }
.footer-brand { color: #f294ba; margin-bottom: 15px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); }
.footer-brand small { color: #c8b1bc; }
.footer-grid > div:first-child p, .footer-disclaimer p { color: #bca9b2; font-size: .82rem; }
.footer-grid h3 { margin-bottom: 14px; color: #f2dfe7; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) > a, .footer-link-button { display: block; margin: 9px 0; color: #cdbbc3; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover, .footer-link-button:hover { color: #fff; }
.footer-link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #947f89; font-size: .72rem; }

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 130%);
  max-width: calc(100% - 30px);
  padding: 11px 17px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  font-weight: 750;
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.noscript-notice { position: fixed; z-index: 999; left: 20px; right: 20px; bottom: 20px; padding: 15px; border-radius: 12px; background: #fff0cf; color: #38250b; box-shadow: 0 15px 45px rgba(0,0,0,.2); text-align: center; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay { transition-delay: .12s; }
.js .reveal-delay-one { transition-delay: .06s; }
.js .reveal-delay-two { transition-delay: .12s; }
.js .reveal-delay-three { transition-delay: .18s; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 46px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 4.8rem); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr .7fr .7fr; }
  .footer-disclaimer { grid-column: 1 / -1; max-width: 720px; }
}

@media (max-width: 860px) {
  .utility-inner span:last-child, .utility-dot { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 110px 16px auto;
    z-index: 110;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .primary-nav > a { padding: 13px 12px; border-radius: 10px; }
  .primary-nav > a:hover { background: var(--surface-2); }
  .primary-nav > a::after { display: none; }
  .primary-nav .icon-button { margin: 8px 10px; }
  .nav-open .nav-toggle > span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle > span:nth-child(3) { opacity: 0; }
  .nav-open .nav-toggle > span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead, .hero h1 { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-panel { width: min(100%, 600px); margin-inline: auto; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .matrix-tools { width: 100%; align-items: flex-start; }
  .check-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; }
  .results-actions { justify-content: flex-start; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-callout { position: static; }
  .cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .primary-nav { top: 104px; }
  .hero { padding: 54px 0 67px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .hero-trust > div { padding: 0 10px; }
  .hero-panel { padding: 21px; }
  .rule-card { grid-template-columns: 42px 1fr; padding: 15px; }
  .rule-icon { width: 42px; height: 42px; }
  .notice-inner { align-items: flex-start; padding-block: 16px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 30px; }
  .choice-grid-three { grid-template-columns: 1fr; }
  .choice-card { min-height: auto; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 17px; }
  .choice-icon { grid-row: 1 / span 2; margin: 0; }
  .choice-card strong { align-self: end; padding-right: 24px; }
  .choice-card small { grid-column: 2; }
  .planner-step { padding: 27px 20px; }
  .planner-step legend { font-size: 1.5rem; }
  .stepper { padding: 19px 13px; gap: 6px; }
  .stepper-item strong { display: none; }
  .stepper-line { width: min(16vw, 70px); }
  .form-grid.two-col { grid-template-columns: 1fr; }
  .safety-row { grid-template-columns: 20px 38px 1fr; padding: 13px; gap: 10px; }
  .safety-symbol { width: 38px; height: 38px; }
  .planner-actions .button { min-width: 110px; }
  .results-shell { padding: 22px 17px; }
  .result-cards { grid-template-columns: 1fr; }
  .result-legend { display: grid; grid-template-columns: 1fr 1fr; }
  .feature-grid, .treatment-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 215px; }
  .feature-number { margin-bottom: 28px; }
  .mobile-phase-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
  .mobile-phase-tabs button { padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: .78rem; font-weight: 800; cursor: pointer; }
  .mobile-phase-tabs button.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
  .matrix-wrap { overflow: hidden; }
  .data-matrix { min-width: 0; }
  .data-matrix thead th { display: none; }
  .data-matrix thead th:first-child { display: table-cell; width: 44%; }
  .data-matrix thead th:nth-child(2) { display: table-cell; width: 25%; }
  .data-matrix thead th.mobile-active-col { display: table-cell; width: 56%; }
  .data-matrix tbody td { display: none; padding: 15px 12px; }
  .data-matrix tbody td:first-child, .data-matrix tbody td:nth-child(2), .data-matrix tbody td.mobile-active-col { display: table-cell; }
  .data-matrix tbody td:nth-child(2) { display: none; }
  .vaccine-name { font-size: .88rem; }
  .vaccine-detail { font-size: .66rem; }
  .matrix-cell { font-size: .77rem; }
  .review-badge { width: 100%; }
  .references { padding: 21px; }
  .cta-card { padding: 30px 24px; }
  .cta-card .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid > div:first-child, .footer-disclaimer { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .utility-bar { font-size: .74rem; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .65rem; }
  .hero-trust span { display: none; }
  .hero-trust > div { padding: 0 7px; }
  .rule-card { grid-template-columns: 1fr; }
  .rule-icon { margin-bottom: 2px; }
  .result-legend { grid-template-columns: 1fr; }
  .results-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .results-actions .button { width: 100%; }
  .results-actions .button:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child, .footer-disclaimer { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #111; --ink-soft: #333; --line: #bbb; }
  body { background: #fff; color: #111; font-size: 10pt; }
  .utility-bar, .site-header, .hero, .notice-strip, .planner-shell, #quick-rules, #vaccines, #treatments, #faq, .cta-section, .site-footer, .results-actions, .result-legend, .toast { display: none !important; }
  .planner-section { padding: 0; background: #fff; }
  .planner-section > .container > .section-heading { display: none; }
  .results-shell { display: block !important; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .results-header { display: block; border-bottom: 2px solid #111; }
  .results-header::before { content: "BreastVax Guide - Vaccine Discussion Guide"; display: block; margin-bottom: 7px; font-size: 16pt; font-weight: 800; }
  .results-header h2 { font-size: 16pt; }
  .result-groups { gap: 12px; }
  .result-cards { grid-template-columns: 1fr 1fr; gap: 7px; }
  .result-card { break-inside: avoid; padding: 10px 10px 9px 13px; border-color: #aaa; }
  .result-card p { color: #222; }
  .result-footer-note { border: 1px solid #bbb; background: #fff; }
  .evidence-section { display: block; padding: 20px 0 0; background: #fff; }
  .evidence-section .section-heading, .evidence-callout { display: none; }
  .evidence-grid { display: block; }
  .references { padding: 0; border: 0; }
  .references li { font-size: 7.5pt; }
  a { color: #111; text-decoration: none; }
  @page { margin: .55in; }
}
