/* ============================================================
 * Awder landing — every component on this page is a redraw of the app.
 *
 * Tokens are Awder/Theme/Theme.swift, value for value:
 *  - monochrome: white cards on a soft grey page (#F4F4F4), black ink for
 *    the one strong thing (the count box, the primary button);
 *  - SF Pro (the system font, not rounded), no shadows, no gradients;
 *  - the only colour is what the app allows: dish photos, the green
 *    "added" bubble, the language flags and the gold coin.
 *
 * Mock screens are sized in iOS points via --pt, so one component renders
 * at any scale (the order phones, the hero's camera card) without drifting.
 * ============================================================ */

/* Be Vietnam Pro SemiBold (SIL Open Font License), served from this site so
   no visitor request goes to a font CDN. Only the printed dish names use it. */
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:       #F4F4F4;   /* Palette.background */
  --card:     #FFFFFF;   /* Palette.card */
  --subtle:   #EBEBEB;   /* Palette.subtle */
  --stroke:   rgba(0, 0, 0, 0.06);
  --hairline: rgba(0, 0, 0, 0.08);
  --ink:      #0A0A0A;   /* Palette.ink */
  --on-ink:   #FFFFFF;
  --text:     #0A0A0A;   /* textPrimary */
  --text-2:   #4A4A4A;   /* textSecondary */
  --muted:    #6B6B6B;   /* textMuted */
  --added:    #15803D;   /* Palette.added — the menu bubble's flash, and "On time" */
  --late:     #B91C1C;   /* Palette.late — a meet-up's "Late" badge */
  --camera:   #0A0A0A;   /* Palette.cameraBody */

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  /* The names printed on the dish photos: a sans made for Vietnamese, so the
     stacked tone marks (ở, ả, ố) sit right on every browser. */
  --font-print: "Be Vietnam Pro", var(--font);

  --container: 1160px;
  --pad-x: 24px;
  --pt: 0.8px;
  color-scheme: light dark;
}

/* The app's dark values (Theme.adaptive's second argument). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0B0B0B;
    --card:     #1C1C1C;
    --subtle:   #2A2A2A;
    --stroke:   rgba(255, 255, 255, 0.10);
    --hairline: rgba(255, 255, 255, 0.12);
    --ink:      #F4F4F4;
    --on-ink:   #0A0A0A;
    --text:     #F4F4F4;
    --text-2:   #B5B5B5;
    --muted:    #8E8E8E;
  }
}

/* The order screen renders in light whatever the system says (OrderView sets
   .environment(\.colorScheme, .light)), so its mocks do too. */
.light {
  --bg: #F4F4F4; --card: #FFFFFF; --subtle: #EBEBEB;
  --stroke: rgba(0,0,0,.06); --hairline: rgba(0,0,0,.08);
  --ink: #0A0A0A; --on-ink: #FFFFFF;
  --text: #0A0A0A; --text-2: #4A4A4A; --muted: #6B6B6B;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Korean wraps between words, as the app's text does, not mid-word. */
:lang(ko) { word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* The logo is drawn, not a picture (assets/awder-logo.svg): sharp at any size,
   and with no image to save, drag or select. */
.logo { flex: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--ink); color: var(--on-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
svg.i.s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ */
/* Nav — AwderPageHeader: logo + "Awder" on one line             */
/* ============================================================ */
.topnav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
  transition: border-color .3s ease;
  view-transition-name: topnav;   /* holds still while the page under it changes */
}
/* Flat at the top of the page; the hairline comes in once it scrolls. */
.motion-ready .topnav-wrap:not(.scrolled) { border-bottom-color: transparent; }
/* How far down the page you are: one ink line along the bar's foot. */
.topnav-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ink);
  transform: scaleX(var(--page, 0)); transform-origin: left;
}
.topnav {
  max-width: var(--container); margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand .logo { width: 36px; height: 36px; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.lang-picker { margin-left: auto; }
.topnav-links {
  margin-left: auto;
  position: relative;
  display: flex; align-items: center; gap: 2px;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
}
.topnav-links a { position: relative; z-index: 1; padding: 6px 12px; border-radius: var(--pill); transition: color .25s ease; }
.topnav-links a:hover, .topnav-links a.on { color: var(--text); }
/* The section in view: a white capsule that slides under its link. */
.nav-marker {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: var(--pill);
  background: var(--card); border: 1px solid var(--hairline);
  opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), width .55s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}


/* The language picker — HomeView's control: the round flag and the
   language's own name, bare on the page, no capsule or border. Its menu is
   the app's Picker menu redrawn: a tick column, the name, the flag. */
.lang-picker { position: relative; --pt: 1px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 2px;
  background: none; border: 0; color: var(--text);
  font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer;
}
.lang-btn:hover .lang-name { opacity: .7; }
.lang-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--pill); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 240px; max-height: calc(100vh - 96px); max-height: calc(100svh - 96px); overflow-y: auto;
  margin: 0; padding: 4px 0;
  background: var(--card);
  border: 1px solid var(--hairline); border-radius: 14px;
}
.lang-menu[hidden] { display: none; }
.lang-menu li + li button { border-top: 1px solid var(--stroke); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 0 16px 0 14px;
  background: none; border: 0; color: var(--text);
  font: inherit; font-size: 17px; text-align: left;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--subtle); outline: none; }
.lang-menu .ck { width: 16px; height: 16px; visibility: hidden; }
.lang-menu [aria-checked="true"] .ck { visibility: visible; }
.lang-menu .nm { flex: 1; }
@media (max-width: 520px) {
  .topnav { gap: 12px; position: relative; }
  .lang-name { display: none; }
  /* Under the whole bar, not the flag, so it never runs off the left edge. */
  .lang-picker { position: static; }
  .lang-menu { top: calc(100% - 4px); right: var(--pad-x); }
}

/* ============================================================ */
/* Buttons — PrimaryButton (solid ink) / OutlineButton           */
/* ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 28px;
  border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: 17px; font-weight: 500;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .35s cubic-bezier(.16, 1, .3, 1);
}
/* Hover: the primary button lifts a shade; the outline one fills with ink
   from the bottom. Flat fills only, no shadow. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--on-ink); opacity: 0;
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover::before { opacity: .12; }
.btn:active { transform: scale(.96); }
.btn svg.i { width: 20px; height: 20px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover svg.i { transform: translateY(-2px) rotate(-6deg); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn .store { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn .store small { font-size: 11px; font-weight: 500; opacity: .75; }
.btn .store strong { font-size: 19px; font-weight: 600; }
.btn-outline {
  background: var(--card); color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-outline::before { background: var(--ink); opacity: 1; transform: scaleY(0); transform-origin: bottom; }
.btn-outline:hover::before { opacity: 1; transform: scaleY(1); }
.btn-outline:hover { color: var(--on-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ============================================================ */
/* Section scaffolding                                           */
/* ============================================================ */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.kicker {   /* SectionLabel: ALL CAPS, caption semibold, muted */
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.lede { color: var(--text-2); font-size: 19px; line-height: 1.55; margin: 0; }

.chapter { padding: 112px 0; border-top: 1px solid var(--stroke); }
.chapter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.chapter-grid.flip > :first-child { order: 2; }
.chapter-grid > * { min-width: 0; }
@media (max-width: 920px) {
  .chapter { padding: 80px 0; }
  .chapter-grid { grid-template-columns: 1fr; gap: 48px; }
  .chapter-grid.flip > :first-child { order: 0; }
}
.chapter h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; margin-bottom: 18px; max-width: 16ch; }
.chapter .lede { max-width: 50ch; margin-bottom: 26px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); }
.ticks svg.i { width: 18px; height: 18px; margin-top: 3px; color: var(--text); }
.visual { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.visual > * { min-width: 0; }

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */
/* clip, not hidden: hidden would make the hero a scroll box and break the
   sticky stage inside it. */
.hero { padding: 56px 0 112px; overflow: clip; text-align: center; }
@media (max-width: 920px) {
  .hero { padding: 32px 0 80px; }
}
/* The logo, the tagline, the showcase, then the actions. */
.hero-mark { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-mark .logo { width: 64px; height: 64px; }
.hero-mark span { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.hero-title { margin-top: 28px; }
.hero-cta { margin-top: 28px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: .98; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero .lede { max-width: 46ch; margin-bottom: 34px; }
.hero .subtag { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); margin: 0 0 34px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.hero-meta { font-size: 14px; color: var(--muted); margin: 0; }
/* Product Hunt's badge beside the download: its own artwork, kept at its size. */
.ph-badge { display: inline-flex; border-radius: 10px; transition: transform .2s ease; }
.ph-badge img { display: block; width: 250px; height: 54px; max-width: 100%; }
.ph-badge:hover { transform: translateY(-2px); }
.ph-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ============================================================ */
/* Showcase: SnapShowcase from the app's home. Dish photos run   */
/* left to right, edge to edge, under the camera card, which     */
/* shows them 1.35x closer. Sized in points: the card is 288pt.  */
/* Every position is set by the script from the clock.           */
/* ============================================================ */
.showcase {
  /* By the height too (the stage is 268pt tall): on a phone on its side
     the card alone was taller than the screen. */
  --pt: min(1.5px, calc((100vw - 48px) / 288), max(.8px, calc((100svh - 110px) / 268)));
  margin-top: 8px;
}
.sc-stage {
  position: relative;
  /* headroom 44pt for the bubbles to rise into + the card + its 6pt ring */
  height: calc(var(--pt) * (44 + 12) + var(--pt) * (288 * 81 / 128 + 30));
}
.sc-strip, .sc-bubbles { position: absolute; inset: 0; pointer-events: none; }
.sc-ring {
  position: absolute; left: 50%; top: calc(var(--pt) * 44); transform: translateX(-50%);
  padding: calc(var(--pt) * 6);
  border-radius: calc(var(--pt) * 30);
  background: var(--bg);
}
/* 30pt taller than the drawer's 128:81 (cornerRoom), so the aiming corners
   sit clear of the torch and flip buttons. */
.cam.sc-cam {
  width: calc(var(--pt) * 288); height: calc(var(--pt) * (288 * 81 / 128 + 30));
  aspect-ratio: auto; background: var(--camera);
}
.sc-world { position: absolute; inset: 0; }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* DishTile: the photo, its name printed on a small white plate in Be
   Vietnam Pro. Printed matter: the same in light and dark. --s is how close. */
.sc-tile {
  position: absolute; left: 0; top: 0;
  overflow: hidden;
  border-radius: calc(var(--pt) * 14 * var(--s, 1));
  background: #2B2B2B;
  will-change: transform;
}
.sc-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-tile span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: calc(var(--pt) * 3 * var(--s, 1)) calc(var(--pt) * 6 * var(--s, 1));
  border-radius: calc(var(--pt) * 3 * var(--s, 1));
  background: #fff; color: #000;
  font: 600 calc(var(--pt) * 10.5 * var(--s, 1)) / 1.2 var(--font-print);
  white-space: nowrap;
}
/* The bubble rides a holder the script moves; the bubble itself keeps the
   drawer's look and its spring to green. */
.sc-bub { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.sc-bub .bubble { position: relative; transform: none; }
.sc-bub .bubble.added { transform: scale(1.08); }

/* ============================================================ */
/* Phone frame — a plain black bezel around a 390×844pt screen   */
/* ============================================================ */
.phone {
  --pt: 0.78px;
  padding: calc(var(--pt) * 12);
  border-radius: calc(var(--pt) * 62);
  background: #0A0A0A;
  flex: none;
}
.screen {
  position: relative;
  width: calc(var(--pt) * 390); height: calc(var(--pt) * 844);
  border-radius: calc(var(--pt) * 50);
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  display: flex; flex-direction: column;
  font-size: calc(var(--pt) * 17);
  line-height: 1.25;
}
@media (max-width: 400px) { .phone { --pt: 0.7px; } }
.statusbar {
  flex: none;
  height: calc(var(--pt) * 54);
  padding: calc(var(--pt) * 18) calc(var(--pt) * 34) 0 calc(var(--pt) * 44);
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: calc(var(--pt) * 16); font-weight: 600;
}
.statusbar .bat {
  width: calc(var(--pt) * 26); height: calc(var(--pt) * 12);
  border: calc(var(--pt) * 1.5) solid currentColor; border-radius: calc(var(--pt) * 4);
  padding: calc(var(--pt) * 1.5); margin-top: calc(var(--pt) * 3);
}
.statusbar .bat::after { content: ""; display: block; height: 100%; width: 80%; background: currentColor; border-radius: calc(var(--pt) * 1.5); }

/* AwderPageHeader inside a screen: the back arrow home top-left, the logo
   and "Awder" centred, the new-order arrow (if any) opposite. */
.ph {
  flex: none;
  display: grid; grid-template-columns: calc(var(--pt) * 44) 1fr calc(var(--pt) * 44); align-items: center;
  padding: calc(var(--pt) * 6) calc(var(--pt) * 16) calc(var(--pt) * 8);
  min-height: calc(var(--pt) * 58);
}
.ph .ph-brand { display: flex; align-items: center; justify-content: center; gap: calc(var(--pt) * 10); }
.ph .logo { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); }
.ph b { font-size: calc(var(--pt) * 22); font-weight: 700; }
.ph .ph-act { width: calc(var(--pt) * 44); height: calc(var(--pt) * 44); display: grid; place-items: center; }
.ph .ph-act svg.i { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); stroke-width: 2.6; }

.scroll { flex: 1; overflow: hidden; padding: 0 calc(var(--pt) * 24); }
.page-title { font-size: calc(var(--pt) * 34); font-weight: 700; letter-spacing: -0.01em; margin: calc(var(--pt) * 8) 0 calc(var(--pt) * 16); }

/* ============================================================ */
/* Dish photo — rows alternate between a shot of the dish and a  */
/* snap of its menu line (what a bubble tap captures).           */
/* ============================================================ */
.dish { display: block; overflow: hidden; }
img.dish { object-fit: cover; background: var(--subtle); }
.dish.snap {
  display: flex; flex-direction: column; justify-content: center;
  gap: calc(var(--pt) * 21);
  padding: 0 calc(var(--pt) * 9);
  background: #E9E7E2;   /* the printed menu, as in the camera */
  color: #1A1A1A;
  font-size: calc(var(--pt) * 13); font-weight: 600; line-height: 1.2;
}
.snap .sl { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; min-height: 1.2em; }
.snap .sl i { flex: 1; min-width: 8px; border-bottom: 1px dotted #9A9A9A; }
.snap .sl em { font-style: normal; font-weight: 500; color: #4A4A4A; }
.snap .sl.main { font-size: calc(var(--pt) * 14); }

/* ============================================================ */
/* Order row — OrderItemRow                                      */
/* ============================================================ */
.row {
  display: flex; align-items: center; gap: calc(var(--pt) * 12);
  padding: calc(var(--pt) * 12) 0;
  position: relative;
}
.row + .row::before {   /* one-pixel hairline */
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--hairline);
}
.row .tile {
  flex: none;
  padding: calc(var(--pt) * 6);
  border-radius: calc(var(--pt) * 18);
  background: var(--card);
}
.row .tile .dish {
  height: calc(var(--pt) * 80);
  width: calc(var(--pt) * 142.2);
  border-radius: calc(var(--pt) * 12);
}
.row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--pt) * 2); }
.row .num { font-size: calc(var(--pt) * 12); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.row .name {
  font-size: calc(var(--pt) * 17); font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .name.empty { color: var(--muted); }
.row .ctl { display: flex; align-items: center; }
.row .trash { color: var(--text-2); width: calc(var(--pt) * 44); height: calc(var(--pt) * 44); display: flex; align-items: center; }
.row .trash svg.i { width: calc(var(--pt) * 16); height: calc(var(--pt) * 16); }

/* QuantityStepper(prominent: true): − [black square] + */
.stepper { margin-left: auto; display: flex; align-items: center; }
.stepper .pm {
  width: calc(var(--pt) * 38); height: calc(var(--pt) * 44);
  display: grid; place-items: center; color: var(--text);
}
.stepper .pm svg.i { width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); }
.stepper .pm.off { color: var(--muted); opacity: .5; }
.stepper .count {
  width: calc(var(--pt) * 36); height: calc(var(--pt) * 36);
  border-radius: calc(var(--pt) * 12);
  background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center;
  font-size: calc(var(--pt) * 17); font-weight: 600; font-variant-numeric: tabular-nums;
}
.stepper .count.bump { animation: bump .32s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Totals: Dishes, a dashed rule, Plates set heaviest */
.totals { padding: calc(var(--pt) * 24) calc(var(--pt) * 4) 0; display: grid; gap: calc(var(--pt) * 16); }
.totals .tr { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.totals .tr span { font-size: calc(var(--pt) * 17); }
.totals .tr b { font-size: calc(var(--pt) * 17); font-weight: 600; }
.totals .tr.strong span { font-size: calc(var(--pt) * 20); font-weight: 600; }
.totals .tr.strong b { font-size: calc(var(--pt) * 22); font-weight: 700; }
.totals .dash { height: 0; border-top: 1px dashed var(--muted); }

/* PrimaryButton at screen scale */
.pbtn {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--pt) * 10);
  min-height: calc(var(--pt) * 64);
  border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: calc(var(--pt) * 17); font-weight: 500;
}
.pbtn svg.i { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); }
.pbtn.outline { background: var(--card); color: var(--text); border: 1px solid var(--hairline); }
.pbtn.badged { position: relative; }
.order-end { padding: calc(var(--pt) * 24) calc(var(--pt) * 8) calc(var(--pt) * 24); }

