/* Aroi marketing — brand tokens lifted from prototype/aroi-tokens.jsx */
:root {
  --orange: #ff6b35;
  --orange-deep: #e8541f;
  --orange-soft: #ffe6d8;
  --cream: #fff8ee;
  --cream-deep: #f7eddc;
  --charcoal: #2c2c2c;
  --ink: #1f1b16;
  --jade: #2e8b57;
  --jade-soft: #e0f0e6;
  --gold: #f2b544;
  --gold-soft: #fff0d2;
  --tomato: #d62828;
  --n50: #faf7f2;
  --n100: #f2eee6;
  --n200: #e6e0d5;
  --n300: #d2cabe;
  --n400: #a89f92;
  --n500: #7e7669;
  --n600: #5a5448;
  --n700: #3f3a30;

  --font-sans: "IBM Plex Sans Thai", "IBM Plex Sans", -apple-system,
    BlinkMacSystemFont, "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-display: "Kanit", var(--font-sans);

  --action: #d4410b;
  --action-hover: #b8380a;
  --jade-deep: #17573a;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t1: 180ms;
  --t2: 320ms;
  --t3: 560ms;

  --focus-ring: var(--ink);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.06), 0 1px 1px rgba(31, 27, 22, 0.04);
  --shadow: 0 8px 24px rgba(31, 27, 22, 0.08), 0 2px 4px rgba(31, 27, 22, 0.04);
  --shadow-lg: 0 24px 60px rgba(31, 27, 22, 0.16);

  --max-w: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Chinese (zh-Hans) pages: put a CJK-first font ahead of the Thai/Latin stack. */
:lang(zh-Hans) {
  font-family: "Noto Sans SC", "IBM Plex Sans Thai", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

a {
  color: var(--orange-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}
/* Tight tracking only on display sizes; small headings keep the face's own spacing. */
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); letter-spacing: -0.03em; line-height: 1.06; }
h1:lang(th), h2:lang(th) { line-height: 1.22; }
h1:lang(zh-Hans) { line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 500; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--n700); }

/* Ink and jade surfaces turn the ring cream; the calculator's light panel, on its jade band, turns it back. */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.announce, .site-footer, .sticky-cta, .cta-band, .price-card.featured, #calculator { --focus-ring: var(--cream); }
.calc { --focus-ring: var(--ink); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Pre-launch announcement bar (above the header; only rendered in pre-launch mode) ---------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.announce-link {
  color: var(--orange-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announce-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(31, 27, 22, 0.06);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo .dot { color: var(--orange); }
nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
  color: var(--n700);
  font-weight: 500;
  font-size: 15px;
}
nav.primary a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-signin { padding: 8px 10px; color: var(--n700); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 22, 0.15);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--n600);
  white-space: nowrap;
}
.lang-switch a:hover { color: var(--ink); background: rgba(31, 27, 22, 0.05); }
.lang-switch .active { background: var(--orange); color: var(--ink); }

@media (max-width: 760px) {
  nav.primary { display: none; }
}

/* Three-way switcher (EN/TH/中文) is tight next to Sign in + Start free on phones. */
@media (max-width: 480px) {
  .nav-cta { gap: 4px; }
  .lang-switch { font-size: 11px; padding: 1px; }
  .lang-switch a,
  .lang-switch span { padding: 4px 5px; }
}

/* Below ~420px the header cannot fit logo + switcher + Sign in + Start free (it overflowed
   the viewport at 360px). Keep the primary CTA; Sign in is also in the footer. */
@media (max-width: 420px) {
  .nav-cta .nav-signin { display: none; }
}

/* Pre-launch pages only (longer "Get notified" labels): the logo mark keeps its
   32px, and at <=360px the rest of the header tightens instead. */
body:has(.announce) .logo svg { flex: none; }
@media (max-width: 360px) {
  body:has(.announce) .site-header .logo { gap: 6px; font-size: 20px; }
  body:has(.announce) .lang-switch a,
  body:has(.announce) .lang-switch span { padding: 3px 4px; }
  body:has(.announce) .nav-cta .btn-primary { padding: 9px 10px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--action);
  color: white;
}
.btn-primary:hover {
  background: var(--action-hover);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(31, 27, 22, 0.15);
}
.btn-ghost:hover {
  background: white;
  border-color: rgba(31, 27, 22, 0.25);
  color: var(--ink);
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns:
    [full-start] minmax(24px, 1fr)
    [content-start] minmax(0, calc(var(--max-w) / 2 - 24px))
    [mid] minmax(0, calc(var(--max-w) / 2 - 24px))
    [content-end] minmax(24px, 1fr)
    [full-end];
  padding: 0;
}
.hero-copy {
  grid-column: content-start / mid;
  align-self: center;
  padding: 48px 40px 48px 0;
}
.hero h1 { margin-bottom: 20px; font-size: clamp(3rem, 4.6vw, 4rem); }
.h-line { display: block; }
@supports not (overflow-clip-margin: .35em) {
  .fx-roll { padding-block: .35em; margin-block: -.35em; }
}
.hero p.lede { font-size: 19px; color: var(--n700); max-width: 34em; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stage {
  grid-column: mid / full-end;
  container-type: inline-size;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: min(calc(100svh - 64px), 760px);
  padding: 36px 0;
  background: var(--orange);
  overflow: clip;
}

/* ---------- Hero: the playable order ---------- */
.od, .fx {
  --kds-card: #2b2620;
  --kds-dim: rgba(255, 248, 238, .68);
  --kds-fresh: #62c48f;
  --kds-late: #ff8a7a;
}
.od {
  --od-w: min(100cqw, 720px);
  --od-l: clamp(20px, 4.5cqw, 44px);
  --od-r: clamp(16px, 4cqw, 36px);
  --od-tablet-w: min(420px, calc(var(--od-w) * .62));
  --od-bezel: #16130f;
  --od-shadow: 0 30px 46px -18px rgba(107, 36, 6, .6), 0 8px 16px -6px rgba(107, 36, 6, .4);
  --kds-rule: rgba(255, 248, 238, .12);
  position: relative;
  width: var(--od-w);
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  padding-inline: var(--od-l) var(--od-r);
  color: var(--ink);
  line-height: 1.35;
}
:where(.od) p { margin: 0; color: inherit; }
:where(.od) ul, :where(.od) ol { margin: 0; padding: 0; list-style: none; }
:where(.od) button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.od svg { width: 100%; height: 100%; }
.od:not([data-ready]) button { visibility: hidden; }

.od .t-th, .od .t-en, .od .t-zh { display: none; }
.od[data-lang="th"] .t-th, .od[data-lang="en"] .t-en, .od[data-lang="zh"] .t-zh { display: inline; }

.od-name, .od-small, .od-lead, .od-sample, .od-cta, .od-shop, .od-track-word, .od-ticket-lines li { min-width: 0; overflow-wrap: anywhere; }
/* On the Chinese page these spans would inherit its wider CJK stack and rewrap when the diner switches language. */
.od-name:lang(zh-Hans) > :is([lang="en"], [lang="th"]) { font-family: var(--font-sans); }

/* Diner phone */
.od-phone {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  z-index: 2;
  margin-top: 44px;
  padding: 8px;
  border-radius: 38px;
  background: var(--od-bezel);
  box-shadow: inset 0 0 0 1px var(--kds-rule), var(--od-shadow);
}
.od-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: var(--cream);
}
.od-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--od-bezel);
}
.od-head { padding: 24px 16px 4px; background: #fff; border-bottom: 1px solid var(--n100); }
.od-shop { font-size: 14.5px; font-weight: 600; }
.od-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.od-table { font-size: 12.5px; color: var(--n600); }
.od-langs { display: flex; margin-right: -6px; }
.od-langs button {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--n600);
}
.od-langs button::before {
  content: "";
  position: absolute;
  inset: 9px 6px;
  z-index: -1;
  border-radius: 8px;
}
.od-langs button:hover::before { background: var(--n100); }
.od-langs button[aria-pressed="true"] { color: var(--cream); }
.od-langs button[aria-pressed="true"]::before { background: var(--ink); }

.od-views { display: grid; flex: 1; }
.od-view {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
}
.od[data-phase="menu"] .od-view--menu,
.od:is([data-phase="sent"], [data-phase="cooking"], [data-phase="ready"]) .od-view--track,
.od[data-phase="pay"] .od-view--pay,
.od[data-phase="paid"] .od-view--paid {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.od-view--menu { padding: 0 12px; }
.od-menu { flex: 1; }
.od-dish { display: flex; gap: 12px; padding-top: 12px; padding-bottom: 2px; }
.od-dish + .od-dish { border-top: 1px solid var(--n200); }
.od-art { flex: none; width: 62px; height: 62px; }
.od-dish-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.od-name { display: grid; font-size: 13.5px; font-weight: 600; }
.od-dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.od-price { font-size: 13.5px; font-weight: 600; }
.od-stepper { display: flex; align-items: center; margin-right: -7px; }
.od-step { position: relative; isolation: isolate; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; }
.od-step::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 50%;
  background: var(--action);
}
.od-step:hover::before { background: var(--action-hover); }
.od-step { border-radius: 50%; }
.od-langs button { border-radius: 12px; }
.od-step:focus-visible, .od-langs button:focus-visible { outline-offset: -3px; }
.od-step svg { width: 12px; height: 12px; }
.od-step--less { color: var(--ink); }
.od-step--less::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--n300); }
.od-step--less:hover::before { background: var(--n100); }
.od-qty { width: 18px; text-align: center; font-size: 14px; font-weight: 600; }
.od-dish[data-q="0"] .od-qty, .od-dish[data-q="0"] .od-step--less { visibility: hidden; }

