/* ============================================================
   XILO — original DTC/telehealth design system
   Identity: deep spruce + bio-lime + warm sand. Space Grotesk
   display, Inter body, IBM Plex Mono micro-labels. Pill CTAs,
   lab-grid motifs, oversized stat numerals.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0e1512;
  --spruce: #123b2f;
  --spruce-deep: #0b261e;
  --spruce-soft: #1c4f3f;
  --lime: #d8f55a;
  --lime-soft: #ecffa3;
  --sand: #f1efe7;
  --mist: #f7f8f5;
  --white: #ffffff;
  --line: #e2e4dc;
  --line-dark: rgba(216, 245, 90, 0.18);
  --muted: #58635c;
  --muted-dark: #a8b8ae;
  --danger: #b4452f;
  --radius-card: 20px;
  --radius-tile: 14px;
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
  --shell: 1160px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(40px, 5.6vw, 68px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }
p  { color: var(--muted); }
.on-dark p { color: var(--muted-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

/* ---- mono micro-label (signature move) ---- */
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spruce);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); border: 1px solid var(--spruce); }
.on-dark .tag { color: var(--lime); }
.on-dark .tag::before { background: var(--lime); border-color: var(--lime); }

/* ---- buttons ---- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14, 21, 18, 0.18); }
.btn[disabled] { opacity: 0.4; pointer-events: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(14, 21, 18, 0.05); box-shadow: none; }
.on-dark .btn.ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.on-dark .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.small { padding: 10px 20px; font-size: 14px; }
.btn.wide { width: 100%; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-note { font-size: 13px; color: var(--muted); }

/* ---- announcement bar ---- */
.announce {
  background: var(--ink);
  color: var(--lime-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 9px var(--pad);
}
.announce b { color: var(--lime); font-weight: 500; }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--spruce);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.primary-nav { display: flex; gap: 24px; margin-right: auto; }
.primary-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.utility-nav { display: flex; gap: 18px; align-items: center; }
.utility-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.utility-nav a:hover { color: var(--ink); }
.menu-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 13px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--mist);
  padding: 12px var(--pad) 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 0; text-decoration: none; font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }

/* ---- hero ---- */
.hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin-bottom: 30px; }
.hero-proof { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof div { border-left: 2px solid var(--lime); padding-left: 14px; }
.hero-proof b { font-family: var(--font-display); font-size: 22px; display: block; letter-spacing: -0.01em; }
.hero-proof span { font-size: 13px; color: var(--muted); }

/* lab-grid visual motif */
.lab-card {
  background: var(--spruce);
  border-radius: var(--radius-card);
  padding: 26px;
  color: var(--white);
  background-image: radial-gradient(rgba(216, 245, 90, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(11, 38, 30, 0.25);
}
.lab-chip {
  background: rgba(11, 38, 30, 0.85);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-tile);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.lab-chip .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.lab-chip .v { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--lime); }
.lab-chip .v small { font-size: 12px; color: var(--muted-dark); font-weight: 400; margin-left: 4px; }

/* ---- sections ---- */
.section { padding: clamp(56px, 7.5vw, 110px) 0; }
.section.tight { padding: clamp(36px, 5vw, 70px) 0; }
.section.sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--spruce-deep); }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 54px); }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .tag { justify-content: center; }

