/* aftos public site — styles ("Ink & Ember", v6 editorial portfolio).
   Ported from the approved design; consumes tokens.css vars. Design->token map:
   --ink→--text, --ember→--brand, --ember-ink→--brand-ink, --bronze→--accent,
   --brew→--warn. The band-* palette and --ember-tint aren't in tokens.css, so they
   live here (light :root + dark overrides). No raw hex except the band vars + rgba(). */

:root {
  --ember-tint: #f8e5da;
  --band-bg: #161009; --band-ink: #f0eae2; --band-muted: #a89577;
  --band-line: #332c24; --band-ember: #ff6a33; --band-surface: #211a12;
  --band-ok: #5fbe8a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ember-tint: #33200f;
    --band-bg: #0e0b08; --band-surface: #1a140e;
  }
}
:root[data-theme="dark"] {
  --ember-tint: #33200f;
  --band-bg: #0e0b08; --band-ink: #f0eae2; --band-muted: #a89577;
  --band-line: #332c24; --band-ember: #ff6a33; --band-surface: #1a140e;
  --band-ok: #5fbe8a;
}
:root[data-theme="light"] {
  --ember-tint: #f8e5da;
  --band-bg: #161009; --band-ink: #f0eae2; --band-muted: #a89577;
  --band-line: #332c24; --band-ember: #ff6a33; --band-surface: #211a12;
  --band-ok: #5fbe8a;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
.muted { color: var(--muted); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
h2.display {
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; letter-spacing: -.025em;
  font-weight: 800; margin: .4em 0 .5em; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin: 0; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brandlock { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brandlock .word { font-weight: 800; letter-spacing: -.03em; font-size: 21px; }
.brandlock svg { color: var(--brand); }
.topnav { display: flex; gap: 26px; font-size: 13.5px; font-weight: 600; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover, .topnav a:focus-visible { color: var(--brand); }

/* Nav disclosure (<details class="navmenu">). Desktop: the summary is hidden and the
   links sit inline whether or not the details is open — this author rule outranks the
   UA's `details:not([open]) > *:not(summary) { display: none }` on specificity.
   Phone: the summary becomes the menu button and .topnav becomes the dropped panel.
   The footer still carries every route as well (LEARNINGS AS-6). */
.navmenu { position: relative; }
.navmenu > summary {
  display: none; list-style: none; cursor: pointer;
  width: var(--tap); height: var(--tap);
  border: 1px solid var(--line); border-radius: 12px;
  align-items: center; justify-content: center; color: var(--text);
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary:hover { border-color: var(--brand); color: var(--brand); }
.navmenu > summary .i-close { display: none; }
.navmenu[open] > summary .i-close { display: block; }
.navmenu[open] > summary .i-burger { display: none; }
.navmenu > .topnav { display: flex; }

@media (max-width: 640px) {
  .navmenu > summary { display: flex; }
  .navmenu > .topnav { display: none; }
  .navmenu[open] > .topnav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
    min-width: 210px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 12px 30px rgba(40, 20, 10, .14); padding: 6px;
  }
  .navmenu[open] > .topnav a {
    display: flex; align-items: center; min-height: var(--tap);
    padding: 0 14px; border-radius: 10px; font-size: 15px; color: var(--text);
  }
  .navmenu[open] > .topnav a:hover { background: var(--surface-2); color: var(--brand); }
}

/* ---------- section grounds ----------
   Each section owns a FULL-BLEED background band — edge of screen to edge of screen.
   The copy inside still sits in .wrap (max 1120px, centred), so nothing gets narrower;
   only the ground behind it changes. This is what stops the page reading as one flat
   sheet of ink-on-paper: hero on --surface, manifesto on --surface-2, the stack band
   dark, the portfolio back on paper so the white plates pop, follow-along on --surface-2.
   No frames, no insets, no rounded section corners. */

/* ---------- hero ---------- */
.hero { position: relative; padding: 9vh 0 64px; overflow: hidden; background: var(--surface); }
.hero-mark {
  position: absolute; right: -8vw; top: -4vh; width: min(58vw, 620px); height: auto;
  color: var(--brand); opacity: .13; pointer-events: none;
}
.hero-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawself 2.4s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
@keyframes drawself { to { stroke-dashoffset: 0; } }
.herokick { display: flex; align-items: center; gap: 14px; position: relative; }
.herokick svg { flex: none; }
.herokick .la { stroke: var(--brand); stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawself 1.7s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
.herokick .lb { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawself .9s ease-out 1.9s forwards; }
.statuslead {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  border: 1.5px solid var(--brand); border-radius: 99px; padding: 7px 14px;
}
.hero h1 {
  font-size: clamp(46px, 8.4vw, 108px); line-height: .98; letter-spacing: -.045em;
  font-weight: 800; margin: .55em 0 .35em; max-width: 11ch; text-wrap: balance; position: relative;
}
.hero .sub { font-size: clamp(17px, 1.9vw, 21px); max-width: 52ch; margin: 0 0 40px; position: relative; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-family: inherit;
}
.btn-ember { background: var(--brand); color: var(--brand-ink); }
.btn-ember:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.statusrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 56px; position: relative; }
.statuschip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 650;
}
.dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.dot.ok { background: var(--ok); }
.dot.brew { background: var(--warn); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.statuschip .st { color: var(--muted); font-weight: 600; }
/* the folded "N unannounced" chip — dashed, so it reads as a placeholder not a product */
.statuschip.fold { border-style: dashed; border-color: var(--accent); }
.statuschip .n { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- manifesto ---------- */
.manifesto { padding: 88px 0 72px; background: var(--surface-2); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .manifesto-grid { grid-template-columns: 1fr; gap: 28px; } }
.gr-word { font-family: Georgia, serif; font-style: italic; font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 0; }
.gr-word small { display: block; font-size: 15px; color: var(--muted); margin-top: 14px; font-style: normal; }
.manifesto p { margin: 0 0 1em; font-size: clamp(17px, 1.7vw, 20px); }
.manifesto p:last-child { margin-bottom: 0; }

/* ---------- the stack band ---------- */
.band { background: var(--band-bg); color: var(--band-ink); padding: 96px 0 88px; position: relative; }
.band .kicker { color: var(--band-muted); }
.band h2.display { color: var(--band-ink); }
.band .lede { color: var(--band-ink); }
.gridbg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--band-line) 1px, transparent 1px) 0 0/100% 56px,
    linear-gradient(90deg, var(--band-line) 1px, transparent 1px) 0 0/56px 100%;
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.band .wrap { position: relative; }

/* pipeline */
.pipeline-scroll { overflow-x: auto; margin: 44px -24px 8px; padding: 0 24px; }
.pipeline { min-width: 1000px; }
.pipeline text { font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: var(--band-ink); }
.pipeline .nlab { font-size: 13.5px; font-weight: 700; }
.pipeline .slab { font-size: 10.5px; fill: var(--band-muted); font-weight: 600; }
.pipeline .glab { font-size: 10px; fill: var(--band-ember); font-weight: 700; letter-spacing: .06em; }
.pipeline .rlab { font-size: 10.5px; fill: var(--band-muted); font-weight: 700; letter-spacing: .04em; }
.pipeline .node { fill: var(--band-surface); stroke: var(--band-line); stroke-width: 1.5; }
.pipeline .spine { stroke: var(--band-line); stroke-width: 2; fill: none; }
.pipeline .flow {
  stroke: var(--band-ember); stroke-width: 2.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 22 340; animation: flowmove 4.5s linear infinite;
}
@keyframes flowmove { to { stroke-dashoffset: -362; } }
.pipeline .gate { fill: var(--band-bg); stroke: var(--band-ember); stroke-width: 2; }
.pipeline .gatebar { stroke: var(--band-ember); stroke-width: 2.5; stroke-linecap: round; }
.pipeline .ladder { fill: none; stroke: var(--band-ember); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .85; }
.pipeline .ret { fill: none; stroke: var(--band-muted); stroke-width: 2.5; stroke-dasharray: 7 7; }
.pipeline .fb { fill: none; stroke: var(--band-ember); stroke-width: 2.5; stroke-dasharray: 7 7; opacity: .95; }
.pipeline .arr { fill: var(--band-muted); stroke: none; }
.pipeline .arr-e { fill: var(--band-ember); stroke: none; }
.pipeline .arr-ok { fill: var(--band-ok); stroke: none; }
.pipeline .chip-pass { fill: var(--band-bg); stroke: var(--band-ok); stroke-width: 2; }
.pipeline .chiplab-pass { font-size: 11px; font-weight: 800; letter-spacing: .12em; fill: var(--band-ok); }
.pipeline .chip-fail { fill: var(--band-bg); stroke: #e5a94e; stroke-width: 2; }
.pipeline .chiplab-fail { font-size: 11px; font-weight: 800; letter-spacing: .12em; fill: #e5a94e; }
.pipeline .rlab { font-size: 11px; }

.pipefoot { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--band-muted); font-weight: 600; }
.pipefoot .k { display: inline-flex; align-items: center; gap: 7px; }
.pipefoot .swatch { width: 16px; height: 3px; border-radius: 2px; background: var(--band-ember); }
.pipefoot .rsw { width: 16px; height: 0; border-top: 2px dashed var(--band-muted); }
.pipefoot .fsw { width: 16px; height: 0; border-top: 2px dashed var(--band-ember); }
.pipefoot .gsw { width: 11px; height: 11px; border-radius: 99px; border: 2px solid var(--band-ember); }

/* feedback highlight strip */
.fbstrip {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--band-surface); border: 1px solid var(--band-line); border-left: 3px solid var(--band-ember);
  border-radius: 16px; padding: 22px 26px; margin-top: 34px;
}
@media (max-width: 640px) { .fbstrip { grid-template-columns: 1fr; } }
.fbstrip svg { color: var(--band-ember); }
.fbstrip h4 { margin: 0 0 6px; font-size: 17px; color: var(--band-ink); letter-spacing: -.01em; }
.fbstrip p { margin: 0; font-size: 14.5px; color: var(--band-muted); max-width: 70ch; }
.fbstrip p b { color: var(--band-ink); }

/* ticker */
.ticker {
  margin-top: 36px; border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
  overflow: hidden; white-space: nowrap; padding: 10px 0;
  font-size: 12.5px; color: var(--band-muted); font-weight: 600;
}
.ticker-inner { display: inline-block; animation: tick 38s linear infinite; padding-right: 60px; }
.ticker b { color: var(--band-ink); font-weight: 700; }
.ticker .e { color: var(--band-ember); }
@keyframes tick { to { transform: translateX(-50%); } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--band-surface); border: 1px solid var(--band-line); border-radius: 16px; padding: 26px 24px; }
.pillar .pk { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--band-ember); margin-bottom: 12px; }
.pillar h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; color: var(--band-ink); }
.pillar p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--band-muted); }