.od-foot { padding: 12px 0 14px; }
.od-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.od-cta:hover { background: var(--action-hover); }
.od-cta:disabled { padding-inline: 10px; background: var(--n100); color: var(--n700); font-size: 12.5px; font-weight: 500; cursor: default; }
.od-cta-hint, .od-cta:disabled .od-cta-send { display: none; }
.od-cta:disabled .od-cta-hint { display: inline; }
.od-cta--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--n300); }
.od-cta--quiet:hover { background: var(--n100); }

.od-view--track { padding: 16px 14px 0; }
.od-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.od-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.od-track li + li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--n200);
}
.od-track-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--n200); }
.od-track-word { font-size: 12px; color: var(--n600); }
.od[data-phase="sent"] .od-track li:nth-child(1) .od-track-dot,
.od[data-phase="cooking"] .od-track li:nth-child(2) .od-track-dot,
.od[data-phase="ready"] .od-track li:nth-child(3) .od-track-dot { background: var(--action); }
.od[data-phase="sent"] .od-track li:nth-child(1) .od-track-word,
.od[data-phase="cooking"] .od-track li:nth-child(2) .od-track-word,
.od[data-phase="ready"] .od-track li:nth-child(3) .od-track-word { color: var(--ink); font-weight: 600; }
.od:is([data-phase="cooking"], [data-phase="ready"]) .od-track li:nth-child(1) .od-track-dot,
.od[data-phase="ready"] .od-track li:nth-child(2) .od-track-dot { background: var(--jade); }
.od:is([data-phase="cooking"], [data-phase="ready"]) .od-track li:nth-child(2)::before,
.od[data-phase="ready"] .od-track li:nth-child(3)::before { background: var(--jade); }

.od-lines { flex: 1; margin-top: 14px; }
.od-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.od-line[hidden] { display: none; }
.od-line .od-art { width: 38px; height: 38px; }
.od-line-q { flex: none; font-weight: 600; }
.od-line .od-name { font-size: 13.5px; font-weight: 500; }
.od-total {
  padding-top: 8px;
  border-top: 1px solid var(--n200);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-align: right;
}
.od:not([data-phase="ready"]) [data-od-pay] { visibility: hidden; }

.od-view--pay, .od-view--paid {
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  text-align: center;
}
.od-view--pay { background: #fff; }
.od-pay-brand { font-size: 13px; font-weight: 600; }
.od-qr { width: 144px; height: 144px; padding: 7px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--n200); }
.od-amount { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.od-small { font-size: 12.5px; color: var(--n700); }
.od-view--pay .od-cta, .od-view--paid .od-cta { margin-top: 6px; }
.od-tick { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--jade-deep); color: #fff; }
.od-tick svg { width: 30px; height: 30px; }
.od-paid-word { font-size: 18px; font-weight: 600; }

/* Kitchen screen */
.od-tablet {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  z-index: 1;
  width: var(--od-tablet-w);
  padding: 10px;
  border-radius: 20px;
  background: var(--od-bezel);
  box-shadow: inset 0 0 0 1px var(--kds-rule), var(--od-shadow);
}
.od-kds {
  --focus-ring: var(--cream);
  --od-covered: calc(var(--od-l) + 272px - (var(--od-w) - var(--od-r) - var(--od-tablet-w)));
  padding: 10px 12px 12px max(12px, calc(var(--od-covered) + 4px));
  border-radius: 11px;
  background: var(--ink);
  color: var(--cream);
}
.od-kds-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; }
.od-kds-title { font-size: 13px; font-weight: 600; }
.od-kds-sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--kds-dim); }
.od-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--kds-fresh); }
.od-lanes { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 8px; }
.od-lane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.od-slot { flex: 1; min-height: 128px; border: 1px dashed var(--kds-rule); border-radius: 10px; }
.od-ticket:not([hidden]) + .od-slot { display: none; }

