/* The product-page design (2026-11 redesign): Sylvaris, Understory and
   Everfall share one skeleton with Greenlit Audio's site (promo bar, page nav,
   big display hero, stat strip, numbered steps, pricing cards, FAQ, closing
   call) but each wears its own palette. Loaded AFTER style.css on those three
   pages only, so the demo widgets, the shared product strip and footer, and
   every other page (guide, beta, licences, thanks...) keep style.css alone.

   Class names here are new on purpose (kicker, display, section-title...) so
   nothing collides with style.css's older .eyebrow/.band/.hero-lede rules.

   One display face: Bricolage Grotesque 700, self-hosted by style.css. No
   web-font requests to third parties. */

/* ---- Palettes -------------------------------------------------------------
   Each theme also re-points style.css's own tokens (--text, --accent...) so
   the forms, chips and demo controls it styles match the page they sit on. */
.theme-sylvaris {
  --bg: #05080a;
  --band-bg: #080e0c;
  --card: #0c1411;
  --card-2: #0e1814;
  --ink: #e4f2ea;
  --ink-2: #c5ddd1;
  --muted: #a9c7b9;
  --dim: #8fb3a3;
  --line: rgba(228, 242, 234, 0.08);
  --line-2: rgba(228, 242, 234, 0.18);
  --accent: #6fe8b5;
  --accent-ink: #05080a;
  --glow: rgba(111, 232, 181, 0.4);
  --warm: #e8c97a;
  --deco: rgba(111, 232, 181, 0.09);
}
.theme-understory {
  --bg: #0b0912;
  --band-bg: #0f0c17;
  --card: #141020;
  --card-2: #161122;
  --ink: #ece8f5;
  --ink-2: #d2cbe3;
  --muted: #b8aecd;
  --dim: #a99fc0;
  --line: rgba(236, 232, 245, 0.08);
  --line-2: rgba(236, 232, 245, 0.18);
  --accent: #b4a0ff;
  --accent-ink: #0b0912;
  --glow: rgba(180, 160, 255, 0.4);
  --warm: #eda3c2;
  --deco: rgba(180, 160, 255, 0.08);
  --panel: #141020;
  --surface: #141020;
  --text: #ece8f5;
  --text-dim: #a99fc0;
  --border: rgba(236, 232, 245, 0.12);
}
.theme-everfall {
  --bg: #04090c;
  --band-bg: #071116;
  --card: #0b1a20;
  --card-2: #0d1e25;
  --ink: #e3f1f4;
  --ink-2: #c6dde2;
  --muted: #aac7ce;
  --dim: #9bbcc4;
  --line: rgba(227, 241, 244, 0.08);
  --line-2: rgba(227, 241, 244, 0.18);
  --accent: #5fc3d6;
  --accent-ink: #04090c;
  --glow: rgba(95, 195, 214, 0.4);
  --warm: #bff3ff;
  --deco: rgba(191, 243, 255, 0.07);
  --panel: #0b1a20;
  --surface: #0b1a20;
  --text: #e3f1f4;
  --text-dim: #9bbcc4;
  --border: rgba(227, 241, 244, 0.12);
}

/* Sapling: young-leaf green, with the blossom violet of the app's thicket pad. */
.theme-sapling {
  --bg: #070b08;
  --band-bg: #0a100b;
  --card: #0f1710;
  --card-2: #121b13;
  --ink: #e8f3e2;
  --ink-2: #cadfc2;
  --muted: #adc8a4;
  --dim: #93b08a;
  --line: rgba(232, 243, 226, 0.08);
  --line-2: rgba(232, 243, 226, 0.18);
  --accent: #a6e36f;
  --accent-ink: #070b08;
  --glow: rgba(166, 227, 111, 0.38);
  --warm: #c39bff;
  --deco: rgba(166, 227, 111, 0.08);
  --panel: #0f1710;
  --surface: #0f1710;
  --text: #e8f3e2;
  --text-dim: #93b08a;
  --border: rgba(232, 243, 226, 0.12);
}

body.site-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}
/* A modal pop-up holds the page still behind it. */
html:has(dialog[open]) { overflow: hidden; }