/* ---- category rail ---- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rail-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.rail-item:hover { transform: translateY(-3px); border-color: var(--spruce); }
.rail-item .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rail-item b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.rail-item .go { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--spruce); }

/* ---- cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { margin-top: 4px; }
.card .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.card a.link { margin-top: auto; }
a.link {
  font-weight: 600;
  font-size: 15px;
  color: var(--spruce);
  text-decoration: none;
  border-bottom: 1.5px solid var(--lime);
  align-self: flex-start;
  padding-bottom: 1px;
}
a.link:hover { border-bottom-color: var(--spruce); }
.on-dark a.link { color: var(--lime); border-bottom-color: rgba(216, 245, 90, 0.4); }

/* ---- product cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card.featured { border-color: var(--spruce); box-shadow: 0 14px 40px rgba(18, 59, 47, 0.12); }
.product-visual {
  background: var(--sand);
  background-image: radial-gradient(rgba(18, 59, 47, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-visual .bottle {
  width: 84px; height: 128px;
  background: var(--spruce);
  border-radius: 14px 14px 18px 18px;
  position: relative;
  box-shadow: 0 14px 26px rgba(11, 38, 30, 0.28);
}
.product-visual .bottle::before {
  content: "";
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 20px;
  background: var(--ink);
  border-radius: 6px 6px 3px 3px;
}
.product-visual .bottle::after {
  content: attr(data-label);
  position: absolute;
  inset: 34px 10px 14px;
  background: var(--mist);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spruce);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  line-height: 1.5;
}
.product-visual .flag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 5px 12px;
}
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body .rx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.product-body h3 { font-size: 22px; }
.product-body .price { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.product-body .price small { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13px; display: block; margin-top: 2px; }
.product-body .desc { font-size: 14.5px; }
.product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 14px; }
.safety-link { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---- steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--spruce);
  background: var(--lime);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }
.on-dark .step { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.on-dark .step h3 { color: var(--white); }

/* ---- stats band ---- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  border-top: 2px solid var(--lime);
  padding-top: 18px;
}
.stat b { font-family: var(--font-display); font-size: clamp(42px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; display: block; line-height: 1; }
.stat span { font-size: 14.5px; color: var(--muted); display: block; margin-top: 10px; max-width: 26em; }
.on-dark .stat b { color: var(--lime); }
.on-dark .stat span { color: var(--muted-dark); }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: block; }

/* ---- split panel ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split .visual {
  border-radius: var(--radius-card);
  min-height: 380px;
  background: var(--spruce);
  background-image: radial-gradient(rgba(216, 245, 90, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.split h2 { margin: 16px 0 16px; }
.split .checklist { margin-top: 20px; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.checklist li { padding-left: 32px; position: relative; color: var(--ink); font-size: 15.5px; font-weight: 500; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 7px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist li span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.on-dark .checklist li { color: var(--white); }
.on-dark .checklist li span { color: var(--muted-dark); }

/* ---- testimonials ---- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-card .metric { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--spruce); }
.quote-card blockquote { font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.quote-card figcaption { font-size: 13.5px; color: var(--muted); margin-top: auto; }
.quote-card figcaption b { color: var(--ink); font-weight: 600; }
.verified { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spruce); background: var(--lime-soft); border-radius: 999px; padding: 3px 10px; margin-left: 8px; }
.quote-disclaimer { font-size: 12px; color: var(--muted); margin-top: 20px; }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 20px 54px 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--spruce);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }
.faq-item .answer p + p { margin-top: 10px; }
.on-dark .faq-item { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.on-dark .faq-item summary { color: var(--white); }
.on-dark .faq-item .answer { color: var(--muted-dark); }

/* ---- pricing ---- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan.best { border-color: var(--spruce); position: relative; box-shadow: 0 16px 44px rgba(18, 59, 47, 0.14); }
.plan .badge {
  position: absolute;
  top: -13px; left: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 5px 14px;
}
.plan .cadence { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan .amount { font-family: var(--font-display); font-weight: 700; font-size: 46px; letter-spacing: -0.03em; line-height: 1; }
.plan .amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .bill-note { font-size: 13px; color: var(--muted); }
.plan .checklist li { font-size: 14.5px; font-weight: 400; }
.plan .btn { margin-top: auto; }

/* ---- comparison / info table ---- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.info-table th, .info-table td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.info-table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.info-table tr:last-child td { border-bottom: none; }
.info-table td b { font-family: var(--font-display); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---- trust strip ---- */
.trust-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--muted);
}
.on-dark .trust-pill { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: var(--muted-dark); }