.od-ticket { --u: var(--kds-fresh); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: var(--kds-card); }
.od-ticket[hidden] { display: none; }
.od-ticket[data-urgency="warm"] { --u: var(--gold); }
.od-ticket[data-urgency="late"] { --u: var(--kds-late); }
.od-urgency { height: 3px; background: var(--u); transform: scaleX(.95); transform-origin: left; }
.od-ticket[data-urgency="warm"] .od-urgency { transform: scaleX(.78); }
[data-od-ticket] .od-urgency { transform: scaleX(.06); }
.od-ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 7px 9px 6px; }
.od-ticket-table span { display: block; font-size: 11px; line-height: 1.15; color: var(--kds-dim); }
.od-ticket-table b { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.05; }
.od-ticket-state { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.od-clock { font-family: var(--font-mono); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--u); }
.od-status { font-size: 11px; line-height: 1.2; color: var(--u); }
.od-status--ready { display: none; }
.od-ticket-lines { display: flex; flex-direction: column; gap: 4px; padding: 0 9px 9px; font-size: 12.5px; }
.od-ticket-lines li { padding: 3px 6px; border-left: 2px solid var(--u); border-radius: 0 4px 4px 0; background: rgba(255, 248, 238, .06); }
.od-tq { font-weight: 600; }
.od-done { flex: none; margin: 0 9px 9px; min-height: 44px; border-radius: 8px; background: var(--kds-fresh); color: var(--ink); font-size: 13px; font-weight: 600; }
.od-done:hover { background: #7dd3a4; }

.od[data-phase="sent"] [data-od-ticket] { opacity: 0; }
.od[data-phase="sent"] .od-done { visibility: hidden; }
.od:is([data-phase="ready"], [data-phase="pay"]) [data-od-ticket] { --u: var(--gold); }
.od:is([data-phase="ready"], [data-phase="pay"]) [data-od-ticket] .od-urgency { transform: scaleX(1); }
.od:is([data-phase="ready"], [data-phase="pay"]) .od-status--cooking,
.od:is([data-phase="ready"], [data-phase="pay"]) .od-done { display: none; }
.od:is([data-phase="ready"], [data-phase="pay"]) .od-status--ready { display: block; }

/* Caption */
.od-caption {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0 6px 28px;
}
.od-lead { font-family: var(--font-display); font-size: clamp(17px, 3cqw, 22px); font-weight: 500; line-height: 1.28; text-wrap: balance; }
.od-lead:lang(zh-Hans) { word-break: keep-all; }
.od-sample { font-size: 14px; }
.od-pause {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.od-pause:hover { background: rgba(31, 27, 22, .1); }
.od-pause svg { flex: none; width: 12px; height: 12px; }
.od-pause-now, .od-pause-next { display: inline-flex; align-items: center; gap: 8px; }
.od-pause-next, .od-pause[data-paused] .od-pause-now { display: none; }
.od-pause[data-paused] .od-pause-next { display: inline-flex; }
.od[data-auto="off"] .od-pause { visibility: hidden; }

.od-fly { position: absolute; z-index: 4; border-radius: 10px; background: var(--kds-card); box-shadow: 0 0 0 2px var(--orange); transform-origin: 0 0; pointer-events: none; }
.od-dot {
  position: absolute;
  top: -14px;
  left: -14px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(31, 27, 22, .32);
  opacity: 0;
  pointer-events: none;
}
.od-dot[data-on] { opacity: 1; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { grid-column: 1; width: 100%; max-width: var(--max-w); margin-inline: auto; padding: 48px 24px 36px; }
  .hero h1 { font-size: clamp(2.25rem, 10.4vw, 5rem); }
  .hero-stage { grid-column: 1; justify-content: center; min-height: 0; padding: 40px 0; }
}

/* Narrow stages: the part of the tablet not behind the phone holds one lane. */
@container (max-width: 620px) {
  .od-lanes { grid-template-columns: minmax(0, 1fr); }
  .od-lane:not(.od-lane--mine) .od-ticket + .od-ticket { display: none; }
  .od:is([data-phase="menu"], [data-phase="paid"]) .od-lane--mine { display: none; }
  .od-slot { display: none; }
}

@media (max-width: 600px) {
  .hero-copy { padding: 36px 24px 28px; }
  .hero-stage { padding: 16px 0; }
  .od {
    --od-l: 16px;
    --od-r: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .od-tablet { order: -1; width: 100%; padding: 5px; border-radius: 16px; }
  .od-phone { align-self: center; width: 272px; margin-top: 0; }
  .od-head { padding: 20px 14px 0; }
  .od-dish { gap: 10px; padding-top: 5px; padding-bottom: 0; }
  .od-art { width: 46px; height: 46px; }
  .od-dish-foot { margin-block: -5px -6px; }
  .od-foot { padding: 8px 0 10px; }
  .od-view--track { padding-top: 10px; }
  .od-lines { margin-top: 8px; }
  .od-line { padding: 2px 0; }
  .od-line .od-art { width: 26px; height: 26px; }
  .od-total { padding-top: 4px; font-size: 18px; }
  .od-view--pay, .od-view--paid { gap: 3px; padding-block: 6px; }
  .od-qr { width: 100px; height: 100px; padding: 5px; }
  .od-amount { font-size: 22px; }
  .od-tick { width: 42px; height: 42px; }
  .od-tick svg { width: 24px; height: 24px; }
  .od-kds { padding: 6px 8px 8px; }
  .od-kds-bar { padding-bottom: 5px; }
  .od-lanes { display: block; }
  .od-lane { display: block; }
  .od-lane:not(.od-lane--mine) .od-ticket + .od-ticket { display: none; }
  .od:is([data-phase="sent"], [data-phase="cooking"], [data-phase="ready"], [data-phase="pay"]) .od-lane:not(.od-lane--mine) { display: none; }
  .od:is([data-phase="menu"], [data-phase="paid"]) .od-lane--mine { display: none; }
  .od-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; min-height: 58px; padding: 3px 8px 0; }
  .od-ticket[hidden] { display: none; }
  .od-urgency { position: absolute; inset: 0 0 auto; }
  .od-ticket-top { display: contents; }
  .od-ticket-table { order: 1; }
  /* Two rows of whole dishes. A dish never wraps, and whatever does not fit is left off. */
  .od-ticket-lines { order: 2; flex-flow: row wrap; gap: 0 8px; max-height: 36px; overflow: hidden; padding: 0; font-size: 12px; line-height: 18px; }
  .od-ticket-lines li { padding: 0; border: 0; background: none; white-space: nowrap; }
  .od-ticket-state { order: 3; }
  .od-done { order: 4; margin: 0; padding: 0 12px; }
  .od-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; width: 100%; padding: 0; }
  .od-lead { font-size: 14px; }
  .od-sample { grid-column: 1; font-size: 12.5px; }
  .od-pause { grid-column: 2; grid-row: 1 / span 2; width: 44px; padding: 0; justify-content: center; }
  .od-pause-now, .od-pause-next { font-size: 0; }
  .od-pause svg { width: 14px; height: 14px; }
}

/* A web font swap must not reflow the copy above the stage: the buttons stack at every phone width. */
@media (max-width: 480px) {
  .hero .cta-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Logo strip ---------- */
.strip {
  padding: 32px 0;
  border-top: 1px solid var(--n100);
  border-bottom: 1px solid var(--n100);
  background: white;
}
.strip .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n600);
}
.strip .row .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.strip .row .pill::before {
  content: "•";
  color: var(--orange);
}
@media (max-width: 1000px) {
  .strip .row { justify-content: flex-start; gap: 6px 28px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: white; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 18px; color: var(--n600); }

/* Problem: a paper menu under an Aroi screen, split at --ba. */
@property --ba { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

.ba-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }

.ba {
  --ba: 50%;
  --ba-head: 92px;
  --ba-row: 96px;
  position: relative;
  display: grid;
  max-width: 560px;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow: clip;
}
.ba-paper, .ba-aroi { position: relative; grid-area: 1 / 1; min-width: 0; }
.ba-aroi { clip-path: inset(0 0 0 var(--ba)); background: #fff; }
.ba-sheet { display: grid; grid-template-rows: var(--ba-head) auto; height: 100%; }
.ba-list { display: grid; grid-template-rows: repeat(4, var(--ba-row)); margin: 0; padding: 0; list-style: none; }
.ba-tag { position: absolute; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* Photocopy: toner speckle, a scanner shadow down the edge, a streak from the drum, one fold across the middle. */
.ba-paper {
  background:
    linear-gradient(transparent calc(58% - 1px), rgba(31, 27, 22, .08) calc(58% - 1px), rgba(255, 255, 255, .6) calc(58% + 1px), transparent calc(58% + 1px)),
    linear-gradient(90deg, rgba(31, 27, 22, .2), transparent 14px),
    linear-gradient(90deg, transparent 71%, rgba(31, 27, 22, .05) 71.6%, transparent 72.8%),
    linear-gradient(200deg, rgba(31, 27, 22, .1), transparent 26%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .14 0 0 0 0 .12 .42 0 0 0 -.19'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    #f1ebdc;
}
.ba-paper .ba-sheet { color: #1f1b16; font-family: var(--font-display); font-weight: 500; text-shadow: 0 0 .7px rgba(31, 27, 22, .8); }
.ba-paper::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid rgba(31, 27, 22, .6); border-radius: 2px; transform: rotate(-.3deg); }
.ba-paper .ba-tag {
  top: 12px;
  left: 18px;
  padding: 2px 14px;
  background: rgba(238, 205, 128, .82);
  color: var(--ink);
  transform: rotate(-2deg);
  box-shadow: 0 1px 1px rgba(31, 27, 22, .14);
}
.ba-paper .ba-shop {
  align-self: end;
  justify-self: start;
  margin: 0 0 0 22px;
  padding-bottom: 7px;
  color: inherit;
  font-size: 25px;
  line-height: 1.4;
  transform: rotate(-.8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5c40-3 90 2 140-1s110 3 158-1' fill='none' stroke='%232a2520' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 7px no-repeat;
}
.ba-paper .ba-row { display: flex; align-items: baseline; gap: 6px; align-self: center; padding: 0 22px; font-size: 23px; line-height: 1.5; }
.ba-paper .ba-row:nth-child(1) { transform: rotate(-.6deg); }
.ba-paper .ba-row:nth-child(2) { transform: rotate(.5deg) translateX(3px); opacity: .92; }
.ba-paper .ba-row:nth-child(3) { transform: rotate(-.3deg) translateX(-2px); }
.ba-paper .ba-row:nth-child(4) { transform: rotate(.7deg); opacity: .88; }
.ba-name { flex: none; }
.ba-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted currentColor; opacity: .55; transform: translateY(-5px); }
.ba-old { position: relative; flex: none; text-decoration: none; opacity: .75; }
.ba-old::after { content: ""; position: absolute; inset: 52% -3px auto; height: 2px; background: #2743a3; transform: rotate(-14deg); }
.ba-price--pen { color: #2743a3; transform: rotate(-4deg); }

/* Same row grid as the paper. The text starts past the midline so the resting split shows whole names, clear of the handle. */
.ba-aroi .ba-tag { top: 14px; right: 14px; padding: 2px 12px; background: var(--ink); color: var(--cream); border-radius: 999px; }
.ba-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; align-self: end; padding: 0 14px 12px 16px; border-bottom: 1px solid var(--n200); }
.ba-aroi .ba-shop { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ba-table { display: block; color: var(--n600); font-size: 13px; font-weight: 500; }
.ba-aroi .ba-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ba-aroi .ba-row + .ba-row { border-top: 1px solid var(--n100); }
.ba-art { display: grid; place-items: center; height: 100%; background: var(--n50); }
.ba-art svg { width: 72px; height: 72px; }
.ba-text { display: flex; flex-direction: column; min-width: 0; padding: 0 14px 0 34px; }
.ba-lead { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ba-second { color: var(--n600); font-size: 13px; line-height: 1.45; }
.ba-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ba-baht { font-size: 16px; font-weight: 700; }
.ba-add { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--action); color: #fff; }
.ba-add svg { width: 11px; height: 11px; }

/* Only the thumb takes the pointer, because Chromium moves a range at touchstart and a swipe over the figure must stay a scroll.
   The thumb's centre sits on the divider. Its half width reaches the far edge of the grip when the grip is clamped inward at 0 and 100 (34 + 27). */
.ba-range {
  --ba-thumb-w: 122px;
  --ba-thumb-h: 60px;
  position: absolute;
  z-index: 3;
  top: calc(var(--ba-head) + 2 * var(--ba-row) - var(--ba-thumb-h) / 2);
  left: calc(var(--ba-thumb-w) / -2);
  width: calc(100% + var(--ba-thumb-w));
  height: var(--ba-thumb-h);
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.ba-range::-webkit-slider-runnable-track { height: var(--ba-thumb-h); }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: var(--ba-thumb-w); height: var(--ba-thumb-h); pointer-events: auto; }
.ba-range::-moz-range-track { height: var(--ba-thumb-h); }
.ba-range::-moz-range-thumb { width: var(--ba-thumb-w); height: var(--ba-thumb-h); border: 0; border-radius: 0; pointer-events: auto; }

/* Both are as wide as the figure, so a percentage translate is a share of the figure. */
.ba-line, .ba-handle { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.ba-line { transform: translateX(var(--ba)); }
.ba-line::before { content: ""; position: absolute; inset: 0 auto 0 -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 27, 22, .2); }
.ba-handle { transform: translateX(clamp(34px, var(--ba), calc(100% - 34px))); }
.ba-grip { position: absolute; top: calc(var(--ba-head) + 2 * var(--ba-row)); left: 0; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--action); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(31, 27, 22, .3); }
.ba-grip svg { width: 28px; height: 16px; }
.ba-range:focus-visible ~ .ba-handle .ba-grip { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ba:not([data-ready]) :is(.ba-range, .ba-handle) { display: none; }

.ba-issues { margin: 0; padding: 0; list-style: none; }
.ba-issues li { padding: 20px 0; border-top: 1px solid var(--n200); }
.ba-issues li:first-child { padding-top: 0; border-top: 0; }
.ba-issues h3 { margin-bottom: 4px; font-size: 18px; }
.ba-issues p { margin: 0; color: var(--n600); font-size: 15.5px; }

@media (max-width: 760px) {
  .ba-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px), (min-width: 761px) and (max-width: 940px) {
  .ba { --ba-head: 82px; --ba-row: 94px; }
  .ba-paper .ba-shop { margin-left: 16px; font-size: 20px; }
  .ba-paper .ba-row { padding: 0 16px; font-size: 18px; }
  .ba-paper .ba-tag { left: 14px; }
  .ba-bar { padding: 0 10px 10px 12px; }
  .ba-aroi .ba-shop { font-size: 14.5px; }
  .ba-art svg { width: 62px; height: 62px; }
  .ba-text { padding: 0 10px 0 30px; }
  .ba-lead { font-size: 14px; line-height: 1.28; }
  .ba-second { font-size: 12px; }
  .ba-baht { font-size: 14.5px; }
  .ba-grip { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--n100);
}
section.alt .feature { background: var(--cream); }
.feature:hover { box-shadow: var(--shadow); }
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.feature .icon.jade { background: var(--jade-soft); color: var(--jade); }
.feature .icon.gold { background: var(--gold-soft); color: var(--orange-deep); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--n600); margin: 0; }

/* ---------- Feature explorer: the kitchen band, one screen with five scenes ---------- */
.fx {
  --focus-ring: var(--cream);
  --fx-dim: rgba(255, 248, 238, .86);
  --fx-rule: rgba(255, 248, 238, .16);
  --kds-line: #38332c;
  background: var(--ink);
  color: var(--cream);
}
.fx .section-head h2 { color: var(--cream); }
.fx .section-head p { color: var(--fx-dim); }

.fx-tabs {
  position: relative;
  display: none;
  gap: 2px;
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--fx-rule);
}
.fx-tabs::-webkit-scrollbar { display: none; }
/* Holds the place of what landing.js will show or hide, so nothing jumps when it runs and a deep link lands true. */
.js .fx-tabs { display: flex; }
.js .fx:not([data-ready]) .fx-tabs { visibility: hidden; }
.js .fx:not([data-ready]) .fx-panel:not(:first-child) { display: none; }
.fx-tabs::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 3px;
  background: var(--orange);
  transform: translateX(var(--fx-x, 0)) scaleX(var(--fx-w, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}
.fx-tab {
  flex: none;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: var(--kds-dim);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.fx-tab:hover, .fx-tab[aria-selected="true"] { color: var(--cream); }
.fx-tab:focus-visible { outline-offset: -3px; }

.fx-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }
.fx-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.fx-panel[hidden] { display: none; }
.fx-text h3 { margin-bottom: 14px; color: var(--cream); font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.25; }
.fx-text p { margin: 0; color: var(--fx-dim); }
.fx-more { margin: 24px 0 0; }
.fx .btn-ghost { color: var(--cream); border-color: rgba(255, 248, 238, .4); }
.fx .btn-ghost:hover { background: rgba(255, 248, 238, .1); border-color: var(--cream); color: var(--cream); }

/* The same bezel and height for every scene: the scene changes, the device does not. */
.fx-stage {
  container-type: size;
  height: clamp(404px, 33vw, 440px);
  padding: 10px;
  border-radius: 20px;
  background: #16130f;
  box-shadow: inset 0 0 0 1px var(--fx-rule), 0 28px 48px -24px rgba(0, 0, 0, .8);
}
.fx-screen { --focus-ring: var(--ink); height: 100%; overflow: hidden; border-radius: 11px; background: var(--cream); color: var(--ink); }
.fx-scene { display: flex; flex-direction: column; height: 100%; font-size: 14px; line-height: 1.4; }
:where(.fx-scene ul) { margin: 0; padding: 0; list-style: none; }
.fx-scene :is(.fx-bar-title, .fx-bar-meta, .fx-roll > *, .fx-amount, .fx-hint, .fx-note, .fx-line, .fx-person-name, .fx-person-sum, .fx-total span, .fx-status) { min-width: 0; overflow-wrap: anywhere; }
.fx-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--n200); }
.fx-bar-title { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; line-height: 1.6; }
.fx-bar-meta { flex: none; color: var(--n600); }

.fx-chips { position: relative; flex: none; display: block; font-size: 12px; font-weight: 600; }
.fx-chips-row { display: grid; grid-template-columns: repeat(3, 34px); justify-items: center; line-height: 28px; }
.fx-chips-row--on {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  clip-path: inset(0 calc((2 - var(--b0)) * 33.333%) 0 calc(var(--b0) * 33.333%) round 8px);
}

.fx-menu { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; min-height: 0; padding: 12px; }
.fx-dish { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.fx-art { flex: none; width: 104px; }
.fx-art svg { width: 100%; height: auto; }
.fx-dish-body { flex: 1; display: grid; gap: 4px; min-width: 0; }
.fx-roll { display: grid; overflow: clip; overflow-clip-margin: .35em; font-size: 16px; font-weight: 600; line-height: 1.35; }
.fx-roll > * { grid-area: 1 / 1; align-self: end; }
.fx-roll > :nth-child(n + 2) { opacity: 0; }
.fx-price { color: var(--action); font-size: 15px; font-weight: 600; }

.fx-pay { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 7cqw, 48px); min-height: 0; padding: 16px; }
.fx-qr { flex: none; width: 236px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.fx-qr svg { width: 100%; height: auto; }
.fx-pay-side { display: grid; gap: 12px; min-width: 0; }
.fx-amount { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.3; }
.fx-pay-state { display: grid; justify-items: start; align-items: center; }
.fx-pay-state > * { grid-area: 1 / 1; }
.fx-hint { color: var(--n600); font-size: 14px; opacity: 0; }
.fx-paid { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--jade-deep); color: #fff; font-size: 15px; font-weight: 600; }
.fx-paid svg { flex: none; width: 20px; height: 20px; }

.fx-scene--kds { --focus-ring: var(--cream); background: var(--ink); color: var(--cream); }
.fx-scene--kds .fx-bar { background: transparent; border-bottom-color: var(--fx-rule); }
.fx-live { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--kds-dim); font-size: 13px; }
.fx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--kds-fresh); }
.fx-lanes { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; padding: 12px; }
.fx-ticket { --u: var(--kds-fresh); position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; background: var(--kds-card); }
.fx-ticket:first-child { grid-row: 1 / 3; }
.fx-ticket[data-urgency="warm"] { --u: var(--gold); }
.fx-ticket[data-urgency="late"] { --u: var(--kds-late); }
.fx-urgency { flex: none; display: block; height: 3px; background: var(--u); transform-origin: left; }
.fx-ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--kds-fresh); opacity: 0; pointer-events: none; }
.fx-ticket-top { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 10px 6px; }
.fx-ticket-table small { display: block; color: var(--kds-dim); font-size: 11.5px; line-height: 1.2; }
.fx-ticket-table b { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.05; }
.fx-ticket-state { display: grid; justify-items: end; gap: 1px; min-width: 0; text-align: right; }
.fx-clock { font-family: var(--font-mono); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--u); }
.fx-status { color: var(--u); font-size: 12.5px; line-height: 1.3; }
.fx-status--ready { padding: 1px 9px; border-radius: 999px; background: var(--kds-fresh); color: var(--ink); font-weight: 600; }
.fx-swap { display: grid; justify-items: end; }
.fx-swap > * { grid-area: 1 / 1; }
.fx-status--was { opacity: 0; }
.fx-lines { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 2px 10px 10px; font-size: 15px; line-height: 1.35; }
.fx-line { padding: 6px 10px; border-left: 2px solid var(--u); border-radius: 0 4px 4px 0; background: var(--kds-line); }
.fx-line--bump { display: grid; padding: 0; }
.fx-line--bump > * { grid-area: 1 / 1; min-width: 0; padding: 6px 10px; background: var(--kds-line); border-radius: inherit; }
.fx-q { font-weight: 600; }
.fx-note { display: block; color: var(--kds-dim); font-size: 13px; }
.fx-btn { margin: auto 10px 10px; padding: 7px 8px; border-radius: 8px; background: var(--kds-fresh); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.fx-ticket[data-urgency="late"] .fx-btn { background: var(--kds-late); }
.fx-line--done, .fx-line-struck { color: rgba(255, 248, 238, .62); text-decoration: line-through; }
.fx-line--done .fx-note, .fx-line-struck .fx-note { color: inherit; }

.fx-people { flex: 1; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 12px 12px 8px; }
.fx-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 14px 6px 8px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.fx-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 600; }
.fx-avatar[data-tone="1"] { background: var(--jade-deep); color: #fff; }
.fx-avatar[data-tone="2"] { background: var(--gold); }
.fx-avatar[data-tone="3"] { background: var(--tomato); color: #fff; }
.fx-person-name { flex: 1; font-size: 15px; font-weight: 600; }
.fx-person-sum { color: var(--n600); text-align: right; }
.fx-total { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--ink); color: var(--cream); font-weight: 600; }
.fx-total b { flex: none; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.3; }

.fx-stats { flex: 1; display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 18px 20px 20px; }
.fx-figure-label { display: block; color: var(--n600); font-size: 13px; font-weight: 600; }
.fx-figure b { font-family: var(--font-display); font-size: clamp(2.25rem, 10cqw, 3.25rem); font-weight: 600; line-height: 1.15; }
.fx-chart { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 3cqw, 18px); min-height: 0; }
.fx-chart i { display: block; height: calc(var(--h) * 100%); border-radius: 6px 6px 0 0; background: #ffd5c0; transform-origin: bottom; }
.fx-chart i:last-child { background: var(--orange); }

@container (max-width: 500px) {
  .fx-menu { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .fx-dish { padding: 6px 12px 6px 8px; }
  .fx-art { width: 58px; }
  .fx-pay { flex-direction: column; gap: 14px; text-align: center; }
  .fx-qr { width: min(188px, 56cqw); }
  .fx-pay-side { justify-items: center; }
  .fx-pay-state { justify-items: center; }
  .fx-amount { font-size: 21px; }
  .fx-lanes { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 8px; padding: 10px; }
  .fx-lines { font-size: 13px; padding: 0 8px 8px; gap: 4px; }
  .fx-line, .fx-line--bump > * { padding: 3px 7px; }
  .fx-note { font-size: 12px; }
  .fx-ticket-table b { font-size: 22px; }
  .fx-clock { font-size: 15px; }
  .fx-people { padding: 10px 10px 8px; gap: 6px; }
}

@container (max-width: 500px) or (max-height: 410px) {
  .fx-btn { display: none; }
}

@media (max-width: 900px) {
  .fx-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* Stage first, so switching tabs changes the screen in place and only the text below moves. */
  .fx[data-ready] .fx-stage { order: -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .fx-tabs[data-slide]::after { transition: transform var(--t2) var(--ease); }

  .fx-roll > * { animation: 3200ms var(--ease) calc(var(--i) * 70ms) backwards; }
  .fx-roll > :nth-child(1) { animation-name: fx-roll-home; }
  .fx-roll > :nth-child(2) { animation-name: fx-roll-one; }
  .fx-roll > :nth-child(3) { animation-name: fx-roll-two; }
  .fx-chips-row--on { animation: fx-chip 3200ms var(--ease) backwards; }
  @keyframes fx-roll-home {
    0%, 14% { transform: none; opacity: 1; }
    24% { transform: translateY(-110%); opacity: 0; }
    24.01%, 74% { transform: translateY(110%); opacity: 0; }
    84%, 100% { transform: none; opacity: 1; }
  }
  @keyframes fx-roll-one {
    0%, 14% { transform: translateY(110%); opacity: 0; }
    24%, 44% { transform: none; opacity: 1; }
    54%, 100% { transform: translateY(-110%); opacity: 0; }
  }
  @keyframes fx-roll-two {
    0%, 44% { transform: translateY(110%); opacity: 0; }
    54%, 74% { transform: none; opacity: 1; }
    84%, 100% { transform: translateY(-110%); opacity: 0; }
  }
  @keyframes fx-chip {
    0%, 14% { clip-path: inset(0 calc((2 - var(--b0)) * 33.333%) 0 calc(var(--b0) * 33.333%) round 8px); }
    24%, 44% { clip-path: inset(0 calc((2 - var(--b1)) * 33.333%) 0 calc(var(--b1) * 33.333%) round 8px); }
    54%, 74% { clip-path: inset(0 calc((2 - var(--b2)) * 33.333%) 0 calc(var(--b2) * 33.333%) round 8px); }
    84%, 100% { clip-path: inset(0 calc((2 - var(--b0)) * 33.333%) 0 calc(var(--b0) * 33.333%) round 8px); }
  }

  .fx-qr svg { animation: fx-qr-draw var(--t3) steps(25, end) 240ms backwards; }
  .fx-amount { animation: fx-appear var(--t2) var(--ease) 900ms backwards; }
  .fx-hint { animation: fx-leave var(--t1) var(--ease) 1900ms backwards; }
  .fx-paid { animation: fx-pop var(--t2) var(--ease) 2000ms backwards; }
  @keyframes fx-qr-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  @keyframes fx-appear { from { opacity: 0; transform: translateY(10px); } }
  @keyframes fx-leave { from { opacity: 1; } to { opacity: 0; } }
  @keyframes fx-pop { from { opacity: 0; transform: scale(.82); } }

  .fx-ticket { animation: fx-appear var(--t2) var(--ease) calc(var(--t, 0) * 300ms) backwards; }
  .fx-ticket:nth-child(2) { --t: 1; }
  .fx-ticket:nth-child(3) { --t: 2; }
  .fx-urgency { animation: fx-grow-x var(--t3) var(--ease) calc(var(--t, 0) * 300ms + 160ms) backwards; }
  .fx-clock { animation: fx-fade var(--t2) var(--ease) calc(var(--t, 0) * 300ms + 240ms) backwards; }
  .fx-line-struck { animation: fx-strike var(--t3) var(--ease) 1500ms backwards; }
  .fx-status--was { animation: fx-leave var(--t1) var(--ease) 2100ms backwards; }
  .fx-status--ready { animation: fx-fade var(--t2) var(--ease) 2180ms backwards; }
  .fx-ring { animation: fx-ring var(--t3) var(--ease) 2180ms backwards; }
  @keyframes fx-grow-x { from { transform: scaleX(0); } }
  @keyframes fx-fade { from { opacity: 0; } }
  @keyframes fx-strike { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes fx-ring { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

  .fx-person { animation: fx-appear var(--t2) var(--ease) calc(160ms + var(--i) * 460ms) backwards; }
  .fx-avatar { animation: fx-pop var(--t2) var(--ease) calc(160ms + var(--i) * 460ms) backwards; }
  .fx-total { animation: fx-appear var(--t2) var(--ease) 2200ms backwards; }

  .fx-chart i { animation: fx-grow-y var(--t3) var(--ease) calc(100ms + var(--i) * 80ms) backwards; }
  .fx-figure { animation: fx-appear var(--t2) var(--ease) 1000ms backwards; }
  @keyframes fx-grow-y { from { transform: scaleY(0); } }

  .fx:not([data-ready]) .fx-scene * { animation: none; }
  .js .fx:not([data-inview]) .fx-scene * { animation-play-state: paused; }

  @supports (animation-timeline: view()) {
    .fx {
      animation: fx-open linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes fx-open { from { clip-path: inset(0 5% round 32px); } to { clip-path: inset(0 round 0); } }
  }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--n100);
  position: relative;
  counter-increment: step;
}
section.alt .step { background: white; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--n600); margin: 0; }

/* The timeline. Equal rows put each step's top at exactly i/5 of the list, which is where the line lights it. */
.tl {
  --tl-gutter: clamp(44px, 5vw, 72px);
  --tl-rail: calc(var(--tl-gutter) + 14px);
  --tl-num: clamp(2.75rem, 1.8rem + 3.6vw, 5rem);
  /* 4.8:1 on cream: an unlit numeral must still pass AA. */
  --tl-dim: #756d61;
  --tl-paper: #fff;
  display: grid;
}
.tl-list { position: relative; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; counter-reset: tl; }
.tl-list::before,
.tl-list::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--tl-rail); width: 2px; }
.tl-list::before { background: var(--n200); }
.tl-list::after { background: var(--ink); transform: scaleY(var(--tl, 1)); transform-origin: top; }

.tl-step { position: relative; display: grid; grid-template-columns: var(--tl-gutter) minmax(0, 1fr); column-gap: 44px; padding: 18px 0 40px; counter-increment: tl; }
.tl-step::before { content: ""; position: absolute; top: 0; right: 0; left: var(--tl-rail); height: 1px; background: var(--ink); transform: scaleX(calc(1 - var(--off, 0))); transform-origin: left; }
.tl-num { position: relative; font-family: var(--font-display); font-size: var(--tl-num); font-weight: 600; line-height: 1; color: var(--tl-dim); text-align: right; }
.tl-num::before,
.tl-num::after { content: counter(tl); }
.tl-num::after { position: absolute; inset: 0; color: var(--ink); clip-path: inset(0 0 calc(var(--off, 0) * 100%) 0); }
/* Ink at .66 on cream is 5.4:1, so a reader who stops mid-way can still read an unlit step. */
.tl-body { max-width: 34em; opacity: calc(1 - var(--off, 0) * .34); }
.tl-body h3 { margin-bottom: 6px; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.3; letter-spacing: -0.01em; }
.tl-body h3:lang(th) { line-height: 1.45; letter-spacing: 0; }
.tl-body p { margin: 0; color: var(--ink); font-size: 16px; }

/* landing.js moves data-step from 1 to 5. Without it nothing here matches: every step lit, the slip whole. */
.tl[data-step="1"] :is(.tl-step, .tl-piece):nth-child(n+2),
.tl[data-step="2"] :is(.tl-step, .tl-piece):nth-child(n+3),
.tl[data-step="3"] :is(.tl-step, .tl-piece):nth-child(n+4),
.tl[data-step="4"] :is(.tl-step, .tl-piece):nth-child(n+5) { --off: 1; }

.tl-slip { display: none; }
.tl-piece { opacity: calc(1 - var(--off, 0)); transform: translateY(calc(var(--off, 0) * 10px)); }
.tl-slip-head { text-align: center; }
.tl-slip-shop { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.5; }
.tl-slip-table { margin-top: 10px; color: var(--n600); font-size: 13px; line-height: 1.4; }
.tl-slip-no { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.05; }
.tl-slip-menu { display: grid; gap: 4px; margin-top: 16px; padding: 16px 0 22px; border-top: 1px dashed var(--n300); border-bottom: 1px dashed var(--n300); }
.tl-dish { display: flex; align-items: baseline; gap: 6px; font-size: 14px; line-height: 1.5; }
.tl-dish span { min-width: 0; overflow-wrap: anywhere; }
.tl-dish i { flex: 1 1 12px; border-bottom: 1px dotted var(--n400); transform: translateY(-3px); }
.tl-dish span:last-child { flex: none; font-weight: 600; }
/* Sits on the dashed rule under the menu; the paper disc breaks the rule. */
.tl-slip-tick { width: 40px; height: 40px; margin: -20px auto 0; padding: 4px; border-radius: 50%; background: var(--tl-paper); color: var(--jade); }
.tl-slip-tick svg { clip-path: inset(0 calc(var(--off, 0) * 100%) 0 0); }
.tl-slip-qr { margin-top: 8px; text-align: center; }
.tl-slip-qr svg { width: 148px; height: 148px; margin: 0 auto; }
.tl-slip-scan { margin-top: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 500; line-height: 1.5; }
.tl-slip-ping { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 3px var(--tl-paper); }

@media (min-width: 880px) {
  .tl { grid-template-columns: minmax(0, 1fr) 288px; column-gap: clamp(40px, 7vw, 112px); align-items: start; }
  .tl-step { min-height: 144px; }
  .tl-slip {
    position: sticky;
    top: 96px;
    display: block;
    padding: 24px 24px 22px;
    border: 1px solid rgba(31, 27, 22, .08);
    border-radius: 6px;
    background: var(--tl-paper);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tl-step::before { transition: transform var(--t2) var(--ease); }
  .tl-num::after { transition: clip-path var(--t2) var(--ease); }
  .tl-body { transition: opacity var(--t2) var(--ease); }
  .tl-piece { transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
  .tl-slip-tick svg { transition: clip-path var(--t2) var(--ease); }
  .tl-slip-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--jade); opacity: 0; transform: scale(2.6); }
  .tl[data-step="5"] .tl-slip-ping::after { animation: tl-ping var(--t3) var(--ease) backwards; }
  @keyframes tl-ping { from { opacity: .9; transform: scale(.8); } }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.price-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--n100);
  display: flex;
  flex-direction: column;
  position: relative;
}
section.alt .price-card { background: var(--cream); }
.price-card.featured,
section.alt .price-card.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3,
.price-card.featured .price { color: white; }
.price-card.featured .price-sub,
.price-card.featured ul { color: rgba(255, 248, 238, 0.8); }
.price-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .price-sub {
  font-size: 13px;
  color: var(--n500);
  margin-bottom: 20px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--n500);
}
.price-card.featured .price small { color: rgba(255, 248, 238, 0.7); }
.price-card .fee {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n500);
  margin-bottom: 22px;
}
.price-card.featured .fee { color: rgba(255, 248, 238, 0.7); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--n700);
  flex: 1;
}
.price-card li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid rgba(31, 27, 22, 0.05);
}
.price-card.featured li { border-bottom-color: rgba(255, 255, 255, 0.08); }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--jade-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7l2.5 2.5L10.5 4.5' fill='none' stroke='%232E8B57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.price-card li.no::before {
  background: rgba(168, 159, 146, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7h6' fill='none' stroke='%23A89F92' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.price-card li.no { color: var(--n400); }
.price-card.featured li.no { color: rgba(255, 248, 238, 0.5); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--n100);
  padding: 20px 0;
}
.faq details[open] summary { color: var(--orange-deep); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--n500);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; color: var(--orange); }
.faq details p {
  margin: 12px 0 0;
  color: var(--n600);
  font-size: 16px;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #3a2418 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 60%;
  height: 200%;
  /* closest-side: the glow fades out inside its 60% x 200% box, so a tall (phone) band shows no hard seam. */
  background: radial-gradient(circle closest-side, rgba(255, 107, 53, 0.3), transparent);
  pointer-events: none;
}
.cta-band h2 { color: white; margin: 0 0 8px; }
.cta-band p { color: rgba(255, 248, 238, 0.75); margin: 0; max-width: 480px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: var(--cream); border-color: rgba(255, 248, 238, 0.3); }
.cta-band .btn-ghost:hover { background: white; border-color: white; color: var(--ink); }
@media (max-width: 600px) {
  .cta-band { padding: 40px 24px; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1 1 100%; }
}