/* ============================================================ */
/* Camera drawer — the floating 128:81 card                      */
/* ============================================================ */
/* 16pt in from the sides; underneath, 8pt over the 34pt home indicator. */
.drawer { flex: none; padding: calc(var(--pt) * 6) calc(var(--pt) * 16) calc(var(--pt) * 42); }
.cam {
  position: relative;
  width: 100%;
  aspect-ratio: 128 / 81;
  border-radius: calc(var(--pt) * 24);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff;
  font-size: calc(var(--pt) * 13);
  line-height: 1.2;
}
/* What the lens sees: a printed menu on the table. */
.cam .table { position: absolute; inset: 0; background: #2B2B2B; }
.cam .menu { position: absolute; left: 16%; right: 10%; top: 4%; bottom: -8%; background: #E9E7E2; }
.cam .menu-lines { position: absolute; inset: 0; color: #1A1A1A; }
.cam .mh { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); font-size: calc(var(--pt) * 10); font-weight: 700; letter-spacing: .14em; color: #6A6A6A; }
.cam .ml {
  position: absolute; left: 20%; right: 20%; transform: translateY(-50%);
  display: flex; align-items: baseline; gap: 6px;
  font-size: calc(var(--pt) * 14); font-weight: 600; white-space: nowrap;
}
.cam .ml i { flex: 1; border-bottom: 1px dotted #9A9A9A; }
.cam .ml em { font-style: normal; font-weight: 500; color: #4A4A4A; }
.cam .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam .flash.go { animation: flash .36s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }

/* Aiming corners — middle half of the height, clear of the corner buttons. */
.corners {
  position: absolute;
  left: calc(var(--pt) * 60); right: calc(var(--pt) * 60);
  top: calc(var(--pt) * 14 + (100% - var(--pt) * 28) * .25);
  bottom: calc(var(--pt) * 14 + (100% - var(--pt) * 28) * .25);
  pointer-events: none;
}
.corners b {
  position: absolute; width: calc(var(--pt) * 24); height: calc(var(--pt) * 24);
  border: 0 solid rgba(255, 255, 255, .9);
  border-radius: calc(var(--pt) * 2);
}
.corners b:nth-child(1) { left: 0; top: 0; border-left-width: calc(var(--pt) * 4); border-top-width: calc(var(--pt) * 4); }
.corners b:nth-child(2) { right: 0; top: 0; border-right-width: calc(var(--pt) * 4); border-top-width: calc(var(--pt) * 4); }
.corners b:nth-child(3) { right: 0; bottom: 0; border-right-width: calc(var(--pt) * 4); border-bottom-width: calc(var(--pt) * 4); }
.corners b:nth-child(4) { left: 0; bottom: 0; border-left-width: calc(var(--pt) * 4); border-bottom-width: calc(var(--pt) * 4); }

/* Liquid Glass circles over the preview (frosted, as below iOS 26) */
.cam .ctrl { position: absolute; inset: calc(var(--pt) * 10); pointer-events: none; }
.glass {
  position: absolute;
  width: calc(var(--pt) * 44); height: calc(var(--pt) * 44);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.glass svg.i { width: calc(var(--pt) * 18); height: calc(var(--pt) * 18); }
.glass.torch { left: 0; top: 0; }
.glass.flip  { left: calc(var(--pt) * 54); top: 0; }
.glass.tuck  { right: 0; top: 0; }
/* ZoomButton: "1×" in the same glass circle, at the end of the shutter's row,
   centred on it. */
.glass.zoom {
  right: 0; bottom: calc(var(--pt) * 9);
  font-size: calc(var(--pt) * 13); font-weight: 600; font-variant-numeric: tabular-nums;
}
.shutter {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: calc(var(--pt) * 62); height: calc(var(--pt) * 62);
  border-radius: 50%;
  border: calc(var(--pt) * 4) solid #fff;
  display: grid; place-items: center;
}
.shutter::after {
  content: ""; width: calc(var(--pt) * 50); height: calc(var(--pt) * 50);
  border-radius: 50%; background: #fff;
}

/* MenuLineBubble: "+ Phở Bò" black on white; green with a tick when added */
.bubble {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 5);
  padding: calc(var(--pt) * 7) calc(var(--pt) * 11);
  border-radius: var(--pill);
  background: #fff; color: #000;
  font-size: calc(var(--pt) * 13); font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble svg.i { width: calc(var(--pt) * 11); height: calc(var(--pt) * 11); stroke-width: 3.4; }
.bubble .ck { display: none; }
.bubble.added { background: var(--added); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.bubble.added .ck { display: block; }
.bubble.added .pl { display: none; }

/* Tucked: the "Open camera" pill */
.tucked { flex: none; display: flex; justify-content: center; padding: calc(var(--pt) * 8) 0 calc(var(--pt) * 42); }
.cam-pill {
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 10);
  padding: calc(var(--pt) * 7) calc(var(--pt) * 19) calc(var(--pt) * 7) calc(var(--pt) * 7);
  border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: calc(var(--pt) * 17); font-weight: 500;
}
.cam-pill .disc { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); display: grid; place-items: center; }
.cam-pill .disc svg.i { width: calc(var(--pt) * 18); height: calc(var(--pt) * 18); }
.cam-pill > svg.i { width: calc(var(--pt) * 13); height: calc(var(--pt) * 13); stroke-width: 2.6; margin-right: calc(var(--pt) * 6); }

/* ============================================================ */
/* Cards — SoftCard, ChipView, EmptyState …                      */
/* ============================================================ */
.soft {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--pt) * 24);
  padding: calc(var(--pt) * 16);
}
.chip {
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 6);
  padding: calc(var(--pt) * 9) calc(var(--pt) * 14);
  border-radius: var(--pill);
  background: var(--card); color: var(--text);
  border: 1px solid var(--hairline);
  font-size: calc(var(--pt) * 13); font-weight: 500;
  white-space: nowrap;
}
.chip.on { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.chip.ontime { background: var(--added); color: #FFFFFF; border-color: transparent; }
.chip.late { background: var(--late); color: #FFFFFF; border-color: transparent; }
.chip svg.i { width: calc(var(--pt) * 12); height: calc(var(--pt) * 12); }
.slabel { font-size: calc(var(--pt) * 12); font-weight: 600; text-transform: uppercase; color: var(--muted); }

/* Rating — MealRatingView */
.rating { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--pt) * 24); padding: 0 calc(var(--pt) * 16); text-align: center; }
.rating h4 { margin: 0; font-size: calc(var(--pt) * 34); font-weight: 700; letter-spacing: -0.01em; }
.rating p { margin: calc(var(--pt) * 8) 0 0; font-size: calc(var(--pt) * 15); color: var(--text-2); }
.rate-list { display: grid; gap: calc(var(--pt) * 8); text-align: left; }
.rate {
  display: flex; align-items: center; gap: calc(var(--pt) * 16);
  padding: calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 24);
  background: var(--card); border: 1px solid var(--hairline);
  font-size: calc(var(--pt) * 20); font-weight: 600;
}
/* The rating's colour emoji at title size, no well — RatingButton */
.rate .glyph { font-size: calc(var(--pt) * 28); line-height: 1; margin: 0 calc(var(--pt) * 4); }
.chip .emoji, .meal-card .pill .emoji { font-size: 1em; line-height: 1; }
.rate .tick { margin-left: auto; width: calc(var(--pt) * 18); height: calc(var(--pt) * 18); stroke-width: 2.6; }
.rate.on { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.skip { text-align: center; font-size: calc(var(--pt) * 17); font-weight: 500; color: var(--text-2); padding: calc(var(--pt) * 12) 0 calc(var(--pt) * 40); }

/* Past Meals: a meal's card */
.meal-card { --pt: 1px; width: 100%; }
/* The name; the rating pill and the counts; a strip of square photos; the
   date behind a calendar, a chevron to the meal's page. */
.meal-card .date { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The rating pill: ink, the emoji and the rating */
.meal-card .pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.meal-card .pill svg.i { width: 13px; height: 13px; }
.meal-card .sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.meal-card .mc-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.meal-card .strip { display: flex; gap: 8px; margin-bottom: 12px; }
.meal-card .strip .dish { width: 56px; height: 56px; border-radius: 12px; }
.meal-card .strip .snap { gap: 13px; padding: 0 5px; font-size: 7px; }
.meal-card .strip .snap .sl.main { font-size: 8px; }
.meal-card .strip .snap .sl i, .meal-card .strip .snap .sl em { display: none; }
.meal-card .foot { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.meal-card .foot svg.i { width: 14px; height: 14px; }
.meal-card .foot .chev { margin-left: auto; width: 13px; height: 13px; stroke-width: 2.6; color: var(--muted); }
/* Order Again, the app's grey GhostButton at the card's foot. The reload
   arrow mirrored: the app's is counterclockwise. */
.meal-card .again {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
  padding: 11px 12px; border-radius: var(--pill); background: var(--subtle);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.meal-card .again svg.i { width: 15px; height: 15px; transform: scaleX(-1); }

/* ============================================================ */
/* Late Pays                                                     */
/* ============================================================ */
.coin { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); flex: none; }
/* A phone on a white section keeps the app's own page and cards. */
.tone-white .phone .screen { --bg: #F4F4F4; --card: #FFFFFF; --subtle: #EBEBEB; }
@media (prefers-color-scheme: dark) { .tone-white .phone .screen { --bg: #0B0B0B; --card: #1C1C1C; --subtle: #2A2A2A; } }
/* The group colours on Late Pays (Palette.group*, text-safe in both modes). */
:root { --g-inv: #8A6400; --g-up: #0062CC; --g-ok: #15803D; --g-fail: #B91C1C; }
@media (prefers-color-scheme: dark) { :root { --g-inv: #FFD60A; --g-up: #409CFF; --g-ok: #30D158; --g-fail: #FF6961; } }
/* InviteCountBadge: the count of invites in a small red circle. */
.red-badge {
  min-width: calc(var(--pt) * 22); height: calc(var(--pt) * 22); padding: 0 calc(var(--pt) * 6);
  border-radius: var(--pill); background: var(--late); color: #fff;
  display: inline-grid; place-items: center;
  font-size: calc(var(--pt) * 12); font-weight: 600; font-variant-numeric: tabular-nums;
}
.stack { display: grid; gap: calc(var(--pt) * 16); }
.stack > * { min-width: 0; }
.rule-text { font-size: calc(var(--pt) * 13); font-weight: 500; color: var(--muted); line-height: 1.4; }
/* The Late Pays page: the coins card (wallet, Awder ID, the waiting groups),
   Plan a Meet Up, the finished groups; the rule keeps to the foot. */
.lp-page { display: flex; flex-direction: column; }
.lp-page .rule-text { margin-top: auto; padding: calc(var(--pt) * 24) 0 calc(var(--pt) * 42); }
.lp-card-main { display: grid; }
.lp-coins { display: flex; align-items: center; gap: calc(var(--pt) * 12); padding-bottom: calc(var(--pt) * 14); }
.lp-coins .coin { width: calc(var(--pt) * 34); height: calc(var(--pt) * 34); }
.lp-coins .cv { flex: 1; min-width: 0; }
.lp-coins .v { font-size: calc(var(--pt) * 22); font-weight: 700; line-height: 1.1; }
.lp-coins .d { font-size: calc(var(--pt) * 13); font-weight: 500; color: var(--muted); margin-top: calc(var(--pt) * 2); }
.lp-coins .buy {
  flex: none; padding: calc(var(--pt) * 8) calc(var(--pt) * 14); border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink); font-size: calc(var(--pt) * 14); font-weight: 500;
}
.lp-row { display: flex; align-items: center; gap: calc(var(--pt) * 10); padding: calc(var(--pt) * 13) 0; border-top: 1px solid var(--hairline); }
.lp-card-main > .lp-row:first-child { border-top: 0; padding-top: 0; }
.lp-card-main > .lp-row:last-child { padding-bottom: 0; }
/* CopyPillRow: a grey label on the left, the value in a grey pill on the
   right on one line (a long one ends in an ellipsis), the copy icon inside
   the pill after it. The email, then the Awder ID, close together. */
.lp-acct { display: grid; gap: calc(var(--pt) * 6); }
.cp-row { display: flex; align-items: center; gap: calc(var(--pt) * 8); min-width: 0; }
.cp-l { flex: none; font-size: calc(var(--pt) * 13); font-weight: 500; color: var(--text-2); }
.cp-pill {
  margin-left: auto; min-width: 0; display: inline-flex; align-items: center; gap: calc(var(--pt) * 8);
  padding: calc(var(--pt) * 4) calc(var(--pt) * 12); border-radius: var(--pill); background: var(--subtle);
}
.cp-v {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: calc(var(--pt) * 15); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
}
.cp-pill svg.i { flex: none; width: calc(var(--pt) * 14); height: calc(var(--pt) * 14); color: var(--text-2); stroke-width: 2.2; }
.grp .gt { flex: 1; min-width: 0; display: grid; gap: calc(var(--pt) * 2); }
.grp .gh { display: flex; align-items: center; gap: calc(var(--pt) * 8); color: var(--gc); }
.grp .gh svg.i { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); }
.grp .gh b { font-size: calc(var(--pt) * 17); font-weight: 600; text-transform: uppercase; }
.grp .gs { font-size: calc(var(--pt) * 13); color: var(--muted); }
.grp .chev { width: calc(var(--pt) * 13); height: calc(var(--pt) * 13); color: var(--muted); stroke-width: 2.6; }
.grp .n-badge {
  min-width: calc(var(--pt) * 22); height: calc(var(--pt) * 22); padding: 0 calc(var(--pt) * 7);
  border-radius: var(--pill); background: var(--subtle); color: var(--text-2);
  display: inline-grid; place-items: center; font-size: calc(var(--pt) * 12); font-weight: 600;
}
.g-inv { --gc: var(--g-inv); } .g-up { --gc: var(--g-up); } .g-ok { --gc: var(--g-ok); } .g-fail { --gc: var(--g-fail); }

/* GoingPill: two people and "N going" on a grey capsule. */
.going {
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 5);
  padding: calc(var(--pt) * 4) calc(var(--pt) * 9); border-radius: var(--pill);
  background: var(--subtle); color: var(--text-2);
  font-size: calc(var(--pt) * 13); font-weight: 600; margin-bottom: calc(var(--pt) * 8);
}
.going svg.i { width: calc(var(--pt) * 15); height: calc(var(--pt) * 15); }
/* A person: the letter, the name (and Host), how they did with the time
   under it, then their email and Awder ID as copy pills, as on Late Pays.
   You sit on the lighter well (Palette.well) so the grey pills still show.
   The app's own greys, whatever the section's tone. */
.people { --subtle: #EBEBEB; --well: #F6F6F6; }
@media (prefers-color-scheme: dark) { .people { --subtle: #2A2A2A; --well: #222222; } }
.people .p {
  display: grid; grid-template-columns: calc(var(--pt) * 36) minmax(0, 1fr) auto;
  column-gap: calc(var(--pt) * 12); row-gap: calc(var(--pt) * 6); align-items: center;
  padding: calc(var(--pt) * 12) 0;
}
.people .p + .p { border-top: 1px solid var(--hairline); }
.people .p.me { background: var(--well); border-radius: calc(var(--pt) * 18); padding: calc(var(--pt) * 12); margin: 0 calc(var(--pt) * -8); }
.people .p.me + .p { border-top: 0; }
.people .st { display: grid; justify-items: end; gap: calc(var(--pt) * 3); }
.people .st time { font-size: calc(var(--pt) * 12); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.people .ids { grid-column: 2 / -1; display: grid; gap: calc(var(--pt) * 6); min-width: 0; }
.avatar {
  width: calc(var(--pt) * 36); height: calc(var(--pt) * 36); border-radius: 50%;
  background: var(--subtle); color: var(--text);
  display: grid; place-items: center;
  font-size: calc(var(--pt) * 19); font-weight: 500; line-height: 1;
  padding-bottom: calc(var(--pt) * 2);   /* SF Symbols' lowercase letter circles */
}
.people .who { flex: 1; min-width: 0; }
.people .who b { display: block; font-size: calc(var(--pt) * 15); font-weight: 600; }
.people .who span { display: block; font-size: calc(var(--pt) * 13); font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The closed meet up's Successful card: the label and the deposit in a black
   block, then one line per diner, their name in a grey pill */
.outcome { display: grid; gap: calc(var(--pt) * 12); }
.outcome-head { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--pt) * 16); }
.outcome .ot { font-size: calc(var(--pt) * 20); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
/* The deposit: a big number and the coin in a white hairline capsule. */
.amount {
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 8);
  padding: calc(var(--pt) * 10) calc(var(--pt) * 18); border-radius: var(--pill);
  background: var(--card); color: var(--text); border: 1px solid var(--hairline);
  font-size: calc(var(--pt) * 28); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.amount img { width: calc(var(--pt) * 26); height: calc(var(--pt) * 26); }
/* MeetupOutcomeCard: a green tick in a circle, then how you did. */
.congrats { display: flex; gap: calc(var(--pt) * 14); align-items: flex-start; }
.congrats .ok { flex: none; width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); border-radius: 50%; background: var(--added); color: #fff; display: grid; place-items: center; }
.congrats .ok svg.i { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); stroke-width: 3; }
.congrats b { display: block; font-size: calc(var(--pt) * 17); font-weight: 700; margin-bottom: calc(var(--pt) * 2); }
.congrats span { font-size: calc(var(--pt) * 15); color: var(--text-2); }
.b-outcome { display: grid; gap: 16px; align-content: start; }
.result {
  display: flex; align-items: center; gap: calc(var(--pt) * 8); min-width: 0;
  font-size: calc(var(--pt) * 15); color: var(--text);
}
.result > span:last-child { min-width: 0; }
.who-pill {
  flex: none; display: inline-flex; align-items: center; gap: calc(var(--pt) * 4); white-space: nowrap;
  padding: calc(var(--pt) * 5) calc(var(--pt) * 10); border-radius: var(--pill);
  background: var(--subtle); font-size: calc(var(--pt) * 13); font-weight: 500;
}
.who-pill svg.i { width: calc(var(--pt) * 12); height: calc(var(--pt) * 12); }
/* The detail's action card: StepProgress, the status, the note, the button */
.action { display: grid; gap: calc(var(--pt) * 14); }
.action .steps { display: flex; gap: calc(var(--pt) * 6); margin-bottom: calc(var(--pt) * -6); }
.action .steps b { flex: 1; height: calc(var(--pt) * 4); border-radius: var(--pill); background: var(--hairline); }
.action .steps b.on { background: var(--ink); }
.action .t { font-size: calc(var(--pt) * 17); font-weight: 600; }
.action .w { font-size: calc(var(--pt) * 15); color: var(--text-2); }
.lp-card { --pt: 1px; width: min(360px, 100%); }

.fine { font-size: 13px; color: var(--muted); margin: 20px 0 0; max-width: 56ch; }
/* Under the steps: what an Awder ID is for. */
.id-note {
  margin: 8px 0 0; padding: 16px 18px; max-width: 56ch;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
}
.id-note b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.id-note span { color: var(--text-2); font-size: 15px; }

/* ============================================================ */
/* Privacy note — RootView's one-time sheet                      */
/* ============================================================ */

/* ============================================================ */
/* Home + languages                                              */
/* ============================================================ */
/* HomeView: the mark; SnapShowcase edge to edge (a still: the camera card
   288pt wide with the dishes 1.35x closer inside, the strip either side,
   Phở Bò's bubble just turned green); the tagline; the three buttons, Late
   Pays wearing the going count and the invite badge; the language, Account. */
.home { flex: 1; display: flex; flex-direction: column; padding: 0 0 calc(var(--pt) * 26); }
.hm-mark { display: flex; align-items: center; justify-content: center; gap: calc(var(--pt) * 12); margin-top: calc(var(--pt) * 14); }
.hm-mark .logo { width: calc(var(--pt) * 56); height: calc(var(--pt) * 56); }
.hm-mark b { font-size: calc(var(--pt) * 32); font-weight: 700; letter-spacing: -0.01em; }
.hm-show { position: relative; height: calc(var(--pt) * 236); margin-top: calc(var(--pt) * 40); overflow: hidden; }
.cam.hm-cam { position: absolute; left: calc(50% - var(--pt) * 144); top: calc(var(--pt) * 14); width: calc(var(--pt) * 288); height: calc(var(--pt) * 212); aspect-ratio: auto; background: var(--camera); }
.hm-show .sc-tile { will-change: auto; }
.hm-in { width: calc(var(--pt) * 184); height: calc(var(--pt) * 138); top: calc(50% - var(--pt) * 69); }
.hm-in.a { left: calc(var(--pt) * -55); }
.hm-in.b { left: calc(var(--pt) * 148); }
.hm-side { width: calc(var(--pt) * 136); height: calc(var(--pt) * 102); top: calc(var(--pt) * 69); }
.hm-side.l { left: calc(50% - var(--pt) * 297); }
.hm-side.r { left: calc(50% + var(--pt) * 161); }
.hm-side.r span { left: calc(var(--pt) * 8); transform: translateY(-50%); }
.hm-bub { left: calc(50% + var(--pt) * 10); top: calc(var(--pt) * 20); }
.hm-tag { text-align: center; margin-top: calc(var(--pt) * 24); padding: 0 calc(var(--pt) * 24); }
.hm-tag strong { display: block; font-size: calc(var(--pt) * 17); font-weight: 600; margin-bottom: calc(var(--pt) * 2); }
.hm-tag span { font-size: calc(var(--pt) * 15); color: var(--text-2); }
.hm-buttons { display: grid; gap: calc(var(--pt) * 12); padding: 0 calc(var(--pt) * 24); margin-top: calc(var(--pt) * 40); }
.hm-badges { position: absolute; top: calc(var(--pt) * -11); right: calc(var(--pt) * 12); display: flex; align-items: center; gap: calc(var(--pt) * 5); }
.hm-badges .going-n {
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 4);
  height: calc(var(--pt) * 22); padding: 0 calc(var(--pt) * 8); border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink); font-size: calc(var(--pt) * 12); font-weight: 600;
}
.hm-badges .going-n svg.i { width: calc(var(--pt) * 11); height: calc(var(--pt) * 11); }
.home .foot { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--pt) * 15); font-weight: 500; min-height: calc(var(--pt) * 44); margin-top: auto; padding: 0 calc(var(--pt) * 24); }
.home .foot .acct { width: calc(var(--pt) * 24); height: calc(var(--pt) * 24); }
.home .foot .lang { display: flex; align-items: center; gap: calc(var(--pt) * 8); }
.flag {
  width: calc(var(--pt) * 22); height: calc(var(--pt) * 22);
  border-radius: 50%; object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--hairline);
  outline: 1px solid var(--hairline); outline-offset: -1px;
}
.langs { --pt: 1.1px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
@media (max-width: 480px) { .langs { grid-template-columns: repeat(2, 1fr); } }
.langs li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  font-size: 15px; font-weight: 500;
}

/* ============================================================ */
/* FAQ                                                           */
/* ============================================================ */
.faq { max-width: 760px; }
.faq h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 18px 22px;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg.i { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--text-2); font-size: 16px; }
.faq details a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================ */
/* Closing + footer                                              */
/* ============================================================ */
.closing { text-align: center; padding: 112px var(--pad-x); border-top: 1px solid var(--stroke); }
.closing .logo { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; }
.closing h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; margin-bottom: 14px; }
.closing p { color: var(--text-2); font-size: 19px; margin: 0 0 32px; }
.footer { border-top: 1px solid var(--stroke); }
.footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer .brand .logo { width: 28px; height: 28px; }
.footer .brand span { font-size: 17px; }
/* Wraps: in Spanish on a 320px phone the email ran 7px off the side. */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer small { width: 100%; font-size: 13px; color: var(--muted); }

/* ============================================================ */
/* Legal pages (/privacy/, /terms/) — SoftCards on the grey page */
/* ============================================================ */
/* Clipped sideways: its sections slide in from the sides (motion.js), and one
   not yet in sat 32px past a phone's edge, which widened the whole page. */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--pad-x) 80px; overflow-x: clip; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.08; margin: 0 0 8px; }
.legal .updated { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.legal section {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 22px 24px; margin: 0 0 12px;
}
.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.legal h3 { font-size: 16px; color: var(--text); margin: 16px 0 6px; }
.legal h2 + h3 { margin-top: 4px; }
.legal .updated a { white-space: nowrap; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.legal p { margin: 0 0 10px; }
.legal p:last-child, .legal ul:last-child { margin-bottom: 0; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 10px; display: grid; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.topnav .back { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--text-2); }
.topnav .back:hover { color: var(--text); }
/* The home header's Blog link, just left of the language: it takes the push
   to the right that the language picker has on its own. */
.topnav .nav-blog {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.topnav .nav-blog:hover { color: var(--text); }
.topnav .nav-blog + .lang-picker { margin-left: 0; }
/* Logo, Blog, flag and Download don't all fit beside "Awder" on the
   narrowest phones: there the logo stands alone (its link keeps the name). */
@media (max-width: 400px) { .topnav:has(.nav-blog) .brand span { display: none; } }

/* ============================================================ */
/* The dish band — the showcase's dishes, big, on an ink strip   */
/* ============================================================ */
/* The strip is tilted up to the right and tilts further as it passes
   (--p from data-scrub); it is wider than the page so its ends never show.
   Above it is the page grey, the hero's own colour; below, it overlaps the
   statement so its white fills the wedge under the strip. */
.band {
  position: relative; z-index: 3;
  margin: clamp(8px, 2vw, 32px) 0 calc(-1 * clamp(40px, 6vw, 96px));
  overflow-x: clip;
  padding: clamp(28px, 4vw, 64px) 0;
}
.band-strip {
  width: 116vw; margin-left: -8vw;
  background: var(--bg); color: var(--text);
  padding: clamp(28px, 4vw, 64px) 0;
  overflow: hidden;
  display: grid; gap: clamp(4px, 1vw, 12px);
  rotate: -2.5deg;
}
.motion .band-strip {
  rotate: calc(-1deg - var(--p, .5) * 3.5deg);
  scale: calc(.97 + var(--p, .5) * .06);
}
.band-row { display: flex; width: max-content; will-change: transform; }
.band-set { display: flex; align-items: center; flex: none; }
.band-item {
  display: inline-flex; align-items: center; gap: .28em;
  padding-right: .55em;
  font-size: clamp(44px, 7.4vw, 112px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.08; white-space: nowrap;
}
.band-item img {
  width: 1.5em; height: .82em; flex: none;
  object-fit: cover; border-radius: var(--pill);
  background: #2B2B2B;
}
.band-row.alt .band-item { font-size: clamp(30px, 4.6vw, 68px); opacity: .5; }
/* The top row: the logo (its black disc on the ink strip, so the white mark
   shows; on the light strip of dark mode the whole disc does) and the name. */
.band-brand { gap: .22em; padding-right: .7em; }
.band-brand .logo { width: .92em; height: .92em; flex: none; }

/* ============================================================ */
/* How it goes — three panels on a track that runs sideways      */
/* ============================================================ */
.how { position: relative; border-top: 1px solid var(--stroke); }
.how-pin { padding: 112px 0 96px; }
.how.pinned .how-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: 69px 0 0;   /* under the nav */
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.how-pin > .wrap { width: 100%; }   /* auto margins would stop the flex stretch */
.how-head { margin-bottom: clamp(24px, 4vh, 44px); }
.how-head h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; max-width: 18ch; }
.how-track {
  --gutter: max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x)));
  display: flex; gap: 24px;
  padding: 0 var(--gutter);
  will-change: transform;
}
.how-track::after { content: ""; flex: 0 0 max(1px, calc(var(--gutter) - 24px)); }
.how:not(.pinned) .how-track {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.how:not(.pinned) .how-track::-webkit-scrollbar { display: none; }
.how-panel {
  /* The well's height, and everything in it sized from that, so a screen
     can't be cropped by a short window. */
  --vis-h: clamp(200px, 32svh, 300px);
  --pt: min(1px, calc(var(--vis-h) / 248));
  flex: 0 0 min(560px, 84vw);
  scroll-snap-align: start;
  display: grid; gap: 24px; align-content: start;
  padding: 20px 20px 28px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), scale .8s cubic-bezier(.16, 1, .3, 1);
}
.how.pinned .how-panel { flex-basis: min(680px, 58vw); }
.motion .how.pinned .how-panel:not(.live) { opacity: .4; scale: .96; }
.how-vis {
  height: var(--vis-h);
  border-radius: var(--r-lg);
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden; position: relative;
}
.how-text { padding: 0 8px; }
.how-n { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.how-panel h3 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.035em; margin: 6px 0 10px; }
.how-panel p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 40ch; }
.how-rail { margin-top: clamp(20px, 4vh, 36px); height: 2px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.how-rail b { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--hp, 0)); transform-origin: left; }

