/* MyLife landing v2 — tokens from Figma DS (file vUWZGNzcUem3hdb92AVsIu) */
:root {
  color-scheme: light;
  --surface: #f3f5ee;
  --surface-raised: #ffffff;
  --surface-sunken: #e9ede3;
  --line: #dbe1d4;
  --line-strong: #7d8e86;
  --ink: #13201c;
  --ink-muted: #55655f;
  --brand: #0f766e;
  --brand-deep: #0b4a46;
  --brand-soft: #d8eee9;
  --on-brand: #ffffff;
  --on-hero: #ffffff;
  --on-hero-muted: #b8d8d1;
  --lime: #bef264;
  --lime-soft: #eefad6;
  --on-lime: #13201c;
  --warning: #8a5300;
  --warning-soft: #fdf1d8;
  --chat-bg: #dbe4cf;
  --focus: #0b4a46;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --tap: 44px;
  --shadow-float: 0 2px 6px rgba(11, 74, 70, .08), 0 8px 24px -6px rgba(11, 74, 70, .16);

  --gutter: 80px;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0d1714;
    --surface-raised: #16231f;
    --surface-sunken: #1f2f2a;
    --line: #2b3d37;
    --line-strong: #5f736b;
    --ink: #eef3ec;
    --ink-muted: #a3b4ad;
    --brand: #3cc4b1;
    --brand-deep: #0f3d39;
    --brand-soft: #123a35;
    --on-brand: #062320;
    --on-hero: #eef3ec;
    --on-hero-muted: #a9cbc3;
    --lime-soft: #2a3a14;
    --warning: #f2c56b;
    --warning-soft: #33280f;
    --chat-bg: #0f1a17;
    --focus: #bef264;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0d1714;
  --surface-raised: #16231f;
  --surface-sunken: #1f2f2a;
  --line: #2b3d37;
  --line-strong: #5f736b;
  --ink: #eef3ec;
  --ink-muted: #a3b4ad;
  --brand: #3cc4b1;
  --brand-deep: #0f3d39;
  --brand-soft: #123a35;
  --on-brand: #062320;
  --on-hero: #eef3ec;
  --on-hero-muted: #a9cbc3;
  --lime-soft: #2a3a14;
  --warning: #f2c56b;
  --warning-soft: #33280f;
  --chat-bg: #0f1a17;
  --focus: #bef264;
}

/* theme-dependent images and icons */
.only-dark { display: none !important; }
.theme-toggle .ic-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.only-narrow { display: none; }

/* type */
.eyebrow { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--brand); }
.eyebrow-lime { color: var(--lime); }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: 1.08; letter-spacing: -1.5px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.14; letter-spacing: -.8px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-muted); }
.caption { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .24px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px; line-height: 22px; text-decoration: none; white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 17px; line-height: 24px; }
.btn:hover { filter: brightness(1.08); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-raised); border: 1px solid var(--line); color: var(--ink);
}
.icon-btn:disabled { opacity: .4; cursor: default; }
.chip {
  display: inline-flex; align-items: center; height: var(--tap); padding: 0 16px; border-radius: 999px;
  background: var(--surface-raised); color: var(--ink);
  font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap; flex: none;
}
.chip-sunken { background: var(--surface-sunken); }
.chip.is-on, .chip[aria-selected="true"] { background: var(--lime); color: var(--on-lime); font-weight: 600; }

/* header */
.site-header { background: var(--surface); }
.header-row { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: var(--tap); }
.logo img { width: 40px; height: 40px; }
.logo span { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; }
.nav { display: flex; gap: 8px; }
.nav a { display: inline-flex; align-items: center; height: var(--tap); padding: 0 12px; font-weight: 600; font-size: 15px; line-height: 22px; text-decoration: none; color: var(--ink); border-radius: 999px; }
.nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; height: var(--tap); padding: 0 16px; border-radius: 999px; color: var(--brand); font-weight: 600; font-size: 15px; line-height: 22px; }
.theme-toggle .ic { display: none !important; }

/* sections */
.section { padding: 48px 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-bottom: 40px; }