/* Plan finder: one radio row; the pick rings a card and carries the tag over. Hidden until landing.js runs. */
.finder { display: none; margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.js .finder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.js .finder:not([data-ready]) { visibility: hidden; }
.finder legend { float: left; margin: 0 6px 0 0; padding: 0; font-size: 15px; font-weight: 600; color: var(--n700); }
.finder-opt { position: relative; display: inline-flex; }
.finder-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.finder-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(31, 27, 22, .2); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink); background: var(--cream);
}
.finder-opt:hover span { border-color: var(--ink); }
.finder-opt input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.finder-opt input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.finder-tag {
  position: absolute; top: -12px; left: 24px; z-index: 1;
  background: var(--ink); color: var(--cream);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.finder > .finder-tag { display: none; }
.finder-note { margin: 0; font-size: 14px; color: var(--n600); }
/* The home page's cards reach AA; pricing.html keeps its own greys. */
#pricing .price-card:not(.featured) :is(.price-sub, .price small, .fee, li.no), #pricing .muted { color: var(--n600); }
.price-card[data-plan] { scroll-margin: 88px 0 96px; }
.price-card::after {
  content: ""; position: absolute; inset: -6px; border-radius: calc(var(--radius-lg) + 6px);
  border: 3px solid var(--action); opacity: 0; pointer-events: none;
}
.price-card.is-match::after { opacity: 1; }

/* Trust: plain text under hairlines, no cards. */
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.trust-item { border-top: 1px solid rgba(31, 27, 22, .18); padding: 20px 0 36px; }
.trust-item h3 { font-size: 17px; margin-bottom: 8px; }
.trust-item p { font-size: 15px; color: var(--n600); margin: 0; }
@media (max-width: 899px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .trust-list { grid-template-columns: 1fr; } }

/* FAQ on the home page: heading left, list right. */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.faq-split .section-head { margin-bottom: 0; }
.faq-split .faq { max-width: none; margin: 0; }
.faq-split .faq details:first-child { padding-top: 0; }
@media (max-width: 899px) {
  .faq-split { grid-template-columns: 1fr; }
  .faq-split .section-head { margin-bottom: 8px; }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-split .faq { interpolate-size: allow-keywords; }
    .faq-split .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size var(--t2) var(--ease), content-visibility var(--t2) var(--ease) allow-discrete;
    }
    .faq-split .faq details[open]::details-content { block-size: auto; }
  }
}