/* 01 · the camera on a dish: the bubble comes up white, the shutter
   flashes, it turns green with a tick. Plays each time the panel is live. */
.vs-frame {
  position: relative; width: min(92%, 440px, calc(var(--vis-h) * 1.46)); aspect-ratio: 128 / 81;
  border-radius: 24px; overflow: hidden;
  background: #000; color: #fff;
}
.vs-frame img { width: 100%; height: 100%; object-fit: cover; scale: 1.16; transition: scale 2.8s cubic-bezier(.16, 1, .3, 1); }
.live .vs-frame img { scale: 1; }
.vs-name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 4px 9px; border-radius: 4px;
  background: #fff; color: #000;
  font: 600 15px / 1.2 var(--font-print);
  white-space: nowrap;
}
.vs-frame .bubble { left: 50%; top: 50%; font-size: 15px; opacity: 0; scale: .7; transition: none; }
.vs-frame .bubble .ck { display: block; width: 0; }
.vs-frame .bubble svg.i { width: 12px; height: 12px; }
.vs-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.live .vs-frame .bubble { animation: vs-tap 2.2s cubic-bezier(.16, 1, .3, 1) .25s both; }
.live .vs-frame .bubble .pl { animation: vs-pl 2.2s step-end .25s both; }
.live .vs-frame .bubble .ck { animation: vs-ck 2.2s step-end .25s both; }
.live .vs-flash { animation: flash .45s ease-out 1.45s; }
@keyframes vs-tap {
  0%       { opacity: 0; scale: .7; background: #fff; color: #000; }
  22%, 54% { opacity: 1; scale: 1;  background: #fff; color: #000; }
  60%      { opacity: 1; scale: 1.12; background: var(--added); color: #fff; }
  72%, 100% { opacity: 1; scale: 1.05; background: var(--added); color: #fff; }
}
@keyframes vs-pl { 0% { width: 12px; } 57%, 100% { width: 0; } }
@keyframes vs-ck { 0% { width: 0; } 57%, 100% { width: 12px; } }

/* 02 · the order, the rows sliding in and the count bumping */
.vis-show { background: var(--bg); }
.vs-order { width: 100%; padding: 0 20px; }
.vis-show .row { transition: opacity .6s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1); }
.vis-show .row + .row { transition-delay: .14s; }
.motion .how-panel:not(.live) .vis-show .row { opacity: .3; translate: 48px 0; }
.live .vis-show .row:first-child .count { animation: bump .5s ease 1s; }

/* 03 · the rating: Delicious fills with ink and its tick draws */
.vis-eat .rate-list { width: min(88%, 340px); }
.vis-eat .rate { padding: 12px 16px; font-size: 18px; }
.vis-eat .rate .glyph { font-size: 24px; }
.vis-eat .rate .tick { opacity: 0; }
.vis-eat .rate.pick { transition: background .4s ease .55s, color .4s ease .55s, border-color .4s ease .55s; }
.live .vis-eat .rate.pick { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.live .vis-eat .rate.pick .tick { opacity: 1; stroke-dasharray: 40; animation: draw .6s cubic-bezier(.16, 1, .3, 1) .85s both; }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .how-pin { padding: 80px 0 72px; }
  .how-panel { --pt: min(.82px, calc(var(--vis-h) / 248)); }
  .vs-order { padding: 0 12px; }
  /* Pinned on a phone: one card fills the width, the next peeks in. */
  .how.pinned .how-panel { flex-basis: 82vw; gap: 18px; padding: 14px 14px 20px; }
  .how.pinned .how-head { margin-bottom: 20px; }
  .how.pinned .how-head h2 { font-size: 30px; }
  .how.pinned .how-panel { --vis-h: clamp(170px, 26svh, 230px); }
  .how.pinned .how-panel h3 { font-size: 36px; }
  .how.pinned .how-panel p { font-size: 16px; }
  .how.pinned .vis-eat .rate-list { gap: 6px; }
  .how.pinned .vis-eat .rate { padding: 9px 14px; font-size: 16px; }
  .how.pinned .vis-eat .rate .glyph { font-size: 20px; }
  .how-track { gap: 14px; }
  .how-track::after { flex-basis: max(1px, calc(var(--gutter) - 14px)); }
}

/* iPhone widths: the phone mockups from Menu bubbles down come in smaller,
   so a screen is mostly page, not bezel. */
@media (max-width: 480px) {
  .chapter .phone { --pt: .6px; }
}

/* ============================================================ */
/* Motion — what motion.js drives. Nothing here hides content    */
/* unless <html> has .motion, which it never gets under reduced  */
/* motion. One easing family: a long expo-out, plus a spring.    */
/* ============================================================ */
:root {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
.row.enter { animation: enter .42s cubic-bezier(.2, .9, .3, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }

/* Where each reveal comes in from. */
[data-reveal="up"]    { --from: translate3d(0, 56px, 0); }
[data-reveal="down"]  { --from: translate3d(0, -32px, 0); }
[data-reveal="left"]  { --from: translate3d(-72px, 0, 0); }
[data-reveal="right"] { --from: translate3d(72px, 0, 0); }
[data-reveal="scale"] { --from: scale(.88); }
[data-reveal="rise"]  { --from: translate3d(0, 28%, 0) scale(.94); }
@media (max-width: 920px) {
  [data-reveal="left"]  { --from: translate3d(-32px, 0, 0); }
  [data-reveal="right"] { --from: translate3d(32px, 0, 0); }
}
/* The nine languages come in from three sides, a column each. */
.langs > li:nth-child(3n+1) { --from: translate3d(-36px, 0, 0); }
.langs > li:nth-child(3n+2) { --from: translate3d(0, 36px, 0); }
.langs > li:nth-child(3n)   { --from: translate3d(36px, 0, 0); }
.faq-list > details:nth-child(odd)  { --from: translate3d(-40px, 0, 0); }
.faq-list > details:nth-child(even) { --from: translate3d(40px, 0, 0); }

.motion [data-reveal]:not([data-stagger]):not([data-reveal="clip"]),
.motion [data-stagger] > * {
  --delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
  opacity: 0;
  transform: var(--from);
  transition:
    opacity .9s var(--ease) var(--delay),
    transform 1.2s var(--ease) var(--delay),
    filter .9s var(--ease) var(--delay);
}
/* Text comes out of a soft focus as it arrives. */
.motion [data-stagger] > :is(.kicker, .lede, .fine, .subtag, .hero-meta, p) { filter: blur(8px); }
.motion [data-reveal].in:not([data-stagger]),
.motion [data-stagger].in > * { opacity: 1; transform: none; filter: none; }

/* A wipe out from the middle (the hero's showcase). */
.motion [data-reveal="clip"] { clip-path: inset(0 50% 0 50%); transition: clip-path 1.5s var(--ease) .1s; }
.motion [data-reveal="clip"].in { clip-path: inset(-20% -10% -20% -10%); }

/* Split headings: each word rises out of its own mask. The heading itself
   doesn't move; its words do, after the line before them. */
[data-split] .w {
  display: inline-block;
  clip-path: inset(-.25em -.12em -.28em -.12em);
}
.motion [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 125%, 0) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms) + var(--wi, 0) * 55ms + 60ms);
}
.motion .in [data-split] .w > span,
.motion [data-split].in .w > span { transform: none; }
.motion [data-stagger] > [data-split] { opacity: 1; transform: none; filter: none; }

/* Ticks draw themselves, one after another. */
.motion .ticks svg.i {
  stroke-dasharray: 32; stroke-dashoffset: 32;
  transition: stroke-dashoffset .7s var(--ease) calc(var(--i, 0) * 90ms + .4s);
}
.motion .ticks.in svg.i { stroke-dashoffset: 0; }

/* Phones and their cards drift at two depths as they pass (--p, 0 to 1). */
.motion .visual[data-scrub] > * { translate: 0 calc((.5 - var(--p, .5)) * 70px); }
.motion .visual[data-scrub] > :nth-child(2) { translate: 0 calc((.5 - var(--p, .5)) * 130px); }
@media (max-width: 920px) {
  .motion .visual[data-scrub] > *,
  .motion .visual[data-scrub] > :nth-child(2) { translate: 0 calc((.5 - var(--p, .5)) * 28px); }
}


/* …and the meet up's people get their badges one by one. */
.motion .people .chip { transition: scale .55s var(--spring), opacity .35s ease; transition-delay: .6s; }
.motion .people .p:nth-child(2) .chip { transition-delay: .75s; }
.motion .people .p:nth-child(3) .chip { transition-delay: .9s; }
.motion .people .p:nth-child(4) .chip { transition-delay: 1.05s; }
.motion .lp-card:not(.in) .people .chip { scale: .4; opacity: 0; }

/* Privacy: the paragraph lights up word by word as it's scrolled. */
.motion [data-scrub-words] .rw { opacity: .16; transition: opacity .4s ease; }
.motion [data-scrub-words] .rw.lit { opacity: 1; }

/* The closing app icon grows and turns upright as the section arrives. */
.motion .closing .logo { scale: calc(.62 + var(--p, 1) * .38); rotate: calc((1 - var(--p, 1)) * -16deg); }

/* Small things that answer the pointer. */
.langs li { transition: border-color .25s ease, background .25s ease; }
.langs li:hover { border-color: var(--muted); }
.langs .flag { transition: transform .6s var(--spring); }
.langs li:hover .flag { transform: scale(1.18) rotate(-12deg); }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--text-2); }
.footer-links a { position: relative; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* FAQ answers open with their height, where the browser can animate it. */
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  .faq details p { transition: opacity .5s ease .1s, translate .5s var(--ease) .1s; }
  .faq details:not([open]) p { opacity: 0; translate: 0 -6px; }
  .faq summary svg.i { transition: transform .45s var(--spring); }
}