/* 01 hero */
.hero { padding: 64px 0; }
.hero-row { display: flex; align-items: center; gap: 64px; }
.hero-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-visual { position: relative; width: 560px; height: 644px; flex: none; }
.hero-photo, .hero-scan { position: absolute; left: 140px; top: 60px; width: 420px; height: 420px; }
.ring-card { position: absolute; left: 309.84px; top: 0; width: 250.16px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-float); display: flex; flex-direction: column; align-items: center; gap: 8.64px; }
.ring { position: relative; width: 200px; height: 200px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 16; }
.ring-track { stroke: var(--surface-sunken); }
.ring-prog { stroke: var(--brand); stroke-linecap: round; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.ring-num { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 48px; letter-spacing: -.88px; }
.ring-sub { font-weight: 500; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ring-left { font-weight: 500; font-size: 15px; line-height: 22px; text-align: center; }
.ring-sm { width: 144px; height: 144px; }
.ring-sm .ring-num { font-size: 31.68px; line-height: 34.56px; letter-spacing: -.63px; }
.ring-sm .ring-sub { font-size: 9.36px; line-height: 12.96px; }
.ring-card .ring-left { font-size: 10.8px; line-height: 15.84px; }

.foodlog { position: absolute; left: 0; top: 200px; width: 343px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: 0 2px 3px rgba(11, 74, 70, .08), 0 8px 12px rgba(11, 74, 70, .16); display: flex; flex-direction: column; gap: 16px; }
.fl-head { display: flex; align-items: center; gap: 12px; }
.fl-head img { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; }
.fl-title { font-weight: 600; font-size: 17px; line-height: 24px; }
.fl-sub { font-weight: 500; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.fl-rows { display: flex; flex-direction: column; }
.fl-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.fl-row:first-child { padding-top: 0; border-top: 0; }
.fl-row.fl-miss { padding: 12px; border-top: 0; border-radius: var(--radius-sm); background: var(--warning-soft); }
.warn { color: var(--warning); }
.fl-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.fl-val { display: inline-flex; align-items: baseline; gap: 3px; }
.fl-val b { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; }
.fl-val small { font-weight: 500; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.fl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 22px; white-space: nowrap; }
.pill-primary { background: var(--brand); color: var(--on-brand); }
.pill-soft { background: var(--brand-soft); color: var(--brand); }
.pill-ghost { color: var(--brand); }

/* 02 more than chat */
.more-row { display: flex; align-items: center; gap: 64px; }
.more-head { width: 520px; flex: none; margin-bottom: 0; }
.rows-card { flex: 1 1 0; min-width: 0; background: var(--surface-raised); border-radius: var(--radius-2xl); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.frow { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 17px; line-height: 24px; }
.frow-ic { width: 36px; height: 36px; border-radius: 999px; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.frow-ic .ic { width: 20px; height: 20px; }

/* 03 slider */
.fslider { display: flex; flex-direction: column; gap: 24px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { display: none; }
.slide-card { position: relative; background: var(--surface-raised); border-radius: var(--radius-2xl); overflow: hidden; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; outline: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; gap: 48px; height: 680px; padding-left: 64px; }
.slide-text { flex: 1 1 0; min-width: 0; padding: 64px 0 140px; display: flex; flex-direction: column; gap: 32px; }
.slide-eyebrow { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--brand); }
.slide-text h3 { margin-top: -16px; order: 0; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.14; letter-spacing: -.8px; }
.slide-eyebrow + h3 { margin-top: -16px; }
.benefits { display: flex; flex-direction: column; gap: 16px; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 17px; line-height: 24px; }
.chk { width: 28px; height: 28px; border-radius: 999px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: -2px; }
.chk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide-visual { position: relative; width: 620px; height: 680px; flex: none; }
.backdrop { position: absolute; left: 40px; top: 90px; width: 540px; height: 540px; border-radius: 50%; background: var(--brand-soft); }
.phone { position: absolute; background: var(--brand-deep); box-shadow: var(--shadow-float); overflow: hidden; }
.phone img { position: absolute; object-fit: cover; object-position: top; }
.phone-sm { left: 24px; top: 170px; width: 256px; height: 536px; border-radius: 40px; }
.phone-sm img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: var(--radius-xl); }
.phone-lg { left: 250px; top: 56px; width: 320px; height: 670px; border-radius: 50px; }
.phone-lg img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: var(--radius-2xl); }
.controls { position: absolute; left: 64px; bottom: 64px; display: flex; align-items: center; gap: 12px; }
.dots { display: flex; align-items: center; height: 44px; order: 3; }
.dots button { height: 44px; padding: 0 4px; display: inline-flex; align-items: center; }
.dots i { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); }
.dots button[aria-current="true"] i { width: 24px; background: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .dots i { transition: width .2s ease, background-color .2s ease; }
  .chip, .btn, .nav a { transition: background-color .15s ease, color .15s ease, filter .15s ease; }
}

/* 04 features / 07 safety tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--surface-raised); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tile-txt { display: flex; flex-direction: column; gap: 16px; }
.tile h3 { font-weight: 600; font-size: 19px; line-height: 24px; }
.tile-body { color: var(--ink-muted); }
.tile-short { display: none; }
.tile-ic { width: 48px; height: 48px; border-radius: 999px; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tiles-safety .tile { background: var(--surface-sunken); }
.tiles-safety .tile-ic { background: var(--surface-raised); }
.disclaimer { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-weight: 500; color: var(--ink-muted); }
.disclaimer .ic { color: var(--ink); }

/* 05 steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--surface-raised); border-radius: var(--radius-2xl); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.step-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.step-head h3 { font-weight: 600; font-size: 19px; line-height: 24px; }
.step-head p { color: var(--ink-muted); }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; }
.step-chat { background: var(--chat-bg); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.step-chat img { width: 140px; height: 140px; }
.bubble { width: 300px; max-width: 100%; background: var(--surface-raised); border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.bubble span { align-self: flex-end; font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .24px; color: var(--ink-muted); }
.step-grams { display: flex; flex-direction: column; gap: 12px; }
.grams { display: flex; gap: 8px; }
.step-grams p { font-weight: 500; color: var(--ink-muted); }
.step-ring { width: 303px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 06 menu */
.menu-block { background: var(--brand-deep); border-radius: var(--radius-2xl); padding: 64px; display: grid; grid-template-columns: 440px minmax(0, 1fr); grid-template-areas: "text lunch" "chips lunch"; column-gap: 48px; row-gap: 20px; align-items: center; }
.menu-text { grid-area: text; display: flex; flex-direction: column; gap: 20px; align-self: end; }
.menu-text h2 { color: var(--on-hero); }
.menu-text .lead { color: var(--on-hero-muted); }
.menu-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.menu-chips .chip { background: var(--surface-raised); color: var(--ink); }
.menu-lunch { grid-area: lunch; display: flex; flex-direction: column; gap: 20px; }
.slot { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; line-height: 24px; color: var(--on-hero); }
.slot-time { font-family: var(--font-display); font-size: 17px; line-height: 22px; color: var(--lime); }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dishes li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 600; font-size: 19px; line-height: 24px; color: var(--on-hero); }
.dishes img { width: 200px; height: 200px; max-width: 100%; aspect-ratio: 1; object-fit: contain; }
.dishes .is-picked img { width: 210px; height: 210px; margin: -5px -5px -5px; max-width: calc(100% + 10px); }
.dishes em { font-style: normal; font-weight: 600; font-size: 12px; line-height: 16px; color: var(--lime); margin-top: 0; }

/* 08 final */
.final-block { background: var(--lime-soft); border-radius: var(--radius-2xl); padding: 64px; display: flex; align-items: center; gap: 48px; }
.final-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.final-photos { position: relative; width: 420px; height: 300px; flex: none; }
.final-photos img { position: absolute; }
.final-photos .p1 { left: 0; top: 40px; width: 220px; height: 220px; }
.final-photos .p2 { left: 200px; top: 0; width: 180px; height: 180px; }
.final-photos .p3 { left: 250px; top: 150px; width: 150px; height: 150px; }

/* footer */
.site-footer { background: var(--surface-sunken); padding: 48px 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; height: var(--tap); padding: 0 12px; font-weight: 600; font-size: 15px; line-height: 22px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.site-footer hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }
.footer-notes { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .24px; color: var(--ink-muted); }

/* ---------- in-between desktop widths ---------- */
@media (max-width: 1439px) {
  :root { --gutter: clamp(32px, 5.5vw, 80px); }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  h1 { font-size: 46px; letter-spacing: -1.2px; }
  .hero-row { gap: 40px; }
  .hero-visual { zoom: .8; }
  .more-head { width: 420px; }
  .slide { gap: 24px; padding-left: 48px; }
  .slide-visual { zoom: .78; }
  .controls { left: 48px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-block { grid-template-columns: 360px minmax(0, 1fr); padding: 48px; }
  .final-photos { zoom: .85; }
}

/* ---------- mobile / tablet (< 1024) ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 16px; }
  .wrap { max-width: 720px; }
  .only-wide, .only-wide-block { display: none; }
  .only-narrow { display: inline; }

  .eyebrow, .slide-eyebrow { font-size: 13px; line-height: 18px; }
  h1 { font-size: 30px; line-height: 1.16; letter-spacing: -.6px; }
  h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.48px; }
  .lead { font-size: 17px; line-height: 24px; font-weight: 500; }
  .section { padding: 40px 0; }
  .sec-head { margin-bottom: 24px; }

  .header-row { height: 68px; }
  .nav { display: none; }
  .header-actions { gap: 8px; }
  .theme-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--ink); }
  .theme-toggle .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-toggle .ic { display: block !important; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none !important; }
  }
  :root[data-theme="dark"] .theme-toggle .ic-moon { display: none !important; }
  :root:not([data-theme="dark"]) .theme-toggle .ic-sun { display: none !important; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block !important; }
  }

  /* hero */
  .hero { padding: 24px 0 40px; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-text { gap: 20px; }
  .hero .cta { align-items: stretch; }
  .hero .btn-lg { width: 100%; }
  .hero .caption { align-self: flex-start; }
  .hero-visual { width: 100%; max-width: 343px; height: 521px; margin: 0 auto; }
  .hero-photo, .hero-scan { left: auto; right: 0; top: 0; width: 250px; height: 250px; }
  .ring-card { display: none; }
  .foodlog { top: 140px; zoom: .86; }

  /* more */
  .more-row { flex-direction: column; align-items: stretch; gap: 24px; }
  .more-head { width: auto; }
  .rows-card { border-radius: var(--radius-xl); padding: 20px; }
  .frow { font-weight: 400; font-size: 15px; line-height: 22px; }

  /* slider */
  .fslider { gap: 16px; }
  .slide-card { border-radius: var(--radius-xl); }
  .slide { flex-direction: column-reverse; justify-content: flex-end; gap: 0; height: auto; padding: 0 0 92px; }
  .slide-text { flex: none; padding: 24px 24px 0; gap: 20px; }
  .slide-text h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.48px; }
  .slide-eyebrow + h3 { margin-top: -12px; }
  .benefits { gap: 12px; }
  .benefits li { font-weight: 400; font-size: 15px; line-height: 22px; }
  .chk { width: 24px; height: 24px; margin-top: -1px; }
  .chk svg { width: 16px; height: 16px; }
  .slide-visual { width: 100%; height: 360px; overflow: hidden; zoom: 1; }
  .backdrop { left: 50%; top: 40px; width: 300px; height: 300px; margin-left: -150px; }
  .phone-sm { display: none; }
  .phone-lg { left: 50%; top: 28px; width: 256px; height: 536px; margin-left: -128px; border-radius: 40px; }
  .phone-lg img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: var(--radius-xl); }
  .is-food .phone-lg { top: -152px; }
  .controls { left: 24px; right: 24px; bottom: 24px; justify-content: space-between; gap: 8px; }
  .dots { order: 0; }

  /* features: compact rows */
  .tiles-features { display: flex; flex-direction: column; gap: 20px; background: var(--surface-raised); border-radius: var(--radius-xl); padding: 20px; }
  .tiles-features .tile { flex-direction: row; align-items: flex-start; gap: 12px; padding: 0; background: none; border-radius: 0; }
  .tiles-features .tile-ic { width: 36px; height: 36px; }
  .tiles-features .tile-ic .ic { width: 20px; height: 20px; }
  .tiles-features .tile-txt { gap: 2px; min-width: 0; }
  .tiles-features h3 { font-size: 15px; line-height: 22px; }
  .tiles-features .tile-body { display: none; }
  .tiles-features .tile-short { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

  /* steps */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { padding: 24px; border-radius: var(--radius-xl); gap: 20px; }
  .step-chat img { width: 120px; height: 120px; }
  .bubble { width: 263px; }
  .step-ring { width: 100%; }

  /* menu */
  .menu-block { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding: 24px; border-radius: var(--radius-xl); }
  .menu-text { gap: 16px; }
  .menu-lunch { gap: 16px; }
  .slot { font-size: 15px; line-height: 22px; }
  .dishes { gap: 8px; }
  .dishes li { gap: 8px; font-size: 13px; line-height: 18px; }
  .dishes img { width: 88px; height: 88px; }
  .dishes .is-picked img { width: 92.4px; height: 92.4px; margin: -2.2px; max-width: none; }
  .menu-chips { flex-direction: column; align-items: flex-start; margin-top: 0; }

  /* safety */
  .tiles-safety { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tiles-safety .tile { padding: 24px; border-radius: var(--radius-xl); }
  .disclaimer { align-items: flex-start; margin-top: 24px; }

  /* final */
  .final-block { flex-direction: column-reverse; align-items: stretch; gap: 24px; padding: 24px; border-radius: var(--radius-xl); }
  .final-text { gap: 16px; }
  .final .btn-lg { width: 100%; }
  .final-photos { width: 295px; height: 150px; margin: 0 auto 0 0; }
  .final-photos .p1 { left: 0; top: 5px; width: 140px; height: 140px; }
  .final-photos .p2 { left: 120px; top: 0; width: 110px; height: 110px; }
  .final-photos .p3 { left: 205px; top: 60px; width: 90px; height: 90px; }

  /* footer */
  .site-footer { padding: 32px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-links a { padding: 0; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .tiles-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
  h1 { font-size: 27px; }
  .hero-visual { height: 500px; }
  .hero-photo, .hero-scan { width: 210px; height: 210px; }
  .foodlog { zoom: .82; top: 130px; }
  .final-photos { zoom: .9; }
  .header-actions .btn { padding: 0 14px; }
}

/* ==========================================================================
   Motion — spec: Figma «Landing v2» → section «Motion».
   html.motion is set in <head> only when reduced motion is NOT requested.
   Only transform / opacity are animated (exception: ring arc stroke).
   Nothing is hidden without JS: .rv is added by app.js to below-the-fold
   elements only; the hero uses pure CSS animations that end visible.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-count: cubic-bezier(.33, 1, .68, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
  --rv-shift: 16px;
}
@media (max-width: 1023px) { :root { --rv-shift: 12px; } }

/* header: sticky + background on scroll (enabled by app.js) */
.site-header.is-live { position: sticky; top: 0; z-index: 5; background: transparent; pointer-events: none; }
.site-header.is-live .header-row { position: relative; }
.site-header.is-live .logo, .site-header.is-live .nav, .site-header.is-live .header-actions { pointer-events: auto; }
.site-header.is-live::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; transform-origin: top;
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-live::before {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}
.site-header.is-live .header-row > * { transition: transform .24s var(--ease-out); }
.site-header.is-scrolled::before { opacity: 1; transform: scaleY(.81); }          /* 84 → 68 */
.site-header.is-scrolled .header-row > * { transform: translate3d(0, -8px, 0); }
@media (max-width: 1023px) {
  .site-header.is-scrolled::before { transform: scaleY(.824); }                    /* 68 → 56 */
  .site-header.is-scrolled .header-row > * { transform: translate3d(0, -6px, 0); }
}
html.hdr-live { scroll-padding-top: 76px; }

/* generic reveal (classes added by app.js) */
.motion .rv { opacity: 0; transform: translate3d(0, var(--rv-shift), 0); }
.motion .rv.rv-24 { transform: translate3d(0, 24px, 0); }
.motion .rv.rv-12 { transform: translate3d(0, 12px, 0); }
.motion .rv.rv-pop { transform: scale(.6); }
.motion .rv.rv-plate { transform: scale(.9); }
.motion .rv.rv-photo { transform: scale(.9) rotate(-6deg); }
.motion .rv.rv-fade { transform: none; }
.motion .rv.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur, 560ms) var(--ease-out) var(--d, 0ms), transform var(--dur, 560ms) var(--rv-ease, var(--ease-out)) var(--d, 0ms);
}

/* 01 hero — load sequence (pure CSS) */
@keyframes rv-up { from { opacity: 0; transform: translate3d(0, var(--rv-shift), 0); } }
@keyframes rv-up24 { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-row { from { opacity: 0; transform: translate3d(-6px, 0, 0); } }
@keyframes photo-in { from { opacity: 0; transform: scale(.96) rotate(-8deg); } }
@keyframes photo-float { 0%, 100% { transform: none; } 50% { transform: translate3d(0, -6px, 0) rotate(2deg); } }
@keyframes photo-float-sm { 0%, 100% { transform: none; } 50% { transform: translate3d(0, -4px, 0) rotate(1.5deg); } }
@keyframes card-in { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.96); } }
@keyframes arc-fill { from { stroke-dasharray: 0 100; } }
@keyframes scan { 0% { opacity: 0; transform: translate3d(0, -110%, 0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 340%, 0); } }

.motion .hero-text > * { animation: rv-up .56s var(--ease-out) both; }
.motion .hero-text > :nth-child(2) { animation-delay: 80ms; }
.motion .hero-text > :nth-child(3) { animation-delay: 160ms; }
.motion .hero-text > :nth-child(4) { animation-delay: 240ms; }
.motion .hero-photo { animation: photo-in .9s var(--ease-out) .12s both, photo-float 12s var(--ease-io) 1.1s infinite; }
.motion .hero.is-off .hero-photo { animation-play-state: paused; }
.motion .foodlog { animation: rv-up24 .56s var(--ease-out) .25s both; }
.motion .fl-row { animation: rv-row .4s var(--ease-out) .7s both; }
.motion .fl-row:nth-child(2) { animation-delay: .86s; }
.motion .fl-row:nth-child(3) { animation-delay: 1.02s; }
.motion .fl-row:nth-child(4) { animation-delay: 1.18s; }
.motion .fl-total { animation: rv-fade .48s var(--ease-out) 1.4s both; }
.motion .fl-q, .motion .fl-actions { animation: rv-up .48s var(--ease-out) 1.56s both; }
.motion .ring-card { animation: card-in .56s var(--ease-out) .2s both; }
.motion .ring-card .ring-prog { animation: arc-fill 1.1s var(--ease-count) .6s both; }
.hero-scan { display: none; border-radius: 50%; overflow: hidden; pointer-events: none; }
.motion .hero-scan { display: block; }
.hero-scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--lime) 18%, transparent) 72%, color-mix(in srgb, var(--lime) 55%, transparent) 97%, transparent);
  opacity: 0;
}
.motion .hero-scan::before { animation: scan 1.2s var(--ease-io) .5s both; }
@media (max-width: 1023px) {
  .motion .hero-photo { animation-name: photo-in, photo-float-sm; }
}
.count { display: inline-block; }