/* Closing band: the page's last moment, full-bleed orange like the hero stage. */
.cta-full { background: var(--orange); padding: 0; }
.cta-band.cta-band--full {
  --focus-ring: var(--ink);
  background: none; color: var(--ink); border-radius: 0; overflow: visible;
  padding: clamp(64px, 10vw, 128px) 0; gap: 40px;
}
.cta-band--full::before { display: none; }
.cta-band--full h2 { color: var(--ink); font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); line-height: 1.08; max-width: 14ch; margin-bottom: 16px; }
.cta-band--full h2:lang(th) { line-height: 1.25; }
.cta-band--full p { color: var(--ink); font-size: 18px; max-width: 460px; }
.cta-band--full .btn-primary { background: var(--ink); color: var(--cream); }
.cta-band--full .btn-primary:hover { background: #3a2f26; color: var(--cream); }
.cta-band--full .btn-ghost { color: var(--ink); border-color: var(--ink); }
.cta-band--full .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* Scroll progress under the header; absent where scroll timelines are not supported. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-line {
      position: fixed; top: 65px; left: 0; right: 0; height: 3px; z-index: 49;
      background: var(--orange); transform-origin: 0 50%; pointer-events: none;
      animation: scroll-line linear both; animation-timeline: scroll(root);
    }
    @keyframes scroll-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .price-card::after { transition: opacity var(--t2) var(--ease); }
  .price-card[data-plan] > .finder-tag { animation: finder-in var(--t2) var(--ease) backwards; }
  @keyframes finder-in { from { opacity: 0; transform: translateY(6px); } }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 248, 238, 0.6);
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
.site-footer h3 {
  color: white;
  font-size: 14px;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 248, 238, 0.7); }
