/* Maximum Capacity — marketing site. Mirrors packages/mc_ui tokens exactly. */

:root {
  --ground: #FAFAF7;
  --surface: #FFFFFF;
  --raised: #F2F1EC;
  --ink: #0B0B0C;
  --muted: #5C5C5F;
  --faint: #9A9994;
  --hair: #E3E1DA;
  --gold: #A8841A;
  --gold-text: #8A6508;
  --gold-subtle: #F7EED3;
  --alert: #B42318;
  --alert-text: #9A1C12;
  --alert-subtle: #FBE9E7;
  --focus: #0B0B0C;
  --on-ink: #FAFAF7;

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s-xxs: 2px; --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px; --s-xxl: 32px; --s-xxxl: 48px;
  --r: 4px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0B0C;
    --surface: #141416;
    --raised: #1C1C1F;
    --ink: #F5F4EF;
    --muted: #A3A29C;
    --faint: #6B6B70;
    --hair: #2A2A2E;
    --gold: #E0B93A;
    --gold-text: #E0B93A;
    --gold-subtle: #2A2412;
    --alert: #F97066;
    --alert-text: #F97066;
    --alert-subtle: #2B1614;
    --focus: #F5F4EF;
    --on-ink: #0B0B0C;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/22px var(--body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r); }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 48px; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 20px; line-height: 26px; }
p { margin: 0 0 var(--s-md); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--s-md); padding-left: 1.25em; }
li + li { margin-top: var(--s-xs); }
small, .muted { color: var(--muted); }
.micro { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.label { font-size: 13px; line-height: 18px; font-weight: 500; }
.figure { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold-text); }
.display-figure { font: 500 40px/44px var(--mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-lg); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s-xl); } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--hair); background: var(--ground); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: var(--s-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--s-sm); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.mark { width: 28px; height: 28px; border-radius: var(--r); display: block; flex: none; box-shadow: 0 0 0 1px var(--hair); }
.nav { display: flex; align-items: center; gap: var(--s-lg); }
.nav a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: inherit; }
@media (max-width: 599px) { .nav .hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  min-height: 44px; padding: 0 var(--s-lg); border-radius: var(--r);
  font: 600 15px/22px var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { opacity: 0.9; background: var(--ink); }
.btn.ghost { border-color: transparent; }
.btn.sm { min-height: 36px; padding: 0 var(--s-md); font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s-lg); }
.hair-top { border-top: 1px solid var(--hair); }
.hair-bottom { border-bottom: 1px solid var(--hair); }
section { padding: var(--s-xxxl) 0; }
section + section { border-top: 1px solid var(--hair); }
.section-head { margin-bottom: var(--s-xl); max-width: 640px; }
.section-head .micro { margin-bottom: var(--s-sm); }
.section-head p { color: var(--muted); margin-top: var(--s-sm); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: var(--s-xxxl) 0; }
.hero .grid { display: grid; gap: var(--s-xxl); align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-xxxl); } }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; }
.hero .lede { font-size: 18px; line-height: 28px; color: var(--muted); margin: var(--s-lg) 0 var(--s-xl); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }
.hero-note { margin-top: var(--s-md); font-size: 13px; color: var(--muted); }

/* Readout band — the app's Capacity Readout, in CSS. Gold on the one earned figure. */
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); }
.readout > div { padding: var(--s-lg); }
.readout > div + div { border-left: 1px solid var(--hair); }
.readout .micro { margin-bottom: var(--s-sm); }
.readout .v { font: 500 28px/32px var(--mono); font-variant-numeric: tabular-nums; }
.readout .v.gold { color: var(--gold-text); }
.readout .c { margin-top: var(--s-xs); font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .readout .v { font-size: 22px; line-height: 26px; } }

/* Phone frame */
.phone { display: block; width: min(300px, 78vw); margin: 0 auto; border: 1px solid var(--hair); border-radius: 28px; padding: 10px; background: var(--surface); }
.phone img { width: 100%; border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--ground); }

/* ── Pillars ────────────────────────────────────────────────────────────── */
.pillar { display: grid; gap: var(--s-xl); align-items: center; padding: var(--s-xxl) 0; }
.pillar + .pillar { border-top: 1px solid var(--hair); }
@media (min-width: 800px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: var(--s-xxxl); }
  .pillar:nth-child(even) .phone-col { order: -1; }
}
.pillar .n { font: 500 13px/18px var(--mono); color: var(--muted); margin-bottom: var(--s-sm); }
.pillar h3 { font-size: 28px; line-height: 34px; margin-bottom: var(--s-md); }
.pillar p { color: var(--muted); max-width: 34em; }
.pillar ul { color: var(--muted); margin-top: var(--s-md); padding-left: 1.1em; }
.pillar ul li::marker { color: var(--faint); }

/* ── Who / how ──────────────────────────────────────────────────────────── */
.cols { display: grid; gap: var(--s-lg); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols .card h3 { font-size: 20px; margin-bottom: var(--s-sm); }
.cols .card p { color: var(--muted); }

/* ── Store ──────────────────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }
.badge { display: inline-block; height: 48px; }
.badge img { height: 48px; width: auto; }
.badge.play img { height: 48px; width: auto; }
.store-note { margin-top: var(--s-md); font-size: 13px; color: var(--muted); }
.hidden { display: none !important; }

/* ── Form ───────────────────────────────────────────────────────────────── */
form { display: grid; gap: var(--s-lg); }
.field { display: grid; gap: var(--s-xs); }
.field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
input, textarea {
  font: 400 15px/22px var(--body); color: var(--ink); background: var(--raised);
  border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s-md); width: 100%; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.status { min-height: 22px; font-size: 13px; }
.status.ok { color: var(--gold-text); }
.status.err { color: var(--alert-text); }
.grecaptcha-badge { visibility: hidden; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hair); padding: var(--s-xl) 0 var(--s-xxl); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: var(--s-lg); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-md) var(--s-lg); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Documents (privacy/terms/support) ──────────────────────────────────── */
.doc { max-width: 720px; padding: var(--s-xxl) 0 var(--s-xxxl); }
.doc h1 { margin-bottom: var(--s-sm); }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: var(--s-xxl); }
.doc h2 { font-size: 20px; line-height: 26px; margin: var(--s-xxl) 0 var(--s-md); padding-top: var(--s-xl); border-top: 1px solid var(--hair); }
.doc h3 { font-size: 15px; line-height: 22px; margin: var(--s-lg) 0 var(--s-sm); font-family: var(--body); }
.doc table { width: 100%; border-collapse: collapse; margin: var(--s-md) 0; font-size: 13px; line-height: 18px; }
.doc th, .doc td { text-align: left; padding: var(--s-sm) var(--s-md); border-bottom: 1px solid var(--hair); vertical-align: top; }
.doc th { font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--raised); padding: 1px 4px; border-radius: var(--r); }
.toc { border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s-lg); background: var(--surface); margin-bottom: var(--s-xl); }
.toc ol { margin: var(--s-sm) 0 0; columns: 2; column-gap: var(--s-xl); font-size: 13px; }
@media (max-width: 599px) { .toc ol { columns: 1; } }
.callout { border: 1px solid var(--hair); border-left: 3px solid var(--gold); border-radius: var(--r); padding: var(--s-md) var(--s-lg); background: var(--surface); margin: var(--s-lg) 0; }
.faq details { border-top: 1px solid var(--hair); padding: var(--s-md) 0; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-md); min-height: 32px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--faint); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: var(--s-sm); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-md); padding: var(--s-md) 0; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(step); font: 500 15px/20px var(--mono); color: var(--gold-text); }