/* ---- callout / disclaimer boxes ---- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: var(--white);
  border-radius: var(--radius-tile);
  padding: 20px 22px;
  font-size: 14px;
  color: var(--muted);
}
.callout.warn { border-left-color: var(--danger); }
.callout b { color: var(--ink); }
.footnotes { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.footnotes p + p { margin-top: 6px; }

/* ---- page hero (interior) ---- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero .shell { padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px); }
.page-hero h1 { margin: 16px 0 18px; max-width: 15em; }
.page-hero .lede { font-size: 18px; max-width: 36em; margin-bottom: 26px; }
.page-hero.dark { background: var(--spruce-deep); border-bottom: none; }

/* ---- final CTA band ---- */
.cta-band { background: var(--spruce); border-radius: var(--radius-card); padding: clamp(36px, 5vw, 64px); text-align: center; background-image: radial-gradient(rgba(216, 245, 90, 0.12) 1px, transparent 1px); background-size: 22px 22px; }
.cta-band h2 { color: var(--white); margin: 14px 0 12px; }
.cta-band p { color: var(--muted-dark); max-width: 34em; margin: 0 auto 26px; }
.cta-band .cta-row { justify-content: center; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: clamp(48px, 6vw, 80px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 24em; }
.site-footer .logo { color: var(--white); }
.footer-col h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; font-size: 14.5px; padding: 5px 0; color: var(--muted-dark); }
.footer-col a:hover { color: var(--white); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px; font-size: 12.5px; line-height: 1.75; }
.footer-legal p + p { margin-top: 10px; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-legal-links a { color: var(--muted-dark); text-decoration: none; font-size: 13px; }
.footer-legal-links a:hover { color: var(--white); text-decoration: underline; }

/* ---- sticky mobile CTA ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.sticky-cta .s-price { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.sticky-cta .s-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }

/* ---- quiz ---- */
.quiz-shell { max-width: 640px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--pad) 100px; }
.quiz-progress { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 34px; }
.quiz-progress .fill { height: 100%; background: var(--spruce); border-radius: 999px; transition: width 0.3s ease; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: rise 0.28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-step .tag { margin-bottom: 12px; }
.quiz-step h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.quiz-step .help { font-size: 15px; margin-bottom: 26px; }
.quiz-options { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.quiz-option {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-tile);
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.12s ease, background 0.12s ease;
  color: var(--ink);
}
.quiz-option:hover { border-color: var(--spruce); }
.quiz-option.selected { border-color: var(--spruce); background: var(--lime-soft); }
.quiz-option small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.quiz-option .mark { width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: transparent; }
.quiz-option.selected .mark { background: var(--spruce); border-color: var(--spruce); color: var(--lime); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.quiz-back { background: none; border: none; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiz-field { margin-bottom: 18px; }
.quiz-field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.quiz-field input, .quiz-field select {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-tile);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}
.quiz-field input:focus, .quiz-field select:focus { outline: none; border-color: var(--spruce); }
.quiz-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.result-panel { text-align: center; padding: 20px 0; }
.result-panel .big-mark {
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.result-panel h2 { margin-bottom: 12px; }
.result-panel p { max-width: 30em; margin: 0 auto 12px; }

/* ---- auth / account ---- */
.auth-shell { max-width: 440px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px 30px; }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card .sub { font-size: 14.5px; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-field input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-tile);
  font-family: var(--font-body);
  font-size: 15.5px;
}
.form-field input:focus { outline: none; border-color: var(--spruce); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-note a { color: var(--spruce); font-weight: 600; }
.stub-notice {
  display: none;
  margin-top: 16px;
  background: var(--lime-soft);
  border: 1px solid var(--spruce);
  border-radius: var(--radius-tile);
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--ink);
}
.stub-notice.show { display: block; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.account-card h3 { margin-bottom: 6px; }
.account-card .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.account-row:last-child { border-bottom: none; }
.account-row b { font-weight: 600; }
.pill-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lime-soft); color: var(--spruce); border-radius: 999px; padding: 3px 10px; }

/* ---- legal / prose pages ---- */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 70px) var(--pad) 90px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; }
.prose .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.prose h2 { font-size: 23px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--muted); }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.prose strong { color: var(--ink); }

/* ---- anchor helper ---- */
.anchor-target { display: block; position: relative; top: -90px; visibility: hidden; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .rail, .steps, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .quote-grid, .card-grid, .plan-grid, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .shell, .split { grid-template-columns: 1fr; }
  .split .visual { min-height: 300px; }
}
@media (max-width: 720px) {
  .primary-nav, .utility-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .rail, .steps, .product-grid, .quote-grid, .card-grid, .card-grid.four, .plan-grid, .stat-band, .account-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sticky-cta.enabled { display: flex; }
  body.has-sticky { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
