/* Daikon marketing site. Colors follow the app's theme (daikon/src/theme/tokens.ts).
   Pink marks things you can tap, gold marks XP, ink is everything else. */

:root {
  --bg: #fffaf0;
  --surface: #fffdf8;
  --panel: #fff0de;
  --bisque: #fbe4c4;
  --yolk: #e08a1e;                  /* the hero bowl's yolk */
  --line: #eadfce;
  --ink: #1c1c1c;
  --ink-2: #3b3a38;
  --text-2: #6f6458;
  --text-3: #8c8378;
  --muted: #a89f92;
  --toffee: #8a6a3a;
  --pink: #f0369a;
  --pink-text: #b0456f;
  --pink-tint: #fde4f0;
  --gold: #ffd27a;
  --gold-deep: #c98a12;
  --potluck: #f2b84b;
  --green: #2e7a64;                 /* the app's success green ("Saved to Your recipes") */
  --shadow: 0 1px 2px rgba(60, 38, 20, .05), 0 12px 32px -18px rgba(60, 38, 20, .32);

  --display: "Gloock", Georgia, serif;  /* free stand-in for Span (Jamie Clarke Type); one weight, so headings use 400 */
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 68px;
  --r-card: 22px;
  --r-stage: 36px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: url(assets/grain-dark.png) 0 0 / 128px 128px, var(--bg); /* paper grain, the same grain as the app */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.004em; text-wrap: balance; }