.site-page a { color: var(--accent); }
.site-page img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ---- Promo bar ------------------------------------------------------------ */
.promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid color-mix(in srgb, var(--warm) 25%, transparent);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warm);
  text-align: center;
}
.promo__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 10px color-mix(in srgb, var(--warm) 80%, transparent);
}
.promo .buy-price__now { font-weight: 700; }
.promo .buy-price__was { margin-left: 6px; opacity: 0.75; }
.promo .buy-price__until { margin-left: 6px; }

/* ---- Family strip + page nav --------------------------------------------- */
/* The family strip (shared markup on every page) reads as part of the
   header here: larger, with the current product lit. */
.strip-row { padding-top: 14px; }
.site-page .product-strip { padding: 0; }
.site-page nav.product-strip li,
.site-page .product-strip a.product-strip__brand { font-size: 13px; }
.site-page .product-strip li a { color: var(--muted); }
.page-nav {
  border-bottom: 1px solid var(--line);
}
.page-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 16px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.site-page .wordmark { color: var(--ink); }
.wordmark__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark__by {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.page-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.site-page .page-nav__links a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
}
.site-page .page-nav__links a:not(.btn):hover { color: var(--ink); }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: 9999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.site-page .btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 700;
  box-shadow: 0 0 22px var(--glow);
}
.site-page .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.site-page .btn--small { padding: 10px 20px; font-size: 15px; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible,
.module-btn:focus-visible,
.tab-btn:focus-visible,
.sheet button:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Type ------------------------------------------------------------------ */
.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
}
/* A headline of six or more words needs a smaller size to sit in a half column. */
.display--long { font-size: clamp(40px, 4.4vw, 64px); line-height: 1; hyphens: manual; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-title--small { font-size: clamp(28px, 3.4vw, 44px); }
.lede {
  margin: 0;
  max-width: 36ch;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}
.section-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.mono-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 76px) 0 clamp(64px, 8vw, 96px);
}
.hero__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__deco g { stroke: var(--deco); }
.hero__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero__copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__media {
  flex: 1.35 1 540px;
  min-width: 0;
}
/* Sylvaris: title and asks side by side, the demo full width beneath. */
.hero__grid--stacked { align-items: center; gap: 32px 56px; }
.hero__title {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__grid--stacked .hero__copy { flex: 1 1 400px; }
.hero__grid--stacked .hero__media { flex: 1 1 100%; margin-top: 16px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
/* style.css draws .launch-cta as a filled pill; beside the Buy button it
   becomes the ghost one. */
.hero__actions .launch-cta { margin: 0; }
.site-page .hero__actions .launch-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
}
.hero__copy .kit-form { margin: 0; background: var(--card); }
/* Sylvaris: the notify form sits right under the demo, so someone sold by
   the sound finds it without scrolling on. */
.hero__media .kit-form { margin: 24px auto 0; max-width: 620px; background: var(--card); }
.hero__copy .beta-cta,
.hero__copy .ipad-cta { margin: 0; text-align: left; }

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.shot img { display: block; width: 100%; height: auto; }

/* The Sylvaris demo, framed as a card in the hero. */
.demo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.demo-card .controls { margin: 0; }
.demo-card .footer-hint { margin: 0; padding: 0 4px 4px; text-align: left; }

/* ---- Stat strip ------------------------------------------------------------ */
.stats {
  background: var(--band-bg);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-block: 0;
  padding-block: 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat dt {
  order: 2;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
}
.stat dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- Sections -------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section--band {
  background: var(--band-bg);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: 44px;
}
.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .section-head__text { align-items: center; }
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.split > * { flex: 1 1 400px; min-width: 0; }
/* Alternating feature rows: picture first on wide screens. */
.split--flip { flex-direction: row-reverse; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Numbered steps. --hue is set per card. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step__num { font-family: var(--font-mono); font-size: 14px; color: var(--hue); }
.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---- Module cards that open a pop-up ---------------------------------------- */
.group-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.group-label + .module-grid + .group-label { margin-top: 28px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-grid--wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.module-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 22px;
  font: inherit;
  text-align: left;
  color: var(--ink-2);
  background: var(--card-2);
  border: 1px solid color-mix(in srgb, var(--hue) 38%, transparent);
  border-radius: 14px;
  cursor: pointer;
}
.module-btn:hover { border-color: color-mix(in srgb, var(--hue) 70%, transparent); }
.module-btn--quiet { border-color: var(--line-2); }
.module-btn__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--hue-text, var(--hue));
}
.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue);
}
.module-btn__text { font-size: 15px; line-height: 1.5; }
.module-btn__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hue-text, var(--hue));
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 9999px;
}

