:root {
  --olive: #3d5436;
  --olive-deep: #1a2218;
  --olive-mid: #243028;
  --olive-elev: #2c3c30;
  --cream: #fbe9c9;
  --cream-dim: #ead6b0;
  --teal: #4d918e;
  --teal-deep: #2f6b68;
  --paper: #f3ede3;
  --paper-lime: #f2f6c8;
  --ink: #1a1714;
  --ink-soft: #2a4a22;
  --protein: #2f5a41;
  --muted: #8aaa80;
  --muted-on-dark: #b7c4a4;
  --line: rgba(251, 233, 201, 0.16);
  --hard: 4px 6px 0 rgba(14, 34, 24, 0.55);
  --radius: 18px;
  --page: 20px;
  --max: 1120px;
  --nav-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", ui-sans-serif, system-ui,
    sans-serif;
  --display: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --num: "Barlow", "SF Pro Rounded", "DIN Alternate", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 10px);
  overflow-x: clip;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--olive-deep);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 10px;
  transform: translateY(-140%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--page));
  margin-inline: auto;
}

/* ——— nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(26, 34, 24, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.brand-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-en {
  display: block;
  margin-top: 3px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  text-transform: none;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-on-dark);
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--cream);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 100ms ease-out, opacity 160ms ease-out;
}
.btn:hover {
  opacity: 0.92;
}
.btn:active {
  transform: scale(0.97);
}
.btn-solid {
  background: var(--cream);
  color: var(--ink-soft);
  box-shadow: var(--hard);
}
.btn-ghost {
  border: 1.6px solid var(--cream-dim);
  color: var(--cream);
  background: transparent;
}
.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 17px;
}
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* ——— waitlist dialog ——— */
.wait {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 32px);
  max-height: min(92vh, 820px);
}
.wait::backdrop {
  background: rgba(18, 24, 16, 0.72);
}
.wait-sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 20px 24px;
  box-shadow: var(--hard);
  max-height: min(92vh, 820px);
  overflow: auto;
  position: relative;
}
.wait-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-soft);
}
.wait-kicker {
  margin: 0 0 6px;
  color: var(--teal-deep);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.wait-sheet h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  padding-right: 36px;
}
.wait-lead {
  margin: 8px 0 20px;
  color: #6f675f;
  font-size: 15px;
  line-height: 1.55;
}
.wait fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.wait legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 15px;
}
.picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pick {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.pick:active {
  transform: scale(0.97);
}
.pick:has(:checked),
.pick.on {
  background: var(--paper-lime);
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 650;
}
.field i {
  font-style: normal;
  font-weight: 400;
  color: #8a8178;
}
.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background: #fffdf8;
  font: inherit;
  color: var(--ink);
}
.field input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.wait-err {
  margin: 0 0 12px;
  color: var(--danger, #6b4038);
  font-size: 14px;
}
.wait-submit {
  width: 100%;
}
.wait .btn-solid {
  background: var(--olive);
  color: var(--cream);
  box-shadow: 4px 6px 0 rgba(14, 34, 24, 0.28);
}
.wait-done {
  text-align: center;
  padding: 20px 8px 8px;
}
.wait-done p {
  margin: 0 0 20px;
  font-size: 17px;
}

@media (max-width: 419px) {
  .picks {
    grid-template-columns: 1fr;
  }
}

/* ——— hero ——— */
.hero {
  padding: 28px 0 8px;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.kicker {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-family: var(--display);
  color: var(--cream);
}
.lead {
  margin: 18px 0 0;
  max-width: 36rem;
  color: var(--muted-on-dark);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.deco {
  position: absolute;
  width: 88px;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}
.deco-egg {
  left: 2%;
  top: 8%;
  rotate: -8deg;
}
.deco-rice {
  right: 0;
  bottom: 12%;
  width: 96px;
  rotate: 6deg;
}
.peek {
  position: absolute;
  left: 6%;
  bottom: -8px;
  width: 92px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.phone {
  width: min(280px, 72vw);
  aspect-ratio: 390 / 780;
  border-radius: 42px;
  padding: 11px;
  background: #0e120c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(251, 233, 201, 0.12);
  position: relative;
  z-index: 1;
}
.notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #0a0c08;
  border-radius: 14px;
  z-index: 4;
}
.screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #161412;
  display: flex;
  flex-direction: column;
  padding: 48px 14px 16px;
}
.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.screen-top b {
  color: #8fbf9a;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
}
.polaroid {
  flex: 1;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px 8px 4px 4px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 1px 0 #2a261f;
  rotate: -0.6deg;
}
.polaroid img {
  width: 100%;
  height: 58%;
  object-fit: cover;
  background: #efe6d6;
  border-radius: 2px;
}
.readout {
  padding: 10px 4px 0;
}
.g-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--protein);
}
.g-row .n {
  font-family: var(--num);
  font-size: 64px;
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.g-row .u {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.kcal {
  color: #8a8178;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.dish {
  margin-top: 8px;
  font-size: 13px;
  color: #3a322c;
}
.mark {
  margin-left: auto;
  font-family: var(--display);
  font-size: 14px;
  color: #6b635a;
}

/* ——— sections ——— */
section {
  padding: 72px 0;
}
.sec-kicker {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 10px;
}
h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}
.sec-lead {
  margin: 12px 0 0;
  max-width: 36rem;
  color: var(--muted-on-dark);
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.step {
  background: var(--olive-elev);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.step b {
  display: block;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  font-size: 13px;
  margin-bottom: 8px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
}
.step p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 15px;
}

.bento {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.card {
  background: var(--olive-elev);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  min-height: 180px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.card p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 15px;
  max-width: 28rem;
}
.card-paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--hard);
}
.card-paper p {
  color: #6f675f;
}
.today-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 12px;
  color: var(--protein);
}
.today-num .n {
  font-family: var(--num);
  font-size: 72px;
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.today-num .t {
  color: #8a8178;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.ink-line {
  height: 3px;
  background: #2a261f;
  border-radius: 2px;
  position: relative;
}
.ink-line i {
  display: block;
  height: 100%;
  width: 65%;
  background: var(--protein);
  border-radius: 2px;
}
.yard {
  padding: 0;
  min-height: 240px;
  position: relative;
}
.yard img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.yard figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
}
.yard h3,
.yard p {
  color: var(--cream);
}
.yard p {
  color: rgba(251, 233, 201, 0.78);
}
.mascot-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.mascot-card img {
  width: 120px;
  margin-right: -8px;
  margin-bottom: -10px;
}
.eggs-card {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: center;
}
.eggs-card img {
  width: 120px;
  border-radius: 12px;
}