p { margin: 0; }
em, i, cite, var, dfn, address { font-style: normal; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* ---------- shared bits ---------- */
.label {
  display: block;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 100px; border: 0; text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-lg .apple { width: 16px; height: 19px; margin-top: -2px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 26px 12px 22px; border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(28, 28, 28, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(28, 28, 28, .6); }
.store-btn svg { width: 24px; height: 28px; }
.store-btn span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.store-btn small { font-size: 11px; font-weight: 400; letter-spacing: .02em; opacity: .9; }
.store-btn.light { background: var(--bg); color: var(--ink); }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled {
  background: rgba(255, 250, 240, .86); border-color: var(--line);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: -.04em; }
.nav-links { display: flex; gap: 32px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero: the gyudon bowl (animated by gyudon.js) ---------- */
.gyudon {
  /* Frame geometry, as fractions of a frame: its width/height, the bowl's base centre,
     and the top of the yolk when fully lifted. Match these to the frames from tools/film.py. */
  --film-ratio: .5814; --bowl-x: .501; --bowl-y: .988; --column-top: .015;
  --rim: .455;                     /* bowl height (rim to base) as a fraction of the frame */

  /* Height of a whole frame; the bowl is ~55% of it wide. It grows until its body (half-width about
     .23 of this, beside the pitch and button) would leave the page column less than 270px a side,
     but never below min(123vh, 77vw). */
  --film-h: max(min(123vh, 77vw), min(154vh, 96vw, (min(580px, 50vw - 20px) - 270px) / .23));
  --film-gap: -8vh;                /* space under the bowl's base; below zero, the bottom edge crops its foot */
  --title-size: min(6.6vw, (100vh - var(--film-gap) - var(--film-h) * var(--rim) - 84px) / 1.92); /* both lines fit between the nav and the rim */
  --title-tuck: .18;               /* how much of the title's height the bowl's rim covers (the food mound rises above it) */
  position: relative; z-index: 1; height: 100vh; height: 100svh;
  background: url(assets/grain-dark.png) 0 0 / 128px 128px, var(--bg);
  overflow: hidden; overflow: clip visible; /* the bowl and its light run on past the bottom instead of stopping at a hard line */
}

.gyudon-head {
  position: absolute; left: 0; right: 0; z-index: 1; padding: 0 24px;
  bottom: calc(var(--film-gap) + var(--film-h) * var(--rim) - var(--title-size) * var(--title-tuck));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gyudon-title {
  font-size: var(--title-size); font-weight: 400; line-height: 1.05; letter-spacing: -.008em; word-spacing: .04em;
  white-space: nowrap;
}

/* The pitch and the button sit either side of the bowl's base. */
.gyudon-foot {
  position: absolute; left: 0; right: 0; bottom: 11vh; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  --side: min(340px, calc(50vw - var(--film-h) * .274 - 64px));
}
.gyudon-foot .lead { max-width: min(17em, var(--side)); text-wrap: balance; font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--ink-2); letter-spacing: -.01em; }
.gyudon-foot .lead span { white-space: nowrap; }

.gyudon-film {
  position: absolute; z-index: 2; height: var(--film-h); aspect-ratio: var(--film-ratio);
  left: calc(50% - var(--film-h) * var(--film-ratio) * var(--bowl-x));
  top: calc(100% - var(--film-gap) - var(--film-h) * var(--bowl-y));
  transform-origin: calc(var(--bowl-x) * 100%) calc(var(--bowl-y) * 100%);
  opacity: 0; transition: opacity .6s ease; will-change: transform;
}
.gyudon-film.is-ready { opacity: 1; }
.yolk { color: var(--yolk); }
/* Warm light pooled under the bowl, as if it sits on a lit table. It moves with the bowl. */
.gyudon-film::before {
  content: ""; position: absolute; left: -40%; right: -40%; top: 64%; bottom: -12%;
  background: radial-gradient(closest-side, rgba(240, 160, 60, .38), rgba(240, 160, 60, .16) 55%, rgba(240, 160, 60, 0));
}


.gyudon-film canvas { position: relative; display: block; width: 100%; height: 100%; }

/* The lifted bowl reads as an imported recipe: the import worked, then each ingredient and its
   amount, placed in frame % on the fully lifted column. When it lands, it's on the potluck. Sizes are
   large because the bowl is pulled back (~0.73x) while they show. */
.source {
  position: absolute; left: 66%; top: 3%;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 100px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--green); font-size: 19px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform-origin: left top;
}
.source svg { width: 22px; height: 22px; }
.callout {
  position: absolute; top: var(--y); display: flex; align-items: center; scale: var(--label-zoom, 1);
  transform: translateY(-50%); white-space: nowrap; opacity: 0; pointer-events: none;
}
.callout.left { right: calc(100% - var(--x)); flex-direction: row-reverse; transform-origin: right center; }
.callout.right { left: var(--x); transform-origin: left center; }
.callout-line { position: relative; width: var(--len, 52px); height: 1.5px; background: rgba(28, 28, 28, .3); }
.callout-line::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(255, 250, 240, .9);
}
.callout.left .callout-line { transform-origin: right; }
.callout.left .callout-line::after { right: -3px; }
.callout.right .callout-line { transform-origin: left; }
.callout.right .callout-line::after { left: -3px; }
.callout-tag { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.callout.left .callout-tag { align-items: flex-end; }
.callout-tag b { font-size: 20px; font-weight: 600; }
.chip {
  display: inline-block; padding: 5px 12px; line-height: 1.25; border-radius: 100px;
  background: var(--bisque); color: var(--ink-2); font-family: var(--mono); font-size: 16px; font-weight: 700;
}
.chip .frac { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 1.15em; line-height: 1; }

.landed {
  position: absolute; left: 84%; top: 72%;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 100px;
  background: var(--surface); color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow); /* light like the import pill, so the bowl stays the loudest thing */
  opacity: 0; pointer-events: none;
}
.landed b { padding: 4px 10px; border-radius: 100px; background: var(--yolk); color: #fff; font-weight: 600; } /* the same amber as "easy" */


/* ---------- sections ---------- */
.section { padding: 136px 0 0; }
#faq { padding-bottom: 136px; }
.sec-head {
  display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 24px 64px; align-items: end;
  margin-bottom: 56px;
}
.sec-head h2 { font-size: clamp(42px, 5.6vw, 78px); max-width: 15ch; }
.sec-head p { text-wrap: pretty; font-size: 19px; line-height: 1.5; color: var(--text-2); padding-bottom: 6px; }

/* A full-width color band. Its top and bottom edges are a soft wave that drifts as you scroll. */
.band {
  --band: var(--ink); --band-text: var(--bg);
  position: relative; margin-top: 152px; padding: 112px 0 136px;
  background: url(assets/grain-light.png) 0 0 / 128px 128px, var(--band);
}
.band + .section { padding-top: 160px; }
.band .sec-head, .band .sec-head p { color: var(--band-text); }
.wave {
  --wave-w: 480px; --wave-base: 56px;
  position: absolute; left: 0; right: 0; top: -95px; height: 96px; background: url(assets/grain-light.png) 0 95px / 128px 128px, var(--band);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28Q120-8 240 28T480 28V56H0Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--wave) var(--wave-x, 0px) var(--wave-y, 100%) / var(--wave-w) calc(var(--wave-base) * var(--wave-k, 1)) repeat-x;
  mask: var(--wave) var(--wave-x, 0px) var(--wave-y, 100%) / var(--wave-w) calc(var(--wave-base) * var(--wave-k, 1)) repeat-x;
}
.wave-end {
  top: auto; bottom: -95px; --wave-y: 0%;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28Q120 64 240 28T480 28V0H0Z'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { .wave { --wave-w: 300px; --wave-base: 40px; } }

/* A big warm panel that holds each section's demo. */
.stage { background: var(--panel); border-radius: var(--r-stage); padding: clamp(24px, 4.6vw, 64px); }

/* ---------- learn ---------- */
/* Drawn like the app's recipe steps and its technique player (Figma "Polish pass"). */
.learn-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.learn-recipe { display: grid; gap: 12px; }
.recipe-steps { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 6px rgba(60, 38, 20, .08); padding: 24px 20px 12px; }
.recipe-steps h3 { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
/* Before you start (the app's BeforeYouStart): prep rows with a placekeeping marker and a time range. */
.prep { display: grid; gap: 12px; margin-top: 24px; font-family: var(--mono); }
.prep-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; }
.prep-head span { letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.prep-head b, .prep-row > b { color: var(--toffee); font-size: 11px; white-space: nowrap; }
.prep > small { margin-bottom: -4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.prep-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.prep-row > i { flex: none; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid var(--line); border-radius: 50%; }
.prep-row > div { flex: 1; min-width: 0; }
.prep-row p { margin: 0; font-size: 13px; font-weight: 500; line-height: 20px; }
.prep .term { font-weight: 700; text-decoration: none; }
.prep .explainer { margin-top: 8px; font-family: var(--sans); }
.prep .explainer p { font-size: 15px; font-weight: 400; line-height: 20px; }
.steps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 28px; font-family: var(--mono); }
.steps-head b { font-size: 16px; }
.steps-head span { font-size: 12px; color: var(--text-2); }
.segments { display: flex; gap: 4px; margin: 8px 0 8px; }
.segments i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .2s ease; }
.segments i.on { background: var(--pink); }
.steps { list-style: none; margin: 0 -8px; padding: 0; }
.steps li { position: relative; display: grid; gap: 16px; padding: 20px 16px 24px; border-radius: 18px; transition: opacity .25s ease, background .25s ease, box-shadow .25s ease; }
.steps li.focus { background: var(--surface); box-shadow: 0 4px 6px rgba(60, 38, 20, .08); }
.steps li.passed { opacity: .35; }
.steps li.ahead { opacity: .55; }
.steps small { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.steps li > p { margin: 0; font-size: 18px; font-weight: 500; line-height: 28.5px; }
.steps li > p b { font-weight: 700; }
.tiles { display: flex; gap: 8px; }
.tiles span { display: grid; justify-items: center; gap: 4px; width: 88px; padding: 8px 4px; box-sizing: border-box; border-radius: 14px; background: var(--surface); font-size: 12px; line-height: 16px; color: var(--text-2); text-align: center; }
.steps li.focus .tiles span { background: var(--bg); }
.tiles img { width: 34px; height: 34px; }
.look { display: grid; gap: 4px; padding-left: 12px; border-left: 3px solid var(--bisque); color: var(--toffee); }
.look b { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.steps .look p { margin: 0; font-size: 14px; font-weight: 400; line-height: 23px; }
.term {
  background: none; border: 0; padding: 0 3px; margin: 0 -3px; border-radius: 6px; font: inherit; color: var(--pink); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: background .15s ease;
}
.term:hover, .term.is-on { background: var(--pink-tint); }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; background: var(--panel); color: var(--toffee); font-family: var(--mono); font-weight: 700; font-size: 16px; white-space: nowrap; }
.timer svg { width: 13px; height: 13px; }
/* A technique without a clip opens the app's written explainer (TechniquePanel) under its step. */
.explainer { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--pink-tint); }
.explainer[hidden] { display: none; }
.explainer-head { display: flex; justify-content: space-between; align-items: center; }
.explainer-head b { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--pink); }
.explainer-close { margin: -14px -14px -14px 0; padding: 14px; border: 0; background: none; font-family: var(--mono); font-size: 14px; color: var(--text-2); cursor: pointer; }
.steps .explainer p { margin: 0; font-size: 15px; font-weight: 400; line-height: 20px; }
.steps .explainer p:first-of-type { line-height: 21px; }
.explainer p b { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink); }
.explainer p b.mistake { color: var(--toffee); }
.read-more { justify-self: start; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--pink); cursor: pointer; }