/* Between pages: the bar holds, the page slides up into place
   (cross-document view transitions; other browsers just navigate). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }

/* The 404's logo floats while you decide where to go. */
.motion .nf-card .logo { animation: float 5s ease-in-out 1.2s infinite; }
@keyframes float { 50% { translate: 0 -8px; rotate: -5deg; } }

/* Reveals and drifts never push the page sideways. */
.chapter, .closing { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row.enter, .stepper .count.bump, .cam .flash.go, .live .vs-flash { animation: none; }
  .bubble, .btn, .btn::before, .btn svg.i, .how-panel, .vs-frame img, .vis-show .row, .nav-marker { transition: none; }
  .live .vs-frame .bubble { animation: none; opacity: 1; scale: 1; background: var(--added); color: #fff; }
  .live .vs-frame .bubble .pl { animation: none; width: 0; }
  .live .vs-frame .bubble .ck { animation: none; width: 12px; }
  .live .vis-eat .rate.pick .tick { animation: none; }
  .vis-eat .rate.pick { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* The black bezel would vanish into the dark page; a faint rim keeps the
   phone's edge (an outline, not a shadow). */
@media (prefers-color-scheme: dark) {
  .phone, .sc-cam { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
}

/* ============================================================ */
/* Tones — the page is three surfaces, section by section:       */
/*  grey  the app's page (#F4F4F4), the default;                 */
/*  white a raised sheet;                                        */
/*  ink   the app's dark mode. In dark mode it turns to the      */
/*        app's light mode, so it always stands apart.           */
/* The nav wears the tone of whatever is under it (data-tone).   */
/* Flat fills only: no gradients, no shadows.                    */
/* ============================================================ */
:root { --tone-white-bg: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root { --tone-white-bg: #161616; } }

.tone-white, .topnav-wrap[data-tone="white"] { --bg: #FFFFFF; --card: #FFFFFF; --subtle: #F4F4F4; }
.tone-ink, .topnav-wrap[data-tone="ink"] {
  --bg: #0A0A0A; --card: #1C1C1C; --subtle: #2A2A2A;
  --stroke: rgba(255, 255, 255, 0.10); --hairline: rgba(255, 255, 255, 0.12);
  --ink: #F4F4F4; --on-ink: #0A0A0A;
  --text: #F4F4F4; --text-2: #B5B5B5; --muted: #8E8E8E;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .tone-white, .topnav-wrap[data-tone="white"] { --bg: #161616; --card: #1F1F1F; --subtle: #262626; }
  .tone-ink, .topnav-wrap[data-tone="ink"] {
    --bg: #F4F4F4; --card: #FFFFFF; --subtle: #EBEBEB;
    --stroke: rgba(0, 0, 0, 0.06); --hairline: rgba(0, 0, 0, 0.08);
    --ink: #0A0A0A; --on-ink: #FFFFFF;
    --text: #0A0A0A; --text-2: #4A4A4A; --muted: #6B6B6B;
    color-scheme: light;
  }
}
.tone-grey, .tone-white, .tone-ink { background: var(--bg); color: var(--text); }
.chapter, .closing, .how, .footer { border-top: 0; }
.topnav-wrap { color: var(--text); transition: background-color .45s var(--ease), border-color .3s ease, color .45s var(--ease); }
/* The black bezel on an ink section keeps a faint rim, as on a dark page. */
@media (prefers-color-scheme: light) {
  .tone-ink .phone, .tone-ink .sc-cam { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
}

/* Curtain: an ink section opens out from a rounded card as it arrives.
   The section's own box keeps the white of what came before; its ink is a
   layer behind the content, clipped by --p (data-scrub="enter"). */
[data-curtain] { position: relative; isolation: isolate; }
.motion [data-curtain] { background: var(--tone-white-bg); }
.motion [data-curtain]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  --c: calc(1 - var(--p, 1));
  clip-path: inset(0 calc(var(--c) * 6vw) round calc(var(--c) * 72px) calc(var(--c) * 72px) 0 0);
}

/* Section numbers in front of the kicker: a small ink capsule. */
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker .kn {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 8px;
  border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-variant-numeric: tabular-nums;
}

/* Bigger, tighter display type throughout. */
.hero h1 { font-size: clamp(46px, 8.2vw, 116px); line-height: .94; letter-spacing: -0.045em; max-width: 13ch; margin-left: auto; margin-right: auto; }
.chapter h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.04em; max-width: 13ch; }
.how-head h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.04em; }
.chapter { padding: clamp(96px, 12vw, 160px) 0; }

/* ============================================================ */
/* Hero scene: pinned while the page scrolls (heroZoom() in      */
/* index.html). It sets on .hero:                                */
/*  --t    0 to 1, the tagline zooming back from big and centred */
/*         (--d px below its place, --s0 times its size) to its  */
/*         place at the top;                                     */
/*  --sc-s / --sc-o  the showcase's scale (with an overshoot)    */
/*         and opacity as it zooms in from far away;             */
/*  --a    the buttons coming in.                                */
/* Every value defaults to the finished layout, so without the   */
/* script (or under reduced motion) it is just the plain stack.  */
/* ============================================================ */
.hero-pinned { height: calc(100svh + 140vh); padding: 0; --s0: 1.55; }
.hero-pinned .hero-stage {
  position: sticky; top: var(--nav-h, 68px);
  height: calc(100svh - var(--nav-h, 68px));
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2.6vh, 32px);
}
.hero-pinned .hero-head { position: absolute; left: 0; right: 0; top: clamp(16px, 4vh, 40px); opacity: calc(1 - var(--t, 1) * 1.8); scale: calc(1 - var(--t, 1) * .35); }
.hero-pinned .hero-title, .hero-pinned .hero-cta { margin-top: 0; }
.hero-pinned h1 { font-size: clamp(36px, 5.4vw, 80px); margin-bottom: 12px; }
.hero-pinned .subtag { margin: 0; font-size: clamp(18px, 2.1vw, 26px); }
.hero-pinned .hero-title {
  position: relative; z-index: 2;
  translate: 0 calc(var(--d, 0px) * (1 - var(--t, 1)));
  scale: calc(1 + (min(var(--s0), var(--s0-fit, 9)) - 1) * (1 - var(--t, 1)));
  will-change: translate, scale;
}
.hero-pinned .showcase {
  --pt: max(.7px, min(1.5px, calc((100vw - 48px) / 288), calc((100svh - 480px) / 268)));
  margin-top: 0;
  opacity: var(--sc-o, 1);
  scale: var(--sc-s, 1);
  rotate: calc((1 - var(--sc-o, 1)) * -6deg);
  will-change: scale, opacity;
}
.hero-pinned .hero-actions { margin-bottom: 12px; }
.hero-pinned .hero-cta { opacity: var(--a, 1); translate: 0 calc((1 - var(--a, 1)) * 36px); scale: calc(.92 + var(--a, 1) * .08); }
/* Not pressable while it's still out of sight (focus scrolls it in). */
.hero-pinned.cta-off .hero-cta { pointer-events: none; }
.hero-pinned .spin-badge, .motion .hero-pinned .spin-badge.in { bottom: clamp(16px, 4vh, 40px); opacity: calc(1 - var(--a, 1)); }
@media (max-width: 920px) {
  .hero-pinned { --s0: 1.3; }
}

/* ============================================================ */
/* Hero extras: the turning badge                                */
/* ============================================================ */
.hero-stage { position: relative; }
.spin-badge {
  position: absolute; right: max(var(--pad-x), calc(50% - var(--container) / 2 + var(--pad-x))); bottom: -24px;
  width: 136px; height: 136px;
  display: grid; place-items: center;
  color: var(--text);
}
.spin-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: calc(var(--page, 0) * 900deg); }
.spin-ring text { font-size: 14.5px; font-weight: 600; fill: currentColor; text-transform: uppercase; }
.motion .spin-ring { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-core {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center;
  transition: scale .5s var(--spring);
}
.spin-core svg.i { width: 22px; height: 22px; stroke-width: 2.4; }
.spin-badge:hover .spin-core { scale: 1.14; }
.spin-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 50%; }
@media (max-width: 1080px) { .spin-badge { display: none; } }

/* ============================================================ */
/* Statement: one big line (two rows), lighting up as it's read,  */
/* and the dishes floating past at their own depths. The top two  */
/* rise fast enough to pass over the tilted dish band above, so   */
/* the section clips sideways only and the dishes sit over the    */
/* band (z-index 4 against its 3); the line stays on top.         */
/* ============================================================ */
.statement { position: relative; padding: clamp(120px, 18vw, 260px) 0; overflow-x: clip; }
.statement-line {
  position: relative; z-index: 5;
  margin: 0 auto; max-width: 26ch;
  text-align: center;
  font-size: clamp(26px, 5.4vw, 84px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.045em;
}
.floaters { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fl {
  position: absolute;
  width: clamp(96px, 13vw, 200px); aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--r-md);
  background: var(--subtle);
  rotate: var(--rot, 0deg);
}
.motion .fl { translate: 0 calc((.5 - var(--p, .5)) * var(--depth, 200px)); }
.motion .fl.f1, .motion .fl.f2 {
  translate: 0 calc(var(--p, .5) * var(--depth, 200px) * var(--lift, -2.4));
  scale: calc(.9 + var(--p, .5) * .3);
}
.fl.f1 { left: 4%;  top: 8%;     --depth: 260px; --rot: -7deg; }
.fl.f2 { right: 5%; top: 4%;     --depth: 220px; --rot: 6deg; width: clamp(80px, 10vw, 160px); }
.fl.f3 { left: 9%;  bottom: 6%;  --depth: 360px; --rot: 5deg; width: clamp(80px, 11vw, 170px); }
.fl.f4 { right: 9%; bottom: 10%; --depth: 300px; --rot: -4deg; }
.fl.f5 { left: 46%; bottom: -4%; --depth: 480px; --rot: 3deg; width: clamp(72px, 8vw, 130px); }
@media (max-width: 760px) {
  .fl { width: 84px; }
  .fl.f1 { left: -3%; top: 2%; } .fl.f2 { right: -3%; top: 5%; }
  .fl.f3 { left: 4%; bottom: 2%; } .fl.f4 { right: 2%; bottom: 4%; }
  .fl.f5 { display: none; }
  .fl.f1, .fl.f2 { --lift: -.9; }
}
.motion .statement [data-scrub-words] .rw:not(.lit) { opacity: .14; }

/* ============================================================ */
/* How it goes, on ink                                           */
/* ============================================================ */
.how .how-panel { border-color: var(--hairline); }
.how .vis-snap { background: #000; }

/* ============================================================ */
/* Flow (At the table): one phone holds still, three steps pass. */
/* Every screen state is keyed off [data-step] on .flow-device   */
/* (index.html's flow() only sets it): 0 the camera on the menu, */
/* 1 a bubble tapped and its dish added, 2 the camera tucked,    */
/* 3 Meal Finished: where you ate, the rating, the Past Meals    */
/* card. Shown states carry the delays, so scrolling back up     */
/* undoes each one at once.                                      */
/* ============================================================ */
.flow-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: start; }
.flow-stage {
  /* The stage and the phone follow the window's height, so it fits one
     nobody has made yet: 700 tall at most, 96 clear of the nav and the foot. */
  --stage: min(700px, calc(100svh - 96px));
  position: sticky; top: max(84px, calc(50svh - var(--stage) / 2));
  height: var(--stage); align-self: start;
  display: flex; align-items: center; justify-content: center;
  padding-right: 48px;   /* room for the Past Meals card */
}
.flow-device {
  position: relative;
  --tilt: -1.5deg; rotate: var(--tilt);
  transition: rotate 1.4s var(--ease);
  --rd: 0; --rp: 0; --rc: 0; --roll-delay: 0s;
}
.flow-device .phone { --pt: min(.78px, calc((100svh - 118px) / 880)); }
.flow-device[data-step="2"] { --tilt: 0deg; }
.flow-device[data-step="3"] { --tilt: 1.5deg; }

/* The steps: dim until they reach the middle; a rail fills beside the live one. */
.flow-head { padding-top: 6vh; }
.flow-steps { padding-bottom: 18vh; }
.flow-step {
  min-height: 72vh; min-height: 72svh;
  display: flex; flex-direction: column; justify-content: center;
  scroll-margin-top: 72px;
}
.fs-body { position: relative; padding-left: 32px; }
.fs-body::before, .fs-body::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px;
  background: var(--hairline);
}
.fs-body::after { background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.flow-step.is-live .fs-body::after { transform: none; }
.flow-step h3 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 16px; max-width: 14ch; }
.flow-step .lede { max-width: 44ch; margin-bottom: 22px; }
.flow-js .flow-step, .flow-js .flow-step h3 { transition: opacity .6s var(--ease), translate .6s var(--ease); }
.flow-js .flow-step:not(.is-live) { opacity: .22; }
.flow-js .flow-step:not(.is-live) h3 { translate: 0 6px; }
.flow-js.flow-static .flow-step:not(.is-live) { opacity: 1; }
.flow-js.flow-static .flow-step:not(.is-live) h3 { translate: none; }
.flow-static .fs-body::after { transform: none; }

/* Step 1: the tapped dish's row opens under the list, which scrolls to it. */
.fl-list { transition: translate .8s var(--ease); }
.flow-device[data-step="1"] .fl-list { translate: 0 calc(var(--pt) * -120); transition-delay: .6s; }
/* Tucked, the list is scrolled a little so Meal Finished clears the pill. */
.flow-device:is([data-step="2"], [data-step="3"]) .fl-list { translate: 0 calc(var(--pt) * -44); }
.fl-new { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.fl-new > div { min-height: 0; overflow: hidden; }
.fl-new .row { opacity: 0; translate: 0 calc(var(--pt) * 10); transition: opacity .5s ease, translate .7s var(--ease); }
.fl-new .row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hairline); }
.flow-device:not([data-step="0"]) .fl-new { grid-template-rows: 1fr; transition-delay: .55s; }
.flow-device:not([data-step="0"]) .fl-new .row { opacity: 1; translate: none; transition-delay: .7s; }

/* Its bubble: a fingertip lands on it, it turns green with a tick, the camera flashes. */
.fl-tap {
  position: absolute; z-index: 1;
  width: calc(var(--pt) * 36); height: calc(var(--pt) * 36);
  margin: calc(var(--pt) * -18) 0 0 calc(var(--pt) * -18);
  border-radius: 50%; border: calc(var(--pt) * 2) solid #fff; background: rgba(255, 255, 255, .35);
  opacity: 0; pointer-events: none;
}
.flow-device[data-step="1"] .fl-tap { animation: fl-tap .7s ease-out .05s; }
@keyframes fl-tap { 0% { opacity: 0; scale: 1.7; } 35% { opacity: 1; scale: .85; } 100% { opacity: 0; scale: 1.3; } }
.bubble.fl-added .pl, .bubble.fl-added .ck { transition: display 0s allow-discrete; }
.flow-device:not([data-step="0"]) .bubble.fl-added { background: var(--added); color: #fff; transform: translate(-50%, -50%) scale(1.08); transition-delay: .3s; }
.flow-device:not([data-step="0"]) .bubble.fl-added .pl { display: none; transition-delay: .3s; }
.flow-device:not([data-step="0"]) .bubble.fl-added .ck { display: block; transition-delay: .3s; }
.flow-device[data-step="1"] .cam .flash { animation: flash .4s ease-out .45s; }

/* Counts roll to their new number: a column of numbers in a one-line window. */
.roll { display: inline-block; height: 1.2em; line-height: 1.2; overflow: hidden; vertical-align: bottom; font: inherit; }
.roll i { display: block; font-style: normal; translate: 0 calc(var(--n, 0) * -1.2em); transition: translate .6s var(--spring) var(--roll-delay); }
.rd i { --n: var(--rd); } .rp i { --n: var(--rp); } .rc i { --n: var(--rc); }
.flow-device[data-step="1"] { --rd: 1; --rp: 1; --roll-delay: .8s; }
.flow-device:is([data-step="2"], [data-step="3"]) { --rd: 1; --rp: 2; --rc: 1; --roll-delay: .45s; }

/* Step 2: plus on Phở Bò, and the camera swipes down to the Open camera pill. */
@keyframes fl-press { 40% { scale: .8; opacity: .55; } }
.flow-device[data-step="2"] .fl-r1 .stepper .pm:last-child { animation: fl-press .45s ease .15s; }
.fl-drawer { flex: none; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .75s var(--ease); }
.fl-drawer > div { min-height: 0; overflow: hidden; }
.fl-drawer .cam { transition: translate .75s var(--ease), opacity .5s ease; }
.flow-device:is([data-step="2"], [data-step="3"]) .fl-drawer { grid-template-rows: 0fr; }
.flow-device:is([data-step="2"], [data-step="3"]) .fl-drawer .cam { translate: 0 40%; opacity: 0; }
.fl-tucked {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  opacity: 0; translate: 0 calc(var(--pt) * 28); scale: .92;
  transition: opacity .3s ease, translate .6s var(--spring), scale .6s var(--spring);
}
.flow-device:is([data-step="2"], [data-step="3"]) .fl-tucked { opacity: 1; translate: none; scale: 1; transition-delay: .45s; }

/* Step 3: Meal Finished, then the rating screen slides up over the order:
   where you ate (typed by the script), then How was it?, Delicious picked. */
.flow-device[data-step="3"] .order-end .pbtn { animation: fl-press .4s ease; }
.fl-sheet {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  background: var(--bg);
  translate: 0 100%; transition: translate .8s var(--ease);
}
.flow-device[data-step="3"] .fl-sheet { translate: none; transition-delay: .35s; }
.fl-pages { flex: 1; min-height: 0; display: flex; width: 200%; transition: translate .7s var(--ease); }
.flow-device[data-step="3"] .fl-pages { translate: -50% 0; transition-delay: 2s; }
.fl-page { width: 50%; display: flex; flex-direction: column; }
.fl-name { justify-content: center; gap: calc(var(--pt) * 24); padding: 0 calc(var(--pt) * 16) calc(var(--pt) * 90); }
.fl-name h4 { margin: 0; text-align: center; font-size: calc(var(--pt) * 34); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.fl-field {
  display: flex; align-items: center;
  min-height: calc(var(--pt) * 60); padding: 0 calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 24);
  background: var(--card); border: 1px solid var(--hairline);
  font-size: calc(var(--pt) * 20); font-weight: 600; white-space: nowrap; overflow: hidden;
}
.fl-hint { order: 2; color: var(--muted); }
.fl-field .caret { order: 1; width: calc(var(--pt) * 2); height: 1.15em; margin: 0 calc(var(--pt) * 1); background: var(--ink); opacity: 0; }
.fl-field.has .fl-hint { display: none; }
.flow-device[data-step="3"] .fl-field .caret { opacity: 1; animation: fl-caret 1s step-end infinite; }
@keyframes fl-caret { 50% { opacity: 0; } }
.fl-chars { align-self: flex-end; margin-top: calc(var(--pt) * -18); padding-right: calc(var(--pt) * 4); font-size: calc(var(--pt) * 12); color: var(--text-2); font-variant-numeric: tabular-nums; }
.fl-rate .rating { padding-bottom: calc(var(--pt) * 40); }
.fl-rate .rate.pick { transition: background .35s ease, color .35s ease, border-color .35s ease; }
.fl-rate .rate.pick .tick { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease); }
.flow-device[data-step="3"] .fl-rate .rate.pick { background: var(--ink); color: var(--on-ink); border-color: transparent; transition-delay: 2.8s; }
.flow-device[data-step="3"] .fl-rate .rate.pick .tick { stroke-dashoffset: 0; transition-delay: 3s; }

/* …and the meal lands in Past Meals: its card slides out from the phone. */
.fl-meal {
  position: absolute; right: -124px; bottom: 20px; z-index: 4; width: 288px;
  opacity: 0; translate: -40px 24px; scale: .9; rotate: -3deg;
  transition: opacity .35s ease, translate .7s var(--spring), scale .7s var(--spring), rotate .9s var(--ease);
}
.fl-meal .top { margin-bottom: 10px; }
.fl-meal .strip { margin-bottom: 10px; }
.flow-device[data-step="3"] .fl-meal { opacity: 1; translate: none; scale: 1; rotate: 3deg; transition-delay: 3.5s; }

/* Too short to hold a readable phone beside the steps: it just scrolls. */
@media (min-width: 901px) and (max-height: 520px) {
  .flow-stage { position: relative; top: auto; height: auto; padding-block: 8px; }
  .flow-device .phone { --pt: .5px; }
  .flow-js .flow-step:not(.is-live) { opacity: 1; }
  .flow-js .flow-step:not(.is-live) h3 { translate: none; }
}
/* Phones: heading, the phone, then the steps, which play on a timer. */
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .flow-copy { display: contents; }
  .flow-head { order: 0; padding-top: 0; }
  .flow-stage { order: 1; position: relative; top: auto; height: auto; padding: 8px 0 16px; }
  .flow-steps { order: 2; padding-bottom: 0; }
  .flow-device .phone { --pt: .62px; }
  .flow-step { min-height: 0; padding: 22px 0; border-top: 1px solid var(--hairline); }
  /* The phone is above and off screen by the time these are read, so its
     timer can't be what makes them legible: only the rail follows it. */
  .flow-js .flow-step:not(.is-live) { opacity: 1; }
  .flow-js .flow-step:not(.is-live) h3 { translate: none; }
  .fs-body { padding-left: 24px; }
  .flow-step h3 { font-size: 28px; margin-bottom: 12px; }
  .flow-step .lede { font-size: 17px; margin-bottom: 16px; }
  .fl-meal { right: -72px; bottom: 12px; width: 250px; }
}
@media (max-width: 560px) { .fl-meal { display: none; } }
@media (max-width: 400px) { .flow-device .phone { --pt: .58px; } }
/* A phone on its side (390pt tall): the mock phones were about 680px, never
   once whole on screen. Smaller, they nearly fit and still read. */
@media (max-height: 500px) and (orientation: landscape) {
  .phone, .flow-device .phone { --pt: .5px; }
}

/* Reduced motion: the same states, landing at once. */
@media (prefers-reduced-motion: reduce) {
  .flow *, .flow *::before, .flow *::after {
    transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important;
  }
}

/* ============================================================ */
/* Late Pays: stacking step cards beside the page that holds     */
/* ============================================================ */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 7vw, 112px); align-items: start; }
.lp-visual { align-self: stretch; display: flex; justify-content: center; }
.lp-visual > .phone { align-self: flex-start; }
@media (min-height: 780px) and (min-width: 921px) {
  .lp-visual > .phone { position: sticky; top: max(88px, calc(50svh - 340px)); }
}
.stack-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 22vh; }
.stack-steps li {
  position: sticky; top: calc(96px + var(--k, 0) * 18px);
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  min-height: 210px; padding: 28px;
  border-radius: var(--r-xl);
  background: var(--subtle); border: 1px solid var(--hairline);
  transform-origin: 50% 0;
  scale: calc(1 - var(--cover, 0) * .07);
}
.stack-steps li:nth-child(2) { --k: 1; }
.stack-steps li:nth-child(3) { --k: 2; }
.stack-steps li:nth-child(4) { --k: 3; background: var(--ink); color: var(--on-ink); border-color: transparent; }
.stack-steps .n {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.stack-steps li:nth-child(4) .n { background: var(--on-ink); color: var(--ink); }
.stack-steps b { display: block; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.03em; margin: 4px 0 10px; }
.stack-steps span { display: block; font-size: 17px; color: var(--text-2); }
.stack-steps li:nth-child(4) span { color: color-mix(in srgb, var(--on-ink) 74%, var(--ink)); }
@media (max-width: 920px) {
  .lp-grid { grid-template-columns: 1fr; }
  .stack-steps { gap: 16vh; }
  .stack-steps li { top: calc(80px + var(--k, 0) * 12px); padding: 22px; min-height: 0; grid-template-columns: 44px 1fr; gap: 16px; }
  .stack-steps .n { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
}

/* Too short for a held card and the nav together: the cards just scroll. */
@media (max-height: 420px) {
  .stack-steps { gap: 16px; }
  .stack-steps li { position: relative; top: auto; }
}

/* What a meet up feels like: three photos of friends meeting, the middle
   one bigger, each with a piece of the app on it. Sized in points like the
   mockups, so the pieces match the app's. */
.lp-photos {
  --pt: 1px;
  margin-top: clamp(72px, 10vw, 140px);
  display: grid; gap: 16px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
}
.lpp {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-xl); background: var(--subtle);
}
.lpp-a, .lpp-c { aspect-ratio: 4 / 5; }
.lpp-b { aspect-ratio: 4 / 3; }
.lpp img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; scale: 1.12;
  transition: scale 1.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lpp:hover img { scale: 1.18; } }