/* Tab screenshots that open a pop-up */
.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.tab-btn img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.tab-btn:hover img { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.tab-btn__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.tab-btn__name { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.tab-btn__topics { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.tab-btn__text { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---- Lineage ----------------------------------------------------------------- */
.lineage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineage-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.lineage-list strong { font-size: 18px; }
.lineage-list span { font-family: var(--font-mono); font-size: 12px; color: var(--hue, var(--dim)); }

/* ---- Pricing: restyles the #buy markup buy.js drives ---------------------------
   The markup itself is pinned by site-tests/buy.test.mjs; only its look
   changes here. */
.site-page .buy {
  margin: 0;
  padding: clamp(72px, 9vw, 112px) 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.site-page .buy-lede { margin: 0; max-width: 52ch; font-size: 17px; color: var(--muted); }
.site-page .buy-demo-form { margin: 0 auto 32px; max-width: 620px; background: var(--card); }
.site-page .buy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-page .buy-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 20px;
}
/* The iPad-only Meta ad lands on #ipad: leave a gap above the card. */
.site-page #ipad { scroll-margin-top: 32px; }
.site-page .buy-option--lead {
  border-color: var(--accent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
}
.site-page .buy-option--bundle { border-color: color-mix(in srgb, #e8c97a 45%, transparent); }
.buy-option__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.site-page .buy-option h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.badge {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--warm);
  border-radius: 9999px;
}
.badge--gold { background: #e8c97a; color: #05080a; }
.badge--outline { color: var(--ink-2); background: none; border: 1px solid var(--line-2); }
.site-page .buy-option__price { margin: 0; flex: none; color: var(--dim); font-size: 14px; }
.site-page .buy-option .buy-price__now {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.site-page .buy-option .buy-price__was { margin-left: 10px; font-size: 22px; color: var(--dim); }
.site-page .buy-option .buy-price__until {
  display: block;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
}
.buy-option__for { margin: 0; font-size: 14px; color: var(--dim); }
.ticks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--ink-2);
}
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; }
.ticks path { stroke: var(--tick, var(--accent)); }
.site-page .buy-btn {
  margin-top: auto;
  min-height: 52px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 0 22px var(--glow);
}
.site-page .buy-option--bundle .buy-btn { background: #e8c97a; color: #05080a; box-shadow: none; }
.site-page .buy-btn:disabled { opacity: 0.45; box-shadow: none; }
.buy-option .btn { margin-top: auto; }
.site-page .buy-closed,
.site-page .buy-note,
.site-page .buy-error,
.site-page .buy-fine { text-align: center; }
.site-page .buy-closed { margin-top: 28px; color: var(--warm); }
.site-page .buy-fine { max-width: 70ch; margin-inline: auto; }
.bundle-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bundle-pair li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hue-text, var(--hue));
  border: 1px solid color-mix(in srgb, var(--hue) 45%, transparent);
  border-radius: 9999px;
}
.bundle-pair .dot { width: 7px; height: 7px; box-shadow: none; }

/* ---- Family cards --------------------------------------------------------------- */
.family {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.family a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
}
.family a:hover { border-color: color-mix(in srgb, var(--hue) 55%, transparent); }
/* The window shots are about 3:2 (Everfall a little wider), so a 16:9 cover
   crop cut their bottom rows off. Show the whole window; the bands a wider shot
   leaves are filled with the shots' own edge colour, so they disappear. */
.family img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #0c1310; }
.family__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 28px; }
.family__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.family h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.family__tag { font-family: var(--font-mono); font-size: 13px; color: var(--hue-text, var(--hue)); }
.family p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---- Feature tiles (Understory "everything else", Everfall controls) ----------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--hue, var(--ink)) 30%, transparent);
  border-radius: 14px;
}
.tile__name { font-family: var(--font-mono); font-size: 15px; color: var(--hue-text, var(--hue, var(--dim))); }
.tile__title { font-size: 18px; font-weight: 700; color: var(--ink); }
.tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
a.tile { text-decoration: none; }

