/* Glow Kit Drop — shared styles. Mobile-first, no external dependencies. */
:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --ink: #1a1a1a;
  --muted: #555049;
  --accent: #2f6f5e;
  --accent-ink: #24584a;
  --accent-soft: #e6f2ee;
  --card: #ffffff;
  --line: #e4ddd2;
  --warn-bg: #fff7e8;
  --warn-line: #ecd9b3;
  --warn-ink: #5e4c2e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 6px 20px rgba(26, 26, 26, 0.05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1f5a4b; outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.05rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--wrap), calc(100% - 2.25rem)); margin-inline: auto; }
.narrow { max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 0.6rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 0.75rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }

/* Disclosure bar (top of every page) */
.disclosure-bar { background: var(--accent-soft); color: #2b3f39; font-size: 0.84rem; line-height: 1.45; padding: 0.55rem 0; border-bottom: 1px solid #d3e6df; }
.disclosure-bar a { color: inherit; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250, 248, 245, 0.82); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-toggle { display: none; align-items: center; gap: 0.45rem; background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-toggle-bars { width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; }
.site-nav a { display: block; padding: 0.45rem 0.65rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { background: var(--bg-alt); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.site-nav .nav-cta a { background: var(--accent); color: #fff; }
.site-nav .nav-cta a:hover { background: var(--accent-ink); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--accent-ink); color: #fff; }

/* Mobile nav: collapsed only when JS is available */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 0.6rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.1rem; }
  .site-nav a { padding: 0.7rem 0.8rem; border-radius: 10px; }
  .site-nav .nav-cta { margin-top: 0.35rem; }
  .site-nav .nav-cta a { text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.75rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent-ink); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn.light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn.light:hover { background: #f1f7f4; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.micro { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }

/* Sections */
section { padding: 2.75rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); max-width: 40rem; margin: 0; }

/* Hero */
.hero { padding: 3rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero .sub { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-art { max-width: 420px; justify-self: center; width: 100%; }
@media (min-width: 860px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}
.page-hero { padding: 2.75rem 0 1.25rem; }
.page-hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 40rem; margin: 0; }

/* Grid + cards */
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 0.97rem; }
.card-link { display: inline-block; margin-top: 0.75rem; font-weight: 650; }
.kit-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0.2rem 0.6rem; margin-bottom: 0.65rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 0.6rem; }

ul.clean, ol.clean { margin: 0; padding-left: 1.2rem; }
ul.clean li, ol.clean li { margin: 0.4rem 0; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
ul.checks li { position: relative; padding-left: 1.85rem; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f6f5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Notices */
.notice { border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.notice p { margin: 0 0 0.5rem; } .notice p:last-child { margin-bottom: 0; }
.notice h2, .notice h3 { color: var(--ink); }
.notice.calm { background: var(--accent-soft); border-color: #cfe3dc; color: #2b3f39; }
.affiliate-note { font-size: 0.92rem; }
.affiliate-note strong { color: var(--ink); }

/* Kit page */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.jump a { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.jump a:hover { border-color: var(--accent); }
.kit { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.kit-header { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 860px) { .kit-header { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.kit-cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kit-cta p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--muted); }
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; box-shadow: var(--shadow); }
@media (min-width: 860px) { .product { grid-template-columns: 9rem 1fr auto; align-items: start; } }
.product-step { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.product-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: 0 0 0.25rem; }
.product-why { margin: 0; color: var(--muted); font-size: 0.95rem; }
.product-meta { margin: 0.45rem 0 0; font-size: 0.88rem; color: var(--muted); }
.product-meta strong { color: var(--ink); font-weight: 600; }
.otc-note { margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 0.5rem 0.7rem; }
.price-note { font-size: 0.82rem; color: var(--muted); margin: 0.1rem 0 0; }

/* Shop link clusters (stubbed until programs approve) */
.shop-links { display: flex; flex-direction: column; gap: 0.45rem; min-width: 13.5rem; }
.shop-links .shop-label { font-size: 0.78rem; color: var(--muted); margin: 0; }
.shop-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 42px; padding: 0.5rem 0.85rem; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font-weight: 650; font-size: 0.92rem; text-decoration: none; }
.shop-link:hover { background: var(--accent-ink); }
.shop-link.is-stub { background: #f1eee9; border: 1.5px dashed #b9b0a2; color: #4d473f; cursor: not-allowed; }
.shop-link.is-stub:hover { background: #ece8e1; }
.shop-link .soon { font-size: 0.76rem; font-weight: 600; color: #6a6258; white-space: nowrap; }
.shop-link.is-stub .retailer::after { content: ""; }

/* Quiz */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.quiz legend { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.65rem; padding: 0; }
.quiz .q-num { color: var(--accent-ink); margin-right: 0.35rem; }
.options { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .options { grid-template-columns: repeat(2, 1fr); } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label { display: block; height: 100%; padding: 0.75rem 0.95rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); font-size: 0.97rem; }
.option label:hover { border-color: #b9ccc5; }
.option input:checked + label { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.option input:focus-visible + label { outline: 3px solid #1f5a4b; outline-offset: 2px; }
.quiz-error { color: #8a2d1c; font-weight: 600; font-size: 0.92rem; margin: 0 0 0.75rem; }
.quiz-result { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.quiz-result h3 { font-size: 1.35rem; }
.quiz-result .result-list { margin: 0.5rem 0 1rem; }

/* Waitlist / capture */
.capture { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 2rem 1.4rem; }
@media (min-width: 720px) { .capture { padding: 2.5rem 2.25rem; } }
.capture h2 { color: #fff; }
.capture p { color: #eef6f3; }
.capture-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.capture-form input[type="email"] { flex: 1 1 230px; min-height: 48px; padding: 0.75rem 1rem; border-radius: 999px; border: 2px solid transparent; font: inherit; color: var(--ink); }
.capture-form input[type="email"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.capture .consent { flex: 1 1 100%; display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.88rem; color: #eef6f3; margin-top: 0.2rem; }
.capture .consent input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.capture .form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.5em; }
.capture .fine { font-size: 0.82rem; color: #d9ebe5; margin: 0.8rem 0 0; }
.capture a { color: #fff; }
.capture :focus-visible { outline-color: #fff; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.95rem 1.1rem; margin-bottom: 0.6rem; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--accent-ink); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 0.65rem 0 0; color: var(--muted); }
.faq-group { margin-bottom: 2rem; }

/* Prose (legal + long-form) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin: 0.35rem 0; }
.todo-flag { display: inline-block; background: #fff1c9; color: #5a4300; border: 1px dashed #c9a43c; border-radius: 6px; padding: 0.05rem 0.4rem; font-size: 0.88em; font-weight: 600; }

/* Routine table */
.routine { display: grid; gap: 1rem; }
@media (min-width: 720px) { .routine { grid-template-columns: 1fr 1fr; } }
.routine ol { margin: 0; padding-left: 1.2rem; }

/* Footer */
.site-footer { background: #1f2a27; color: #d6dfdc; padding: 2.75rem 0 2.25rem; margin-top: 3rem; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; margin-bottom: 0.5rem; }
.footer-brand img { width: 26px; height: 26px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a9bbb5; margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-legal { border-top: 1px solid #34433f; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.84rem; color: #bccac5; }
.footer-legal p { margin: 0 0 0.6rem; }
.site-footer :focus-visible { outline-color: #9fe0cb; }

/* Toast for stub clicks */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%) translateY(150%); background: var(--ink); color: #fff; padding: 0.8rem 1.1rem; border-radius: 12px; font-size: 0.92rem; max-width: min(92vw, 30rem); box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.25s ease; z-index: 200; }
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* 404 */
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 84px; }
