/* updateNow 官网 —— 颜色、贴纸字都取自 app 本身（Theme.swift / StickerKit.swift） */

:root {
  --page: #FFFFFF;
  --ink: #111113;
  --ink-2: #1A1A1C;
  --chip: #F2F2F4;
  --card: #EBEBEE;
  --hair: #ECECEE;
  --orange: #E0620D;
  --pot: #F2703E;
  --green: #2E8B57;

  /* 清单卡片配色 */
  --cream: #FBF4E4;
  --mint: #EAF4EC;
  --pink: #FBECEF;
  --sky: #E9F1FA;
  --lav: #F1EDF9;
  --oat: #F4F1E8;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "PingFang SC", "Microsoft YaHei", monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 72px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
br.wide { display: inline; }

/* ---------- 贴纸字：白描边 + 一层软投影，和 app 里 StickerText 同一个比例 ---------- */
.stk {
  display: inline-block;
  text-shadow:
    .12em 0 #fff, .111em .046em #fff, .085em .085em #fff, .046em .111em #fff,
    0 .12em #fff, -.046em .111em #fff, -.085em .085em #fff, -.111em .046em #fff,
    -.12em 0 #fff, -.111em -.046em #fff, -.085em -.085em #fff, -.046em -.111em #fff,
    0 -.12em #fff, .046em -.111em #fff, .085em -.085em #fff, .111em -.046em #fff;
  filter: drop-shadow(0 .05em .07em rgba(0, 0, 0, .2));
}
.tilt { transform: rotate(-3deg); }
.ink-orange { color: var(--orange); }
.ink-green { color: var(--green); }

.wordmark {
  font-family: var(--rounded);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink-2);
  transform: rotate(-2deg);
  white-space: nowrap;
}
.wordmark b { color: var(--orange); font-weight: 900; }
.wordmark i { font-style: normal; margin-left: .3em; color: var(--ink-2); }