/* Each card at its own depth, its photo drifting the other way inside it. */
.lpp-a { --depth: 140px; } .lpp-b { --depth: 50px; } .lpp-c { --depth: 190px; }
.motion .lpp { translate: 0 calc((.5 - var(--p, .5)) * var(--depth)); }
.motion .lpp img { translate: 0 calc((var(--p, .5) - .5) * 7%); }
/* Wiped up into view, corners and all; then the app's piece pops in. */
.motion .lpp[data-reveal="clip"] {
  clip-path: inset(100% 0 0 0 round var(--r-xl));
  transition: clip-path 1.4s var(--ease) var(--d, 0s);
}
.motion .lpp[data-reveal="clip"].in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.lpp-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: calc(var(--pt) * 8);
  transform-origin: left bottom;
}
.motion .lpp-tag { transition: scale .6s var(--spring), opacity .35s ease; transition-delay: calc(var(--d, 0s) + 1s); }
.motion .lpp:not(.in) .lpp-tag { scale: .4; opacity: 0; }
/* I'm Here: the meet up's black check in button. */
.lpp-here {
  padding: calc(var(--pt) * 12) calc(var(--pt) * 20); border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: calc(var(--pt) * 17); font-weight: 600;
}
.lpp-here svg.i { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); }
/* notificationSurface: a blur of the photo under a wash of the card colour,
   no border, no shadow; a solid card where blur isn't supported. */