.site-footer a:hover { color: white; }
.site-footer .logo { color: white; }
.site-footer .tagline {
  color: rgba(255, 248, 238, 0.7); /* the global p rule's dark grey was ~1.6:1 on the ink footer; 0.7 = 8.8:1 */
  margin-top: 12px;
  font-size: 13px;
  max-width: 280px;
  line-height: 1.55;
}
.site-footer .bottom {
  border-top: 1px solid rgba(255, 248, 238, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff8ee;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(31, 27, 22, 0.18);
}
/* `hidden` already sets display:none in the UA stylesheet; only add display back
   when the attribute is absent, so script.js removing it is the only way to show the bar. */
.sticky-cta:not([hidden]) { display: block; }
.sticky-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cta-row span { font-size: 14px; font-weight: 600; }
/* Belt-and-suspenders: never show the bar on wide screens, even if script.js's
   observers ever remove `hidden` there (the observers only run on any width). */
@media (min-width: 761px) {
  .sticky-cta { display: none !important; }
}
@media (max-width: 760px) {
  /* Reserve room for the fixed bar so it never covers the calculator's inputs
     or the footer's last line. script.js measures the bar's real (possibly
     wrapped, th/zh) height into --sticky-cta-h; 84px is only a pre-JS fallback. */
  body.has-sticky-cta { padding-bottom: var(--sticky-cta-h, 84px); }
}
/* A printed page has no scroll position to hide the bar behind, and it would
   otherwise repeat on every page of the printout. */
@media print {
  .sticky-cta { display: none !important; }
}

/* ---------- Sub-pages (features/pricing inner) ---------- */
.page-hero {
  padding: 80px 0 48px;
  text-align: center;
}
.page-hero .kicker {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
}
.page-hero h1 { max-width: 760px; margin: 0 auto 16px; }
.page-hero p.lede {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--n600);
  font-size: 19px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .feature-block,
  .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
}
.feature-block h2 { font-size: 1.7rem; }
.feature-block .icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-block .icon-lg.jade { background: var(--jade-soft); color: var(--jade); }
.feature-block .icon-lg.gold { background: var(--gold-soft); color: var(--orange-deep); }
.feature-block ul.checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.feature-block ul.checks li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--n700);
}
.feature-block ul.checks li::before {
  content: "✓";
  color: var(--jade);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.illustration {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid var(--n100);
}

/* ---------- Savings calculator: money you keep ---------- */
.calc-band { background: var(--jade-deep); color: var(--cream); }
.calc-band .section-head h2 { color: var(--cream); }
.calc-band .section-head p { color: rgba(255, 248, 238, .86); }
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px 48px;
  align-items: start;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.calc-grid { display: grid; gap: 24px; }
html:not(.js) .calc-grid[inert] { opacity: .6; }
.calc-field label,
.calc-field legend {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--n600);
  margin-bottom: 8px;
  padding: 0;
}
.calc-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--n300);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: white;
}
.calc-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-range-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--action); }
.calc-range-row input[type="number"] { width: 110px; flex-shrink: 0; }
.calc-plans { border: none; padding: 0; margin: 0; }
.calc-plan-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.calc-plan-option label { margin: 0; font-weight: 500; color: var(--ink); }
.calc-plan-option input[type="radio"] { accent-color: var(--action); }