.not {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.not li {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  background: var(--olive-mid);
  border-radius: 14px;
  color: var(--muted-on-dark);
  font-size: 15px;
}
.not li strong {
  color: var(--cream);
  font-weight: 650;
}

.cta-band {
  margin: 8px 0 40px;
  background: var(--paper-lime);
  color: var(--ink-soft);
  border-radius: 24px;
  padding: 36px 24px;
  box-shadow: var(--hard);
  display: grid;
  gap: 18px;
}
.cta-band h2 {
  color: var(--ink-soft);
}
.cta-band p {
  margin: 8px 0 0;
  color: #5a7a38;
  max-width: 32rem;
}
.cta-band .btn-solid {
  background: var(--olive);
  color: var(--cream);
  box-shadow: 4px 6px 0 rgba(14, 34, 24, 0.28);
  justify-self: start;
}

.dock {
  display: none;
}

footer {
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted-on-dark);
  font-size: 14px;
}
.foot {
  display: grid;
  gap: 20px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.foot a:hover {
  color: var(--cream);
}
.legal {
  margin: 0;
  max-width: 40rem;
  line-height: 1.6;
}

/* ——— inner pages ——— */
.page {
  padding: 36px 0 80px;
}
.page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.prose {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 28px 22px 36px;
  box-shadow: var(--hard);
}
.prose h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: #3a322c;
  font-size: 16px;
  line-height: 1.7;
}
.prose ul {
  padding-left: 1.2em;
}
.prose a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 4px 18px;
  box-shadow: var(--hard);
}
.faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details p {
  margin: 0 0 16px;
  color: #6f675f;
  font-size: 15px;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
  .hero {
    padding: 56px 0 24px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .card-span {
    grid-column: 1 / -1;
  }
  .cta-band {
    padding: 48px 40px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .foot {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .prose {
    padding: 40px 40px 48px;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: 1.15fr 0.9fr 0.9fr;
  }
  .today-card {
    grid-row: span 2;
  }
  .card-span {
    grid-column: auto;
  }
}

@media (max-width: 719px) {
  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(26, 34, 24, 0.82);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid var(--line);
  }
  .dock .btn {
    width: 100%;
  }
  footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .peek {
    width: 72px;
    left: 0;
  }
  .deco {
    width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav,
  .dock {
    background: #1a2218;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .nav,
  .dock {
    background: #12180f;
  }
  .lead,
  .sec-lead,
  .step p,
  .card p {
    color: var(--cream);
  }
}