.lpp-note {
  padding: calc(var(--pt) * 12) calc(var(--pt) * 14); border-radius: var(--r-lg);
  background: var(--card); color: var(--text);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lpp-note {
    background: color-mix(in srgb, var(--card) 55%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
            backdrop-filter: blur(24px) saturate(160%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .lpp-note { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.lpp-who { gap: calc(var(--pt) * 12); padding-right: calc(var(--pt) * 12); }
.lpp-who b { font-size: calc(var(--pt) * 15); font-weight: 600; margin-right: calc(var(--pt) * 10); }
.lpp-who .st { display: grid; justify-items: end; gap: calc(var(--pt) * 3); }
.lpp-who .st time { font-size: calc(var(--pt) * 12); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lpp-yay { right: 14px; gap: calc(var(--pt) * 10); }
.lpp-yay .ok {
  flex: none; width: calc(var(--pt) * 32); height: calc(var(--pt) * 32); border-radius: 50%;
  background: var(--added); color: #fff; display: grid; place-items: center;
}
.lpp-yay .ok svg.i { width: calc(var(--pt) * 16); height: calc(var(--pt) * 16); stroke-width: 3; }
.lpp-yay b { font-size: calc(var(--pt) * 15); font-weight: 700; line-height: 1.25; }
@media (max-width: 760px) {
  .lp-photos { --pt: .9px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lpp-b { grid-column: 1 / -1; grid-row: 1; }
  .lpp-a { --depth: 60px; } .lpp-c { --depth: 100px; }
  .lpp-tag { left: 10px; bottom: 10px; }
  .lpp-yay { right: 10px; }
}
/* A phone: one photo a row, wider than tall. Two across, each was about
   140px, and the congrats note stood a word a line in German and Vietnamese. */
@media (max-width: 480px) {
  .lp-photos { grid-template-columns: minmax(0, 1fr); }
  .lpp-a, .lpp-c { aspect-ratio: 3 / 2; }
  .lpp-a { --depth: 30px; } .lpp-b { --depth: 20px; } .lpp-c { --depth: 40px; }
}

/* The meet up as a bento. */
.lp-bento {
  --pt: 1px;
  margin-top: clamp(72px, 10vw, 140px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "action people outcome" "id people fine";
  align-items: start;
}
.lp-bento .lp-card { width: auto; }
.b-action { grid-area: action; } .b-people { grid-area: people; } .b-outcome { grid-area: outcome; }
.b-id { grid-area: id; } .b-fine { grid-area: fine; }
.lp-bento .id-note { margin: 0; max-width: none; background: var(--ink); color: var(--on-ink); border-color: transparent; padding: 24px; }
.lp-bento .id-note > span:not(.id-big) { color: color-mix(in srgb, var(--on-ink) 74%, var(--ink)); }
.lp-bento .id-note .id-big { color: var(--on-ink); }
.id-big { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1; margin-bottom: 18px; }
.lp-bento .fine { margin: 0; padding: 24px; border: 1px solid var(--hairline); border-radius: var(--r-lg); }
@media (max-width: 1000px) {
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "action people" "outcome people" "id fine"; }
}
@media (max-width: 640px) {
  .lp-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "action" "people" "outcome" "id" "fine"; }
}

/* ============================================================ */
/* Languages: the nine names drifting past                       */
/* ============================================================ */
.lang-band { margin-top: clamp(72px, 10vw, 128px); overflow: hidden; display: grid; gap: 6px; }
.lang-band .band-item { font-size: clamp(40px, 7.4vw, 108px); }
.lang-band .band-item img.flag { width: .72em; height: .72em; border-radius: 50%; }
.lang-band .band-row + .band-row .band-item { color: color-mix(in srgb, var(--text) 18%, var(--bg)); }
#languages { padding-bottom: clamp(48px, 6vw, 80px); }

/* ============================================================ */
/* FAQ: the heading holds still, the answers are open rows       */
/* ============================================================ */
.faq { max-width: var(--container); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: .96; letter-spacing: -0.045em; max-width: none; }
@media (min-width: 921px) { .faq-head { position: sticky; top: 120px; } }
.faq-list { gap: 0; border-bottom: 1px solid var(--hairline); }
.faq details { background: none; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; padding: 18px 0; }
.faq summary { font-size: clamp(18px, 1.7vw, 22px); min-height: 44px; align-items: center; }
.faq summary svg.i { width: 22px; height: 22px; color: var(--text); }
.faq details p { font-size: 17px; max-width: 56ch; }
@media (max-width: 920px) { .faq { grid-template-columns: 1fr; } }

/* ============================================================ */
/* Closing and the footer's wordmark                             */
/* ============================================================ */
.closing { padding: clamp(120px, 16vw, 220px) var(--pad-x); }
.closing h2 { font-size: clamp(48px, 9vw, 140px); line-height: .92; letter-spacing: -0.05em; max-width: 12ch; margin: 0 auto 18px; }
.closing p { font-size: clamp(19px, 2vw, 26px); font-weight: 600; }
.footer .wrap { border-top: 1px solid var(--hairline); }
.footer-word { overflow: hidden; line-height: .78; padding: 0 0 2vw; text-align: center; }
.footer-word span {
  display: block;
  font-size: 29vw; font-weight: 800; letter-spacing: -0.065em;
  translate: 0 calc((1 - var(--p, 1)) * 60%);
}

/* ============================================================ */
/* The pointer dot (fine pointers; motion.js adds it)            */
/* ============================================================ */
/* Pure white under `difference` is what inverts the page beneath:
   black over the grey page, white over ink, negative over photos.
   Positioned by transform only; the system cursor stays. */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 2147483000;
  pointer-events: none; opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
  transition: opacity .3s ease;
}
.cursor.shown { opacity: 1; }
.cursor__dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff;
  transition:
    width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1),
    margin .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, scale .2s ease;
}
/* Over anything clickable it becomes a lens over the text. */
.cursor.lens .cursor__dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.labelled .cursor__dot { opacity: 0; }
.cursor.down .cursor__dot { scale: .82; }

/* data-cursor="…": a pill in ink (the site has no accent colour). Not blended. */
.cursor__label {
  position: fixed; left: 0; top: 0; z-index: 2147483001;
  pointer-events: none; will-change: transform;
}
.cursor__label span {
  display: block; white-space: nowrap;
  padding: .45em .9em; border-radius: var(--pill);
  background: var(--ink); color: var(--on-ink);
  font-size: .8rem; font-weight: 600; line-height: 1.2;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cursor__label.on span { transform: translate(-50%, -50%) scale(1); }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor__label { display: none; }
}
.btn[data-magnetic] { transition: transform .35s var(--spring), color .35s var(--ease), translate .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .spin-ring { animation: none; rotate: none; }
  .btn[data-magnetic] { transition: none; }
}

/* ============================================================ */
/* Blog (/blog/): built by landing/blog/build.mjs                */
/* White cards on the grey page, the photo the only colour.      */
/* ============================================================ */
.blog, .post { overflow-x: clip; }
.blog { max-width: var(--container); margin: 0 auto; padding: 56px var(--pad-x) 96px; }
.blog-hero { max-width: 720px; margin: 0 0 32px; }
.blog-hero h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; margin: 0 0 14px; }

.post-card__cat { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.post-meta { font-size: 14px; color: var(--muted); margin: 0; }

.blog-feature {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  overflow: hidden; margin: 0 0 32px;
}
.blog-feature__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--subtle); }
.blog-feature__img img, .post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.blog-feature:hover img, .post-card:hover img { transform: scale(1.04); }
.blog-feature__text { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.blog-feature__text h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 12px; }
.blog-feature__text p:not(.post-card__cat):not(.post-meta) { color: var(--text-2); font-size: 17px; line-height: 1.5; margin: 0 0 16px; }
@media (min-width: 861px) {
  .blog-feature { grid-template-columns: 1.15fr 1fr; }
  .blog-feature__img { aspect-ratio: auto; min-height: 380px; }
  .blog-feature__text { padding: 40px; }
}

.blog-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.blog-jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--pill); background: var(--card); border: 1px solid var(--hairline);
  font-size: 15px; font-weight: 500;
}
.blog-jump a:hover { background: var(--ink); color: var(--on-ink); }
.blog-jump span { font-size: 13px; color: var(--muted); }
.blog-jump a:hover span { color: inherit; }
.blog-jump a[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.blog-jump a[aria-current="page"] span { color: inherit; opacity: .7; }
.blog-hero .crumbs { margin: 0 0 14px; }
.blog-hero .crumbs a:hover { color: var(--text); }

/* Page links under a list: Previous, the page numbers, Next. Capsules like
   every button; the current page is the one solid ink thing. */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 0; }
