/* Marble — palette ported from the app's Butter theme (Sources/Theme/Theme.swift)
   so the site and the app read as one product.

   Everything on this page is drawn in CSS and SVG rather than exported as
   images: the product screens stay honest because they're built from the same
   tokens the app uses, and the whole page ships in one request. */

:root {
  --bg: #FFFDF8;
  --card: #FFF9F0;
  --edge: #F5E6D3;
  --line: #E9D6BC;
  --tan: #C4A574;
  --tan-deep: #9A7D4E;
  --sage: #7FA086;
  --ink: #4A4139;
  --muted: #7D6F62;
  --grey: #B8A99A;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --display: "Fraunces", "Hoefler Text", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Fraunces at its softest; fonts without the axis ignore it. */
  font-variation-settings: "SOFT" 100;
}

/* Letterspaced caps — the section label, used everywhere instead of a
   paragraph of set-up. */
.label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

a { color: var(--tan-deep); text-underline-offset: 0.2em; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--tan-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: 60rem; margin: 0 auto; padding-inline: var(--gutter); }

.rule { border: 0; border-top: 1px solid var(--edge); margin: 0; }

/* ---------- masthead ---------- */

.masthead { display: flex; align-items: center; gap: 0.625rem; padding-block: 1.5rem; }
.masthead img { width: 30px; height: 30px; border-radius: 7px; }
.masthead .name { font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.01em; }
.masthead nav { margin-left: auto; display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }

/* Light falls from the upper left, the same direction as the highlight on the
   marble, so the type and the mark agree about where the sun is. */
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0.75rem 0 0;
  color: #6E6055;
  text-shadow:
    -1px -1px 0 rgba(74, 65, 57, 0.22),
     1px  1px 0 rgba(255, 255, 255, 0.95);
}
.hero h1 em { font-style: italic; color: var(--tan-deep); text-shadow: none; }

