/* Wellness Sage tokens. The only file allowed to contain color literals. */
:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --border: #e8ddc9;
  --sage: #9caf88;
  --sage-dark: #5c7c5c;
  --water: #7c9caf;
  --gold: #caa86a;
  --purple: #a87caf;
  --warm: #c8907c;
  --text: #3d2f24;
  --muted: #6f5a47;
  --accent: #4f6e4f;
  --on-accent: #ffffff;
  --tint: #eef2e8;
  --gold-tint: #f6ecd8;
  --focus: #2f5d8a;
  --font-display: Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a15;
    --card: #2a231c;
    --border: #4a3e31;
    --text: #f1e9de;
    --muted: #cdbca6;
    --accent: #a9bd96;
    --on-accent: #1f1a15;
    --tint: #2c3327;
    --gold-tint: #3a3022;
    --focus: #8fc1ee;
  }
}

/* Site styles. Colors come only from tokens.css variables. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font-body); }
h1, h2, h3, .logo-text { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }
.skip-link { position: absolute; left: 8px; top: -100px; background: var(--card); color: var(--text); padding: 8px 12px; border: 2px solid var(--accent); z-index: 10; }
.skip-link:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: var(--text); text-decoration: none; display: inline-block; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.logo-text { color: var(--text); font-size: 1.2rem; font-weight: 700; }
.nav-list, .foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav-list a, .foot-list a { display: inline-block; padding: 8px 10px; min-height: 40px; text-decoration: none; color: var(--text); border-radius: 8px; }
.nav-list a:hover, .foot-list a:hover { background: var(--tint); }
.nav-list a[aria-current="page"] { background: var(--tint); color: var(--accent); font-weight: 600; }

.hero, .pagehead { padding: 48px 0 32px; background: var(--tint); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); margin: 0 0 .5em; font-weight: 600; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 42rem; }
.small { font-size: .875rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 40px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.alt .card { background: var(--bg); }
.plan .price { font-family: var(--font-display); font-size: 1.2rem; color: var(--muted); border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 8px 0; }
.plan ul { padding-left: 1.2em; margin: 0 0 1em; }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: .6em; }
.more { margin-top: 16px; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 12px 20px; min-height: 44px; border-radius: 999px; border: 2px solid var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-disabled { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); cursor: not-allowed; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); }
.badge-gold { background: var(--gold-tint); color: var(--text); border-color: var(--gold); }
.badge-sage { background: var(--tint); color: var(--text); border-color: var(--sage); }

.banner { border: 1px solid var(--gold); background: var(--gold-tint); border-left-width: 6px; border-radius: 10px; padding: 12px 16px; margin: 0 0 24px; }

.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 10px 0; font-weight: 600; min-height: 44px; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { border-bottom: 1px solid var(--border); padding: 16px 0; }
.log h2 { font-size: 1.25rem; margin-bottom: .2em; }
.meta { color: var(--muted); font-size: .9rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.meta-list dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.meta-list dd { margin: 0; font-weight: 600; }
.back { padding-bottom: 40px; }

.waitlist { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; max-width: 30rem; }
.alt .waitlist { background: var(--bg); }
.form-title { font-weight: 600; margin-bottom: .6em; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 4px; }
.waitlist input[type="email"] { width: 100%; font: inherit; padding: 10px 12px; min-height: 44px; border-radius: 8px; border: 2px solid var(--muted); background: var(--bg); color: var(--text); margin-bottom: 12px; }

.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.footer-row p { margin: 0; max-width: 34rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .badge, .banner, .card { border: 2px solid CanvasText; } }

/* Legal documents */
.legal-text h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-text h3 { font-size: 1.1rem; margin-top: 1.2em; }
.legal-text .anchor { font-size: .8em; color: var(--muted); text-decoration: none; opacity: .6; margin-left: .3em; }
.legal-text h2:hover .anchor, .legal-text .anchor:focus { opacity: 1; }
.legal-text blockquote { border-left: 4px solid var(--sage); background: var(--tint); margin: 1em 0; padding: 4px 16px; border-radius: 0 8px 8px 0; }
.legal-text code { font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 36rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--tint); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 16px; margin: 0 0 24px; }
.toc-title { font-weight: 600; margin: 4px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
.toc a { display: inline-block; padding: 4px 0; min-height: 24px; }
.legal-index { list-style: none; padding: 0; }
.legal-index li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.legal-text h2, .legal-text h3 { scroll-margin-top: 16px; }

@media print {
  :root { color-scheme: light; }
  body { background: Canvas; color: CanvasText; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .toc, .anchor, .pagehead .lede { display: none !important; }
  .banner { border: 2px solid CanvasText; background: Canvas; color: CanvasText; break-inside: avoid; }
  .banner::after { content: ""; }
  .wrap, .narrow { max-width: none; padding: 0; }
  .legal-text h2, .legal-text h3 { break-after: avoid; }
  .legal-text p, .legal-text li, .table-wrap tr { break-inside: avoid; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; font-size: 9pt; }
  .legal-text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a { color: CanvasText; text-decoration: underline; }
}

/* Product screenshots: figures with captions. Colors come from tokens only. */
.shots { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin: 16px 0; }
.shot { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 12px 16px; font-size: .95rem; color: var(--text); }