.clip-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -28px rgba(60, 38, 20, .55); }
.clip-screen video { width: 100%; height: 100%; object-fit: cover; }
.clip-track { position: absolute; top: 18px; left: 18px; right: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.clip-track i { display: block; height: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.clip-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 22px; border-radius: 22px 22px 0 0; background: #2a1f18; color: #fff; }
.grabber { display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.clip-sheet h4 { margin: 0; font-family: var(--mono); font-size: 19px; font-weight: 700; line-height: 24px; }
.clip-chips { display: flex; gap: 6px; margin-top: 8px; }
.clip-chips span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 100px; font-family: var(--mono); font-size: 13px; }
.clip-chips .skill { background: #f08db6; color: var(--ink); font-weight: 700; }
.clip-chips .skill span { padding: 0; height: auto; }
.clip-chips img { width: 14px; height: 14px; }
.clip-chips .level { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #e8c78f; }
.clip-sheet p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .86); }

/* ---------- the loop ---------- */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.loop li { position: relative; }
/* Drawn dashes (6 on, 4 off, like a dashed border) so they can crawl along: motion.js moves --march */
.loop li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: -20px; height: 2px;
  background: linear-gradient(90deg, var(--line) 6px, transparent 0) calc(var(--march, 0) * 1px) 0 / 10px 100% repeat-x;
  clip-path: inset(0 calc(100% - var(--draw, 1) * 100%) 0 0); }
.loop .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 15px; font-weight: 700;
}
.loop .xp-n { background: var(--gold); color: var(--ink); }
.loop h3 { font-size: 28px; margin: 22px 0 10px; }
.loop p { font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* ---------- save and plan ---------- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.flow-col { display: grid; gap: 16px; }
.step-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
  font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: 0;
}
.step-label b {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; letter-spacing: 0;
}
.share-row { display: flex; gap: 10px; }
.share-row span { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.share-row svg { width: 22px; height: 22px; }
/* The demos are drawn like the app's own screens (Figma "Polish pass"): mono titles, cream cards, ink pills. */
.recipe-card, .week, .grocery { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 6px rgba(60, 38, 20, .08); }
.recipe-card { padding: 12px; }
.recipe-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.recipe-body { padding: 16px 8px 8px; }
.kind { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.recipe-body h3, .potluck-body h3 { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; }
.recipe-body h3 { font-size: 28px; margin-top: 6px; }
.facts { display: flex; gap: 12px; margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts svg { width: 14px; height: 14px; }
.saved-actions { display: flex; gap: 8px; margin-top: 18px; }
.saved-actions span { flex: 1; display: grid; place-items: center; height: 46px; border-radius: 100px; font-family: var(--mono); font-size: 15px; font-weight: 700; }
.pill-ink { background: var(--ink); color: var(--bg); }
.pill-line { background: var(--bg); border: 1px solid var(--line); }

.app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: -4px; }
.app-head .label { display: inline-flex; align-items: center; gap: 5px; letter-spacing: .12em; }
.app-head svg { width: 13px; height: 12px; }
.app-link { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.week { padding: 16px 14px; }
.days { display: flex; justify-content: space-between; gap: 4px; }
.day { width: 46px; background: var(--panel); border-radius: 23px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--mono); font-weight: 700; }
.day span { font-size: 12px; color: var(--muted); }
.day b { font-size: 15px; line-height: 20px; }
.day img, .day i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.day img { border: 2px solid #fff; }
.day i { border: 1.5px dashed #eadbc6; }
.day.past b { color: var(--muted); }
.day.past img { opacity: .45; }
.day.today { background: var(--ink); }
.day.today span { color: var(--pink); }
.day.today b { color: var(--bg); }
.day.today img { border-color: var(--ink); }
.week-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0 2px; }
.week-foot strong { font-family: var(--mono); font-size: 15px; }
.to-buy { display: inline-flex; align-items: center; gap: 5px; background: var(--bisque); color: var(--toffee); padding: 8px 13px; border-radius: 100px; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.to-buy svg { width: 15px; height: 15px; }

.grocery { padding: 18px 20px 8px; }
.grocery ul { list-style: none; padding: 0; margin: 6px 0 0; }
.grocery li + li { border-top: 1px solid var(--line); }
.grocery label { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 9px 0; cursor: pointer; }
.grocery input { appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s ease, border-color .15s ease; }
.grocery input:checked { background: var(--ink); border-color: var(--ink); }
.grocery input:checked::after { content: "✓"; color: var(--bg); font-size: 13px; font-weight: 700; }
.grocery label img { width: 46px; height: 38px; object-fit: contain; flex: none; transition: opacity .15s ease; }
.g-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.g-name b { font-family: var(--mono); font-weight: 400; font-size: 16px; line-height: 21px; }
.g-name small { font-size: 13px; color: var(--text-2); }
.grocery em { font-style: normal; flex: none; background: var(--bisque); color: var(--toffee); padding: 4px 10px; border-radius: 100px; font-family: var(--mono); font-size: 14px; font-weight: 700; transition: background .15s ease; }
.grocery input:checked + img { opacity: .45; }
.grocery input:checked ~ .g-name b { text-decoration: line-through; color: var(--text-2); }
.grocery input:checked ~ .g-name small { display: none; }
.grocery input:checked ~ em { background: none; color: var(--text-2); }

/* ---------- host ---------- */
.potluck { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-stage); overflow: hidden; box-shadow: var(--shadow); }
.potluck > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.potluck-body { padding: clamp(28px, 4.6vw, 64px); align-self: center; }
.potluck-body h3 { font-size: clamp(32px, 3vw, 40px); margin-top: 4px; }
.when { margin: 8px 0 0; font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.menu-label { margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--line); letter-spacing: .14em; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu img, .menu i { width: 56px; height: 56px; border-radius: 15px; flex: none; }
.menu img { object-fit: cover; }
.menu i { background: var(--bisque); font-style: normal; }
.menu i.open { background: none; border: 1.5px dashed #ead2ac; display: grid; place-items: center; font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--toffee); }
.menu p { flex: 1; min-width: 0; margin: 0; display: grid; font-family: var(--mono); }
.menu small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b0602c; }
.menu b { font-size: 16px; }
.menu span { font-size: 14px; color: var(--text-2); }
.claim { background: var(--ink); color: var(--bg); border: 0; border-radius: 100px; padding: 9px 18px; font-family: var(--mono); font-weight: 700; font-size: 15px; transition: transform .15s ease; }
.claim:hover { transform: translateY(-1px); }
.mvp { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--pink-tint); }
.medal { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-text); display: grid; place-items: center; flex: none; }
.medal svg { width: 20px; height: 20px; }
.mvp p { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.35; }
.mvp b { display: block; }

/* ---------- level up (kept compact: the game sits on top of the cooking) ---------- */
.levelup-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 64px; align-items: end; }
.levelup-copy h2 { font-size: clamp(36px, 4.2vw, 58px); max-width: 11ch; }
.levelup-copy > p:not(.comp-line) { margin-top: 16px; font-size: 19px; color: var(--text-2); }
.comp-tabs { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.comp-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 2px solid transparent;
  border-radius: 100px; padding: 5px 16px 5px 5px; font-weight: 600; font-size: 16px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.comp-tabs button img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bisque); }
