/* The one stylesheet for every page. Every colour and font comes from the
   tokens below; the brand colours are the usage line's doneness levels. */

@font-face { font-family: Bricolage; src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3f6f4;
  --bg-2: #e6eeea;
  --card: #ffffff;
  --line: #d2ddd8;
  --ink: #0e1416;
  --muted: #4c5b57;
  /* Kitchen tile: the brand colours are the usage line's own levels.
     Mint while there is plenty left: buttons, links, the chef's pick. */
  --accent: #0d7a62;
  --on-accent: #ffffff;
  /* Butter, as it runs low: highlights and stickers, always with dark text. */
  --pop: #ffd166;
  --on-pop: #0e1416;
  --focus: #0d7a62;
  --nav-bg: rgb(255 255 255 / 0.7);
  --shadow: 0 1px 2px rgb(14 20 22 / 0.06), 0 12px 32px -12px rgb(14 20 22 / 0.18);
  /* Terminal, the same in both themes. Cherry is cooked. */
  --term-bg: #0b1113;
  --term-bar: #162024;
  --term-text: #e8f2ee;
  --term-dim: #7f918c;
  --term-rare: #7ee0c3;
  --term-medium: #ffd166;
  --term-well: #ffa36c;
  --term-cooked: #ff5d73;

  --display: Bricolage, ui-sans-serif, system-ui, sans-serif;
  --body: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1416; --bg-2: #141c1f; --card: #172124; --line: #263337; --ink: #eef5f2; --muted: #93a5a0;
    --accent: #7ee0c3; --on-accent: #0b1a16; --pop: #ffd166; --focus: #7ee0c3;
    --nav-bg: rgb(23 33 36 / 0.68); --shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1416; --bg-2: #141c1f; --card: #172124; --line: #263337; --ink: #eef5f2; --muted: #93a5a0;
  --accent: #7ee0c3; --on-accent: #0b1a16; --pop: #ffd166; --focus: #7ee0c3;
  --nav-bg: rgb(23 33 36 / 0.68); --shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-wrap: break-word; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
p code { background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 6px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Glass pill header */
.nav-shell { position: sticky; top: 0; z-index: 10; padding: 12px 12px 0; }
.nav {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pop); font-size: 0.95rem; }
.nav nav { display: none; gap: 22px; font-size: 0.92rem; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
@media (min-width: 720px) { .nav nav { display: flex; } }
.nav .btn.signin { min-height: 44px; padding: 0 18px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 420px) {
  .nav-shell { padding-inline: 8px; }
  .nav { gap: 8px; padding-left: 8px; }
  .brand { gap: 6px; font-size: 0.92rem; }
  .nav .btn.signin { padding: 0 12px; font-size: 0.85rem; }
}
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--muted); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
a.btn { text-decoration: none; }
/* .btn sets display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
#sound-toggle .i-on, #sound-toggle[aria-pressed="true"] .i-off { display: none; }
#sound-toggle[aria-pressed="true"] .i-on { display: block; }

/* Hero */
.hero { display: grid; gap: 48px; padding-block: 56px 72px; align-items: center; }
@media (min-width: 920px) { .hero { grid-template-columns: 1fr 1fr; padding-block: 96px 112px; } }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; background: var(--pop); color: var(--on-pop); font-size: 0.8rem; font-weight: 600; }
h1 { font-size: clamp(3rem, 10vw, 5.6rem); letter-spacing: -0.045em; margin-bottom: 20px; }
.not-yet { display: block; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 0.9rem; }
.cmd code { color: var(--ink); background: var(--bg-2); padding: 6px 10px; border-radius: 8px; }
.copy { font: inherit; font-weight: 600; font-size: 0.85rem; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }

/* Terminal, as on the home page */
.term { margin: 0; border-radius: 16px; overflow: hidden; background: var(--term-bg); color: var(--term-text); font-family: var(--mono); font-size: 0.9rem; box-shadow: var(--shadow); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--term-bar); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: var(--term-dim); font-size: 0.8rem; }
.term-body { padding: 18px 18px 22px; min-height: 13em; }
.term-body p { margin: 0 0 0.9em; }
.t-dim { color: var(--term-dim); }
.t-hint { color: var(--term-dim); font-size: 0.8em; margin-top: 1.4em !important; }
.t-line { min-height: 3.2em; transition: color 0.3s ease; }
.t-line.rare { color: var(--term-rare); }
.t-line.medium { color: var(--term-medium); }
.t-line.well { color: var(--term-well); }
.t-line.cooked { color: var(--term-cooked); font-weight: 700; }
.spin { display: inline-block; width: 1em; color: var(--pop); }
.flash { animation: flash 0.9s ease 2; }
@keyframes flash { 50% { background: rgb(255 93 115 / 0.18); } }

/* Recipe card */
.recipe, .menu, .faq { padding-block: 64px; }
.recipe-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.recipe-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 2px dashed var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 0.85rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--pop); color: var(--on-pop); font-family: var(--display); font-weight: 800; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
.prompt summary { cursor: pointer; font-weight: 600; width: fit-content; color: var(--accent); }
.prompt pre { white-space: pre-wrap; margin: 12px 0 0; background: var(--bg-2); border-radius: 12px; padding: 14px; font-size: 0.82rem; }