.calc-pane { min-width: 0; }
.calc-big-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--jade-deep); }
.calc-big {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 5vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--jade-deep);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--jade);
}
.calc-bar > span { display: block; height: 100%; }
.calc-bar-take { flex: 0 0 calc(var(--take) * 100%); background: var(--tomato); }
.calc-bar-aroi { flex: 0 0 calc(var(--aroi) * 100%); min-width: 3px; background: var(--ink); }
.calc-bar-kept { flex: 1 1 0; min-width: 0; background: var(--jade); }
.calc-bar[data-zero] .calc-bar-aroi { display: none; }

.calc-out { margin-top: 18px; display: grid; }
.calc-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--n200);
}
.calc-result-label { display: inline-flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--n600); }
.calc-result-value { font-size: 18px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.calc-swatch.take { background: var(--tomato); }
.calc-swatch.aroi { background: var(--ink); }
.calc-swatch.kept { background: var(--jade); }
.calc .calc-footnote { grid-column: 1 / -1; margin: 4px 0 0; color: var(--n600); font-size: 13px; }

@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
}
@media (max-width: 480px) {
  .calc { padding: 24px 18px; }
  .calc-result { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .calc-bar > span { transition: flex-basis var(--t2) var(--ease); }
}

/* ---------- Comparison table (landing #compare; distinct from the pricing page's own compare table) ---------- */
#compare .compare-table th:nth-child(2) { color: inherit; }
@media (min-width: 641px) {
  /* Fixed layout: the three other options share one width instead of sizing to their longest cell. */
  #compare .compare-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
  #compare .compare-table thead td { width: 18%; }
  #compare .compare-table th.aroi-col { width: 28%; }
  #compare .compare-table tbody tr:hover :is(th, td):not(.aroi-col) { background: rgba(255, 107, 53, .07); }
  /* One continuous ink column: the head rises above the other heads and the last cell hangs below the last row. */
  #compare .compare-table th.aroi-col,
  #compare .compare-table td.aroi-col { background: var(--ink); color: var(--cream); }
  #compare .compare-table th.aroi-col {
    padding: 30px 16px 14px;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
  }
  #compare .compare-table td.aroi-col { padding: 14px 16px; font-weight: 600; border-bottom-color: rgba(255, 248, 238, .16); }
  #compare .compare-table tbody th { border-bottom: 1px solid var(--n100); }
  #compare .compare-table tbody tr:last-child :is(th, td) { padding-bottom: 28px; border-bottom: none; }
  #compare .compare-table tbody tr:last-child td.aroi-col { border-radius: 0 0 18px 18px; }
  #compare .compare-table tbody tr:hover td.aroi-col { background: #332d25; }
  #compare .compare-table thead th { vertical-align: bottom; }
}

/* Visually hidden but available to assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th {
  padding: 14px 8px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--n200);
}
.compare-table th:nth-child(2) { color: var(--orange); }
.compare-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--n100);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tr.total td { font-weight: 700; }
.compare-table tr.total.bg td { background: var(--cream); }

/* Landing comparison table on phones: five columns cannot fit 358px, so each
   row becomes a card (row label as title, one labelled line per column).
   Labels come from the cells' data-label, so no JS and no horizontal scroll. */
@media (max-width: 640px) {
  #compare .compare-table, #compare .compare-table tbody,
  #compare .compare-table tr, #compare .compare-table th[scope="row"],
  #compare .compare-table td { display: block; width: 100%; }
  #compare .compare-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  #compare .compare-table tbody tr {
    border: 1px solid var(--n200);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  #compare .compare-table th[scope="row"] {
    padding: 12px 14px 4px;
    border-bottom: none;
    font-size: 16px;
  }
  #compare .compare-table td {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid var(--n100);
    overflow-wrap: anywhere;
  }
  #compare .compare-table td::before {
    content: attr(data-label);
    flex: 0 0 34%;
    color: var(--n500);
    font-weight: 400;
  }
  #compare .compare-table td:last-child { border-bottom: none; }
  #compare .compare-table td.aroi-col { background: var(--jade-soft); color: var(--jade-deep); font-weight: 700; }
  #compare .compare-table td.aroi-col::before { color: var(--jade-deep); font-weight: 700; }
}
.pos { color: var(--jade); }
.neg { color: var(--tomato); }

/* Utility */
.text-mono { font-family: var(--font-mono); }
.muted { color: var(--n500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Motion (all disabled under prefers-reduced-motion: reduce) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }

  /* Button press + feature-card lift: motion only, the colour/shadow hover
     changes on these same elements stay unconditional (see their base rules). */
  .btn {
    transition: transform 0.08s ease, box-shadow 0.15s ease,
      background 0.15s ease, color 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .feature { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .feature:hover { transform: translateY(-3px); }

  /* Scroll reveal: script.js only adds .js-reveal when IntersectionObserver
     exists and motion is allowed, so without JS nothing here ever applies. */
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Hero page load: one sequence, under a second, for the stage and the devices only. The copy is the LCP candidate, so it paints at first paint. */
  .hero-stage { animation: od-wipe var(--t3) var(--ease) 100ms backwards; }
  .od-phone { animation: od-rise var(--t3) var(--ease) 300ms backwards; }
  .od-tablet { animation: od-rise var(--t3) var(--ease) 380ms backwards; }
  @keyframes od-wipe { from { clip-path: inset(0 0 0 100%); } }
  @keyframes od-rise { from { opacity: 0; transform: translateY(28px); } }

  .od-view {
    transform: translateY(8px);
    transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease), visibility 0s linear var(--t2);
  }
  .od-view--pay { transform: translateY(100%); }
  .od-urgency { transition: transform var(--t3) var(--ease); }
  [data-od-ticket] { transition: opacity var(--t1) var(--ease); }
  [data-od-ticket]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px var(--orange);
    opacity: 0;
    pointer-events: none;
  }
  .od[data-phase="cooking"] [data-od-ticket]::after { animation: od-ring var(--t3) var(--ease); }
  @keyframes od-ring { from { opacity: 1; } }
  .od-dot { transition: transform var(--t3) var(--ease), opacity var(--t1) var(--ease); }

  /* The figure waits off to the paper side, then settles once when it comes into view (landing.js sets data-settle). */
  .ba[data-settle="wait"] { --ba: 72%; }
  .ba[data-settle="run"] { animation: ba-settle var(--t3) var(--ease) backwards; }
  @keyframes ba-settle { from { --ba: 72%; } }
  .ba-grip { transition: transform var(--t1) var(--ease); }
  @media (hover: hover) {
    .ba-range:hover ~ .ba-handle .ba-grip { transform: scale(1.06); }
  }
  .ba-range:active ~ .ba-handle .ba-grip { transform: scale(.96); }
}

/* `@media (prefers-reduced-motion: no-preference)` also matches printing, so a
   printed page with .js-reveal still on <html> would print unscrolled
   [data-reveal] sections at opacity 0. Force them visible for print. */
@media print {
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tl { --tl: 1 !important; }
  .tl :is(.tl-step, .tl-piece) { --off: 0 !important; }
}

/* ==========================================================================
   Pre-launch home page (marketing-src/pages/prelaunch.ts, rendered only while
   PRELAUNCH is on). Every selector is scoped to a .soon-* class, except the
   button rules below, which are scoped to body:has(.announce) (every pre-launch
   page). The live site is untouched.
   ========================================================================== */

