/* usebymate.com coming-soon page.
   Layout concept: a fridge door covered in labels. The logo comes to life in the hero, the game reads like
   item cards on the app's Home screen, and dates are printed stamps.
   Colours come from src/constants/theme.ts and mean freshness only: basil fresh (and the brand),
   mandarin use soon, chilli use today or bin it, ice frozen. Each colour always sits beside a word or an icon. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-800.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/fonts/figtree-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("/fonts/plex-mono-600.woff2") format("woff2"); }

:root {
  --paper: #F3F8F4;
  --card: #FFFFFF;
  --ink: #13211A;
  --muted: #56675D;
  --line: #D8E4DC;
  --line-strong: #6A9879;
  --basil: #13824A;
  --basil-soft: #DCF1E5;
  --basil-text: #127945;
  --on-basil: #FFFFFF;
  --mandarin: #C96A12;
  --mandarin-soft: #FCEAD5;
  --mandarin-text: #A1550E;
  --chilli: #C93A27;
  --chilli-soft: #FBE0DB;
  --chilli-text: #B93524;
  --ice: #2B76B5;
  --ice-soft: #DDEBF8;
  --ice-text: #276BA5;
  --neutral-soft: #E8EFEA;
  --neutral-text: #3E4F45;
  --glow: rgba(19, 130, 74, 0.10);
  --shadow-card: 0 1px 2px rgba(19, 33, 26, 0.06), 0 10px 28px rgba(19, 33, 26, 0.08);
  --shadow-raised: 0 2px 6px rgba(19, 33, 26, 0.12), 0 14px 32px rgba(19, 33, 26, 0.16);

  /* The brand mark and the fridge keep their colours in both themes, like the app icon. */
  --tile: #13824A;
  --tile-deep: #0F6B3C;
  --fridge: #FFFFFF;
  --fridge-detail: #13824A;
  --fridge-inside: #EEF3F0;
  --fridge-wall: #D3DED7;

  /* The phone is a dark device in both themes. */
  --phone-bg: #101A15;
  --phone-fg: #F1F6F2;
  --phone-muted: #A9BCB0;
  --phone-card: rgba(255, 255, 255, 0.10);
  --phone-edge: #2C3A32;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-stamp: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1411;
    --card: #16201B;
    --ink: #E7F0EA;
    --muted: #9AAEA2;
    --line: #26342C;
    --line-strong: #52715F;
    --basil: #3FCB82;
    --basil-soft: #16331F;
    --basil-text: #3FCB82;
    --on-basil: #08140D;
    --mandarin: #FFA552;
    --mandarin-soft: #3A2713;
    --mandarin-text: #FFA552;
    --chilli: #FF7461;
    --chilli-soft: #3E1B16;
    --chilli-text: #FF7461;
    --ice: #72B8F3;
    --ice-soft: #12293C;
    --ice-text: #72B8F3;
    --neutral-soft: #22302A;
    --neutral-text: #C6D4CB;
    --glow: rgba(63, 203, 130, 0.10);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.4);
    --shadow-raised: 0 2px 6px rgba(0, 0, 0, 0.5), 0 14px 32px rgba(0, 0, 0, 0.5);
    --phone-bg: #050A07;
    --phone-edge: #2A3A31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1411;
  --card: #16201B;
  --ink: #E7F0EA;
  --muted: #9AAEA2;
  --line: #26342C;
  --line-strong: #52715F;
  --basil: #3FCB82;
  --basil-soft: #16331F;
  --basil-text: #3FCB82;
  --on-basil: #08140D;
  --mandarin: #FFA552;
  --mandarin-soft: #3A2713;
  --mandarin-text: #FFA552;
  --chilli: #FF7461;
  --chilli-soft: #3E1B16;
  --chilli-text: #FF7461;
  --ice: #72B8F3;
  --ice-soft: #12293C;
  --ice-text: #72B8F3;
  --neutral-soft: #22302A;
  --neutral-text: #C6D4CB;
  --glow: rgba(63, 203, 130, 0.10);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-raised: 0 2px 6px rgba(0, 0, 0, 0.5), 0 14px 32px rgba(0, 0, 0, 0.5);
  --phone-bg: #050A07;
  --phone-edge: #2A3A31;
  color-scheme: dark;
}