/* Menu: one tall card per dish */
.menu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.dishes { display: grid; gap: 16px; }
@media (min-width: 600px) { .dishes.two { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; } .dishes { grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; } .dish { padding: 28px 16px 18px; } }
@media (min-width: 900px) { .dishes { gap: 20px; } .dish { padding: 32px 24px 24px; } }
.dish { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.dish.special { border: 2px solid var(--accent); }
.tag { position: absolute; top: -13px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 600; }
.plate { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 0 16px; border-radius: 50%; background: var(--bg-2); font-size: 2rem; }
.dish h3 { margin-bottom: 10px; }
.price { margin: 0 0 18px; font-family: var(--display); }
.amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.per { color: var(--muted); font-size: 1rem; font-weight: 600; margin-left: 2px; }
.sides { padding: 16px 0 0; margin: 0 0 22px; width: 100%; border-top: 2px dashed var(--line); display: grid; gap: 2px; font-size: 0.9rem; text-align: left; }
.sides div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.sides div:last-child { border-bottom: 0; }
.sides dt { color: var(--muted); }
.sides dd { margin: 0; font-weight: 600; text-align: right; }
.sides dd.no { color: var(--muted); font-weight: 400; opacity: 0.6; }
.special .sides dd:not(.no) { color: var(--accent); }
.dish .btn { width: 100%; margin-top: auto; padding-inline: 12px; white-space: nowrap; }
.policy { margin: 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq h2 { margin-bottom: 20px; }
.faq details { max-width: 760px; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--muted); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding-block: 40px 56px; border-top: 1px solid var(--line); }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.fine { flex-basis: 100%; color: var(--muted); font-size: 0.88rem; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 20px); margin: 0;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Tech touches: dot grid, mono labels, a caret, the trailer */
body { background-image: radial-gradient(circle, var(--grid) 1px, transparent 1.2px); background-size: 24px 24px; background-attachment: fixed; }
:root { --grid: rgb(14 20 22 / 0.08); }
:root[data-theme="dark"] { --grid: rgb(238 245 242 / 0.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grid: rgb(238 245 242 / 0.06); } }
.eyebrow { font-family: var(--mono); font-weight: 500; }
.label { margin: 0 0 14px; font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.02em; }
.caret { display: inline-block; width: 0.08em; height: 0.8em; margin-left: 0.08em; background: currentColor; vertical-align: -0.02em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.reel { padding-block: 8px 48px; }
.reel-frame { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--term-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.reel-frame .term-bar span { font-family: var(--mono); }
.reel-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--term-bg); }
.unmute { position: absolute; right: 14px; bottom: 14px; min-height: 40px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 999px; background: rgb(11 17 19 / 0.7); color: #fff; font: 500 0.85rem var(--mono); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stats { display: grid; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; font-family: var(--mono); font-size: 0.88rem; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats li { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--card); }
.stats b { color: var(--ink); font-weight: 600; margin-right: 4px; }


/* Inner pages: guides, legal, buy and account */
.page { max-width: 760px; padding-block: 40px 72px; min-height: 70vh; }
.page h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 14px; }
.page h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 1.6em 0 0.5em; }
.page li { margin-bottom: 0.4em; }
.page pre { background: var(--term-bg); color: var(--term-text); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.muted, .crumbs, .updated, .sources { color: var(--muted); }
.small, .crumbs, .updated, .sources { font-size: 0.9rem; }
.crumbs a, .sources a { color: var(--muted); }
.answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.cta-box { margin-top: 2.4em; background: var(--bg-2); border-radius: 16px; padding: 22px; }
.answer p:last-child, .cta-box p:last-child { margin-bottom: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 28px); margin-top: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.5rem; margin: 0 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin: 12px 0 8px; }
.notice[data-tone="ok"] { border-color: var(--accent); }
.notice[data-tone="error"] { border-color: var(--term-cooked); }
.who { color: var(--muted); overflow-wrap: anywhere; }
.code { font: 700 clamp(1.6rem, 6vw, 2.2rem)/1.2 var(--mono); letter-spacing: 0.12em; margin: 16px 0 8px; overflow-wrap: anywhere; }
.code.small { font-size: 1.05rem; letter-spacing: 0.04em; }
.command { margin: 4px 0; padding: 12px 14px; border-radius: 12px; background: var(--term-bg); color: var(--term-text); overflow-x: auto; white-space: pre; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
label { font-weight: 600; }
input, select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
.inline label { display: block; margin-bottom: 8px; }
.inline input { flex: 1 1 240px; min-height: 50px; }
.device-list { list-style: none; padding: 0; margin: 12px 0 0; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
#alarms-form fieldset { border: 0; border-top: 1px dashed var(--line); margin: 16px 0 0; padding: 14px 0 0; min-width: 0; }
#alarms-form legend { font-family: var(--display); font-weight: 800; padding: 0; }
#alarms-form .check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 400; }
#alarms-form .fields { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
#alarms-form .fields label { font-weight: 400; }
#alarms-form input[type="number"] { width: 5.5em; }
.alarm-list { list-style: none; padding: 0; margin: 6px 0 10px; }
.alarm-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.alarm-list .grow { flex: 1 1 160px; }
.hours-title { font-family: var(--display); font-weight: 800; font-size: 1rem; margin: 16px 0 2px; }
#hours-note[data-tone="error"] { color: var(--term-cooked); font-weight: 600; }
.hours-list { list-style: none; padding: 0; margin: 4px 0 10px; }
.hours-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 0; }
.hours-list label { font-weight: 400; }
.hours-list li.invalid input { border-color: var(--term-cooked); }
.own-sounds { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.own-sounds h3 { font-family: var(--display); font-weight: 800; font-size: 1rem; margin: 0; }
.sound-list { list-style: none; padding: 0; margin: 6px 0 10px; }
.sound-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.sound-list input[type="text"] { flex: 1 1 160px; min-width: 0; }
.drop { position: relative; display: grid; gap: 4px; padding: 16px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.busy { opacity: 0.6; pointer-events: none; }
#phone-steps { padding-left: 1.2em; }
#phone-steps li { margin-top: 10px; }
#checkout-frame { margin-top: 16px; min-height: 120px; }
.buy-points { padding-left: 1.2em; }
.buy-points li { margin-top: 6px; }
.signed-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.signed-in .who { margin: 0; }

/* Sign in */
.auth { display: grid; place-items: center; padding-block: 8px 24px; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 6vw, 40px); box-shadow: var(--shadow); text-align: center; }
.auth-logo { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--pop); font-size: 1.8rem; }
.auth-card h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); margin-bottom: 12px; }
.auth-card h1:focus { outline: none; }
.auth-form { display: grid; gap: 10px; margin: 22px 0 14px; text-align: left; }
.auth-form label { font-size: 0.92rem; }
.auth-form input { min-height: 52px; width: 100%; }
.auth-form .btn { width: 100%; }
.auth-card .actions { justify-content: center; }
.auth-form input.otp { font-family: var(--mono); font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; }
.upsell { border-color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
#send-again:disabled { cursor: default; }
