/* Compodish's look, from mise-spec/design/tokens.json: canvas, surface, ink, brand;
   Instrument Serif for display, Geist for text. Light and dark follow the device. */
:root {
  --canvas: #e8e5e0;
  --surface: #f7f5f1;
  --sunken: #f0eee9;
  --well: #e4e0d9;
  --ink-rgb: 31, 29, 27;
  --ink: #1f1d1b;
  --ink2: rgba(var(--ink-rgb), 0.78);
  --ink3: rgba(var(--ink-rgb), 0.56);
  --ink4: rgba(var(--ink-rgb), 0.46);
  --track: rgba(var(--ink-rgb), 0.12);
  --rule: rgba(var(--ink-rgb), 0.10);
  --fill: rgba(var(--ink-rgb), 0.07);
  --tint: rgba(var(--ink-rgb), 0.045);
  --on-solid: #f7f5f1;
  --brand: #c67139;
  --positive: #4c6a35;
  --positive-fill: #e3ead9;
  --negative: #a3402a;
  --gold-top: #efd9a4;
  --gold-mid: #d8b670;
  --gold-bottom: #c49d55;
  --gold-ring: #b0883a;
  --on-gold: #2b210c;
  --flame-deep: #3f6fd1;
  --flame-blue: #6f9cf0;
  --flame-orange: #f3a54c;
  --flame-tip: #ffd88a;
  --stove-warm: #f39a4c;
  --burner: #4a4541;
  --burner-top: #6b6560;
  --raised: 0 10px 24px rgba(0, 0, 0, 0.10);
  --sunken-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.16);
  --warmth: 0.32;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0e0d0c;
    --surface: #1a1816;
    --sunken: #151412;
    --well: #121110;
    --ink-rgb: 242, 238, 232;
    --ink: #f2eee8;
    --rule: rgba(var(--ink-rgb), 0.08);
    --fill: rgba(var(--ink-rgb), 0.08);
    --tint: rgba(var(--ink-rgb), 0.05);
    --on-solid: #141210;
    --brand: #d98a55;
    --positive: #a3c487;
    --positive-fill: #1f261a;
    --negative: #e58a72;
    --gold-top: #e0bf74;
    --gold-mid: #c29a4c;
    --gold-bottom: #a17834;
    --gold-ring: #d6b268;
    --on-gold: #1c1608;
    --flame-deep: #4c7de0;
    --flame-blue: #86b0ff;
    --flame-orange: #f7ae55;
    --flame-tip: #ffe09a;
    --burner: #2b2826;
    --burner-top: #45403c;
    --raised: 0 18px 32px rgba(0, 0, 0, 0.55);
    --sunken-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
    --warmth: 0.22;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--ink3); }
a:hover { text-decoration-color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1040px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; gap: 12px 16px; flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 "Instrument Serif", Georgia, serif; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
nav { display: flex; gap: 16px; }
nav a { font-size: 15px; color: var(--ink2); text-decoration: none; }
nav a:hover { color: var(--ink); }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(44px, 9vw, 72px); margin: 48px 0 16px; letter-spacing: -0.5px; }
h2 { font-size: 30px; margin: 44px 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 26px 0 6px; }
.lede { font-size: 20px; color: var(--ink2); max-width: 34em; }
.card { background: var(--surface); border-radius: 22px; padding: 24px 26px; margin: 18px 0; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--ink2); }
.note { color: var(--ink3); font-size: 15px; }
.kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink4); margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.doc { padding-bottom: 40px; }
.doc p, .doc li { color: var(--ink2); }
.doc li { margin: 4px 0; }
.updated { color: var(--ink3); font-size: 15px; margin-top: -4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
td { color: var(--ink2); }
@media (max-width: 560px) {
  nav { gap: 14px; }
  nav a { font-size: 14px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { color: var(--ink); font-weight: 600; }
}
footer.site { border-top: 1px solid var(--rule); margin-top: 56px; padding: 22px 0 40px; font-size: 14px; color: var(--ink3); }
footer.site a { margin-right: 16px; }

/* ——— The landing page ——— */

/* Hero: the real recording beside the headline and the waitlist. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 72px; align-items: center;
  grid-template-areas: "title phone" "text phone";
  padding-top: 24px;
}
.hero h1 { grid-area: title; align-self: end; margin: 0 0 18px; font-size: clamp(48px, 7.4vw, 84px); line-height: 0.98; letter-spacing: -1.2px; }
.hero-text { grid-area: text; align-self: start; }
.hero .lede { margin: 0; }
.hero .join { margin: 30px 0 0; }
.phone { grid-area: phone; margin: 0; }
.phone video {
  display: block; width: 320px; height: auto; aspect-ratio: 430 / 932; border-radius: 48px; object-fit: cover;
  background: #e7e3df; box-shadow: 0 0 0 8px #1f1d1b, var(--raised);
}
@media (prefers-color-scheme: dark) { .phone video { box-shadow: 0 0 0 8px #2b2826, var(--raised); } }
.phone figcaption { margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink4); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "phone" "text"; text-align: center; padding-top: 8px; }
  .hero h1 { margin: 12px 0 24px; }
  .phone { justify-self: center; }
  .phone video { width: min(300px, 74vw); border-radius: 42px; margin: 0 auto; }
  .hero-text { margin-top: 28px; }
  .hero .lede { margin: 0 auto; }
  .hero .join { margin: 26px auto 0; }
}

/* Join the waitlist: a field and the primary button, one look wherever it appears. */
.join { max-width: 480px; margin: 30px auto 0; position: relative; }
.join-row { display: flex; gap: 10px; }
.field {
  flex: 1; min-width: 0; height: 54px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--ink); font: 400 17px "Geist", system-ui, sans-serif;
  outline: none; transition: box-shadow 0.18s;
}
.field::placeholder { color: var(--ink4); }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--negative); }
.primary {
  height: 54px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--on-solid); font: 600 16px "Geist", system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14); white-space: nowrap;
  transition: transform 0.12s, opacity 0.18s;
}
.primary:active { transform: scale(0.97); }
.primary:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join .error { color: var(--negative); font-size: 13px; line-height: 18px; margin: 8px 0 0 20px; text-align: left; }
.join .error:empty { display: none; }
.join .banner {
  display: none; width: fit-content; max-width: 100%; margin: 0;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 21px;
  color: var(--positive); background: var(--positive-fill);
}
.closing .join .banner { margin: 0 auto; }
@media (max-width: 860px) { .hero .join .banner { margin: 0 auto; } }
.join.joined .join-row, .join.joined .error { display: none; }
.join.joined .banner { display: block; }
@media (max-width: 480px) {
  .join-row { flex-direction: column; }
  .join-row .field { flex: none; width: 100%; }
  .primary { width: 100%; }
}

