/* RedLightLog: Dark Room Light. Warm white pages, deep ink, garnet as the one
   accent and a near-infrared plum for depth. A dark hero band with a soft red
   glow, a dose ring and a wavelength bar as the house motifs. Calm, exact,
   premium. Light pages only, on purpose: the dark room is the hero and the
   early-access card. */
:root {
  --bg: #FBF6F4;
  --bg-2: #F3EAE7;
  --bg-3: #EADCD8;
  --panel: #FFFDFC;
  --ink: #1A1114;
  --ink-2: #4A3C41;
  --muted: #7C6B70;
  --line: #EADFDB;
  --line-2: #D9C9C4;
  --garnet: #B42D3B;
  --garnet-deep: #8F1F2C;
  --garnet-soft: #F9E4E5;
  --glow: #FF6B6B;
  --plum: #4B1D2E;
  --plum-deep: #2E1019;
  --plum-soft: #EFE1E7;
  --amber: #E9A23B;
  --amber-deep: #8E5A0E;
  --amber-soft: #FBEFD8;
  --moss: #2F8F6A;
  --moss-deep: #1E6B4E;
  --moss-soft: #DDF1E8;
  --dark: #1A1114;
  --dark-2: #2A1A1F;
  --wave: linear-gradient(90deg, #4B1D2E 0%, #8F1F2C 22%, #B42D3B 40%, #E04E4E 55%, #6B2436 72%, #3A1622 86%, #1A1114 100%);
  --shadow-sm: 0 1px 2px rgba(26, 17, 20, .06), 0 2px 8px -2px rgba(26, 17, 20, .08);
  --shadow: 0 1px 2px rgba(26, 17, 20, .05), 0 14px 34px -14px rgba(75, 29, 46, .28);
  --shadow-lg: 0 2px 4px rgba(26, 17, 20, .05), 0 30px 60px -26px rgba(75, 29, 46, .4);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --body: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--garnet-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--ink); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--garnet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- house motifs: wavelength bar and mono label ---------- */
.wave-bar { display: block; height: 6px; border-radius: 99px; background: var(--wave); }
.wave-bar.thin { height: 3px; }
.mono-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--panel); border: 1px solid var(--ink); border-radius: 6px; padding: 6px 10px; }
.mono-label span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--garnet); margin: 0 9px 2px; }
.mono-label span:first-child { color: var(--garnet-deep); font-weight: 600; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(251, 246, 244, .9); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand b { font-weight: 800; color: var(--garnet); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 8px 16px; }
.site-nav a.nav-cta:hover { background: var(--garnet-deep); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 920px) {
  .nav-toggle { display: grid; gap: 4px; width: 44px; height: 40px; place-content: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; background: var(--panel); line-height: 1.2; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled { cursor: default; transform: none; opacity: .6; }
.btn-lg { font-size: 1.05rem; padding: 14px 24px; border-radius: 14px; }
.btn-sm { font-size: .88rem; padding: 7px 12px; border-radius: 10px; }
.btn-ink, .btn-primary { background: var(--garnet); color: #fff; border-color: var(--garnet); }
.btn-ink:hover, .btn-primary:hover { background: var(--garnet-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-paper { background: var(--panel); }
.btn-outline { background: transparent; border: 1.5px solid currentColor; box-shadow: none; }

/* ---------- layout ---------- */
main { overflow-x: clip; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.kicker, .kicker-pill, .eyebrow { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--garnet-deep); margin: 0 0 10px; }
.kicker::before { content: ''; display: inline-block; width: 18px; height: 4px; margin-right: 10px; vertical-align: 2px; border-radius: 2px; background: var(--wave); }
.kicker a { color: var(--garnet-deep); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #F3CFCF; border-radius: 999px; padding: 5px 12px 5px 8px; }
.kicker-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px rgba(255, 107, 107, .25), 0 0 14px var(--glow); }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.lede { font-size: 1.13rem; color: var(--ink-2); }
.title { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; }
.band { max-width: none; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.band-in { max-width: var(--wrap); margin: 0 auto; }

/* ---------- hero: the dark room ---------- */
.hero-wrap { position: relative; overflow: hidden; background: var(--dark); color: #F6E9E8; }
.hero-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(760px 520px at 78% 48%, rgba(180, 45, 59, .55), transparent 70%), radial-gradient(520px 420px at 92% 10%, rgba(255, 107, 107, .22), transparent 70%), radial-gradient(900px 500px at 10% 100%, rgba(75, 29, 46, .7), transparent 70%); pointer-events: none; }
.hero-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--wave); }
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 40px) clamp(44px, 5vw, 72px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-h { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 18px 0 18px; color: #fff; }
.hero-h em { font-style: normal; color: #FF9E9E; }
.hero-sub { font-size: 1.17rem; color: #D9C7C8; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero-note { font-size: .9rem; color: #B8A3A6; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.hero-note span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); margin-right: 7px; vertical-align: 1px; }
.hero-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #F6E9E8; text-decoration: none; font-size: .9rem; font-weight: 600; }
.hero-tools a:hover { border-color: #fff; color: #fff; }
.hero-tools i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 .66rem var(--mono); color: #fff; font-style: normal; background: var(--garnet); }
.hero-tools li:nth-child(2) i { background: var(--plum); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { order: 2; } }

/* the dose ring */
.ring-zone { display: grid; justify-items: center; gap: 14px; }
.ring { position: relative; width: min(360px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .ring-track { stroke: rgba(255, 255, 255, .1); }
.ring .ring-arc { stroke: url(#ringGrad); filter: drop-shadow(0 0 10px rgba(255, 107, 107, .55)); transition: stroke-dashoffset .12s linear; }
.ring-center { position: relative; text-align: center; padding: 10px; }
.ring-value { font: 600 clamp(2.6rem, 7vw, 4rem)/1 var(--mono); letter-spacing: -.04em; color: #fff; display: block; }
.ring-unit { font: 500 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #FF9E9E; display: block; margin-top: 6px; }
.ring-meta { font-size: .9rem; color: #B8A3A6; margin: 10px 0 0; }
.ring-meta b { color: #fff; font-family: var(--mono); font-weight: 500; }
.ring-caption { margin: 0; font-size: .86rem; color: #B8A3A6; text-align: center; max-width: 40ch; }
.spectrum { width: min(360px, 80vw); display: grid; gap: 6px; }
.spectrum .wave-bar { height: 10px; box-shadow: 0 0 18px rgba(255, 107, 107, .35); }
.spectrum-ticks { display: flex; justify-content: space-between; font: 500 .66rem var(--mono); letter-spacing: .06em; color: #B8A3A6; text-transform: uppercase; }

/* ---------- stat strip ---------- */
.stats { max-width: var(--wrap); margin: -26px auto 0; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 2; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; font-weight: 400; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.stat:hover { border-color: var(--line-2); color: inherit; }
.stat b { font: 500 1.5rem/1.1 var(--mono); letter-spacing: -.03em; color: var(--garnet-deep); min-width: 2.4ch; }
.stat p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; margin-top: 18px; } }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; }
.tool-card { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; font-weight: 400; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tool-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.tool-card .tool-art { aspect-ratio: 16 / 9; background: var(--dark); display: grid; place-items: center; position: relative; overflow: hidden; }
.tool-card .tool-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 60% 50%, rgba(180, 45, 59, .6), transparent 70%); }
.tool-card .tool-art svg { position: relative; width: 44%; height: auto; }
.tool-card h3 { font-size: 1.45rem; margin: 18px 22px 6px; }
.tool-card p { margin: 0 22px 14px; color: var(--ink-2); }
.tool-go { margin: auto 22px 22px; font-weight: 700; color: var(--garnet-deep); font-family: var(--display); }
.tool-go::after { content: ' \2192'; }
.tool-badge { position: absolute; top: 14px; left: 14px; background: var(--panel); border-radius: 6px; padding: 3px 9px; font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); box-shadow: var(--shadow-sm); }
.tool-plum .tool-go { color: var(--plum); } .tool-plum .tool-art::before { background: radial-gradient(60% 70% at 60% 50%, rgba(120, 50, 80, .7), transparent 70%); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; position: relative; }
.step .num { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; font: 500 1rem var(--mono); color: #fff; background: var(--garnet); box-shadow: 0 0 0 6px var(--garnet-soft); }
.step-2 .num { background: var(--plum); box-shadow: 0 0 0 6px var(--plum-soft); } .step-3 .num { background: var(--amber-deep); box-shadow: 0 0 0 6px var(--amber-soft); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.steps-art { margin: 0 auto 30px; max-width: 920px; }
.steps-art img { border-radius: 22px; box-shadow: var(--shadow); }

/* ---------- guide cards ---------- */
.guide-grid { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.guide-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card > div { padding: 14px 18px 18px; }
.guide-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.guide-card h3 a, .guide-card h3 .link-pending { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ''; position: absolute; inset: 0; }
.guide-card h3 a:hover { color: var(--garnet-deep); }
.tag { align-self: flex-start; display: inline-block; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--garnet-deep); background: var(--garnet-soft); border-radius: 4px; padding: 3px 8px; margin: 0 0 8px; }
.link-pending { color: inherit; font-weight: 600; }
.empty-guides { text-align: center; color: var(--muted); padding: 10px 0 20px; }

/* ---------- honesty, faq ---------- */
.honest-wrap { padding-top: 10px; }
.honesty { max-width: 900px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px clamp(20px, 4vw, 38px) 18px; position: relative; overflow: hidden; }
.honesty::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--wave); }
.honesty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 14px 0 6px; padding: 0; list-style: none; }
.honesty-grid li { padding: 12px 14px 12px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); position: relative; font-size: .96rem; color: var(--ink-2); }
.honesty-grid li::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--garnet); }
.honesty-grid li.is-not::before { background: var(--plum); }
.honesty-grid li b { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 2px; }
.honesty-note { font-size: .92rem; color: var(--ink-2); background: var(--garnet-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0 0; }
.honesty-note b { color: var(--garnet-deep); }
@media (max-width: 620px) { .honesty-grid { grid-template-columns: 1fr; } }
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 18px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font: 500 1.1rem/1 var(--body); color: var(--ink); }
.faq-item[open] summary::after { content: '\2212'; background: var(--garnet-soft); color: var(--garnet-deep); }
.faq-a { padding: 0 18px 8px; color: var(--ink-2); }

/* ---------- CTA / waitlist: the dark room again ---------- */
.cta { width: calc(100% - 32px); max-width: 1000px; margin: clamp(30px, 5vw, 64px) auto; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; border-radius: 26px; position: relative; overflow: hidden; background: var(--dark); color: #EFE4E3; box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px 320px at 90% 20%, rgba(180, 45, 59, .55), transparent 70%), radial-gradient(400px 300px at 0% 100%, rgba(75, 29, 46, .8), transparent 70%); pointer-events: none; }
.cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--wave); }
.cta > * { position: relative; }
.cta-art { width: 150px; height: 150px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #B42D3B, #4B1D2E 70%); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 40px rgba(255, 107, 107, .25); }
.cta-art img { width: 150px; height: 150px; border-radius: 22px; object-fit: cover; }
.cta-art svg { width: 96px; height: 96px; }
.cta-kicker { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #FF9E9E; margin: 0; }
.cta-h { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; color: #fff; }
.cta-sub { color: #CDBBBC; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-weight: 500; padding: 13px 16px; border: 1px solid #4E3A40; border-radius: 12px; background: #2A1A1F; color: #fff; }
.waitlist input[type=email]::placeholder { color: #9B868A; }
.waitlist input[type=email]:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 4px rgba(255, 107, 107, .25); }
.cta .btn-ink { background: var(--glow); color: var(--ink); border-color: var(--glow); }
.cta .btn-ink:hover { background: #FF8A80; color: var(--ink); }
.waitlist-msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 700; min-height: 1.4em; }
.waitlist-msg.ok { color: #8FE3BC; }
.waitlist-msg.err { color: #FFB4A3; }
.cta-fine { font-size: .88rem; color: #A89194; margin: 6px 0 0; }
.cta-fine a { color: #fff; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; } .cta-art, .cta-art img { width: 92px; height: 92px; border-radius: 18px; } .cta-art svg { width: 60px; height: 60px; } .waitlist .btn { width: 100%; } }

/* ---------- prose (posts and pages) ---------- */
.prose { max-width: 820px; }
.prose > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose .title { margin-top: 6px; }
.byline { font: 500 .78rem var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; letter-spacing: .02em; }
.byline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--garnet); box-shadow: 0 0 0 3px var(--garnet-soft); }
.post-hero, .page-hero { margin: 24px auto 32px; max-width: 820px !important; }
.post-hero img, .page-hero img { border-radius: 22px; box-shadow: var(--shadow-lg); background: var(--panel); }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin: 1.9em auto .55em; }
.prose h2::before { content: ''; display: block; width: 34px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--wave); }
.prose h3 { font-size: 1.28rem; margin: 1.5em auto .45em; }
.prose p, .prose li { font-size: 1.08rem; color: #2E2225; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--garnet-deep); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line-2); margin: 2em auto; }
.prose img { border-radius: 16px; }
.prose code { font-family: var(--mono); background: var(--bg-2); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.story-fig { margin: 32px auto; max-width: 820px !important; }
.story-fig img { border-radius: 20px; box-shadow: var(--shadow); background: var(--panel); }
.story-fig figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.45; font-family: var(--mono); letter-spacing: .01em; }
.takeaways { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 22px 26px 12px; margin: 28px auto 34px; overflow: hidden; }
.takeaways::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wave); }
.takeaways h2 { margin: 2px 0 10px !important; font-size: .76rem !important; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--garnet-deep); font-weight: 500; }
.takeaways h2::before { display: none !important; }
.takeaways ul { list-style: none; padding-left: 0; }
.takeaways li { position: relative; padding-left: 32px; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: var(--garnet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%238F1F2C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.callout { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 4px 22px; margin: 26px auto; background: var(--panel); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--garnet); }
.callout-label { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--garnet-deep); margin: 0 0 6px; }
.callout-quick { background: var(--garnet-soft); border-color: #F0CCCF; }
.callout-quick::before { background: var(--wave); }
.callout-tip::before { background: var(--moss); } .callout-tip .callout-label { color: var(--moss-deep); }
.callout-warn::before { background: var(--amber); } .callout-warn { background: #FFF8EC; border-color: #F2DDB4; } .callout-warn .callout-label { color: var(--amber-deep); }
.callout-fact::before { background: var(--plum); } .callout-fact { background: var(--plum-soft); } .callout-fact .callout-label { color: var(--plum); }
.callout-try::before { background: var(--ink); } .callout-try .callout-label { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 24px auto; background: var(--panel); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap th { background: var(--bg-2); text-align: left; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:first-child td { border-top: 0; }
.disclaimer { margin-top: 36px; }
.section-sub { margin-top: 48px; }
.section-sub .h2 { font-size: 1.6rem; }
.sources a { word-break: break-word; font-weight: 500; }
.plainlist { padding-left: 1.2em; }
.four04 { text-align: left; }
.four04-art { width: 120px; height: 120px; margin: 0 0 16px; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #B42D3B, #4B1D2E 70%); }
.four04-art svg { width: 72px; height: 72px; }

/* ---------- blog index ---------- */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; height: 100%; font-weight: 400; }
.post-card-link:hover { color: var(--ink); }
.post-card-link img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.25rem; margin: 0 0 8px; line-height: 1.25; }
.post-card p { color: var(--ink-2); font-size: .96rem; margin: 0 0 12px; }
.post-card time { margin-top: auto; font: 500 .74rem var(--mono); color: var(--muted); letter-spacing: .03em; }
.blog-empty { text-align: center; }
.blog-empty .wave-bar { width: 120px; margin: 0 auto 16px; }

/* ---------- tool pages ---------- */
.tool-page { padding-bottom: 20px; }
.tool-head { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.tool-mount { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(14px, 3vw, 28px); }
.tool-copy { padding-top: 10px; }
.t-field { display: grid; gap: 4px; margin: 0 0 12px; }
.t-label { font-weight: 700; font-size: .92rem; font-family: var(--display); }
.t-field select, .t-field input[type=number], .t-field input[type=date], .t-field input[type=text] { font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--ink); width: 100%; min-width: 0; font-family: var(--mono); }
.t-field select:focus, .t-field input:focus { outline: none; border-color: var(--garnet); box-shadow: 0 0 0 4px rgba(180, 45, 59, .16); }
.t-note { font-size: .86rem; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 700; font-size: .88rem; border: 0; background: transparent; padding: 7px 12px; cursor: pointer; color: var(--ink-2); border-radius: 9px; font-family: var(--display); }
.seg button[aria-pressed=true] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .t-row { grid-template-columns: minmax(0, 1fr); } }
.t-range { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.t-range input[type=range] { width: 100%; accent-color: var(--garnet); }
.t-range output { font: 500 1rem var(--mono); min-width: 5ch; text-align: right; }

/* dose calculator */
.dose { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .dose { grid-template-columns: minmax(0, 1fr); } }
.dose-form, .dose-out, .sched-form, .sched-out { min-width: 0; }
.tool-mount .t-field, .tool-mount .t-row, .tool-mount .t-range { min-width: 0; }
.tool-mount select { max-width: 100%; }
.dose-form h2, .dose-out h2 { font-size: 1.25rem; margin: 0 0 12px; }
.dose-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.dose-presets button { font: 600 .8rem var(--body); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.dose-presets button:hover { border-color: var(--ink); color: var(--ink); }
.dose-hero { background: var(--dark); color: #F6E9E8; border-radius: 20px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.dose-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 50%, rgba(180, 45, 59, .55), transparent 70%); pointer-events: none; }
.dose-hero > * { position: relative; }
.dose-hero .ring { width: 150px; }
.dose-hero .ring circle { stroke-width: 9; }
.dose-hero .ring-value { font-size: 2.2rem; }
.dose-big { margin: 0; }
.dose-big b { display: block; font: 500 2.1rem/1.1 var(--mono); letter-spacing: -.03em; color: #fff; }
.dose-big span { display: block; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #FF9E9E; margin-top: 4px; }
.dose-formula { margin: 10px 0 0; font: 500 .86rem/1.5 var(--mono); color: #D9C7C8; word-break: break-word; }
.dose-formula b { color: #fff; font-weight: 500; }
.dose-verdict { margin: 8px 0 0; font-size: .95rem; color: #F6E9E8; }
@media (max-width: 560px) { .dose-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .dose-hero > div { min-width: 0; max-width: 100%; } }
.dose-scale { margin: 16px 0 0; }
.dose-scale-bar { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--bg-3) 0 5%, var(--garnet-soft) 5% 20%, #F2B9BE 20% 55%, var(--garnet) 55% 100%); border: 1px solid var(--line-2); }
.dose-scale-bar i { position: absolute; top: -6px; width: 4px; height: 26px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); transition: left .15s ease; box-shadow: 0 0 0 3px var(--panel); }
.dose-scale-ticks { display: flex; justify-content: space-between; font: 500 .66rem var(--mono); letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.dose-dist { margin: 18px 0 0; }
.dose-dist h3, .dose-targets h3 { font-size: 1.05rem; margin: 0 0 8px; }
.dose-bars { display: grid; gap: 8px; }
.dose-bar { display: grid; grid-template-columns: 7ch 1fr 9ch; gap: 10px; align-items: center; font: 500 .82rem var(--mono); color: var(--ink-2); }
.dose-bar i { display: block; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--plum), var(--garnet)); min-width: 4px; transition: width .2s ease; }
.dose-bar.now { color: var(--ink); font-weight: 600; }
.dose-bar.now i { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--garnet); }
.dose-targets { margin: 18px 0 0; }
.dose-targets table { font-size: .9rem; min-width: 640px; }
.dose-targets td:first-child { min-width: 220px; }
.dose-targets .in { color: var(--moss-deep); font-weight: 700; } .dose-targets .under { color: var(--amber-deep); font-weight: 700; } .dose-targets .over { color: var(--garnet-deep); font-weight: 700; }
.dose-targets td small { display: block; color: var(--muted); font-size: .78rem; }
.dose-src { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.dose-src summary { cursor: pointer; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dose-src ul { padding-left: 1.2em; margin: 6px 0 0; }
.dose-honest { font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 14px; }

/* schedule builder */
.sched { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .sched { grid-template-columns: minmax(0, 1fr); } }
.sched-form h2, .sched-out h2 { font-size: 1.25rem; margin: 0 0 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days label { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font: 600 .78rem var(--body); color: var(--ink-2); }
.days label:has(input:checked) { background: var(--garnet-soft); border-color: var(--garnet); color: var(--garnet-deep); }
.days input { accent-color: var(--garnet); margin: 0; }
.sched-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.sched-sum div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sched-sum b { display: block; font: 500 1.4rem/1.1 var(--mono); color: var(--garnet-deep); }
.sched-sum span { font-size: .78rem; color: var(--muted); }
@media (max-width: 480px) { .sched-sum { grid-template-columns: 1fr 1fr 1fr; } .sched-sum b { font-size: 1.1rem; } }
.sched-warn { font-size: .9rem; background: var(--amber-soft); border: 1px solid #F2DDB4; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; color: var(--ink-2); }
.cal { display: grid; gap: 10px; }
.cal-week { display: grid; grid-template-columns: 5.5ch repeat(7, 1fr); gap: 4px; align-items: stretch; }
.cal-wk { font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: grid; align-content: center; }
.cal-day { border: 1px solid var(--line); border-radius: 9px; background: var(--bg); min-height: 58px; padding: 6px 6px 5px; font-size: .72rem; color: var(--muted); display: grid; align-content: start; gap: 2px; }
.cal-day.on { background: var(--dark); color: #F6E9E8; border-color: var(--dark); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .3); }
.cal-day.on b { color: #FF9E9E; font: 500 .82rem var(--mono); }
.cal-day small { font: 500 .62rem var(--mono); letter-spacing: .04em; }
.cal-head { display: grid; grid-template-columns: 5.5ch repeat(7, 1fr); gap: 4px; font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-head span { text-align: center; }
@media (max-width: 560px) { .cal-day { min-height: 46px; padding: 4px; } .cal-day small { display: none; } }
.sched-basis { margin: 16px 0 0; font-size: .92rem; color: var(--ink-2); }
.sched-basis h3, .sched-log h3 { font-size: 1.05rem; margin: 0 0 6px; }
.sched-log { margin: 16px 0 0; }
.sched-log ul { padding-left: 1.2em; margin: 0; font-size: .92rem; color: var(--ink-2); }
.sched-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: #D8CACB; margin-top: 40px; position: relative; overflow: hidden; }
.site-foot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(180, 45, 59, .25), transparent 70%); pointer-events: none; }
.site-foot::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wave); }
.site-foot > * { position: relative; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 42px; height: 42px; border-radius: 12px; }
.foot-brand p { margin: 0; color: #B8A6A8; font-size: .95rem; }
.foot-brand strong { color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.site-foot a { color: #fff; font-weight: 500; }
.foot-links { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.foot-links a { text-decoration: none; color: #D8CACB; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-h { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #FF9E9E; margin: 0 0 4px; }
.foot-safety { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 16px; }
.foot-safety p { margin: 0; font-size: .86rem; color: #CDBBBC; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; }
.foot-safety b { color: #fff; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 36px; font-size: .8rem; color: #957F83; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media print {
  .site-head, .site-foot, .cta, .tool-copy, .sched-actions, .nav-toggle, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .tool-mount { box-shadow: none; border: 0; padding: 0; }
  .cal-day.on { background: #eee; color: #000; border-color: #000; box-shadow: none; }
  .cal-day.on b { color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