.pager ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: var(--pill); background: var(--card); border: 1px solid var(--hairline);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pager a:hover { background: var(--ink); color: var(--on-ink); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pager a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pager__step { gap: 6px; }
@media (max-width: 480px) {
  .pager { gap: 6px; }
  .pager ol { gap: 6px; }
  .pager__step { padding: 0; }
  .pager__word { display: none; }
}

.blog-section { padding: 48px 0 0; scroll-margin-top: 72px; }
.blog-section h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 6px; }
.blog-section__line { color: var(--text-2); font-size: 17px; margin: 0 0 22px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; padding: 0 0 22px;
}
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--subtle); margin: 0 0 18px; }
.post-card > :not(.post-card__img) { padding: 0 20px; }
.post-card__title { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; }
.post-card__text { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }
.post-card:focus-visible, .blog-feature:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* One post */
.post { max-width: 820px; margin: 0 auto; padding: 48px var(--pad-x) 96px; }
.post-head { max-width: 720px; margin: 0 auto 28px; }
.post-head .kicker a:hover { color: var(--text); }
.post-head h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.06; margin: 0 0 16px; }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); background: var(--subtle); }
.post-cover figcaption { font-size: 13px; color: var(--muted); margin: 10px 4px 0; }
.post-cover figcaption a { text-decoration: underline; text-underline-offset: 2px; }