/* command center feature */
.cc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 84px; }
@media (max-width: 860px) { .cc { grid-template-columns: 1fr; gap: 40px; } }
.cc h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin: 0 0 14px; color: var(--band-ink); font-weight: 800; }
.cc p { color: var(--band-ink); font-size: 16px; margin: 0 0 12px; max-width: 52ch; }
.cc p b { color: var(--band-ink); }
.phone {
  width: min(290px, 82vw); margin: 0 auto;
  background: #000; border-radius: 36px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.phone-screen { background: #0f1513; border-radius: 28px; overflow: hidden; color: #e7ece9; }
.phone-head {
  background: #17201d; padding: 13px 15px 11px; border-bottom: 1px solid #2c3a34;
  display: flex; justify-content: space-between; align-items: center;
}
.phone-head .t { font-size: 12px; font-weight: 800; letter-spacing: -.01em; color: #17a98f; }
.phone-head .badge { background: #eda23a; color: #182320; border-radius: 99px; padding: 2px 9px; font-size: 10px; font-weight: 800; }
.phone-sub { background: #17201d; color: #93a19b; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 9px 15px 9px; }
.phone-body { padding: 11px 11px 6px; }
.pcard { background: #17201d; border: 1px solid #2c3a34; border-radius: 13px; padding: 10px 12px; margin-bottom: 8px; }
.pcard .pt { font-size: 11.5px; font-weight: 750; margin-bottom: 2px; display: flex; justify-content: space-between; gap: 6px; color: #e7ece9; }
.pcard .pt .ws { color: #93a19b; font-weight: 650; font-size: 10px; }
.pcard .pm { font-size: 10px; color: #93a19b; margin-bottom: 8px; line-height: 1.4; }
.pbtns { display: flex; gap: 6px; }
.pbtn { font-size: 10px; font-weight: 750; border-radius: 9px; padding: 6px 11px; }
.pbtn.go { background: #17a98f; color: #04120f; }
.pbtn.hold { border: 1px solid #2c3a34; color: #e7ece9; }
.phone-tabs { display: flex; justify-content: space-around; border-top: 1px solid #2c3a34; padding: 9px 0 7px; font-size: 8.5px; color: #93a19b; font-weight: 750; background: #17201d; }
.phone-tabs .on { color: #17a98f; position: relative; }
.phone-tabs .on .tbadge {
  position: absolute; top: -4px; right: -10px; width: 12px; height: 12px; border-radius: 99px;
  background: #eda23a; color: #182320; font-size: 8px; line-height: 12px; text-align: center;
}
.cc-cap { font-size: 11.5px; color: var(--band-muted); text-align: center; margin-top: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* numbers strip */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 84px; border-top: 1px solid var(--band-line); padding-top: 44px; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.num .n { font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; color: var(--band-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.num .n span { color: var(--band-ember); }
.num .l { font-size: 12.5px; color: var(--band-muted); font-weight: 650; margin-top: 8px; letter-spacing: .04em; }

/* ---------- portfolio plates ---------- */
.portfolio { padding: 100px 0 40px; }
.port-head { max-width: 64ch; margin-bottom: 26px; }
.plates { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; }
.plate {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; position: relative;
}
.plate.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.plate.flip .plate-body { order: 2; }
.plate.flip .plate-art { order: 1; }
@media (max-width: 820px) {
  .plate, .plate.flip { grid-template-columns: 1fr; }
  .plate.flip .plate-body { order: 1; }
  .plate.flip .plate-art { order: 2; }
}
.plate-body { padding: 38px 40px 34px; position: relative; }
@media (max-width: 560px) { .plate-body { padding: 28px 22px 26px; } }
.plate-idx {
  position: absolute; top: 22px; right: 26px;
  font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  font-variant-numeric: tabular-nums; user-select: none;
}
.plate-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-size: 10.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; color: var(--muted);
}
.chip.infra { border-color: var(--brand); color: var(--brand); }
.stat { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.stat.live { color: var(--ok); }
.stat.brew { color: var(--warn); }
.plate h3 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.02em; margin: 0 0 10px; }
.plate .desc { margin: 0 0 18px; max-width: 46ch; }
.plate .facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; margin-bottom: 20px; }
.plate .facts span::before { content: "— "; color: var(--accent); }
.plate-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.visit { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; color: var(--brand); text-decoration: none; }
.visit:hover { text-decoration: underline; }
.notify { font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.notify:hover { color: var(--brand); border-color: var(--brand); }
.plate-art {
  background: var(--surface-2); border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 260px;
}
.plate.flip .plate-art { border-left: none; border-right: 1px solid var(--line); }
@media (max-width: 820px) { .plate-art, .plate.flip .plate-art { border: none; border-top: 1px solid var(--line); min-height: 210px; } }
.plate-art svg { width: min(220px, 60%); height: auto; color: var(--brand); }
.plate-art .b2 { color: var(--accent); }

/* stack plate (leads the exhibition) */
.plate-eight { background: var(--band-bg); color: var(--band-ink); border-color: var(--band-line); }
.plate-eight .plate-idx { -webkit-text-stroke-color: var(--band-line); }
.plate-eight .chip { border-color: var(--band-ember); color: var(--band-ember); }
.plate-eight .desc { color: var(--band-ink); }
.plate-eight .facts { color: var(--band-muted); }
.plate-eight .plate-art { background: var(--band-surface); border-color: var(--band-line); }
.plate-eight .notify { color: var(--band-muted); border-color: var(--band-line); }
.plate-eight .notify:hover { color: var(--band-ember); border-color: var(--band-ember); }
.plate-eight .stat.brew { color: #e5a94e; }

/* the folded "N under construction" plate — one box for every unannounced idea.
   Same surfaces as every other plate (--surface body, --surface-2 art panel); only
   the dashed border marks it as a placeholder rather than a product. */
.plate-vault { border-style: dashed; border-color: var(--accent); }
.plate-vault .plate-art { border-left-style: dashed; border-left-color: var(--accent); }
.plate-vault .plate-art svg { opacity: .75; }
.plate-vault .vault-n {
  font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1; font-variant-numeric: tabular-nums; margin: 0 0 6px;
}
.plate-vault h3 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 10px; }
@media (max-width: 820px) {
  .plate-vault .plate-art { border-left: none; border-top-style: dashed; border-top-color: var(--accent); }
}

/* ---------- interest ---------- */
.interest { padding: 96px 0 90px; background: var(--surface-2); }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .interest-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- unsubscribe ---------- */
.unsub { max-width: 62ch; padding: 40px 0 24px; }
.unsub .plate-actions { gap: 18px; }

/* ---------- sub-page frame: /support ---------- */
.pagebreak { display: flex; align-items: center; gap: 18px; padding: 64px 0 0; }
.pagebreak .pb-line { flex: 1; border-top: 2px dashed var(--line); }
.pagebreak .pb-label {
  font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px;
  background: var(--surface);
}
.support { padding: 72px 0 60px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.scard .sk { font-size: 11px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.scard h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.015em; }
.scard p { margin: 0 0 16px; font-size: 15px; color: var(--text); }
.scard .fine { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 14px; }
.scard.invest { border: 1.5px solid var(--brand); }
.tierlist { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 18px; }
.tier {
  display: flex; align-items: baseline; gap: 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 14px;
}
.tier b { font-variant-numeric: tabular-nums; color: var(--brand); min-width: 44px; }
.mailbtn { margin-top: 2px; }
.btn.disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn.disabled:hover { filter: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 60px; }
.foot-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.foot-cta { font-weight: 750; font-size: 15.5px; color: var(--brand); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.foot-cta:hover, .foot-cta:focus-visible { text-decoration: underline; }
.foot-cta.quiet { color: var(--muted); font-weight: 650; font-size: 14px; }
.foot-cta.quiet:hover { color: var(--brand); }
.foot-sep { width: 4px; height: 4px; border-radius: 99px; background: var(--accent); opacity: .6; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .sig { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.foot .sig svg { color: var(--brand); }
.foot .mail { font-size: 14px; color: var(--muted); }
.foot .mail a { color: var(--text); font-weight: 650; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- interest form (app) */
/* htmx-driven form used inside plates + the interest section; anti-spam honeypot. */
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.interest-form { display: flex; flex-direction: column; gap: .6rem; max-width: 460px; }
.interest-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.interest-row input[type="email"] {
  flex: 1 1 200px; min-height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 15.5px;
}
.interest-row input[type="email"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.interest-row .btn { flex: 0 0 auto; }
.interest-error { color: var(--danger); font-size: .9rem; margin: 0; }
.interest-gdpr, .consent { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.interest-thanks { color: var(--ok); font-weight: 650; }

/* ------------------------------------------------------------------------- admin */
.admin-page { max-width: 1120px; margin: 0 auto; padding: 24px; }
.admin-page h1 { margin-bottom: .25rem; }
.admin-products { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .admin-products { grid-template-columns: repeat(2, 1fr); } }
.admin-product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem;
}
.admin-product-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.admin-product-head h3 { margin: 0; }
.saved-flash { color: var(--ok); font-size: .85rem; font-weight: 600; }
.admin-product label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--muted); }
.admin-product label.check { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); }
.admin-product input[type="text"],
.admin-product input[type="email"],
.admin-product select,
.admin-product textarea {
  padding: .5rem .7rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: .95rem; font-family: inherit;
}
.admin-product input[type="checkbox"] { width: 20px; height: 20px; }
.admin-product .btn { align-self: flex-start; }
.admin-product .hint { font-size: 11.5px; color: var(--muted); }

/* three-way visibility control (replaces the Live + Hidden checkboxes) */
.admin-product fieldset.vis { border: none; margin: 0; padding: 0; }
.admin-product fieldset.vis legend {
  padding: 0 0 .4rem; font-size: .9rem; color: var(--muted);
}
.vis-row { display: flex; gap: 8px; flex-wrap: wrap; }
.vis-opt { flex: 1 1 auto; }
.vis-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vis-opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 14px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; text-align: center;
}
.vis-opt input:checked + span {
  border-color: var(--brand); color: var(--brand); background: var(--ember-tint);
}
.vis-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.admin-buy-slot { border: 1px dashed var(--line); border-radius: var(--radius); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.v2-badge { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-signups { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signup-counts { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 420px; }
.signup-counts li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.signup-counts li.total { font-weight: 700; border-bottom: none; }
.admin-csv { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-signups .hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; max-width: 56ch; }

/* ------------------------------------------------------------------------- login */
.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; width: min(320px, 90vw); text-align: center;
}
.login-logo {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem; margin: 0 auto 1rem;
}
.login-card form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.login-card input, .login-card button {
  padding: .7rem .9rem; border-radius: var(--radius); border: 1px solid var(--line);
  font-size: 1rem; min-height: var(--tap);
}
.login-card button { background: var(--brand); color: var(--brand-ink); border: none; font-weight: 600; cursor: pointer; }
.toast { padding: .6rem .9rem; border-radius: var(--radius); font-size: .9rem; }
.toast.err { background: var(--danger-bg); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .hero-mark path { animation: none; stroke-dashoffset: 0; }
  .dot.brew { animation: none; }
  .pipeline .flow { animation: none; stroke-dasharray: none; opacity: .5; }
  .ticker-inner { animation: none; }
}
