/* ============================================================================
   Stack — mono design system (matches the app's Mono studio kit)
   One stylesheet for every page: landing, library, tools, guides, legal.
   Palette: near-black bg, neutral panels, ink-on-dark, hairline borders.
   No color accents — the brand IS the monochrome.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-subset.woff2") format("woff2"),
       url("../fonts/InterVariable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0f;          /* app Mono dark bg */
  --bg-soft: #101015;
  --panel: #18181e;       /* app Mono dark panel */
  --panel-2: #1e1e25;
  --line: #2a2a30;        /* hairline */
  --line-soft: #232329;
  --ink: #f4f4f5;         /* primary text */
  --mut: #a0a2aa;         /* secondary text */
  --dim: #6e7077;         /* tertiary */
  --disc-1: #c9ccd2;      /* brand mark discs */
  --disc-2: #6b6e76;
  --disc-3: #f4f4f5;      /* bottom disc flips to ink on dark */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --maxw-prose: 760px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .85; }
::selection { background: var(--ink); color: var(--bg); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.prose-w { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------------------------ type -- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.07; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mut);
}
.display {
  font-size: clamp(46px, 8.5vw, 96px);
  font-weight: 800; letter-spacing: -0.045em; line-height: .98;
}
.lead { color: var(--mut); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--mut); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); opacity: 1; }
.nav-cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  transition: transform .15s ease;
}
.nav-cta:hover { opacity: 1; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }

/* mobile nav */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 22px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { padding: clamp(64px, 10vw, 120px) 0 26px; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 52ch; margin: 26px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 14px;
  padding: 11px 18px; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; }
.sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.sb-top { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.sb-main { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.store-badge.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero-note { color: var(--dim); font-size: 13.5px; margin-top: 16px; max-width: 46ch; }
.hero-note a { color: var(--mut); text-decoration: underline; text-underline-offset: 3px; }

/* waitlist capture (hero) */
.waitlist { display: flex; gap: 10px; margin-top: 22px; max-width: 420px; flex-wrap: wrap; }
.waitlist .input { flex: 1 1 200px; }
.waitlist .btn { flex: none; }

/* phone preview (pure HTML/CSS mini Today screen) */
.phone-prev {
  width: min(330px, 86vw); margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.scr { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 24px; padding: 22px 18px 18px; }
.scr-meta { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.scr h3 { font-size: 26px; margin: 4px 0 12px; }
.scr-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--mut);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  margin-bottom: 14px;
}
.scr-pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.scr-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 4px; border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.scr-row .ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--mut);
}
.scr-row b { font-weight: 650; }
.scr-row .ti { margin-left: auto; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.scr-row.done b { color: var(--mut); text-decoration: line-through; text-decoration-thickness: 1px; }
.scr-strk {
  margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px;
}
.scr-strk .l { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.scr-strk .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* trust line */
.trust {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  padding: 30px 0 0;
  color: var(--mut); font-size: 14px; font-weight: 600;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- sections -- */
.section-pad { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); margin: 14px 0 14px; }
.section-head p { color: var(--mut); font-size: 17px; margin: 0; }
.hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-2px); }
.feature .tile {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .tile svg { width: 20px; height: 20px; color: var(--ink); }
.feature h3 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.55; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
@media (max-width: 1020px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.shot {
  border: 1px solid var(--line-soft); border-radius: 22px; overflow: hidden;
  background: var(--panel); cursor: zoom-in; padding: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.shot:hover { transform: translateY(-3px); border-color: var(--line); }
.shot img { width: 100%; height: auto; }
.gallery-hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 8, 11, .94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 94vw; width: auto; border-radius: 22px; border: 1px solid var(--line); }
.lb-close {
  position: absolute; top: 16px; right: 22px;
  background: none; border: 0; color: var(--mut);
  font-size: 34px; line-height: 1; cursor: pointer;
}

/* big CTA band */
.cta-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  text-align: center;
  padding: clamp(64px, 9vw, 110px) 22px;
}
.cta-band h2 { font-size: clamp(34px, 6vw, 64px); letter-spacing: -.04em; }
.cta-band p { color: var(--mut); font-size: 17px; max-width: 46ch; margin: 18px auto 30px; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  border-radius: 999px; padding: 12px 22px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* --------------------------------------------------------------- panels -- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
.panel-2 { background: var(--panel-2); }

/* --------------------------------------------------------------- forms -- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.field .hint { color: var(--dim); text-transform: none; letter-spacing: 0; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mut); }
.textarea { resize: vertical; min-height: 110px; }
.form-msg { font-size: 13.5px; color: var(--mut); }

/* =================================================================== LIBRARY */
.lib-head { padding: clamp(56px, 8vw, 92px) 0 10px; }
.lib-head h1 { font-size: clamp(36px, 6vw, 64px); max-width: 14ch; }
.lib-search {
  margin: 30px 0 6px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.lib-search .input { max-width: 420px; }
.lib-count { color: var(--dim); font-size: 13.5px; }
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.cat-chip {
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--mut); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.cat-chip:hover { color: var(--ink); }
.cat-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.lib-section { padding: 26px 0 8px; }
.lib-section h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); margin: 18px 0 14px;
}
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 940px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .lib-grid { grid-template-columns: 1fr; } }
.comp-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 19px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.comp-card:hover { border-color: var(--line); transform: translateY(-2px); opacity: 1; }
.comp-card h3 { font-size: 16.5px; letter-spacing: -.015em; margin-bottom: 5px; }
.comp-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.comp-card p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.5; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mut); border: 1px solid var(--line);
  border-radius: 999px; padding: 2.5px 9px;
}