/* Layer by layer: a real import, as an exploded view. */
.layers { margin-top: 120px; }
.layers > h2 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 48px); }
.layers-lede { margin: 0 0 36px; max-width: 36em; color: var(--ink2); font-size: 18px; }
.layers-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.rail button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
  padding: 14px 18px 14px 20px; border-radius: 18px; position: relative;
  transition: background 0.18s;
}
.rail button::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 1px; background: var(--track);
}
.rail button:hover { background: var(--tint); }
.rail button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rail strong { display: block; font: 400 23px/1.15 "Instrument Serif", Georgia, serif; color: var(--ink3); transition: color 0.18s; }
.rail .what { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink4); }
.rail .done strong { color: var(--ink2); }
.rail .done::before { background: var(--ink3); }
.rail [aria-current="step"] { background: var(--surface); box-shadow: var(--raised); }
.rail [aria-current="step"]::before { background: var(--ink); }
.rail [aria-current="step"] strong { color: var(--ink); }
.rail [aria-current="step"] .what { color: var(--ink3); }

.explode {
  position: relative; height: 600px; border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: var(--raised);
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wires path { fill: none; stroke: var(--ink4); stroke-width: 1; stroke-linecap: round; opacity: 0.55; }
.nodes { position: absolute; inset: 0; }
.node { position: absolute; left: 0; top: 0; transform: translateX(-50%); transition: opacity 0.2s; }
.node .inner { display: flex; flex-direction: column; align-items: center; }
.node .well img, .node .label, .url-pill { transition: opacity 0.25s; }
.wires path { transition: opacity 0.2s; }
.node .well { width: var(--s); height: var(--s); }
.node .label { margin-top: 8px; text-align: center; font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.node .label small { display: block; font-size: 12px; font-weight: 400; color: var(--ink4); }
.node.dish .label { font: 400 24px/1.05 "Instrument Serif", Georgia, serif; white-space: normal; width: 260px; }
.node.dish .label small { margin-top: 6px; font: 400 13px "Geist", system-ui, sans-serif; }
.node.ing { cursor: default; }
.node.ing .well { transition: transform 0.15s; }
.node.ing:hover .well, .node.ing.tipped .well { transform: scale(1.12); }
.url-pill {
  position: absolute; left: 50%; top: calc(var(--s) + 14px); transform: translateX(-50%); height: 40px; padding: 0 18px; border-radius: 999px;
  display: flex; align-items: center; background: var(--fill); font-size: 15px; color: var(--ink2); white-space: nowrap;
}
.url-pill .caret { width: 1.5px; height: 18px; margin-left: 1px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tip {
  position: absolute; left: 0; top: 0; margin: 0; padding: 4px 10px; border-radius: 999px; pointer-events: none;
  background: var(--ink); color: var(--on-solid); font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity 0.12s;
}
.tip.on { opacity: 1; }
.layers-note { margin-top: 16px; font-size: 13px; }
@media (max-width: 860px) {
  .layers { margin-top: 88px; }
  .layers-grid { grid-template-columns: 1fr; gap: 16px; }
  .explode { order: -1; height: 600px; }
  .rail { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail li { flex: 0 0 78%; scroll-snap-align: start; }
  .rail button { height: 100%; }
}

/* Compose: a new dish from saved components, the same drawing run the other way. */
.compose { margin-top: 128px; }
.compose .layers-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.compose .rail { order: 2; }
.compose-box { height: 640px; }
.shelf { position: absolute; border-radius: 20px; background: var(--tint); }
.role-h { position: absolute; left: 0; top: 0; transform: translateX(-50%); margin: 0; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink4); white-space: nowrap; }
.node.cand { all: unset; position: absolute; left: 0; top: 0; transform: translateX(-50%); cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.node.cand .inner { display: block; }
.node.cand .well { display: grid; transition: transform 0.15s, opacity 0.25s, box-shadow 0.2s; }
.node.cand:hover .well { transform: scale(1.1); }
.node.cand:active .well { transform: scale(0.94); }
.node.cand:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.compose-hint { position: absolute; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: var(--ink4); transition: opacity 0.3s; pointer-events: none; }
.compose-hint.off { opacity: 0; }
.node.cand.used .well { opacity: 0.28; }
.node.slot .well { background: none; box-shadow: none; border: 1.5px dashed var(--track); box-sizing: border-box; }
.node.placed .label { white-space: normal; }
.node.placed .label small { min-height: 18px; transition: color 0.25s; }
.node.placed.ready .label small { color: var(--positive); }
@media (max-width: 860px) {
  .compose { margin-top: 96px; }
  .compose .layers-grid { grid-template-columns: 1fr; }
  .compose .rail { order: 0; }
  .compose-box { height: 620px; }
  .node.placed .label { font-size: 13px; line-height: 16px; }
}

/* Closing: the welcome scene (components.md), the copper pan on a lit burner. */
.closing { text-align: center; margin-top: 96px; padding: 0 20px; margin-left: -20px; margin-right: -20px; overflow-x: clip; }
.closing h2 { font-size: clamp(34px, 5vw, 48px); margin: 18px 0 0; }
.closing .join { margin-top: 22px; }
.scene { position: relative; width: 340px; height: 190px; margin: 0 auto; }
.scene .warmth {
  position: absolute; left: -10px; right: -10px; top: 60px; height: 140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 154, 76, var(--warmth)), rgba(243, 154, 76, 0));
  animation: breathe 2.3s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) { .scene .warmth { left: -60px; right: -60px; } }
.scene .pan { position: absolute; left: 86px; top: 50px; width: 240px; height: auto; z-index: 2; }
.scene .burner { position: absolute; left: 100px; top: 150px; width: 128px; height: 14px; }
.scene .burner i { position: absolute; inset: 0; border-radius: 50%; background: var(--burner); }
.scene .burner i + i { inset: 0 6px 5px; background: var(--burner-top); }
.scene .flames { position: absolute; left: 118px; top: 112px; width: 92px; height: 42px; display: flex; justify-content: space-between; z-index: 1; }
.scene .flames i {
  width: 10px; height: 40px; align-self: flex-end;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: linear-gradient(to top, var(--flame-deep), var(--flame-blue) 38%, var(--flame-orange) 74%, var(--flame-tip));
  transform-origin: 50% 100%;
  animation: flicker 1.4s ease-in-out infinite alternate;
}
.scene .flames i:nth-child(1) { height: 33px; animation-duration: 1.15s; animation-delay: -0.3s; }
.scene .flames i:nth-child(2) { animation-duration: 1.55s; animation-delay: -0.9s; }
.scene .flames i:nth-child(3) { height: 42px; animation-duration: 1.3s; animation-delay: -0.5s; }
.scene .flames i:nth-child(4) { animation-duration: 1.7s; animation-delay: -1.2s; }
.scene .flames i:nth-child(5) { height: 33px; animation-duration: 1.25s; animation-delay: -0.1s; }
@keyframes flicker {
  0% { transform: scale(1, 1); }
  35% { transform: scale(0.92, 1.08); }
  70% { transform: scale(1.06, 0.93); }
  100% { transform: scale(0.97, 1.04); }
}
@keyframes breathe { from { opacity: 0.85; } to { opacity: 1; } }

/* Sign up: a floating pill at the thumb that takes you to the nearest form below. */
.toast-cta {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--on-solid); text-decoration: none;
  font: 600 13px/1 "Geist", system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 0); transition: transform 0.12s;
}
.toast-cta[hidden] { display: none; }
.toast-cta:active { transform: translate(-50%, 0) scale(0.96); }
.toast-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.toast-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Shared pieces (components.md) */
.well {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--well); box-shadow: var(--sunken-shadow);
}
.well img { width: 66%; height: 66%; }
.tnum { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .scene .flames i, .scene .warmth, .url-pill .caret { animation: none; }
}