/* Pre-launch pages keep their orange buttons, with ink text: white on --orange
   is 2.84:1, ink is 6:1. */
body:has(.announce) .btn.btn-primary { background: var(--orange); color: var(--ink); }
body:has(.announce) .btn.btn-primary:hover { background: var(--orange-deep); }

/* Kickers: ink text behind an orange dash (orange text on cream fails AA). */
:is(.soon-prep, .soon-how, .soon-pricing, .soon-faq) .section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--n700);
}
:is(.soon-prep, .soon-how, .soon-pricing, .soon-faq) .section-head .kicker:lang(th) { letter-spacing: 0; }
:is(.soon-prep, .soon-how, .soon-pricing, .soon-faq) .section-head .kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* Balanced headings: keeps Thai loanwords (ออเดอร์, คอมมิชชัน) from splitting mid-word. */
:is(.soon-prep, .soon-how, .soon-pricing, .soon-faq, .soon-band) h2 { text-wrap: balance; }

/* Hero */
.soon-hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.soon-hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.soon-hero-inner > * { min-width: 0; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  background: white;
  border: 1px solid rgba(31, 27, 22, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--n700);
}
.soon-badge-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: soon-pulse 2.2s ease-out infinite;
}
.soon-hero h1 {
  margin-bottom: 20px;
  line-height: 1.05;
  text-wrap: balance;
}
.soon-hero h1:lang(th) { line-height: 1.25; }
.soon-hero h1:lang(zh-Hans) { line-height: 1.15; }
.soon-lede {
  max-width: 34em;
  margin-bottom: 28px;
  font-size: 19px;
  color: var(--n700);
}
.soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.soon-hints {
  display: grid;
  gap: 8px;
  max-width: 34em;
  margin-top: 20px;
}
.soon-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--n600);
}
.soon-hint a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.soon-hint svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero visual: steaming bowl, cycling dish card, bobbing order chip (aria-hidden). */
.soon-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 330px;
}
.soon-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(560px, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, rgba(255, 230, 216, 0.95) 32%, rgba(255, 230, 216, 0) 68%);
}
.soon-stage { width: min(300px, 66%); }
.soon-bowl { width: 100%; height: auto; overflow: visible; }
.soon-steam path {
  fill: none;
  stroke: var(--n400);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 55 100;
  animation: soon-steam 3.2s ease-in-out infinite;
}
.soon-steam path:nth-child(2) { animation-delay: -1.07s; }
.soon-steam path:nth-child(3) { animation-delay: -2.13s; }

.soon-dish {
  position: absolute;
  left: 0;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: white;
  border: 1px solid rgba(31, 27, 22, 0.05);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.soon-dish-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
}
.soon-dish-thumb svg { width: 30px; height: 30px; }
.soon-dish-body { display: grid; gap: 6px; }
.soon-dish-names { display: grid; }
.soon-dish-name {
  grid-area: 1 / 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  animation: soon-dish 7.5s ease-in-out infinite both;
}
/* Resting frame (no animation): the Thai name and its tag. */
.soon-dish-name:nth-child(1) { opacity: 1; }
.soon-dish-name:nth-child(2),
.soon-dish-tag:nth-child(2) { animation-delay: 2.5s; }
.soon-dish-name:nth-child(3),
.soon-dish-tag:nth-child(3) { animation-delay: 5s; }
.soon-dish-tags { display: flex; gap: 4px; }
.soon-dish-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--n100);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--n600);
  animation: soon-dish-tag 7.5s ease-in-out infinite both;
}
.soon-dish-tag:nth-child(1) { background: var(--orange); color: var(--ink); }

.soon-chip {
  position: absolute;
  right: 0;
  top: 10%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
  white-space: nowrap;
  animation: soon-bob 4s ease-in-out infinite;
}
.soon-chip-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* Prep list: a kitchen ticket with perforated top and bottom edges. */
.soon-prep { background: var(--cream-deep); }
.soon-prep-inner {
  display: grid;
  gap: 36px;
}
.soon-prep .section-head { margin-bottom: 0; }
.soon-ticket {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 18px 28px rgba(31, 27, 22, 0.1)) drop-shadow(0 2px 3px rgba(31, 27, 22, 0.06));
}
.soon-ticket-paper {
  --perforation: radial-gradient(circle 6px at 50% 0, #0000 97%, #000) top / 18px 51% repeat-x,
    radial-gradient(circle 6px at 50% 100%, #0000 97%, #000) bottom / 18px 51% repeat-x;
  padding: 30px 28px 34px;
  background: #fff;
  -webkit-mask: var(--perforation);
  mask: var(--perforation);
}
.soon-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--n300);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--n700);
}
.soon-prep-list { list-style: none; margin: 0; padding: 0; }
.soon-prep-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px dashed var(--n200);
  font-size: 16px;
}
.soon-prep-row:last-child { border-bottom: 0; padding-bottom: 0; }
.soon-prep-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
}
.soon-prep-row[data-state="done"] .soon-prep-icon {
  background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.soon-prep-row[data-state="doing"] {
  margin: 6px -12px;
  padding: 14px 12px;
  border-bottom-color: transparent;
  border-radius: 12px;
  background: var(--gold-soft);
}
.soon-prep-row[data-state="doing"] .soon-prep-icon {
  border: 2.5px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
}
.soon-prep-row[data-state="next"] .soon-prep-icon { border: 2px dashed var(--n400); }
.soon-prep-text { min-width: 0; }
.soon-prep-label {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.soon-prep-row[data-state="next"] .soon-prep-label { color: var(--n700); }
.soon-prep-note {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--n600);
}
.soon-prep-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(242, 181, 68, 0.28);
}
.soon-prep-bar::before {
  content: "";
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold)
    linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.5) 50% 75%, transparent 75%)
    0 0 / 12px 12px;
  animation: soon-stripe 0.9s linear infinite;
}

/* How it works: numbered steps on cream cards. */
section.soon-how .step { background: var(--cream); }
section.soon-how .step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 15px;
  color: var(--ink);
}

/* Pricing teaser: menu-board price chips with dotted leaders. */
.soon-pricing-card {
  display: grid;
  gap: 28px;
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--n100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.soon-pricing-card .section-head { margin-bottom: 0; }
.soon-pricing-card .section-head p { font-size: 17px; }
.soon-pricing-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.soon-pricing-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.soon-prices {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.soon-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 22px;
  background: var(--cream);
  border: 1px solid var(--n200);
  border-radius: 999px;
}
.soon-price-plan { font-weight: 600; color: var(--n700); }
.soon-price-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 2px dotted var(--n300);
  transform: translateY(-5px);
}
.soon-price-amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.soon-price-amount small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--n600);
}

/* FAQ + closing band */
.soon-faq .section-head { margin-left: auto; margin-right: auto; }
.soon-faq .faq details[open] summary { color: var(--ink); }

@media (min-width: 900px) {
  .soon-hero { padding: 88px 0 72px; }
  .soon-hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .soon-visual { min-height: 470px; }
  .soon-prep-inner { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .soon-ticket-paper { transform: rotate(-1deg); }
  .soon-pricing-card { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 48px; }
}
@media (max-width: 520px) {
  .soon-actions .btn { flex: 1 1 100%; }
  .soon-lede { font-size: 17px; }
  .soon-stage { width: min(240px, 70%); }
  .soon-dish { gap: 10px; padding: 8px 12px 8px 8px; }
  .soon-dish-thumb { width: 38px; height: 38px; }
  .soon-dish-thumb svg { width: 26px; height: 26px; }
  .soon-dish-name { font-size: 15px; }
  .soon-chip { padding: 8px 12px; font-size: 12px; }
  .soon-ticket-paper { padding: 26px 20px 30px; }
  .soon-pricing-card { padding: 28px 20px; }
  .soon-price { padding: 12px 18px; }
  .soon-price-amount { font-size: 19px; }
}

@keyframes soon-steam {
  0% { stroke-dashoffset: 55; opacity: 0; transform: translateX(0); }
  20% { opacity: 0.8; }
  50% { transform: translateX(-1.5px); }
  75% { opacity: 0.5; }
  100% { stroke-dashoffset: -100; opacity: 0; transform: translateX(1px); }
}
@keyframes soon-dish {
  0% { opacity: 0; transform: translateY(8px); }
  5%, 30% { opacity: 1; transform: none; }
  35%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes soon-dish-tag {
  0% { background: var(--n100); color: var(--n600); }
  5%, 30% { background: var(--orange); color: var(--ink); }
  35%, 100% { background: var(--n100); color: var(--n600); }
}
@keyframes soon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes soon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 181, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(242, 181, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 181, 68, 0); }
}
@keyframes soon-stripe {
  from { background-position: 0 0; }
  to { background-position: 12px 0; }
}

/* Reduced motion: one static frame. Wisps stay visible but still; the dish card
   rests on its Thai name (the base rules above hide the other two). */
@media (prefers-reduced-motion: reduce) {
  .soon-steam path,
  .soon-dish-name,
  .soon-dish-tag,
  .soon-chip,
  .soon-badge-dot,
  .soon-prep-bar::before { animation: none; }
  .soon-steam path { stroke-dasharray: none; opacity: 0.55; }
}