/* compound detail */
.comp-hero { padding: clamp(48px, 7vw, 80px) 0 8px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 22px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--mut); }
.comp-hero h1 { font-size: clamp(34px, 5.6vw, 58px); }
.comp-aka { color: var(--dim); font-size: 14.5px; margin-top: 12px; }
.comp-cols {
  display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(24px, 4vw, 48px);
  padding: 34px 0 70px; align-items: start;
}
@media (max-width: 900px) { .comp-cols { grid-template-columns: 1fr; } }

.facts { position: sticky; top: calc(var(--nav-h) + 18px); }
.facts h2 { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.facts table { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts td { padding: 10.5px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.facts td:first-child { color: var(--mut); width: 46%; padding-right: 10px; }
.facts td:last-child { font-weight: 650; }
.facts tr:last-child td { border-bottom: 0; }

.decay { margin-top: 18px; }
.decay-bar { display: flex; gap: 3px; margin-top: 10px; }
.decay-bar i {
  flex: 1; height: 34px; border-radius: 5px;
  background: var(--ink); opacity: var(--o, 1);
}
.decay-cap { display: flex; justify-content: space-between; color: var(--dim); font-size: 11.5px; margin-top: 7px; }

.comp-body h2 { font-size: 21px; letter-spacing: -.02em; margin: 34px 0 12px; }
.comp-body h2:first-child { margin-top: 0; }
.comp-body p { color: var(--mut); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.comp-body p strong { color: var(--ink); }
.callout {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 15px 17px; font-size: 14px; color: var(--mut); line-height: 1.6;
  margin: 18px 0;
}
.callout b { color: var(--ink); }
.related { margin: 56px 0 0; }
.related h2 { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }

/* track-it CTA inside detail pages */
.track-cta {
  margin-top: 26px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px;
}
.track-cta h3 { font-size: 16px; margin-bottom: 6px; }
.track-cta p { color: var(--mut); font-size: 13.5px; margin: 0 0 14px; line-height: 1.55; }

/* ===================================================================== TOOL */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
@media (max-width: 880px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-out { text-align: center; padding: 30px 22px; }
.tool-out .big { font-size: clamp(44px, 7vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tool-out .unit { color: var(--mut); font-size: 15px; font-weight: 600; margin-top: 6px; }
.tool-out .sub { color: var(--dim); font-size: 13.5px; margin-top: 18px; line-height: 1.6; }
.syringe { margin: 26px auto 6px; max-width: 320px; }
.syr-track { height: 14px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.syr-fill { height: 100%; background: var(--ink); width: 0%; border-radius: 999px; transition: width .25s ease; }
.syr-cap { display: flex; justify-content: space-between; color: var(--dim); font-size: 11.5px; margin-top: 6px; }

/* =================================================================== PROSE */
.prose { padding: 26px 0 80px; }
.prose h1 { font-size: clamp(32px, 5.5vw, 54px); margin: 18px 0 18px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--mut); font-size: 15.5px; line-height: 1.75; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 15px; }
.prose li { margin-bottom: 7px; }
.prose strong, .prose b { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.prose th { text-align: left; color: var(--dim); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--mut); }
.updated { color: var(--dim); font-size: 13px; }
.back-link { color: var(--mut); font-size: 14px; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 650; font-size: 16px; padding: 17px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--mut); font-size: 15px; line-height: 1.7; padding: 0 0 18px; max-width: 64ch; }

/* ================================================================== FOOTER */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); margin-top: 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px; padding: 54px 22px 40px;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--mut); font-size: 14px; }
.footer li a:hover { color: var(--ink); }
.footer .tag { border: 0; padding: 0; text-transform: none; letter-spacing: 0; color: var(--mut); font-size: 14px; font-weight: 500; line-height: 1.6; margin-top: 12px; max-width: 30ch; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding: 18px 22px 26px; color: var(--dim); font-size: 13px;
}
.footer-bottom a { color: var(--dim); }
.disclaimer-band {
  border-top: 1px solid var(--line-soft);
  padding: 18px 22px; color: var(--dim); font-size: 12.5px; line-height: 1.6;
  max-width: var(--maxw); margin: 0 auto;
}

/* ================================================================== LEGAL */
.legal { max-width: 760px; margin: 0 auto; padding: 50px 22px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--mut); font-size: 15px; line-height: 1.7; }
.legal .short { color: var(--mut); }

/* ================================================================= REVEAL */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--mut); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