/* 句子里的贴纸词：日期、菜名、用量……颜色和 app 的 StickerInk 一致 */
.tk {
  display: inline-flex;
  align-items: center;
  gap: .12em;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: baseline;
  text-shadow:
    .1em 0 #fff, .071em .071em #fff, 0 .1em #fff, -.071em .071em #fff,
    -.1em 0 #fff, -.071em -.071em #fff, 0 -.1em #fff, .071em -.071em #fff;
  filter: drop-shadow(0 .06em .06em rgba(0, 0, 0, .22));
}
.tk svg { width: .95em; height: .95em; flex: none; }
.tk-date { color: #B7791F; }
.tk-recipe { color: #C2410C; }
.tk-time { color: #2E8B57; }
.tk-amount { color: #1B8EC2; }
.tk-item { color: #2F6B3A; }
.tk-item2 { color: #8A4B16; }
.tk-tag { color: var(--ink-2); }
mark {
  background: linear-gradient(transparent 58%, #FFE27A 58%, #FFE27A 92%, transparent 92%);
  color: inherit;
  font-weight: 700;
  padding: 0 .1em;
}

/* ---------- 按钮 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--spring), background-color .2s;
}
.pill:active { transform: scale(.96); }
.pill .ic { width: 20px; height: 20px; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #2A2A2E; }
.pill-soft { background: var(--chip); color: var(--ink); }
.pill-soft:hover { background: var(--card); }
.pill-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.pill.is-static { cursor: default; }
.pill.is-static:active { transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ---------- 顶栏：一颗悬浮的胶囊 ---------- */
.topbar {
  position: fixed;
  inset: 12px 16px auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 980px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .06), 0 8px 30px rgba(17, 17, 19, .06);
  transition: box-shadow .3s;
}
.topbar.scrolled .nav { box-shadow: 0 0 0 1px rgba(17, 17, 19, .08), 0 10px 34px rgba(17, 17, 19, .12); }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand .wordmark { font-size: 21px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s;
}
.nav-links a:hover { background: var(--chip); }

/* ---------- 手机外框 ---------- */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .165);
  background: #0E0E10;
  box-shadow:
    inset 0 0 0 1.5px #3A3A3F,
    0 40px 80px -30px rgba(17, 17, 19, .45),
    0 12px 30px -12px rgba(17, 17, 19, .25);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--pw) * .13);
  background: #F4F4F5;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 148px 16px 40px;
  text-align: center;
}
.hero-title {
  font-size: clamp(44px, 7.6vw, 92px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-title > span { display: block; }
.hero-title .stk { padding: 0 .06em; }
.lead {
  max-width: 34em;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  font-weight: 500;
}
.hero .cta-row { justify-content: center; margin-top: 32px; }

.hero-stage {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
  display: flex;
  justify-content: center;
}
.hero-phone { --pw: 320px; }

.letters { position: absolute; inset: 0; pointer-events: none; }
.letter {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 300px;
  text-align: left;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .7s var(--ease), transform .8s var(--spring);
}
.letter .who {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(17, 17, 19, .16);
}
.letter .bubble {
  padding: 10px 14px 11px;
  border-radius: 6px 20px 20px 20px;
  background: #FFFBF6;
  border: 1.5px solid rgba(224, 98, 13, .32);
  box-shadow: 0 16px 36px -14px rgba(17, 17, 19, .22), 0 2px 6px rgba(17, 17, 19, .05);
  animation: bob 6s ease-in-out infinite;
}
.letter b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.letter p { font-size: 15.5px; line-height: 1.6; font-weight: 500; }
.letter.from-mascot .bubble { background: #fff; border-color: var(--ink); }
.mascot-mini { width: 48px; height: 40px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); }
.letter .mascot-mini { border: 0; box-shadow: none; background: none; border-radius: 0; }

.l1 { left: 2%; top: 6%; }
.l2 { right: 1%; top: 18%; }
.l3 { left: 0; top: 46%; }
.l4 { right: 3%; top: 56%; }
.l5 { left: 8%; top: 78%; }
.l2 .bubble { animation-duration: 7s; animation-delay: -2s; }
.l3 .bubble { animation-duration: 6.5s; animation-delay: -4s; }
.l4 .bubble { animation-duration: 7.5s; animation-delay: -1s; }
.l5 .bubble { animation-duration: 5.5s; animation-delay: -3s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 载入时依次升起 */
[data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.ready [data-rise] { opacity: 1; transform: none; }
.ready .hero-copy [data-rise]:nth-child(2) { transition-delay: .08s; }
.ready .hero-copy [data-rise]:nth-child(3) { transition-delay: .16s; }
.ready .hero-phone { transition-delay: .2s; }
.ready .letter { opacity: 1; transform: none; }
.ready .l1 { transition-delay: .55s; }
.ready .l2 { transition-delay: .75s; }
.ready .l3 { transition-delay: .95s; }
.ready .l4 { transition-delay: 1.15s; }
.ready .l5 { transition-delay: 1.35s; }

/* ---------- 段落标题 ---------- */
.sec-title {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-title.small { font-size: clamp(28px, 3.4vw, 40px); }
.sec-title.center, .sec-lead.center { text-align: center; }
.sec-lead {
  max-width: 30em;
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
  font-weight: 500;
}
.sec-lead.center { margin-left: auto; margin-right: auto; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 四步（右侧手机跟着换屏） ---------- */
.how { max-width: 1120px; margin: 0 auto; padding: 120px 24px 80px; }
.sec-head { margin-bottom: 24px; }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; }
.steps { padding-bottom: 14vh; }
.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .5s var(--ease);
}
.step.active { opacity: 1; }
.step .num { font-family: var(--rounded); font-size: 64px; font-weight: 900; line-height: 1; color: var(--orange); transform: rotate(-4deg); margin-bottom: 18px; align-self: flex-start; }
.step h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.step p { max-width: 24em; margin-top: 14px; font-size: 19px; line-height: 1.75; font-weight: 500; }
.step-phone { display: none; }
.tour-stage { position: relative; }
.tour-phone {
  --pw: 340px;
  position: sticky;
  top: max(96px, calc(50vh - 360px));
  display: grid;
}
.tour-phone img {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
.tour-phone img.on { opacity: 1; transform: none; }

/* ---------- 色块段落：和 app 的清单卡片一样，大圆角的一整块颜色 ---------- */
.band { margin: 0 16px; border-radius: 44px; }
.band + .band, .band + section, section + .band { margin-top: 24px; }
.band-cream { background: var(--cream); }
.band-oat { background: var(--oat); }
.band-mint { background: var(--mint); }
.band-in { max-width: 1120px; margin: 0 auto; padding: 112px 40px; }

/* ---------- 小灶 ---------- */
.kitchen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.mascot-big { width: 132px; height: 106px; overflow: visible; margin-bottom: 18px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .16)); animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-4px); }
}
.mascot-big .eyes, .mascot-mini .eyes { animation: blink 4.6s infinite; transform-origin: 50% 62px; transform-box: view-box; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.1); }
}
.talking .lid { animation: hop .32s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-5px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .06), 0 4px 10px rgba(17, 17, 19, .05);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  min-height: 460px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(120, 80, 20, .35), 0 0 0 1px rgba(17, 17, 19, .04);
}
.msg { display: flex; gap: 10px; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--spring); }
.msg.show { opacity: 1; transform: none; }
.msg p { font-size: 16.5px; line-height: 1.65; font-weight: 500; }
.msg.me { justify-content: flex-end; }
.msg.me p {
  max-width: 78%;
  padding: 11px 16px;
  border-radius: 22px 22px 6px 22px;
  background: var(--ink);
  color: #fff;
}
.msg.them { align-items: flex-start; }
.msg.them > div {
  max-width: 84%;
  padding: 10px 15px 12px;
  border-radius: 6px 22px 22px 22px;
  background: #F6F4EF;
}
.msg.them b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.msg .who { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(17, 17, 19, .16); }
.msg .mascot-mini { width: 42px; height: 36px; border: 0; box-shadow: none; border-radius: 0; margin-top: 4px; }
.typing { display: none; gap: 5px; padding: 14px 16px; margin-left: 50px; align-self: flex-start; border-radius: 6px 18px 18px 18px; background: #F6F4EF; }
.typing.show { display: inline-flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .3; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- 下厨 ---------- */
.cook { padding: 140px 24px; }
.cook-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 72px; align-items: center; }
.cook-stage { position: relative; padding: 40px 0 70px; }
.cook-front { position: relative; z-index: 2; width: max-content; }
.cook-phone { --pw: 300px; }
.done-phone { --pw: 262px; position: absolute; z-index: 1; left: 214px; top: 120px; transform: rotate(6deg); }
.done-phone img { filter: saturate(1.05); }
.island {
  position: absolute;
  top: -36px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
  background: #050506;
  color: #fff;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
}
.island .mascot-mini { width: 40px; height: 34px; filter: none; }
.island-step { font-size: 15px; font-weight: 700; }
.island-time { font: 800 24px/1 var(--rounded); color: #FF9F45; font-variant-numeric: tabular-nums; min-width: 3.1em; text-align: right; }
.feature-list { display: grid; gap: 26px; margin-top: 40px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--c);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(17, 17, 19, .16);
  transform: rotate(-4deg);
}
.feature-list li:nth-child(even) .dot { transform: rotate(4deg); }
.feature-list .dot svg { width: 23px; height: 23px; }
.feature-list h3 { font-size: 21px; font-weight: 800; line-height: 1.4; }
.feature-list p { font-size: 17px; line-height: 1.6; font-weight: 500; margin-top: 2px; }

/* ---------- 一周小票 ---------- */
.receipt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.receipt-copy { padding-top: 40px; }
.receipt-copy .cta-row { margin-top: 32px; }
.printer-area { position: relative; display: flex; flex-direction: column; align-items: center; }
.printer {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(#3A3A3F, #1C1C1F);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px -10px rgba(0, 0, 0, .4);
  transition: transform .6s var(--ease), opacity .5s;
}
.printer::before {
  content: "UPDATENOW · KITCHEN PRINTER";
  position: absolute;
  left: 20px;
  top: 10px;
  font: 700 10px/1 var(--mono);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
}
.printer::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6BD38E;
  box-shadow: 0 0 8px #6BD38E;
}
.printer .slot { position: absolute; left: 22px; right: 22px; bottom: 12px; height: 7px; border-radius: 4px; background: #050506; }
.receipt-clip {
  position: relative;
  width: 340px;
  margin-top: -14px;
  overflow: hidden;
  padding: 0 14px 30px;
  filter: drop-shadow(0 16px 20px rgba(80, 60, 20, .18));
}
.receipt {
  --z: 7px;
  position: relative;
  width: 312px;
  padding: 34px 22px 34px;
  background:
    radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1.2px) 0 0 / 5px 5px,
    #FFFDF7;
  color: #262626;
  font: 500 12.5px/1.55 var(--mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  transform: translateY(-101%);
}
.receipt.printing { transition: transform 2.6s steps(13, end); transform: translateY(0); }
.receipt.printed { transform: translateY(0); }
.receipt.torn {
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--z)) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--z)) 51% repeat-x;
  animation: settle .9s var(--spring) both;
}
@keyframes settle {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(22px) rotate(3.5deg); }
  65% { transform: translateY(16px) rotate(-1.2deg); }
  100% { transform: translateY(18px) rotate(1.5deg); }
}
.printer-area.torn .printer { transform: translateY(-14px); opacity: 0; }
.r-head { text-align: center; display: grid; justify-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 1.5px dashed #BDB7A8; }
.r-head .mascot-mini { width: 40px; height: 34px; margin-bottom: 6px; filter: none; }
.r-head strong { font-size: 15px; font-weight: 800; font-family: var(--sans); }
.r-head small { font-size: 10px; letter-spacing: .2em; }
.r-head > span { font-size: 13px; font-weight: 700; margin-top: 4px; }
.r-meta { display: flex; justify-content: space-between; width: 100%; margin-top: 8px; font-size: 11px; }
.r-sec { padding: 12px 0; border-bottom: 1.5px dashed #BDB7A8; }
.r-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.r-title em { padding: 1px 6px; background: #262626; color: #FFFDF7; font-weight: 800; font-family: var(--sans); font-size: 12px; }
.r-title small { font-size: 10px; letter-spacing: .14em; }
.r-title span { margin-left: auto; font-weight: 700; }
.r-line { display: flex; align-items: baseline; gap: 6px; }
.r-line i { flex: 1; border-bottom: 1.5px dotted #C9C2B1; transform: translateY(-3px); }
.r-empty { text-align: center; }
.r-bars { display: flex; justify-content: space-between; align-items: flex-end; height: 64px; padding: 0 4px; }
.r-bars span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.r-bars i { display: block; width: 18px; height: calc(6px + var(--h) * 18px); background: repeating-linear-gradient(-45deg, #262626 0 2px, transparent 2px 4px); border: 1.5px solid #262626; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1.5px dashed #BDB7A8; font-size: 14px; }
.r-total strong { font-size: 15px; font-weight: 800; font-family: var(--sans); }
.r-foot { display: grid; justify-items: center; gap: 4px; padding-top: 16px; text-align: center; }
.barcode {
  width: 100%;
  height: 46px;
  background: repeating-linear-gradient(90deg,
    #262626 0 2px, transparent 2px 4px, #262626 4px 5px, transparent 5px 8px,
    #262626 8px 11px, transparent 11px 12px, #262626 12px 13px, transparent 13px 16px,
    #262626 16px 17px, transparent 17px 19px, #262626 19px 22px, transparent 22px 24px);
}
.r-foot > span { font-size: 11px; letter-spacing: .3em; margin-bottom: 8px; }
.r-foot p { font-family: var(--sans); font-size: 12.5px; font-weight: 600; }
.stamp {
  position: absolute;
  top: 128px;
  right: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid #D62839;
  box-shadow: inset 0 0 0 3px #FFFDF7, inset 0 0 0 4.5px #D62839;
  color: #D62839;
  font-family: var(--sans);
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: rotate(-14deg) scale(1.7);
  mix-blend-mode: multiply;
}
.stamp span { font-size: 11px; font-weight: 800; letter-spacing: .3em; }
.stamp b { font-size: 16px; font-weight: 900; }
.receipt.torn .stamp { animation: stamp .35s .55s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes stamp {
  to { opacity: .88; transform: rotate(-14deg) scale(1); }
}

/* ---------- 健康 ---------- */
.health { padding: 140px 24px; }
.health-in { max-width: 1120px; margin: 0 auto; }
.health .sec-title .stk + .stk { margin-left: .1em; }
.kcal {
  max-width: 660px;
  margin: 56px auto 0;
  padding: 30px 30px 26px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .05), 0 40px 70px -40px rgba(30, 80, 50, .4);
}
.kcal-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kcal-label { font-size: 19px; font-weight: 800; }
.kcal-num { font: 900 clamp(60px, 9vw, 84px)/1 var(--rounded); color: var(--green); font-variant-numeric: tabular-nums; transform: rotate(-2deg); }
.kcal-goal { margin-left: auto; font: 800 17px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.kcal-bar { display: flex; gap: 3px; height: 16px; margin-top: 22px; padding: 0; border-radius: 999px; background: #F0F0F2; overflow: hidden; }
.kcal-bar .seg { width: 0; background: var(--c); transition: width 1.1s var(--ease); }
.kcal-bar .seg:first-child { border-radius: 999px 0 0 999px; }
.kcal.in .seg { width: var(--w); }
.kcal.in .seg:nth-child(2) { transition-delay: .25s; }
.kcal.in .seg:nth-child(3) { transition-delay: .5s; }
.kcal-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; font-weight: 700; }
.kcal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.kcal-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.macros { display: grid; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--hair); }
.macro { display: grid; grid-template-columns: 70px 116px 1fr; align-items: center; gap: 14px; font-size: 16px; }
.macro span { font-weight: 800; }
.macro b { font: 800 16px/1 var(--rounded); color: var(--c); font-variant-numeric: tabular-nums; }
.macro i { position: relative; height: 8px; border-radius: 999px; background: #F0F0F2; overflow: hidden; }
.macro i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--c); transition: width 1.1s .3s var(--ease); }
.kcal.in .macro i::after { width: calc(var(--p) * 100%); }

/* ---------- 一家人 ---------- */
.family { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; padding-bottom: 72px; }
.avatars { display: flex; margin-bottom: 24px; }
.avatars span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-right: -12px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--c);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(17, 17, 19, .14);
}
.avatars span:nth-child(2) { transform: translateY(-6px) rotate(6deg); }
.shop {
  padding: 24px 22px 14px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .04), 0 36px 60px -36px rgba(30, 90, 50, .45);
}
.shop-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; }
.shop-head strong { font-size: 24px; font-weight: 800; transform: rotate(-2deg); }
.shop-head span { font: 800 17px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.shop-list li { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1.5px solid var(--hair); font-size: 18px; font-weight: 600; }
.shop-list button {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid #C9C9CE;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .3s var(--spring);
}
.shop-list button:active { transform: scale(.85); }
.shop-list button svg { width: 18px; height: 18px; }
.shop-list li span { flex: 1; transition: opacity .25s; }
.shop-list li.done button { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-list li.done span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .45; }
.shop-list em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- 小组件 ---------- */
.widgets { padding-top: 0; }
.widget-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.widget {
  display: flex;
  flex-direction: column;
  gap: 4px;
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .04), 0 18px 30px -20px rgba(30, 90, 50, .4);
  transition: transform .4s var(--spring);
}
.widget:hover { transform: translateY(-4px) rotate(-1deg); }
.w-name { font-size: 13px; font-weight: 800; color: var(--orange); }
.widget > b { font-weight: 900; line-height: 1.15; }
.w-fridge > b { font: 900 54px/1 var(--rounded); color: var(--ink); margin: auto 0 2px; transform: rotate(-3deg); align-self: flex-start; }
.w-today { background: #FFE9DC; }
.w-today > b { font-size: 22px; margin-top: auto; }
.widget ul { display: grid; gap: 5px; margin-top: auto; }
.w-soon li { display: flex; justify-content: space-between; gap: 6px; }
.w-soon em { color: #B7791F; font-weight: 800; }
.w-shop li { display: flex; align-items: center; gap: 7px; }
.w-shop li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C9C9CE; }
.w-shop li.x { text-decoration: line-through; opacity: .45; }
.w-shop li.x::before { background: var(--ink); border-color: var(--ink); }
.w-days { display: flex; gap: 4px; margin: auto 0 6px; }
.w-days i { flex: 1 1 0; min-width: 0; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #C9C9CE; }
.w-days i.y { border: 0; background: var(--pot); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }

/* ---------- Pro 券 ---------- */
.pro { padding: 140px 24px; }
.ticket {
  --notch: 15px;
  --cut: calc(100% - 150px);
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  background: linear-gradient(135deg, #FF8A3D, #FFC24A);
  border-radius: 34px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.pro {
  filter:
    drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff)
    drop-shadow(0 22px 30px rgba(201, 110, 0, .3));
}
.ticket-main { padding: 40px 40px 42px; }
.ticket-brand { display: flex; align-items: center; gap: 14px; }
.crowned { position: relative; width: 82px; height: 70px; flex: none; }
.crowned .mascot-mini { width: 82px; height: 70px; }
.crowned .crown { position: absolute; left: 28px; top: -18px; width: 28px; height: 28px; color: #F2C12E; transform: rotate(-12deg); filter: drop-shadow(0 0 0 #fff) drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
.wordmark.big { font-size: clamp(34px, 4.6vw, 52px); }
.perks { display: grid; gap: 12px; margin-top: 30px; }
.perks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16.5px; font-weight: 600; color: var(--ink-2); }
.perks span {
  padding: 3px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--c);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(160, 70, 0, .14);
}
.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2.5px dashed rgba(26, 26, 28, .35);
  margin: 26px 0;
  color: var(--ink-2);
}
.ticket-stub b { font-size: 36px; font-weight: 900; transform: rotate(-6deg); }
.ticket-stub span { font-size: 20px; font-weight: 800; margin-top: 4px; }

/* ---------- 常见问题 ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 40px 24px 120px; }
.qa-list { margin-top: 44px; }
.qa-list details { border-top: 1.5px solid var(--hair); }
.qa-list details:last-child { border-bottom: 1.5px solid var(--hair); }
.qa-list summary {
  position: relative;
  padding: 24px 52px 24px 4px;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 13px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 13px no-repeat,
    var(--chip);
  transition: transform .35s var(--spring);
}
.qa-list details[open] summary::after { transform: rotate(45deg); }
.qa-list p { padding: 0 52px 26px 4px; font-size: 17.5px; line-height: 1.75; font-weight: 500; }

/* ---------- 结尾 ---------- */
.outro {
  margin: 0 16px;
  padding: 110px 24px 120px;
  border-radius: 44px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.outro .mascot-big { width: 168px; height: 134px; }
.outro .cta-row { margin-top: 36px; }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  padding: 40px 24px calc(48px + env(safe-area-inset-bottom));
  font-size: 15px;
  font-weight: 600;
}
.footer .wordmark { font-size: 22px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .widget-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-stage { display: none; }
  .steps { padding-bottom: 0; }
  .step { min-height: 0; opacity: 1; padding: 44px 0; }
  .step-phone { display: block; --pw: 270px; margin-top: 30px; }
  .kitchen, .receipt-wrap, .family { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cook-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .cook-stage { order: 2; justify-self: center; width: 480px; max-width: 100%; }
  .receipt-copy { padding-top: 0; }
  .family .shop { max-width: 440px; width: 100%; }
}

@media (max-width: 860px) {
  .hero { padding-top: 120px; }
  .hero-stage { margin-top: 48px; }
  .hero-phone { --pw: 268px; }
  .letter { width: min(74vw, 290px); }
  .letter p { font-size: 14.5px; }
  .letter .who { width: 42px; height: 42px; }
  .l1 { left: 0; top: 13%; }
  .l2 { right: 0; top: 37%; left: auto; }
  .l3, .l4 { display: none; }
  .l5 { left: 2%; top: 64%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  br.wide { display: none; }
  .band, .outro { margin: 0 10px; border-radius: 32px; }
  .band-in { padding: 80px 22px; }
  .how { padding: 96px 20px 40px; }
  .cook, .health, .pro { padding: 100px 18px; }
  .chat { padding: 20px 14px; min-height: 0; }
  .msg p { font-size: 15.5px; }
  .printer { width: 320px; }
  .receipt-clip { width: 316px; }
  .receipt { width: 288px; padding-left: 18px; padding-right: 18px; }
  .kcal { padding: 24px 20px 22px; border-radius: 28px; }
  .kcal-goal { margin-left: 0; width: 100%; }
  .macro { grid-template-columns: 52px 100px 1fr; gap: 10px; font-size: 15px; }
  .macro b { font-size: 14.5px; }
  .widget-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .widget { border-radius: 24px; padding: 14px; }
  .w-today { grid-column: span 2; aspect-ratio: auto; min-height: 128px; }
  .ticket { grid-template-columns: minmax(0, 1fr) 96px; --cut: calc(100% - 96px); }
  .ticket-main { padding: 28px 18px 30px 22px; }
  .ticket-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .perks li { font-size: 15px; }
  .ticket-stub b { font-size: 26px; }
  .ticket-stub span { font-size: 16px; }
  .qa-list summary { font-size: 19px; }
  .island { height: 56px; gap: 8px; padding: 0 16px 0 10px; }
  .island-step { font-size: 14px; }
  .island-time { font-size: 20px; }
  .cook-stage { width: 340px; padding-top: 44px; }
  .cook-phone { --pw: 236px; }
  .done-phone { --pw: 196px; left: 136px; top: 120px; }
}

@media (max-width: 380px) {
  .nav .pill-sm { padding: 0 12px; }
  .brand .wordmark { font-size: 19px; }
  .printer { width: 290px; }
  .receipt-clip { width: 290px; padding: 0 6px 30px; }
  .receipt { width: 278px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rise], [data-reveal], .letter, .msg { opacity: 1 !important; transform: none !important; }
}