.post-body, .post-faq { max-width: 680px; margin-left: auto; margin-right: auto; }

.post-body, .post-faq { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.post-body h2, .post-faq h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; color: var(--text); margin: 48px 0 14px; scroll-margin-top: 80px; }
.post-body h3, .post-faq h3 { font-size: 19px; line-height: 1.3; color: var(--text); letter-spacing: -0.01em; margin: 28px 0 8px; }
.post-body p, .post-faq p { margin: 0 0 18px; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a, .post-faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 8px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--muted); }
.post-body blockquote {
  margin: 0 0 20px; padding: 14px 20px; border-left: 3px solid var(--ink);
  background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); font-weight: 500;
}
.post-body blockquote p:last-child { margin: 0; }
.post-body .short {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px 24px; margin: 0 0 24px; color: var(--text);
}
.post-body .short p:last-child, .post-body .short ul:last-child { margin-bottom: 0; }
.post-body .note { font-size: 15px; color: var(--muted); }

.table-wrap {
  position: relative; overflow-x: auto; margin: 0 0 24px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.table-wrap th { background: var(--subtle); color: var(--text); font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text); font-weight: 500; }
/* Three or more columns don't fit a phone: each row becomes a card, with the
   column's name (data-label, added by build.mjs) beside each value. */
@media (max-width: 640px) {
  .table-wrap.stack thead { display: none; }
  .table-wrap.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .table-wrap.stack tr:last-child { border-bottom: 0; }
  .table-wrap.stack td { display: grid; grid-template-columns: minmax(5.5em, 32%) 1fr; gap: 12px; padding: 4px 14px; border: 0; }
  .table-wrap.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
  .table-wrap.stack td[data-label=""], .table-wrap.stack td:first-child { grid-template-columns: 1fr; }
  .table-wrap.stack td[data-label=""]::before, .table-wrap.stack td:first-child::before { content: none; }
  .table-wrap.stack td:first-child { font-weight: 600; padding-bottom: 6px; }
}
/* The blog's header has a Blog link beside Download: on the narrowest
   phones the logo stands alone (its link keeps the name for VoiceOver). */
@media (max-width: 360px) { .blog-page .topnav .brand span { display: none; } }

.post-faq { margin-top: 8px; }
.post-faq h3 { margin-top: 22px; }

.post-cta {
  max-width: 680px; margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 28px;
}
.post-cta .logo { width: 56px; height: 56px; }
.post-cta__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.post-cta p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .85; }
.post-cta .post-cta__title { opacity: 1; }
.post-cta .btn { background: var(--on-ink); color: var(--ink); justify-self: start; }
.post-cta .btn::before { background: var(--ink); }
@media (min-width: 700px) { .post-cta { grid-template-columns: auto 1fr auto; padding: 28px 32px; } }

.post-more { max-width: var(--container); margin: 80px auto 0; }
.post-more h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 22px; }

/* The printable pages (the phrase card): just the content on paper. */
@media print {
  .topnav-wrap, .footer, .post-cta, .post-more, .post-cover, .post-fig, .no-print { display: none !important; }
  body { background: #fff; }
  .post { padding: 0; max-width: none; }
  .post-body, .post-faq { max-width: none; font-size: 12pt; color: #000; }
  .table-wrap { overflow: visible; border-color: #999; break-inside: avoid; }
  .table-wrap th { background: #eee; }
  html.motion [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* The app, inside a post (build.mjs puts it before the third section) and
   under the blog's featured post: a white card with the logo and Get Awder. */
.post-app {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 18px 20px; margin: 8px 0 32px; color: var(--text-2);
}
.post-app .logo { width: 44px; height: 44px; }
.post-app p { margin: 0; font-size: 16px; line-height: 1.5; }
.post-app .post-app__title { color: var(--text); font-weight: 600; margin-bottom: 2px; }
.post-app .btn { grid-column: 1 / -1; justify-self: start; text-decoration: none; color: var(--on-ink); min-height: 44px; }
@media (min-width: 700px) {
  .post-app { grid-template-columns: auto 1fr auto; }
  .post-app .btn { grid-column: auto; }
}
.blog-app { margin: 0 0 24px; }
.crumbs a:hover { color: var(--text); }
@media print { .post-app { display: none !important; } }

/* Easier reading: photos in the text, two side by side, numbered steps as
   cards, and a short tip. Flat white cards, like the rest of the site. */
.post-fig { margin: 8px 0 28px; }
.post-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); background: var(--subtle); }
.post-fig figcaption { font-size: 15px; line-height: 1.45; color: var(--text-2); margin: 10px 4px 0; }
.post-fig__credit { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.post-fig__credit a { text-decoration: underline; text-underline-offset: 2px; }
.fig-pair { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin: 8px 0 12px; }
@media (min-width: 560px) { .fig-pair { grid-template-columns: 1fr 1fr; } .fig-pair .post-fig { margin-bottom: 16px; } }
.post-body ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 10px; margin: 0 0 24px; }
.post-body ol.steps > li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 14px 16px 14px 60px; min-height: 52px;
}
.post-body ol.steps > li::before {
  content: counter(step); position: absolute; left: 14px; top: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.post-body ol.steps > li strong { display: block; }
.post-body .tip {
  background: var(--subtle); border-radius: var(--r-md); padding: 14px 18px; margin: 0 0 24px;
  font-size: 16px; color: var(--text);
}
.post-body .tip p:last-child { margin: 0; }
.post-body .short ul { list-style: none; padding: 0; gap: 8px; margin: 8px 0 0; }
.post-body .short li { padding-left: 26px; position: relative; }
.post-body .short li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ink);
}