.comp-tabs button:hover { transform: translateY(-1px); }
.comp-tabs button[aria-selected="true"] { border-color: var(--pink); background: var(--pink-tint); }
.comp-line { margin-top: 14px; font-size: 15px; color: var(--text-2); min-height: 1.6em; }

.evolution { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; }
.evolution figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage-art { height: 240px; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.stage-art::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 64%; height: 14px; border-radius: 50%; background: rgba(60, 38, 20, .14); filter: blur(4px); z-index: 0; }
.stage-art img { position: relative; z-index: 1; max-height: 100%; width: auto; transition: opacity .25s ease, transform .25s ease; }
.evolution figure:nth-child(1) .stage-art img { height: 150px; }
.evolution figure:nth-child(2) .stage-art img { height: 195px; }
.evolution figure:nth-child(3) .stage-art img { height: 240px; }
.evolution.swap .stage-art img { opacity: 0; transform: translateY(8px) scale(.97); }
.evolution figcaption { display: flex; align-items: center; gap: 8px; }
.evolution figcaption strong { font-size: 16px; font-weight: 600; }
.lv-tag { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 100px; }
.lv-tag.gold { background: var(--gold); color: var(--ink); }

.rank-line { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.rank-end { display: flex; flex-direction: column; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.rank-end:last-child { text-align: right; }
.rank-end b { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); }
.rank-bar { position: relative; height: 10px; border-radius: 100px; background: var(--panel); }
.rank-bar i { position: absolute; inset: 0 auto 0 0; width: 7%; border-radius: inherit; background: var(--gold); }
.rank-bar em { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin: 0; }
.faq > div { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.faq dt { font-family: var(--display); font-size: 23px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.faq dd { margin: 10px 0 0; color: var(--text-2); }

/* ---------- final CTA ---------- */
/* The page ends in ink: the same band and wavy edge as Host, running on into the footer. */
.final {
  --band: var(--ink); position: relative; margin-top: 152px; padding: 120px 0 136px; text-align: center;
  color: var(--bg); background: url(assets/grain-light.png) 0 0 / 128px 128px, var(--ink);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(48px, 7vw, 104px); }
.final p { margin: 18px 0 40px; font-size: 20px; color: rgba(255, 250, 240, .72); max-width: 30em; }

/* ---------- footer ---------- */
.footer { padding: 36px 0; background: url(assets/grain-light.png) 0 0 / 128px 128px, var(--ink); border-top: 1px solid rgba(255, 250, 240, .1); }
.footer .brand { color: var(--bg); }
.footer .brand img { filter: invert(1); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { font-size: 15px; color: rgba(255, 250, 240, .6); text-decoration: none; }
.footer-links a:hover { color: var(--bg); }
.footer p { font-size: 14px; color: rgba(255, 250, 240, .6); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500;
  padding: 14px 20px; border-radius: 16px; max-width: calc(100% - 32px); text-align: center;
  box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll-in motion (motion.js) ---------- */
/* Heading words rise into clipped slots; the padding keeps descenders and the marks inside. */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .26em; margin: 0 -.05em -.26em; }
.word > span { display: inline-block; }
/* Pink marker strokes: the underline sits behind the letters, so descenders cross it; the strike runs over them. */
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark svg { position: absolute; z-index: -1; left: -.04em; width: calc(100% + .08em); top: 1em; height: .34em; overflow: visible; fill: var(--pink); }
.mark[data-mark="strike"] svg { z-index: 0; left: -.04em; width: calc(100% + .06em); top: .43em; height: .36em; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  :root { --nav-h: 48px; }
  .nav .nav-inner { width: auto; margin: 0; padding: 0 30px 0 36px; }
  .brand { gap: 10.4px; font-size: 20.8px; font-weight: 500; letter-spacing: 0; }
  .brand img { width: 26px; height: 26px; }
  .nav-inner .btn { height: 32px; padding: 0 25px; font-size: 12px; font-weight: 700; }

  .btn-lg { padding: 15px 26px; font-size: 16px; }
}

/* The stacked hero: phones, and portrait tablets, where there's no room beside the bowl. */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1199px) {
  /* Follows the Figma "Daikon Website" phone frame: 402 x 820 below the status bar, in --u (1px at
     that size), scaled to fit and centred vertically. */
  .gyudon {
    --u: min(100vw / 402, 100vh / 820);
    --top: calc((100vh - 820 * var(--u)) / 2);
    --film-h: calc(684 * var(--u));  /* the bowl about 377 wide, its rim level with the frame's */
  }
  .gyudon-film { top: calc(var(--top) + 536 * var(--u) - var(--film-h) * var(--bowl-y)); }
  .gyudon-film::before { left: -8%; right: -8%; top: 82%; bottom: -21%; } /* the frame's glow: centred just under the base */
  .gyudon-head { top: calc(var(--top) + 126 * var(--u)); bottom: auto; padding: 0; }
  .gyudon-title {
    width: calc(362 * var(--u)); font-size: calc(50 * var(--u)); line-height: calc(51 * var(--u));
    letter-spacing: 0; word-spacing: 0; white-space: normal;
  }
  .gyudon .gyudon-foot {
    top: calc(var(--top) + 592 * var(--u)); bottom: auto; width: auto; margin: 0;
    flex-direction: column; justify-content: flex-start; gap: calc(48 * var(--u)); text-align: center;
  }
  .gyudon-foot .lead {
    width: calc(350 * var(--u)); max-width: none; font-size: calc(14 * var(--u)); line-height: calc(19 * var(--u));
    color: var(--ink); letter-spacing: 0; text-wrap: balance;
  }
  .gyudon-foot .btn { width: calc(320 * var(--u)); height: calc(56 * var(--u)); padding: 0; font-size: calc(16 * var(--u)); font-weight: 700; }
  .gyudon-foot .btn .apple { width: calc(12 * var(--u)); height: calc(15 * var(--u)); margin-top: 0; }
  /* Phones have little room beside the column: labels point where each part narrows (--mx/--my),
     with shorter lines and smaller type. data-phone-side moves a label to the other side. */
  .callout { top: var(--my); }
  .callout.left { right: calc(100% - var(--mx)); }
  .callout.right, .callout[data-phone-side="right"] { right: auto; left: var(--mx); flex-direction: row; transform-origin: left center; }
  .callout[data-phone-side="right"] .callout-line { transform-origin: left; }
  .callout[data-phone-side="right"] .callout-line::after { right: auto; left: -3px; }
  .callout[data-phone-side="right"] .callout-tag { align-items: flex-start; }
  .callout-line { --len: 14px; }
  .callout-tag { gap: 4px; padding: 0 7px; }
  .callout-tag b { font-size: 15px; line-height: 1.15; }
  .callout.right .callout-tag b { max-width: 4.6em; white-space: normal; } /* "Pickled ginger" on two lines */
  .callout .chip { padding: 3px 8px; font-size: 12.5px; }
  .landed, .source { left: 0; right: 0; width: max-content; margin: 0 auto; }
  .landed { top: 103.5%; font-size: 14px; } /* under the bowl, where the pitch was */
  .source { top: 101%; font-size: 15px; transform-origin: center top; }
  .source svg { width: 18px; height: 18px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .section { padding-top: 104px; }
  #faq { padding-bottom: 104px; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sec-head p { padding-bottom: 0; }
  .learn-stage { grid-template-columns: minmax(0, 1fr) 280px; }
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .potluck { grid-template-columns: 1fr; }
  .potluck > img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .recipe-card > img { aspect-ratio: 16 / 9; }
  .levelup-inner { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; gap: 28px; }
  .loop li { padding-left: 60px; }
  .loop .n { position: absolute; left: 0; top: 0; }
  .loop li:not(:last-child)::after { top: 46px; bottom: -22px; left: 18px; right: auto; width: 2px; height: auto;
    background: linear-gradient(var(--line) 6px, transparent 0) 0 calc(var(--march, 0) * 1px) / 100% 10px repeat-y;
    clip-path: inset(0 0 calc(100% - var(--draw, 1) * 100%) 0); }
  .loop h3 { font-size: 24px; margin: 4px 0 6px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .sec-head h2 { font-size: 40px; }
  .sec-head p { font-size: 17px; }
  .stage { border-radius: 28px; padding: 20px; }
  .learn-stage { grid-template-columns: 1fr; gap: 20px; }
  .clip-screen { order: -1; aspect-ratio: 3 / 4; border-radius: 24px; }
  .recipe-steps { padding: 20px 14px 8px; }
  .steps { margin: 0 -4px; }
  .steps li { padding: 16px 12px 20px; }
  .step-label { font-size: 21px; }
  .day { width: 40px; }
  .day img, .day i { width: 24px; height: 24px; }
  .week { padding: 16px 10px; }
  .grocery { padding: 16px 14px 6px; }
  .recipe-body h3 { font-size: 24px; }
  .potluck { border-radius: 28px; }
  .potluck-body { padding: 24px 20px 28px; }
  .potluck-body h3 { font-size: 30px; }
  .menu img, .menu i { width: 52px; height: 52px; border-radius: 14px; }
  .menu b { font-size: 15px; }
  .menu span { font-size: 13px; }
  .menu-label { font-size: 11px; letter-spacing: .08em; }
  .g-name b { font-size: 15px; }
  .grocery label { gap: 10px; }
  .grocery label img { width: 40px; height: 34px; }
  .comp-tabs button { font-size: 14px; padding: 4px 12px 4px 4px; }
  .comp-tabs button img { width: 28px; height: 28px; }
  .stage-art { height: 170px; }
  .evolution figure:nth-child(1) .stage-art img { height: 100px; }
  .evolution figure:nth-child(2) .stage-art img { height: 135px; }
  .evolution figure:nth-child(3) .stage-art img { height: 170px; }
  .evolution figcaption { flex-direction: column; gap: 4px; }
  .evolution figcaption strong { font-size: 14px; }
  .faq { grid-template-columns: 1fr; }
  .faq dt { font-size: 20px; }
  .final { margin-top: 120px; padding: 96px 0 104px; }
  .final p { font-size: 18px; }
  .store-btn span { font-size: 19px; }
}

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