.hero p.lede {
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

.hero-art {
  margin: 0;
  justify-self: center;
  max-width: 20rem;
  width: 100%;
}
.hero-art img { width: 100%; height: auto; display: block; animation: bob 7s ease-in-out infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.25rem; margin-top: 2rem;
}
.cta {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.8125rem 1.75rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { background: #362F29; transform: translateY(-1px); }
.cta-note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- sections ---------- */

.sec { padding-block: clamp(3rem, 7vw, 5rem); }
.sec > h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.4vw, 2.75rem);
  line-height: 1.12;
  margin: 0.75rem 0 0;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

/* One short line under a heading is the most prose this page allows itself. */
.fine {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.9375rem;
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- shared chart vocabulary ---------- */

svg .grid line { stroke: var(--line); }
svg .dots circle { fill: var(--grey); transition: opacity 0.5s ease; }
svg .rings circle { fill: none; stroke: #D4A574; stroke-width: 2; transition: opacity 0.5s ease; }
svg .trend {
  fill: none; stroke: var(--tan); stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-width 0.4s ease, opacity 0.5s ease;
}
svg .plan { fill: none; stroke: var(--grey); stroke-width: 2; stroke-dasharray: 5 7; }
/* Axis and legend labels live in HTML, not in the SVG: text inside a viewBox
   scales with it, and on a phone these would render at about five pixels. */
.axis, .legend {
  display: flex; margin-top: 0.75rem;
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.axis { justify-content: space-between; }
.legend { gap: 1.25rem; }
.legend .key { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend .key::before {
  content: ""; width: 1.5rem; height: 3px; flex: none;
  border-radius: 2px; background: var(--tan);
}
/* A dashed border at this size renders almost solid, so the dash is painted. */
.legend .plan-key::before {
  height: 2px;
  background: repeating-linear-gradient(
    to right, var(--grey) 0 4px, transparent 4px 8px);
}

/* ---------- segmented switch ---------- */

.switch {
  display: inline-flex; flex-wrap: wrap; max-width: 100%;
  margin-top: 1.75rem;
  padding: 0.25rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 999px;
}
.switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 1.125rem; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] {
  background: var(--ink); color: var(--bg);
}

/* ---------- the 28-day figure ---------- */

.figure {
  margin: 1.5rem 0 0;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.figure figcaption { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.figure figcaption b { color: var(--ink); font-weight: 600; }

/* The toggle has to do something in both directions: showing the scale pushes
   the line back to a ghost, so the dots lead; showing the trend fades the dots
   out rather than deleting them, so it stays obvious that the line was always
   the same line and only the noise went away. */
.figure[data-view="raw"] .trend { opacity: 0.3; }
.figure[data-view="trend"] .dots circle,
.figure[data-view="trend"] .rings circle { opacity: 0; }
.figure[data-view="trend"] .trend { stroke-width: 4.5; }

/* ---------- the correction lab ---------- */

.lab {
  margin-top: 1.75rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.readout {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.25rem 2rem;
}

.kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 0.625rem; }
.kpi-n {
  font-size: clamp(2.5rem, 7vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.kpi-n.moved { color: var(--tan-deep); }
.kpi-u { color: var(--muted); font-size: 0.9375rem; }

.badge {
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.badge[data-state="meas"] {
  background: var(--sage); border-color: var(--sage); color: #fff;
}

.stats { display: flex; gap: 1.5rem 2rem; flex-wrap: wrap; margin: 0; }
.stats dt {
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.stats dd {
  margin: 0.125rem 0 0; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lab-chart { display: block; width: 100%; height: auto; margin-top: 1.5rem; overflow: visible; }
.lab-chart .dots circle { transition: none; }

.scrub { display: block; margin-top: 0.75rem; }
.scrub input {
  appearance: none; -webkit-appearance: none;
  width: 100%; background: transparent; cursor: grab; margin: 0;
}
.scrub input:active { cursor: grabbing; }
.scrub input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--line);
}
.scrub input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.scrub input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--tan);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px -1px rgba(74, 65, 57, 0.45);
}
.scrub input::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--tan);
  border: 3px solid var(--bg); box-shadow: 0 2px 8px -1px rgba(74, 65, 57, 0.45);
}

.lab-note {
  margin: 1.25rem 0 0; color: var(--muted);
  font-size: 0.9375rem; min-height: 3.1em;
}

/* ---------- the screens ---------- */

.tabs {
  display: inline-flex; flex-wrap: wrap; max-width: 100%;
  margin-top: 1.75rem; padding: 0.25rem;
  background: var(--card); border: 1px solid var(--edge); border-radius: 999px;
}
.tabs button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 1.25rem; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.stage { display: flex; justify-content: center; margin-top: 2.5rem; }
.pane[hidden] { display: none; }
.pane { width: 100%; max-width: 18rem; animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.stage-cap {
  margin: 1.5rem auto 0; max-width: 30rem; text-align: center;
  color: var(--muted); font-size: 0.9375rem;
}

.screen {
  position: relative;
  aspect-ratio: 272 / 560;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 26px;
  box-shadow: 0 22px 48px -24px rgba(74, 65, 57, 0.5);
  padding: 1.75rem 1rem 1rem;
  display: flex; flex-direction: column; overflow: hidden;
  font-size: 0.625rem; line-height: 1.45;
}
.screen::before {
  content: "";
  position: absolute; top: 0.5rem; left: 50%; transform: translateX(-50%);
  width: 3.75rem; height: 0.9rem;
  background: var(--ink); opacity: 0.85; border-radius: 0.5rem;
}
.screen .cap {
  font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.screen .big {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.screen .row { display: flex; align-items: center; gap: 0.5rem; }
.screen .sb { justify-content: space-between; }
.screen .dim { color: var(--muted); }
.screen .sep { height: 1px; background: var(--line); margin-block: 0.75rem; }
.screen .track { height: 5px; border-radius: 3px; background: #EFE0CA; overflow: hidden; }
.screen .track i { display: block; height: 100%; background: var(--tan); }
.screen .meal { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.4rem;
                border-bottom: 1px solid var(--line); }
.screen .meal:last-child { border-bottom: 0; }
.screen .thumb { width: 1.4rem; height: 1.4rem; border-radius: 0.35rem;
                 background: var(--edge); flex: none; }
.screen .push { flex: 1; }
.screen .pill {
  background: var(--tan); color: #fff; border-radius: 0.6rem;
  padding: 0.55rem; text-align: center; font-weight: 700; font-size: 0.5625rem;
}
.screen .bubble {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.7rem;
  padding: 0.5rem 0.6rem; margin-top: 0.4rem; max-width: 92%;
}
.screen .bubble.me { background: var(--tan); color: #fff; border: 0; margin-left: auto; }
.screen svg { display: block; width: 100%; height: auto; }
.screen svg .trend { stroke-width: 2.4; }

/* ---------- the receipt ---------- */

.receipt {
  margin: 1.75rem 0 0;
  max-width: 27rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-variant-numeric: tabular-nums;
}
.receipt div { display: flex; justify-content: space-between; padding-block: 0.4rem; }
.receipt .soft { color: var(--muted); font-size: 0.9375rem; }
.receipt .lit {
  background: rgba(212, 165, 116, 0.22); border-radius: 5px;
  margin-inline: -0.4rem; padding-inline: 0.4rem; color: var(--ink);
}
.receipt .tot { border-top: 1px solid var(--edge); margin-top: 0.4rem;
                padding-top: 0.7rem; font-weight: 700; }
.receipt figcaption {
  margin-top: 1.125rem; padding-top: 1rem; border-top: 1px solid var(--edge);
  color: var(--muted); font-size: 0.875rem; line-height: 1.55;
}

/* ---------- chips ---------- */

.chips {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.625rem;
}
.chips li {
  border: 1px solid var(--edge); background: var(--card);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.9375rem; font-weight: 600;
}
.chips li::before { content: "✓ "; color: var(--sage); }

/* ---------- FAQ ---------- */

.faq { margin-top: 2rem; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  cursor: pointer; padding-block: 1.125rem; font-weight: 600;
  list-style: none; display: flex; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--tan-deep);
  font-size: 1.25rem; line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 46rem; }

/* ---------- closing call to action ---------- */

.closer {
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--edge);
}
.closer h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12;
  margin: 0; letter-spacing: -0.01em;
}
.closer p { color: var(--muted); margin: 1rem auto 0; max-width: 34rem; }
.closer .cta-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--edge);
  padding-block: 2rem 3rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center;
  font-size: 0.9375rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer .spacer { margin-left: auto; }
.site-socials {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  flex-basis: 100%; font-size: 0.875rem;
}

/* ---------- document pages (privacy, support) ---------- */

.doc { max-width: 44rem; padding-block: 1rem 4rem; }
.doc h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3rem);
  letter-spacing: -0.015em; margin: 0.5rem 0 0.5rem;
}
.doc .updated { color: var(--muted); font-size: 0.9375rem; margin: 0 0 2.5rem; }
.doc h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: -0.005em; margin: 2.75rem 0 0.75rem;
}
.doc h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { color: #5A5047; }
.doc ul { padding-left: 1.125rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li strong { color: var(--ink); }

.callout {
  background: var(--card); border: 1px solid var(--edge);
  border-radius: 12px; padding: 1.25rem 1.375rem; margin: 2rem 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.75rem; }

/* ---------- research pages (blog, benchmark) ---------- */

.doc .byline { color: var(--muted); font-size: 0.9375rem; margin: 0 0 2.5rem; }
.doc .lede { font-size: 1.1875rem; color: var(--ink); }
.doc code, .doc pre { font-family: var(--mono); font-size: 0.875em; }
.doc code { background: var(--card); border: 1px solid var(--edge); border-radius: 5px; padding: 0.05em 0.35em; }
.doc pre {
  background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 1rem 1.125rem; overflow-x: auto; line-height: 1.5;
}
.doc pre code { background: none; border: 0; padding: 0; }
.doc .table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.doc th { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc td.n, .doc th.n { text-align: right; padding-right: 0; padding-left: 0.75rem; }
.doc tr.us td { color: var(--ink); font-weight: 600; }
.doc .note { color: var(--muted); font-size: 0.875rem; }
.doc figure { margin: 2rem 0; }
.doc figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.doc figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.doc .stat-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 2rem 0; }
.doc .stat-row div { min-width: 8rem; }
.doc .stat-row b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.25rem; color: var(--ink); line-height: 1.1; }
.doc .stat-row span { color: var(--muted); font-size: 0.875rem; }
.doc ol { padding-left: 1.25rem; }
.doc ol li { margin-bottom: 0.5rem; }

/* Motion is decoration here — every state the animations reach is also
   reachable by tapping, so switching them off costs nothing. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ── what it costs ── */
.tiers-lede { color: var(--muted); max-width: 46rem; margin: 0.5rem 0 0; }
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tier { border: 1px solid var(--edge); border-radius: 16px; padding: 1.25rem 1.375rem; }
.tier h3 { margin: 0 0 0.2rem; font-size: 1.125rem; }
.tier .price { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; color: var(--muted); }
.tier li::before { content: "✓ "; color: var(--sage); }

html { scroll-behavior: smooth; }

/* September refresh: a spacious product introduction in Marble's Butter palette. */
:root { --muted: #716457; --tan-deep: #80633c; }
html { scroll-padding-top: 2rem; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.masthead .name { text-decoration: none; color: var(--ink); font-size: 1.75rem; }
.masthead nav a { padding-block: .65rem; }
.home .wrap { max-width: 78rem; }
.home .masthead { border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.home .masthead img { width: 36px; height: 36px; }
.home .hero { grid-template-columns: 1.04fr 1fr; gap: 3.5rem; padding-block: 5.5rem 5rem; min-height: 43rem; }
.label { font-size: .75rem; letter-spacing: .13em; }
.home .hero h1 { font-size: clamp(3.7rem, 6.5vw, 6rem); line-height: .99; letter-spacing: -.035em; color: var(--ink); text-shadow: none; margin-top: 1.4rem; }
.home .hero h1 em { color: var(--tan-deep); }
.home .hero p.lede { max-width: 30rem; font-size: 1.125rem; line-height: 1.8; margin-top: 1.7rem; }
.home .cta-row { gap: .8rem; flex-direction: column; align-items: flex-start; }
.cta { border-radius: 8px; padding: .9rem 1.3rem; }
.cta span { margin-left: 1.5rem; }
.cta-note { font-size: .875rem; }
.hero-product { position: relative; padding: 2rem 0 0 1.3rem; }
.hero-marble { position: absolute; width: 15rem; height: auto; right: -1rem; top: -5.2rem; pointer-events: none; }
.daily-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.65rem; box-shadow: 0 24px 65px -38px #75604475; }
.daily-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.daily-heading > span:first-child { font-family: var(--display); font-size: 1.9rem; }
.daily-date { color: var(--muted); font-size: .875rem; }
.daily-eyebrow { font-size: .875rem; margin: 1.75rem 0 .25rem; color: var(--muted); }
.daily-number { font-size: 4rem; font-weight: 600; letter-spacing: -.065em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.daily-number span { font-size: 1rem; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.daily-track { background: var(--edge); height: 9px; margin-top: 1rem; border-radius: 4px; overflow: hidden; }
.daily-track span { display: block; width: 67%; height: 100%; background: var(--tan); }
.daily-totals { display: flex; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--muted); margin: .6rem 0 1.75rem; }
.daily-meal { border-top: 1px solid var(--line); padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9375rem; }
.daily-meal strong { font-weight: 550; }
.daily-meal div span { display: block; color: var(--muted); font-size: .875rem; margin-top: .15rem; }
.daily-meal small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.daily-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.daily-bottom > span { color: var(--muted); }
.adaptation { position: relative; display: flex; align-items: center; gap: .9rem; margin: -0.15rem 1rem 0 -1.4rem; background: var(--ink); color: var(--bg); padding: 1.1rem 1.2rem; border-radius: 10px; box-shadow: 0 10px 25px -18px var(--ink); }
.adaptation-mark { font-size: 1.7rem; color: #e5c591; }
.adaptation strong { display: block; font-size: .9375rem; font-weight: 550; }
.adaptation div > span { display: block; font-size: .875rem; color: #e3d6c7; margin-top: .15rem; }
.example-label { text-align: center; color: var(--muted); font-size: .75rem; margin: .9rem 0 0; }
.home .sec { padding-block: 4.5rem; }
.home .sec > h2 { font-size: clamp(2.25rem, 4.3vw, 3.65rem); max-width: 25ch; line-height: 1.05; }
.section-intro { color: var(--muted); max-width: 37rem; margin: 1.25rem 0 0; }
.home #scale, .home #correction { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 3.5rem; align-content: start; align-items: start; }
.home #scale > .label, .home #correction > .label { grid-column: 1; }
.home #scale > h2, .home #correction > h2 { grid-column: 1; }
.home #scale > .section-intro, .home #correction > .section-intro { grid-column: 1; }
.home #scale .switch { grid-column: 1; justify-self: start; border-radius: 10px; }
.switch button { border-radius: 7px; font-size: .875rem; padding: .65rem .8rem; }
.home #scale .figure { grid-column: 2; grid-row: 1 / span 5; margin: 0; align-self: center; }
.home #correction .lab { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
.home #correction .fine { grid-column: 1; }
.figure, .lab { padding: 1.75rem; border-color: var(--line); border-radius: 12px; }
.axis, .legend, .stats dt, .badge { font-size: .75rem; letter-spacing: .04em; }
.badge[data-state="meas"] { background: #416c4e; border-color: #416c4e; }
.scrub-caption { display: flex; justify-content: space-between; gap: .75rem; font-size: .75rem; color: var(--muted); margin-top: 1.5rem; }
.scrub input { min-height: 36px; }
.home #app { text-align: center; }
.home #app h2, .home #app .section-intro { margin-left: auto; margin-right: auto; }
.home .stage { padding: 2rem; border: 1px solid var(--line); background: var(--card); border-radius: 18px; }
.home .pane { max-width: 22rem; }
.screen { font-size: .875rem; min-height: 38rem; aspect-ratio: auto; padding: 2rem 1.25rem 1.25rem; text-align: left; }
.screen .cap { font-size: .75rem; }
.screen .big { font-size: 3rem; }
.screen .pill { font-size: .875rem; color: var(--ink); }
.screen .bubble { font-size: .875rem; }
.screen .bubble.me { color: var(--ink); }
.screen .thumb { width: 2rem; height: 2rem; }
.screen .meal { padding-block: .65rem; }
.tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.tier { padding: 2rem; border-color: var(--line); }
.tier h3 { font-family: var(--display); font-size: 2.4rem; font-weight: 400; }
.tier .price { font-size: 1.25rem; color: var(--ink); padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.tier-plus { background: var(--card); }
.tier-label { margin: 0 0 .5rem; color: var(--tan-deep); font-size: .875rem; }
.tier ul { gap: .9rem; }
.home .closer { padding: 5rem 1.5rem; background: var(--ink); color: var(--bg); border-radius: 18px; margin-bottom: 3rem; }
.home .closer h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.home .closer p, .home .closer .cta-note { color: #e3d6c7; }
.home .closer .cta { background: var(--bg); color: var(--ink); }
.home .closer .cta-row { align-items: center; }
.reveal { opacity: 1; transform: none; }
@media (max-width: 60rem) {
  .home .hero { gap: 2rem; }
  .home #scale, .home #correction { column-gap: 2rem; }
  .daily-card { padding: 1.2rem; }
}
@media (max-width: 48rem) {
  .home .hero { grid-template-columns: 1fr; padding-block: 3rem; gap: 4rem; }
  .home .hero h1 { font-size: clamp(3.5rem, 12vw, 5.5rem); }
  .hero-product { width: 100%; max-width: 31rem; justify-self: center; }
  .hero-marble { width: 11rem; top: -3rem; right: 0; }
  .home #scale, .home #correction { display: block; }
  .home #scale .figure, .home #correction .lab { margin-top: 2rem; }
  .home .sec { padding-block: 3rem; }
  .tiers { grid-template-columns: 1fr; }
  .masthead { flex-wrap: wrap; }
  .masthead nav { gap: 1rem; font-size: .875rem; }
  .home .masthead nav a:last-child { display: none; }
  .home .stage { padding: 1.25rem; }
}
@media (max-width: 25rem) {
  .home .masthead nav { width: 100%; justify-content: space-between; }
  .daily-bottom { flex-direction: column; gap: .4rem; }
  .adaptation { margin-right: 0; }
  .figure, .lab { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── The coach ─────────────────────────────────────────────────────────
   The hero turn plays itself the way the app does: the photo, the coach
   noticing what it is, each lookup as a row, the receipt, the answer. */
.coach-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.5rem 1.35rem; box-shadow: 0 24px 65px -38px #75604475; font-size: .9375rem; }
.ct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ct-head > span:first-child { font-family: var(--display); font-size: 1.9rem; }
.ct-left { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.ct-me { margin: 1.1rem 0 0 auto; width: fit-content; max-width: 85%; background: var(--edge); border: 1px solid var(--line); padding: .55rem .85rem; border-radius: 14px 14px 4px 14px; }
.ct-photo { display: flex; align-items: center; gap: .7rem; padding: .45rem .8rem .45rem .45rem; }
.ct-cup { width: 3.2rem; height: 3.2rem; border-radius: 10px; flex: none;
  background: radial-gradient(circle at 50% 28%, #fffaf2 0 16%, transparent 17%),
              linear-gradient(180deg, #d9b98a 0 30%, #b8875a 30% 100%);
  box-shadow: inset 0 0 0 3px #f4e6d1; }
.ct-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ct-steps li { display: flex; align-items: baseline; gap: .6rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.ct-steps li em { font-style: normal; color: var(--grey); margin-left: .3rem; }
.ct-steps .g { color: var(--tan-deep); width: 1rem; flex: none; text-align: center; }
.ct-steps .ct-say { font-style: italic; padding-left: 1.6rem; }
.ct-receipt { color: var(--ink) !important; }
.ct-receipt .ok { color: #416c4e; width: 1rem; flex: none; text-align: center; }
.ct-receipt .undo { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .8125rem; }
.ct-answer { margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.ct-sources { display: flex; gap: .4rem; margin-top: .8rem; font-size: .75rem; color: var(--muted); }
.ct-sources span:first-child { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: .2rem .65rem; }
.ct-sources span:last-child { padding: .2rem 0; }
/* Steps wait their turn only when there is a script to bring them in. */
.js .coach-card [data-step] { opacity: 0; transform: translateY(4px); transition: opacity .35s ease-out, transform .35s ease-out; }
.js .coach-card [data-step].on { opacity: 1; transform: none; }

.clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.5rem; }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 1206 / 2622; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.clip figcaption { font-size: .875rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
.clip figcaption b { color: var(--ink); font-weight: 600; }
.credits { font-size: .75rem; color: var(--grey); margin: 1.5rem 0 0; max-width: 46rem; }
.honest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.25rem; }
.honest > div { border-left: 2px solid var(--tan); padding-left: 1.1rem; }
.honest h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.honest p { margin: .45rem 0 0; color: var(--muted); font-size: .9375rem; }
.screen .steps { display: flex; flex-direction: column; gap: .15rem; margin: .35rem 0 .2rem .2rem; color: var(--muted); font-size: .75rem; }
@media (max-width: 60rem) { .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honest { grid-template-columns: 1fr; gap: 1.25rem; }
  .coach-card { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .js .coach-card [data-step] { opacity: 1; transform: none; transition: none; } }

/* ── Landing page, lean edition ────────────────────────────────────────
   Few words, a lot of room: one centered idea per section, the product
   doing the talking. Same Butter tokens as the app. */
.lp { --lp-max: 72rem; }
.lp main { overflow-x: clip; }
.lp-nav { max-width: var(--lp-max); margin: 0 auto; padding: 1.25rem var(--gutter); display: flex; align-items: center; gap: 1rem; }
.lp-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; }
.lp-brand img { width: 30px; height: 30px; border-radius: 7px; }
.lp-nav nav { margin-left: auto; display: flex; gap: 1.75rem; font-size: .9375rem; }
.lp-nav nav a { color: var(--muted); text-decoration: none; }
.lp-nav nav a:hover { color: var(--ink); }

.lp-hero { max-width: var(--lp-max); margin: 0 auto; padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) 0; text-align: center; }
.lp-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .85rem .3rem .3rem; border: 1px solid var(--line); border-radius: 99px; font-size: .875rem; color: var(--muted); text-decoration: none; background: var(--card); }
.lp-pill span { background: var(--ink); color: var(--bg); border-radius: 99px; padding: .15rem .55rem; font-size: .75rem; font-weight: 600; }
.lp-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 8vw, 6.25rem); line-height: .98; letter-spacing: -.035em; margin: 1.75rem auto 0; color: var(--ink); text-wrap: balance; }
.lp-hero h1 em { color: var(--tan-deep); }
.lp-sub { font-size: clamp(1.0625rem, 2vw, 1.3125rem); color: var(--muted); margin: 1.5rem auto 0; max-width: 32rem; line-height: 1.55; }
.lp-ctas { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap; }
.lp-btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .9375rem; transition: transform .15s ease-out, background .15s; }
.lp-btn:hover { background: #362F29; transform: translateY(-1px); }
.lp-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.lp-shot { position: relative; max-width: 30rem; margin: clamp(3.5rem, 8vw, 5.5rem) auto 0; text-align: left; }
.lp-marble { position: absolute; width: 11rem; height: auto; right: -3rem; top: -8rem; pointer-events: none; }
.lp-shot .coach-card { box-shadow: 0 40px 90px -40px #75604480; }

.lp-sec { max-width: var(--lp-max); margin: 0 auto; padding: clamp(6rem, 13vw, 10rem) var(--gutter) 0; text-align: center; }
.lp-eyebrow { font-size: .8125rem; font-weight: 600; color: var(--tan-deep); margin: 0; }
.lp-sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.02; letter-spacing: -.025em; margin: .9rem auto 0; color: var(--ink); text-wrap: balance; }
.lp-lede { color: var(--muted); font-size: 1.125rem; max-width: 30rem; margin: 1.25rem 0 0; line-height: 1.6; }

.lp-clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3.5rem; text-align: left; }
.lp-clip { margin: 0; }
.lp-clip video { width: 100%; aspect-ratio: 1206 / 2622; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.lp-clip figcaption { margin-top: .9rem; display: grid; gap: .15rem; font-size: .9375rem; }
.lp-clip figcaption b { font-weight: 600; color: var(--ink); }
.lp-clip figcaption span { color: var(--muted); font-size: .875rem; }
.lp-credit { font-size: .75rem; color: var(--grey); margin-top: 2rem; }

.lp-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; text-align: left; }
.lp-split h2 { margin-left: 0; }
.lp-split .lab { margin: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }

.lp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; text-align: left; border-top: 1px solid var(--line); padding-top: 3rem; }
.lp-ico { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--tan-deep); font-size: 1rem; }
.lp-pillars h3 { margin: 1rem 0 0; font-size: 1.0625rem; font-weight: 600; }
.lp-pillars p { margin: .4rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.lp-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 46rem; margin: 3.5rem auto 0; text-align: left; }
.lp-tier { border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.lp-tier-plus { background: var(--card); }
.lp-tier h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--muted); }
.lp-price { font-family: var(--display); font-size: 3rem; margin: .4rem 0 1.25rem; line-height: 1; color: var(--ink); }
.lp-price span { font-family: var(--body); font-size: .9375rem; color: var(--muted); margin-left: .25rem; }
.lp-tier ul { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .7rem; font-size: .9375rem; }
.lp-tier li::before { content: "✓"; color: var(--sage); margin-right: .6rem; }
.lp-trial { margin: 1.25rem 0 0; font-size: .875rem; color: var(--tan-deep); font-weight: 600; }

.lp-faq { max-width: 40rem; text-align: left; }
.lp-faq h2 { margin: 0 0 1.5rem; }
.lp-faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.lp-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); margin: .7rem 0 0; font-size: .9375rem; }

.lp-closer { max-width: var(--lp-max); margin: clamp(6rem, 13vw, 10rem) auto 3rem; padding: clamp(4rem, 9vw, 6rem) var(--gutter); background: var(--ink); color: var(--bg); border-radius: 22px; text-align: center; width: calc(100% - 2 * var(--gutter)); }
.lp-closer h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.025em; margin: 0 0 2rem; }
.lp-btn-light { background: var(--bg); color: var(--ink); }
.lp-btn-light:hover { background: #fff; }
.lp-closer p { color: #cfc2b3; font-size: .875rem; margin: 1rem 0 0; }
.lp .site-footer { max-width: var(--lp-max); margin: 0 auto; padding: 1.5rem var(--gutter) 3rem; }

@media (max-width: 60rem) { .lp-clips { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-split { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 40rem) {
  .lp-nav nav a:not([href="#pricing"]):not([href="#coach"]) { display: none; }
  .lp-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .lp-pillars, .lp-tiers { grid-template-columns: 1fr; gap: 2rem; }
  .lp-marble { width: 7rem; right: -.5rem; top: -5.25rem; }
}

.ct-img { display: block; margin: 1.1rem 0 0 auto; width: 9.5rem; height: auto; aspect-ratio: 360 / 467; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.ct-img + .ct-me { margin-top: .5rem; }

/* The tour: a list of things to ask beside one phone. */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; margin-top: 3.5rem; text-align: left; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-width: 30rem; justify-self: end; width: 100%; }
.tour-list button { all: unset; box-sizing: border-box; display: grid; gap: .25rem; width: 100%; padding: 1.05rem 1.2rem 1.15rem; border-radius: 14px; cursor: pointer; position: relative; transition: background .2s ease-out; }
.tour-list button:hover { background: var(--card); }
.tour-list button:focus-visible { outline: 2px solid var(--tan-deep); outline-offset: 2px; }
.tour-q { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; color: var(--muted); transition: color .2s; }
.tour-d { font-size: .9375rem; color: var(--grey); line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease-out, opacity .3s ease-out; }
.tour-bar { height: 2px; background: var(--edge); border-radius: 2px; margin-top: .6rem; overflow: hidden; opacity: 0; transition: opacity .2s; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.tour-list [aria-selected="true"] { background: var(--card); }
.tour-list [aria-selected="true"] .tour-q { color: var(--ink); }
.tour-list [aria-selected="true"] .tour-d { max-height: 4rem; opacity: 1; color: var(--muted); }
.tour-list [aria-selected="true"] .tour-bar { opacity: 1; }
.tour-phone { width: min(19rem, 72vw); padding: .55rem; border-radius: 3.1rem; background: var(--ink); box-shadow: 0 50px 90px -45px #4a413990, inset 0 0 0 1.5px #6b5f54; }
.tour-phone video { display: block; width: 100%; aspect-ratio: 1206 / 2622; height: auto; border-radius: 2.6rem; background: var(--card); }
@media (max-width: 48rem) {
  .tour { grid-template-columns: 1fr; justify-items: center; gap: 2rem; }
  .tour-list { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 100%; padding-bottom: .25rem; justify-self: stretch; scrollbar-width: none; }
  .tour-list::-webkit-scrollbar { display: none; }
  .tour-list li { flex: 0 0 auto; scroll-snap-align: start; }
  .tour-list button { padding: .6rem .9rem .7rem; border: 1px solid var(--line); border-radius: 99px; width: auto; }
  .tour-q { font-family: var(--body); font-size: .875rem; white-space: nowrap; }
  .tour-d { display: none; }
  .tour-bar { margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .tour-d, .tour-q, .tour-bar, .tour-list button { transition: none; } }

/* How we work pages (open/): numbered hub, fact tables, pager */
.doc .open-list, .open-list { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: open; }
.open-list li { border-top: 1px solid var(--edge); margin: 0; padding: 1.25rem 0 1.25rem 3rem; position: relative; counter-increment: open; }
.open-list li::before { content: counter(open, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.open-list li:last-child { border-bottom: 1px solid var(--edge); }
.open-list a { text-decoration: none; color: var(--ink); }
.open-list a b { display: block; font-size: 1.125rem; margin-bottom: 0.25rem; }
.open-list a span { color: #5A5047; }
.open-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.doc table.facts th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 0.875rem; width: 9rem; color: var(--muted); font-weight: 600; }
.doc .changes { list-style: none; padding: 0; }
.doc .changes li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; font-size: 0.9375rem; }
.doc .changes time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--edge); font-size: 0.9375rem; }
.pager a { text-decoration: none; color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.pager .next { text-align: right; margin-left: auto; }
@media (max-width: 30rem) { .doc .changes li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- How we work: the transparency-hub look (open/) ----------
   Borrowed layout ideas, Marble's own palette and type: numbered section
   tabs with a top rule, a centred hero, rounded summary panels with
   label/value rows, a dark pill button, a segmented switch, metric cards
   (number, label, when) and single-series bar charts. */
.open { --panel: #F6EDDF; --panel-edge: #EBDCC4; }
.open .wrap { max-width: 64rem; }
.open .doc { max-width: 46rem; margin-inline: auto; }
.open .doc .lede { font-family: var(--display); font-size: 1.375rem; line-height: 1.55; font-weight: 380; }
.open .doc h2 { font-family: var(--body); font-weight: 700; letter-spacing: -0.015em; font-size: 1.5rem; margin-top: 3.5rem; }

.open-hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.open-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0.75rem 0 1.25rem; }
.open-hero p { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.4; max-width: 36rem; margin: 0 auto; color: var(--ink); }
.open-hero .byline { font-family: var(--body); font-size: 0.875rem; color: var(--muted); margin-top: 1.25rem; }

.open-tabs { display: grid; grid-template-columns: repeat(5, minmax(9rem, 1fr)); gap: 1.25rem; overflow-x: auto; margin: 0.5rem 0 1rem; padding-bottom: 0.25rem; scrollbar-width: none; }
.open-tabs a { display: block; border-top: 2px solid var(--line); padding-top: 0.9rem; text-decoration: none; color: var(--muted); }
.open-tabs a span { display: block; font-family: var(--mono); font-size: 0.8125rem; margin-bottom: 0.3rem; }
.open-tabs a b { font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.open-tabs a:hover { color: var(--ink); }
.open-tabs a[aria-current="page"] { border-top-color: var(--ink); color: var(--ink); }

.panel { background: var(--panel); border-radius: 1.5rem; padding: 2rem 2.25rem; margin: 2rem 0; }
.panel > h3, .panel > h2 { font-family: var(--body); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; margin: 0 0 1rem; color: var(--ink); }
.panel > p:last-child, .panel > ol:last-child, .panel > ul:last-child { margin-bottom: 0; }
.panel.soft { padding: 1.5rem 1.75rem; }
.panel.soft p { margin: 0; }
.panel dl { margin: 1.5rem 0 0; }
.panel dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--panel-edge); }
.panel dt { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.panel dd { margin: 0; color: #5A5047; font-size: 0.9375rem; }

.pill-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 0.6rem 1.1rem; border-radius: 0.6rem; }
.pill-btn::after { content: "→"; }
.pill-btn:hover { background: #2F2924; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; background: var(--panel); border-radius: 999px; padding: 0.35rem; margin: 1rem 0 0; }
.seg button { font: inherit; font-size: 0.9375rem; border: 0; background: none; color: var(--ink); padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.metric { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.metric b { display: block; font-family: var(--display); font-weight: 500; font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.metric span { display: block; font-weight: 600; font-size: 0.9375rem; margin-top: 0.5rem; color: var(--ink); }
.metric small { display: block; color: var(--muted); font-size: 0.8125rem; }

.chart { margin: 1.5rem 0 0.5rem; }
.chart-title { font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.75rem; color: var(--ink); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--tan-deep); transition: fill 0.12s; }
.chart g:hover .bar { fill: var(--ink); }
.chart .val { font: 600 13px var(--body); fill: var(--ink); }
.chart .cat { font: 12px var(--body); fill: var(--muted); }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .reflabel { font: 12px var(--body); fill: var(--muted); }
.doc details.as-table summary { cursor: pointer; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 40rem) {
  .panel { padding: 1.5rem 1.25rem; border-radius: 1.25rem; }
  .panel dl div { grid-template-columns: 1fr; gap: 0.25rem; }
}
.open-hero p.label { font-family: var(--body); font-size: 0.75rem; color: var(--muted); max-width: none; }