/* 03 slider — gliding tab indicator */
.tabs.has-ind { position: relative; z-index: 0; }
.tabs.has-ind .chip { position: relative; background: transparent; }
.tabs.has-ind .chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface-raised); }
.tabs.has-ind .chip[aria-selected="true"] { background: transparent; }
.tab-ind { position: absolute; left: 0; top: 0; width: 0; height: var(--tap); pointer-events: none; border-radius: 999px; background: var(--lime); }
.tab-ind.ready { transition: transform .32s var(--ease-out), width .32s var(--ease-out); }
.slide-visual.tilting, .slide-visual.tilting .backdrop { will-change: transform; }

/* 04 / 07 tiles — hover micro-motion (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .motion .tile { transition: transform .24s var(--ease-out); }
  .motion .tile:hover { transform: translate3d(0, -2px, 0); }
  .motion .tile-ic, .motion .tile-ic .ic { transition: transform .24s var(--ease-out); }
  .motion .tile:hover .tile-ic { transform: scale(1.08); }
  .motion .tile:hover .tile-ic .ic { transform: rotate(-8deg); }
  .motion .tiles-features .tile:hover { transform: none; }
  .motion .dishes li { transition: transform .24s var(--ease-out); }
  .motion .dishes li:hover { transform: translate3d(0, -4px, 0); }
}

/* 05 steps — grams selection */
.motion .grams .chip { transition: background-color .24s var(--ease-out), color .24s var(--ease-out); }
.motion .kc-num { transition: opacity .24s var(--ease-out); }
.motion .kc-num.kc-wait { opacity: 0; }
.motion .ring-prog.arc-wait { stroke-dasharray: 0 100; }
.motion .ring-prog.arc-go { animation: arc-fill 1.1s var(--ease-count) both; }

/* 06 menu — slow plate rotation, paused off-screen */
@keyframes spin { to { transform: rotate(360deg); } }
.motion .dishes img { animation: spin 120s linear infinite paused; }
.motion .dishes li:nth-child(2) img { animation-direction: reverse; }
.motion .menu-block.spin-on .dishes img { animation-play-state: running; }

/* 08 final — one soft glow on the CTA */
@keyframes glow { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1, 1.35); } }
.final .btn { position: relative; }
.final .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px var(--brand); opacity: 0; pointer-events: none; }
.motion .final .btn.glow::after { animation: glow 1.2s var(--ease-io) .7s both; }

@media print {
  .motion .rv { opacity: 1 !important; transform: none !important; }
  .site-header.is-live { position: static; }
}

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