/* ---- Specs ------------------------------------------------------------------------- */
.site-page .spec-list { font-size: 15px; color: var(--ink-2); gap: 12px 24px; }
.site-page .spec-list dt { color: var(--dim); padding-top: 2px; }

/* ---- FAQ ----------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.narrow { max-width: 820px; }

/* ---- Closing call ------------------------------------------------------------------ */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.closing .display { font-size: clamp(40px, 5vw, 72px); }
.closing .hero__actions { justify-content: center; }

/* ---- Pop-ups (<dialog>) ------------------------------------------------------------- */
.sheet {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--hue, var(--accent)) 45%, transparent);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 50px color-mix(in srgb, var(--hue, var(--accent)) 18%, transparent);
}
.sheet--wide { width: min(1080px, calc(100% - 32px)); }
.sheet::backdrop { background: rgba(2, 4, 3, 0.8); }
/* The inner box fills the dialog, so a click that lands on the <dialog>
   element itself can only be a click on the backdrop. */
.sheet__box {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.sheet__kicker { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.sheet__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hue-text, var(--hue, var(--ink)));
}
.sheet__title .dot { width: 14px; height: 14px; }
.sheet__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  cursor: pointer;
}
.sheet__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
}
.sheet__body > p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.sheet__intro { font-size: 19px !important; line-height: 1.55 !important; }
.sheet__figure {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 20px;
  background: var(--band-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.sheet__figure img { max-height: 280px; width: auto; }
.sheet__figure--full { padding: 0; overflow: hidden; }
.sheet__figure--full img { max-height: none; width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hue-text, var(--hue, var(--accent)));
  border: 1px solid color-mix(in srgb, var(--hue, var(--accent)) 45%, transparent);
  border-radius: 9999px;
}
.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
}
.sheet__foot .btn { font-size: 15px; padding: 12px 20px; }

/* A topic inside a tab pop-up: text one side, picture the other. */
.topic {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.topic__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.topic__text h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--hue-text, var(--hue));
}
.topic__text p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.topic .sheet__figure { flex: 1 1 320px; min-width: 0; align-items: center; }

/* The FX chain, drawn from chips */
.chain { display: flex; flex-direction: column; gap: 10px; width: 100%; font-family: var(--font-mono); font-size: 12px; }
.chain__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.chain__node {
  padding: 7px 12px;
  color: var(--hue-text, var(--hue));
  border: 1px solid color-mix(in srgb, var(--hue) 50%, transparent);
  border-radius: 9999px;
}
.chain__arrow { color: var(--dim); }
.chain__loop {
  height: 18px;
  margin: 4px 24px 0;
  border: 1px dashed rgba(232, 201, 122, 0.55);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.chain__loop-label { text-align: center; color: #e8c97a; }

/* Effect list inside an Understory module pop-up */
.effects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.effects li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--band-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.effects strong { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--hue-text, var(--hue)); }
.effects span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Small interactive toys: Understory's chain order, Everfall's gravity */
.toy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
}
.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.order-row li { display: inline-flex; align-items: center; gap: 10px; }
.order-row .chain__node { padding: 12px 16px; font-family: var(--font-mono); font-size: 15px; background: var(--card-2); border-radius: 12px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented button {
  min-height: 44px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.tail svg { display: block; width: 100%; height: auto; }
.tail__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tail__fill { fill: var(--accent); fill-opacity: 0.14; }

/* Pond ripples / forest-floor strata / falling light, drawn faintly */
.deco-line { fill: none; stroke: var(--deco); }
/* Everfall's light falling from the surface: wide and very faint. */
.hero__deco .deco-ray { stroke: color-mix(in srgb, var(--warm) 3%, transparent); }

@media (max-width: 640px) {
  .page-nav__links { gap: 8px 18px; font-size: 14px; }
  .sheet__head, .sheet__body, .sheet__foot { padding-inline: 18px; }
  .site-page .buy-option { padding: 26px; }
}