/* Base ------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--basil); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons ---------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--basil); color: var(--on-basil); box-shadow: var(--shadow-card); }
.btn-primary:hover { box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: #FFFFFF; color: #127945; }
.btn-light:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ----------------------------------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--basil); animation: pulse 2.4s ease-in-out infinite; }

/* Hero ------------------------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy > * { animation: rise 700ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 200ms; }
.hero-copy > :nth-child(5) { animation-delay: 260ms; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.binned { position: relative; display: inline-block; white-space: nowrap; }
.binned-line {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
  fill: none;
  stroke: var(--chilli);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
  animation: draw 900ms 520ms var(--ease-out) both;
}
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.platforms { font-size: 0.9375rem; color: var(--muted); }

/* The stage: the logo tile, with the fridge from the logo on it. Sizes inside use container units, so the
   fridge keeps the logo's proportions (390 × 672 on a 1024 tile) at any width. */
.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  aspect-ratio: 1;
  border-radius: 22.5%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 62%),
    var(--tile);
  box-shadow: var(--shadow-raised), inset 0 -10px 0 var(--tile-deep);
  container-type: inline-size;
  animation: stage-in 800ms var(--ease-spring) both;
}
.fridge {
  --w: 40cqi;
  --u: calc(var(--w) / 390);
  position: absolute;
  left: 50%;
  top: 46%;
  width: var(--w);
  height: calc(var(--u) * 672);
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1100px;
  border-radius: calc(var(--u) * 86);
  -webkit-tap-highlight-color: transparent;
}
.fridge:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 8px; border-radius: calc(var(--u) * 86); }
.door, .fridge-inside { position: absolute; left: 0; right: 0; display: block; }
.door svg { display: block; width: 100%; height: 100%; }
.detail { fill: var(--fridge-detail); }
.smile { fill: none; stroke: var(--fridge-detail); stroke-width: 28; stroke-linecap: round; }
.door-top {
  top: 0;
  height: calc(var(--u) * 236);
  background: var(--fridge);
  border-radius: calc(var(--u) * 86) calc(var(--u) * 86) calc(var(--u) * 6) calc(var(--u) * 6);
}
.door-bottom {
  top: calc(var(--u) * 266);
  height: calc(var(--u) * 406);
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-spring);
}
.door-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: calc(var(--u) * 6) calc(var(--u) * 6) calc(var(--u) * 86) calc(var(--u) * 86);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.door-front { background: var(--fridge); }
.door-back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #E4ECE7, #F6F9F7);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0 calc(var(--u) * 40);
}
.door-rack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--u) * 22);
  height: calc(var(--u) * 120);
  border-bottom: calc(var(--u) * 14) solid #C9D6CE;
}
.bottle { width: calc(var(--u) * 52); height: calc(var(--u) * 80); border-radius: calc(var(--u) * 14) calc(var(--u) * 14) calc(var(--u) * 8) calc(var(--u) * 8); background: #B7CCBF; }
.bottle-tall { height: calc(var(--u) * 108); background: #9DB8A8; }
.fridge-inside {
  top: calc(var(--u) * 266);
  height: calc(var(--u) * 406);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: calc(var(--u) * 26) calc(var(--u) * 30) calc(var(--u) * 50);
  border-radius: calc(var(--u) * 6) calc(var(--u) * 6) calc(var(--u) * 86) calc(var(--u) * 86);
  background: linear-gradient(180deg, #FFFFFF, var(--fridge-inside));
  box-shadow: inset 0 0 0 calc(var(--u) * 14) var(--fridge-wall);
  overflow: hidden;
}
.fridge-inside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 252, 230, 0.95), transparent 70%);
  opacity: 0;
  transition: opacity 400ms 150ms;
}
.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--u) * 18);
  padding-bottom: calc(var(--u) * 8);
  border-bottom: calc(var(--u) * 8) solid var(--fridge-wall);
}
.food {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 84);
  height: calc(var(--u) * 84);
  border-radius: calc(var(--u) * 22);
  background: #FFFFFF;
  color: #13211A;
  box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 10) rgba(19, 33, 26, 0.14);
  transform: translateY(calc(var(--u) * 12)) scale(0.8);
  opacity: 0;
  transition: transform 500ms var(--ease-spring), opacity 300ms;
}
.food .i { width: 56%; height: 56%; }
.shelf:nth-child(2) .food { transition-delay: 80ms; }
.shelf:nth-child(3) .food { transition-delay: 160ms; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.eyes { transition: transform 260ms var(--ease-out); }

@media (hover: hover) {
  .fridge:hover .door-bottom { transform: rotateY(14deg); }
  .fridge:hover .fridge-inside::before { opacity: 0.6; }
}
.stage.is-open .door-bottom { transform: rotateY(118deg); }
.stage.is-open .fridge-inside::before { opacity: 1; }
.stage.is-open .food { transform: none; opacity: 1; }

.sticker {
  position: absolute;
  z-index: 2;
  padding: 0.75em 1em;
  border-radius: 10px;
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: clamp(10px, 2.7cqi, 13.5px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(5, 30, 17, 0.18), 0 10px 22px rgba(5, 30, 17, 0.22);
  pointer-events: none;
  animation: sticker-in 600ms var(--ease-spring) both, bob 6s ease-in-out infinite;
}
.sticker-1 { left: 5%; top: 9%; rotate: -7deg; animation-delay: 380ms, 1.2s; }
.sticker-2 { right: 4%; top: 22%; rotate: 5deg; animation-delay: 480ms, 2.4s; }
.sticker-3 { left: 3%; bottom: 25%; rotate: -3deg; animation-delay: 580ms, 0.4s; }
.sticker-4 { right: 6%; bottom: 13%; rotate: 4deg; animation-delay: 680ms, 3s; }
.stage.is-burst .sticker { animation: jiggle 600ms var(--ease-spring), bob 6s ease-in-out infinite; }

/* Stickers sit on the green tile in both themes, so they use the light-theme tones. */
.sticker.tone-basil { background: #DCF1E5; color: #127945; }
.sticker.tone-mandarin { background: #FCEAD5; color: #A1550E; }
.sticker.tone-chilli { background: #FBE0DB; color: #B93524; }
.sticker.tone-ice { background: #DDEBF8; color: #276BA5; }

.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  translate: -50% 0;
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: clamp(10px, 2.6cqi, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  pointer-events: none;
}

/* Tape ------------------------------------------------------------------------------------------- */

.tape-band { overflow: hidden; padding-block: 18px; }
.tape {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  rotate: -1.2deg;
  margin-inline: -2vw;
  padding-block: 14px;
  box-shadow: var(--shadow-card);
}
.tape-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.tape-list { display: flex; }
.tape-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-inline: 1.4em;
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape-list li::after { content: "✳"; margin-left: 2.2em; opacity: 0.5; }

/* Sections --------------------------------------------------------------------------------------- */

.game, .coming, .dates { padding-block: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.notice { padding: 16px; border-radius: 12px; background: var(--card); }

/* Game ------------------------------------------------------------------------------------------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "hud phone" "items phone";
  align-items: start;
  gap: 20px 28px;
}
.hud, .result {
  grid-area: hud;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.night { display: flex; flex-direction: column; gap: 2px; }
.night-label {
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.night-date { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.week { display: flex; gap: 6px; }
.week li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}
.week li .i { width: 16px; height: 16px; }
.week li.is-now { border-color: var(--ink); color: var(--ink); }
.week li.is-ate { border-color: var(--basil); background: var(--basil-soft); color: var(--basil-text); }
.week li.is-skipped { color: var(--muted); }
.score { display: flex; gap: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score span { display: inline-flex; align-items: center; gap: 6px; }
.score b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.hud-nudge { display: none; }

.items {
  grid-area: items;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease-out), opacity 300ms;
  min-width: 0;
}
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--neutral-soft);
  color: var(--ink);
}
.item-icon .i { width: 22px; height: 22px; }
.item-place {
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.01em; }
.item-stamp {
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.item-advice { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.item .btn { margin-top: auto; width: 100%; min-height: 44px; font-size: 0.9375rem; }
.item .chip { align-self: flex-start; }
.item-done {
  margin-top: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.item-mark {
  position: absolute;
  top: 14px;
  right: 12px;
  padding: 4px 8px;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  rotate: 8deg;
  background: var(--card);
  animation: stamp 420ms var(--ease-spring) both;
}
.item.is-eaten .item-mark { color: var(--basil-text); }
.item.is-binned .item-mark { color: var(--chilli-text); }
.item.is-eaten, .item.is-binned { opacity: 0.78; }
.item.is-eaten .item-place, .item.is-binned .item-place { visibility: hidden; }
.item.is-binned h3 { text-decoration: line-through; text-decoration-thickness: 2px; }
.item.is-flipped { animation: wobble 520ms var(--ease-out); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
}
.chip .i { width: 16px; height: 16px; }
.tone-basil { background: var(--basil-soft); color: var(--basil-text); }
.tone-mandarin { background: var(--mandarin-soft); color: var(--mandarin-text); }
.tone-chilli { background: var(--chilli-soft); color: var(--chilli-text); }
.tone-ice { background: var(--ice-soft); color: var(--ice-text); }
.tone-neutral { background: var(--neutral-soft); color: var(--neutral-text); }

.result h3 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.result > p:not(.eyebrow) { color: var(--muted); max-width: 40em; }
.result-tally { display: flex; flex-wrap: wrap; gap: 8px; }
.result .stat { font-size: 0.9375rem; padding-top: 14px; border-top: 1px solid var(--line); }
.result .stat strong { color: var(--ink); }
.result .stat a { color: var(--muted); white-space: nowrap; }
.result { animation: rise 500ms var(--ease-out) both; outline: none; }

.phone {
  grid-area: phone;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 24px);
  padding: 10px;
  border-radius: 44px;
  background: var(--phone-bg);
  box-shadow: var(--shadow-raised), inset 0 0 0 2px var(--phone-edge);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 520px;
  padding: 34px 12px 16px;
  border-radius: 36px;
  background:
    radial-gradient(260px 220px at 50% 0%, rgba(63, 203, 130, 0.30), transparent 70%),
    linear-gradient(180deg, #17402B, var(--phone-bg) 70%);
  color: var(--phone-fg);
}
.phone-day { text-align: center; font-weight: 600; font-size: 0.9375rem; color: var(--phone-muted); }
.phone-time { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 4rem; line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.phone-feed { display: flex; flex-direction: column; gap: 8px; }
.note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--phone-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: note-in 520ms var(--ease-spring) both;
}
.note svg { grid-row: span 2; width: 30px; height: 30px; }
.note-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; font-weight: 700; }
.note-head span { font-weight: 400; color: var(--phone-muted); }
.note-text { font-size: 0.875rem; line-height: 1.4; }
.note:nth-child(n + 2) { opacity: 0.72; }
.note:nth-child(n + 4) { display: none; }

/* What's coming -------------------------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.features li { display: flex; flex-direction: column; gap: 10px; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--basil-soft);
  color: var(--basil-text);
  margin-bottom: 6px;
}
.feature-icon .i { width: 26px; height: 26px; }
.features h3, .labels h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.02em; }
.features p, .labels p:not(.tag):not(.chip) { color: var(--muted); }

/* Dates ------------------------------------------------------------------------------------------ */

.labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.label .chip { align-self: flex-start; margin-top: auto; }
.tag {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.6em;
  margin: 4px 0 10px;
  padding: 10px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  transition: rotate 300ms var(--ease-spring);
}
.tag-1 { rotate: -2.5deg; }
.tag-2 { rotate: 1.5deg; }
.tag-3 { rotate: -1deg; }
.label:hover .tag { rotate: 0deg; }

/* Closer ----------------------------------------------------------------------------------------- */

.closer { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.closer-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    var(--tile);
  color: #FFFFFF;
  box-shadow: var(--shadow-raised);
}
.closer-mark { width: clamp(72px, 9vw, 104px); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25)); }
.closer-copy { display: flex; flex-direction: column; gap: 8px; }
.closer h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.closer p { color: rgba(255, 255, 255, 0.88); }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 0 calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 0.875rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  box-shadow: var(--shadow-raised);
  translate: -50% 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, translate 300ms var(--ease-spring);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* 404 -------------------------------------------------------------------------------------------- */

.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: clamp(40px, 10vw, 120px); max-width: 40rem; }
.lost h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; }
.lost p:not(.tag) { color: var(--muted); font-size: 1.125rem; }
.lost .tag { border-color: var(--chilli-text); color: var(--chilli-text); rotate: -4deg; font-size: 1.125rem; }

/* Responsive ------------------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stage { width: min(100%, 440px); }
  .features, .labels { grid-template-columns: minmax(0, 1fr); }
  .closer-tile { grid-template-columns: auto minmax(0, 1fr); }
  .closer-tile .btn { grid-column: 1 / -1; justify-self: start; }
}
/* Phones and small tablets: the phone mock-up gives way to a sticky bar that shows the latest nudge. */
@media (max-width: 820px) {
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hud" "items"; }
  .phone { display: none; }
  .hud { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 5; padding: 14px 16px; gap: 10px; }
  .hud-nudge {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--phone-bg);
    color: var(--phone-fg);
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .hud-nudge svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
  .hud-nudge:empty { display: none; }
  .night-date { font-size: 1.25rem; }
  .week li { width: 28px; height: 28px; font-size: 0.6875rem; }
}
@media (max-width: 520px) {
  .items { gap: 10px; }
  .item { padding: 12px; border-radius: 16px; }
  .item-icon { width: 36px; height: 36px; border-radius: 10px; }
  .item h3 { font-size: 1rem; }
  .item-stamp { font-size: 0.6875rem; letter-spacing: 0.03em; }
  .item .chip { font-size: 0.8125rem; padding: 4px 8px; }
  .item-advice { font-size: 0.8125rem; }
  .item-mark { top: 10px; right: 8px; font-size: 0.6875rem; padding: 3px 6px; }
  .hud-row:first-child { flex-direction: column; align-items: flex-start; }
  .hud-row:nth-child(2) { flex-wrap: nowrap; }
  .score { gap: 12px; font-size: 0.9375rem; }
  .hud .btn-small { padding: 0 0.9em; }
  .closer-tile { grid-template-columns: minmax(0, 1fr); }
  .closer-mark { width: 64px; }
  .actions .btn { flex: 1 1 auto; }
}

/* Motion ----------------------------------------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes stage-in { from { opacity: 0; transform: scale(0.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes sticker-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes jiggle { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(4deg); } 60% { transform: scale(0.96) rotate(-3deg); } 100% { transform: none; } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } 96% { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--basil-soft); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes wobble { 0%, 100% { transform: none; } 25% { transform: translateX(-5px) rotate(-1deg); } 50% { transform: translateX(4px) rotate(1deg); } 75% { transform: translateX(-2px); } }
@keyframes note-in { from { transform: translateY(-14px) scale(0.96); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
