/* Hallmark · shape: Narrative Workflow (swapped from the draw's Conversational FAQ: a redesign keeps the page's headings, which are statements) · genre: editorial · theme: brand · redesign: full · hero: Settled (/: swapped from the draw's Corridor, since editorial refuses a centred-everything hero and the review read it as the stock app hero), Banner (inner pages) · nav: edge-aligned · footer: mast (swapped from the draw's letter close: nineteen real links) · signature: one biryani order priced on three apps, cheapest first, its prices set as large as the offer, beside the headline
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · job: try · draw: 74ebe7 · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, a first run here has no log to vary against; the sections take seven different compositions instead */
/* Hallmark · waive 84 · the app's real comparison screen names other delivery apps and shows their logos, which GetDirect's public pages never carry · the sample keeps App A and App B */
/* Hallmark · waive 44c · the inner pages take the stamp's second posture, Banner, which ends at half the screen · the linter reads the first posture, Settled, for every route */
/* Hallmark · waive 78 · the article, the legal documents and the blog index are long documents and a card index whose h2s are reading heads and item titles · a head at the section size would outweigh the text it heads */
/* Hallmark · waive 39b · the press-kit swatches and the sign-up options are whole-card buttons · the card is the hit target, so its height is the card's */
/* Hallmark · reworded "Teal · identity and actions" to "Teal: identity and actions" and "Deal orange · offers only" to "Deal orange: offers only" · 63 names the middle-dot join */
/* Hallmark · dropped the marquee strip under the hero · 69 names it: each of its five phrases repeats a section below, so the editable marquee field no longer shows */
/* Hallmark · dropped logo-on-teal.svg · the bar is paper now, so it carries /logo.svg, the guidelines' logo for light backgrounds */
@import url("./tokens.css");
@import url("./base.css");

/* ── the canvas ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section-gap); }
.section--rule { border-top: 1px solid var(--color-rule); }
.section--well { background: var(--color-paper-2); }
.section--night { background: var(--color-night); color: var(--color-night-ink); }
.section--night h2 { color: var(--color-night-ink); }
.section--night .lead { color: var(--color-night-muted); }
.section--night :focus-visible, .site-foot :focus-visible { outline-color: var(--color-night-ink); }
.lead { color: var(--color-ink-2); }
.price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.sel { user-select: all; }
.head-block { display: grid; gap: var(--space-md); align-content: start; }
.head-block p { color: var(--color-ink-2); max-width: 46ch; }
.aside-grid, .close, .quotes, .moment, .stages, .page-head__in, .contact, .legal-group, .pk-sec, .posts, .values { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }

/* ── controls, every state ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-text); border-color: var(--color-accent-text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { background: transparent; border-color: var(--color-muted); color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); }
.btn svg { width: 18px; height: 18px; }

/* the store badges: the page's one action, so they carry the ink */
.stores { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.store { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: 0 var(--space-lg) 0 var(--space-md); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.store:hover { background: var(--color-ink-2); }
.store:active { transform: translateY(1px); }
.store:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store span { display: grid; text-align: left; line-height: 1.15; }
.store small { font-size: var(--text-xs); opacity: 0.8; }
.store b { font: 600 var(--text-md)/1.15 var(--font-display); }

/* ── the bar: edge-aligned on paper ─────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: var(--z-toast); background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.site-head { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: 1px solid var(--color-paper); transition: border-color var(--dur-short) var(--ease-out); }
.site-head.scrolled { border-bottom-color: var(--color-rule); }
.site-head__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.wordmark { display: inline-flex; flex-shrink: 0; border-radius: var(--radius-input); }
.wordmark img { height: 36px; width: auto; }
.site-nav { display: flex; gap: var(--space-lg); margin-left: auto; }
.site-nav a { padding-block: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.site-nav a:hover { color: var(--color-ink); }
.site-nav a.is-active { color: var(--color-accent-text); }
.site-head__actions { display: flex; align-items: center; gap: var(--space-sm); }
.site-head__actions .btn { min-height: 44px; }
.site-head__link { margin-right: var(--space-xs); padding-block: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.site-head__link:hover { color: var(--color-ink); }
.menu-toggle { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.menu-toggle:hover { background: var(--color-paper-2); }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 60rem) {
  .site-nav, .site-head__link { display: none; }
  .site-head__actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 40rem) { .site-head__actions .btn { display: none; } }

/* the menu under 60rem */
.menu { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-xl); overflow-y: auto; padding: var(--space-sm) var(--gutter) var(--space-xl); background: var(--color-paper); opacity: 0; visibility: hidden; transition: opacity var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
/* visible at once on open, so focus can land in it; hidden only once the fade has run on close */
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-long) var(--ease-out), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu__close { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.menu__close:hover { background: var(--color-paper-2); }
.menu__list { list-style: none; margin: 0; padding: 0; align-self: start; }
.menu__list li { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu__list a { display: grid; gap: var(--space-3xs); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); text-decoration: none; }
.menu__list b { font: 600 var(--text-xl)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.menu__list a:hover b { color: var(--color-accent-text); }
.menu__list span { font-size: var(--text-sm); color: var(--color-muted); }
.menu__foot { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); }
body.lock { overflow: hidden; }

/* ── the home hero: Settled, the headline beside the price board ─────────── */
/* The row stretches to the first screen, so the stage fills the right half
   top to bottom instead of floating in bare paper. */
.hero { min-height: calc(100svh - 73px); display: grid; padding-block: var(--space-lg) var(--space-2xl); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3xl); row-gap: var(--space-xl); }
.hero__text { display: grid; justify-items: start; align-content: center; }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 4.4vw + 1rem, 6rem); line-height: 0.96; }
.hero .lead { max-width: 34ch; margin-top: var(--space-lg); }
.hero__get { margin-top: var(--space-xl); }
.hero__facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.hero__facts li { display: flex; align-items: center; gap: var(--space-xs); }
.hero__facts svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-accent-text); }

/* the stage: the brand's teal paper (as on the cuisines spread), framed faintly by
   the mark's two arcs, which face each other across the board as they do in the logo */
.hero__stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: var(--space-xl) clamp(var(--space-md), 2.5vw, var(--space-xl)); border-radius: var(--radius-card); background: var(--color-paper-3); }
.hero__stage::before, .hero__stage::after { content: ""; position: absolute; z-index: -1; height: 72%; aspect-ratio: 110 / 179; background: var(--color-accent); opacity: 0.14; -webkit-mask: url(/mark-arc.svg) center / contain no-repeat; mask: url(/mark-arc.svg) center / contain no-repeat; }
.hero__stage::before { left: -6%; bottom: -16%; }
.hero__stage::after { right: -6%; top: -16%; rotate: 180deg; }

/* the signature: one order priced on three apps, cheapest first, set as large as the offer, on a card like the app's own screen */
.board { margin: 0; display: grid; gap: var(--space-lg); width: min(100%, 34rem); padding: clamp(var(--space-lg), 2.4vw, var(--space-xl)); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card), var(--shadow-lift); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.board__dish { display: flex; align-items: center; gap: var(--space-md); }
.board__dish img { width: 64px; height: 64px; border-radius: var(--radius-input); object-fit: cover; }
.board__dish span { display: grid; }
.board__dish b { font: 600 var(--text-xl)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.board__dish small { font-size: var(--text-sm); color: var(--color-muted); }
.board__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-ink); }
.board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-lg); padding-block: calc(var(--space-xl) - var(--space-2xs)); border-bottom: 1px solid var(--color-rule); }
.board__row b { font: 600 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink); }
.board__row small { grid-column: 1; justify-self: start; font-size: var(--text-sm); color: var(--color-muted); }
.board__row .price { grid-column: 2; grid-row: 1 / span 2; font-size: var(--text-display-s); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; color: var(--color-ink-2); }
.board__row--win .price { color: var(--color-accent-text); }
.board__row--win small { margin-top: var(--space-3xs); padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.board__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.board__foot b { font: 600 var(--text-xl)/1.2 var(--font-display); color: var(--color-deal-strong); }

/* ── the sample: the app's comparison screen, built ─────────────────────── */
.sample { display: grid; gap: var(--space-xs); padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card), var(--shadow-lift); outline: 1px solid var(--color-rule); outline-offset: -1px; text-align: left; font-size: var(--text-sm); }
.sample__note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink-2); }
.sample__note b { color: var(--color-accent-text); font-weight: 600; }
.sample__loc, .sample__search { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); }
.sample__search { min-height: 40px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); }
.sample__loc svg, .sample__search svg { width: 16px; height: 16px; flex-shrink: 0; }
.sample__dish { display: flex; align-items: center; gap: var(--space-sm); padding-block: var(--space-2xs); }
.sample__dish img { width: 44px; height: 44px; border-radius: var(--radius-input); object-fit: cover; }
.sample__dish span { display: grid; }
.sample__dish b { font: 600 var(--text-md)/1.2 var(--font-display); color: var(--color-ink); }
.sample__dish small, .sample__live { font-size: var(--text-xs); color: var(--color-muted); }
.sample__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.sample__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); min-height: 52px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-input); }
.sample__row b { display: block; color: var(--color-ink); font-weight: 600; }
.sample__row small { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.sample__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink-2); font: 600 var(--text-sm)/1 var(--font-display); }
.sample__mark img { width: 18px; height: auto; }
.sample__amt { font-size: var(--text-lg); color: var(--color-ink); text-align: right; }
.sample__row--win { border-color: var(--color-accent); background: var(--color-paper-2); }
.sample__row--win .sample__amt { color: var(--color-accent-text); }
.sample__row--win small.sample__best { justify-self: start; width: max-content; margin-top: var(--space-3xs); padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.sample__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-2xs); }
.sample__save { color: var(--color-deal-strong); font-weight: 600; }
.sample__order { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }

/* ── how it works: the head, the moments, the stages ────────────────────── */
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; }
.split-head h2 { grid-column: 1 / span 6; }
.split-head .lead { grid-column: 8 / span 5; }

.switcher { margin-top: var(--space-2xl); }
.tabs { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-surface); margin-bottom: var(--space-xl); }
.tabs button { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-ink-2); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs button:hover { background: var(--color-paper-2); color: var(--color-ink); }
.tabs button[aria-selected="true"] { background: var(--color-paper-3); color: var(--color-ink); }
.tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
html:not(.js) .tabs { display: none; }
.moment { align-items: center; row-gap: var(--space-xl); }
.js .moment:not(.is-active) { display: none; }
html:not(.js) .moment + .moment { margin-top: var(--space-3xl); }
.moment__text { grid-column: 1 / span 5; display: grid; gap: var(--space-md); }
.moment__text h3 { max-width: 15ch; font-size: var(--text-3xl); line-height: 1.08; }
.moment__text p { max-width: 45ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }
.moment__screen { grid-column: 8 / -1; justify-self: start; width: min(100%, 420px); }

.stages { list-style: none; margin: var(--section-gap-s) 0 0; padding: 0; counter-reset: stage; row-gap: var(--space-3xl); align-items: start; }
.stage { counter-increment: stage; display: grid; gap: var(--space-lg); align-content: start; }
.stage:first-child { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.stage:first-child .stage__photo { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.stage:first-child .stage__text { grid-column: 1 / span 6; }
.stage:nth-child(2) { grid-column: 1 / span 7; }
.stage:nth-child(3) { grid-column: 8 / span 5; }
.stage:nth-child(n+2) .stage__photo { aspect-ratio: 4 / 3; }
.stage__photo { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__text { display: grid; gap: var(--space-sm); }
.stage__text h3 { font-size: var(--text-2xl); line-height: 1.1; }
.stage__text h3::before { content: counter(stage) ". "; }
.stage__text p { max-width: 46ch; color: var(--color-ink-2); }
.stage__facts { list-style: none; margin: var(--space-2xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.stage__facts li { padding-top: var(--space-xs); border-top: 2px solid var(--color-accent-2); }

/* ── why: the features as rows beside their head ────────────────────────── */
.aside-grid > .head-block { grid-column: 1 / span 4; }
.aside-grid > .rows, .aside-grid > .faq, .aside-grid > .prose, .aside-grid > .values, .aside-grid > .statement { grid-column: 5 / -1; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.row:last-child { border-bottom: 1px solid var(--color-rule); }
.row h3 { font-size: var(--text-title); }
.row p { color: var(--color-ink-2); }

/* ── cuisines: the names on the photograph's quiet half ─────────────────── */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-3); }
.spread__photo { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 1914 / 822; object-fit: cover; }
.spread__text { grid-column: 1 / span 5; grid-row: 1; z-index: var(--z-base); display: grid; gap: var(--space-lg); padding: var(--space-xl) 0 var(--space-xl) var(--space-2xl); }
.cuisines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.3em; font: 600 var(--text-2xl)/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--color-ink-2); }
.cuisines li:not(:last-child)::after { content: ","; }

/* ── the savings: three figures on the night band ───────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-2xl); }
.stats > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-night-rule); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font: 600 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; color: var(--color-night-ink); }
.stats span { display: block; max-width: 24ch; margin-top: var(--space-sm); color: var(--color-night-muted); }

/* ── reviews: quotes as entered ─────────────────────────────────────────── */
.quotes { row-gap: var(--space-2xl); margin-top: var(--space-2xl); }
.quote { margin: 0; display: grid; align-content: space-between; gap: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); grid-column: span 3; }
.quote:first-child { grid-column: 1 / span 6; }
.quote blockquote { margin: 0; }
.quote p { color: var(--color-ink-2); }
.quote:first-child p { font: 600 var(--text-2xl)/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--color-ink); }
.quote figcaption { display: grid; font-size: var(--text-sm); color: var(--color-muted); }
.quote figcaption b { color: var(--color-ink); font-weight: 600; }

/* ── questions ──────────────────────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--color-rule); }
.faq details:last-child { border-bottom: 1px solid var(--color-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); list-style: none; cursor: pointer; font: 600 var(--text-title)/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent-text); }
.faq summary:focus-visible { outline-offset: 4px; border-radius: var(--radius-input); }
.faq .chev { width: 24px; height: 24px; flex-shrink: 0; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .ans { max-width: 60ch; padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* ── the close ──────────────────────────────────────────────────────────── */
.close { row-gap: var(--space-xl); align-items: end; }
.close h2 { grid-column: 1 / span 7; max-width: 13ch; font-size: var(--text-display); }
.close__get { grid-column: 8 / span 5; display: grid; gap: var(--space-lg); }

/* ── the footer: a mast, the wordmark over the links ────────────────────── */
.site-foot { background: var(--color-night); color: var(--color-night-muted); padding-block: var(--space-3xl) var(--space-xl); }
.site-foot__mast { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-night-rule); }
.wordmark--mast img { height: clamp(56px, 7vw, 112px); }
.site-foot__mast p { max-width: 45ch; margin-top: var(--space-md); }
.site-foot__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); padding-block: var(--space-2xl); }
.site-foot__cols > div { grid-column: span 4; }
.site-foot h2 { max-width: none; margin-bottom: var(--space-md); font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: 0; color: var(--color-night-ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.site-foot a { color: var(--color-night-muted); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.site-foot a:hover { color: var(--color-night-ink); text-decoration: underline; }
.site-foot__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-night-rule); font-size: var(--text-sm); }
.socials { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-night-rule); border-radius: var(--radius-pill); color: var(--color-night-ink); transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.socials a:hover { border-color: var(--color-night-muted); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }

/* the phone's download bar */
.mbar { display: none; }
@media (max-width: 60rem) {
  .mbar { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); background: var(--color-surface); border-top: 1px solid var(--color-rule); }
  .mbar div { display: grid; }
  .mbar b { font: 600 var(--text-md)/1.2 var(--font-display); color: var(--color-ink); }
  .mbar span { font-size: var(--text-xs); color: var(--color-muted); text-wrap: pretty; }
  .mbar .btn { margin-left: auto; min-height: 44px; }
  .mbar { transition: transform var(--dur-long) var(--ease-out); }
  .mbar.is-hidden { transform: translateY(100%); }
  body { padding-bottom: 76px; }
}

/* ── inner pages: a Banner head ─────────────────────────────────────────── */
.page-head { padding-block: var(--space-3xl) var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
.page-head__in { row-gap: var(--space-lg); align-items: end; }
.crumbs { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { color: var(--color-ink-2); }
.crumbs a:hover { color: var(--color-ink); }
.page-head h1 { grid-column: 1 / span 7; max-width: 15ch; }
.page-head .lead { grid-column: 8 / span 5; }
.page-head .btn { grid-column: 8 / span 5; justify-self: start; }
.page-head__in > :nth-child(2) { --i: 1; } .page-head__in > :nth-child(3) { --i: 2; } .page-head__in > :nth-child(4) { --i: 3; }
.page-body { padding-block: var(--space-2xl) var(--section-gap); }

/* reading: about, an article, a legal document */
.prose { max-width: 36rem; font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { max-width: 30ch; margin-top: var(--space-2xl); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-xl); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-sm); }
.prose p, .prose li { color: var(--color-ink-2); line-height: 1.7; }
.prose ul, .prose ol { display: grid; gap: var(--space-xs); padding-left: var(--space-lg); }
.prose a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--color-ink); }
.prose strong, .prose b { color: var(--color-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.callout { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); }
.callout a, .note a, .buyer-note a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.callout--warn { background: var(--color-deal-soft); color: var(--color-ink); }
.prose * + .callout { margin-top: var(--space-2xl); }
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: start; }
.doc__rail { grid-column: 1 / span 3; position: sticky; top: var(--space-3xl); display: grid; gap: var(--space-2xs); }
.doc > .prose { grid-column: 5 / -1; }
.doc__photo { aspect-ratio: 21 / 9; margin-bottom: var(--space-2xl); }
.note { max-width: 60ch; margin-top: var(--space-2xl); color: var(--color-ink-2); }
.note:first-child { margin-top: 0; }

/* about */
.about-photo { aspect-ratio: 21 / 9; margin-bottom: var(--space-3xl); }
.about-photo img { object-position: 50% 30%; }
.values { row-gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.values li { grid-column: span 4; display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-lg); border-top: 2px solid var(--color-accent-2); }
.values h3 { font-size: var(--text-title); }
.values p { color: var(--color-ink-2); }
.about-block { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.statement p:first-child { max-width: 28ch; font: 600 var(--text-display-s)/1.08 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.statement p + p { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); }
.statement a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.statement a:hover { color: var(--color-ink); }

/* contact */
.contact { row-gap: var(--space-2xl); align-items: start; }
.contact > .form { grid-column: 1 / span 6; }
.contact__side { grid-column: 8 / span 5; display: grid; gap: var(--space-xl); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.facts > div:last-child { border-bottom: 1px solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink); }
.follow { display: grid; gap: var(--space-sm); }
.follow b { font-weight: 600; color: var(--color-ink); }
.follow .socials a { border-color: var(--color-muted); color: var(--color-accent-text); }
.follow .socials a:hover { border-color: var(--color-accent-text); background: var(--color-paper-2); }

/* forms */
.form { display: grid; gap: var(--space-lg); }
.form h2 { font-size: var(--text-2xl); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-ink); font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 144px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.err { font-size: var(--text-sm); color: var(--color-error); }
.form .btn { justify-self: start; }
.ok, .fail { padding: var(--space-md); border-radius: var(--radius-input); }
.ok { background: var(--color-paper-2); color: var(--color-success); }
.fail { background: var(--color-deal-soft); color: var(--color-error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
html.js .reg-form.is-collapsed { display: none; }

/* sign up: three ways to register */
.options { list-style: none; margin: 0 0 var(--space-2xl); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.option { display: grid; align-content: start; gap: var(--space-sm); width: 100%; height: 100%; min-height: 220px; padding: var(--space-lg) 0 0; border: 0; border-top: 2px solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.option:hover, .option[aria-expanded="true"] { border-top-color: var(--color-accent); }
.option:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.option b { font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.01em; }
.option__line { color: var(--color-ink-2); }
.option__go { margin-top: auto; font-weight: 600; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.options-label { margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.reg-form { max-width: 640px; padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.buyer-note { margin-top: var(--space-2xl); color: var(--color-ink-2); }

/* the blog */
.posts { row-gap: var(--space-2xl); }
.post-card { grid-column: span 4; display: grid; align-content: start; gap: var(--space-sm); color: inherit; text-decoration: none; }
.post-card:first-child { grid-column: span 6; }
.post-card:nth-child(2), .post-card:nth-child(3) { grid-column: span 3; }
.post-card .photo { display: block; aspect-ratio: 4 / 3; margin-bottom: var(--space-xs); }
.post-card h2 { max-width: 26ch; font-size: var(--text-title); transition: color var(--dur-short) var(--ease-out); }
.post-card:first-child h2 { font-size: var(--text-2xl); }
.post-card p { color: var(--color-ink-2); }
.post-card__state { font-size: var(--text-sm); color: var(--color-muted); }
a.post-card:hover h2 { color: var(--color-accent-text); }
a.post-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-card); }

/* legal: the documents grouped as the apps group them */
.legal-group { padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); }
.legal-group:last-child { border-bottom: 1px solid var(--color-rule); }
.legal-group:first-child { padding-top: 0; border-top: 0; }
.legal-group h2 { grid-column: 1 / span 4; }
.legal-list { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; }
.legal-list a { display: grid; gap: var(--space-3xs); padding-block: var(--space-sm); text-decoration: none; }
.legal-list li + li a { border-top: 1px solid var(--color-rule); }
.legal-list b { font: 600 var(--text-lg)/1.3 var(--font-display); color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.legal-list span { font-size: var(--text-sm); color: var(--color-ink-2); }
.legal-list a:hover b { color: var(--color-accent-text); }
.legal-list a:focus-visible { outline-offset: 4px; border-radius: var(--radius-input); }

/* the brand and press kit */
.pk-sec { row-gap: var(--space-xl); padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.pk-sec:first-child { padding-top: 0; border-top: 0; }
.pk-sec > .head-block { grid-column: 1 / span 4; }
.pk-sec > .pk-body { grid-column: 5 / -1; display: grid; gap: var(--space-xl); }
.pk-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.pk-logo { margin: 0; display: grid; gap: var(--space-sm); align-content: start; }
.pk-stage { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); min-height: 168px; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-surface); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.pk-stage img { width: auto; height: 48px; }
.pk-stage--night { background: var(--color-night); outline-color: var(--color-night); }
.pk-mark-night { display: grid; place-items: center; padding: var(--space-xs); border-radius: var(--radius-input); background: var(--color-night); }
.pk-mark-night img { height: 40px; }
.pk-logo figcaption { display: grid; gap: var(--space-2xs); }
.pk-logo figcaption b { font: 600 var(--text-lg)/1.3 var(--font-display); color: var(--color-ink); }
.pk-logo figcaption span { font-size: var(--text-sm); color: var(--color-ink-2); }
.pk-files { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-2xs); }
.pk-files a { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-text); }
.pk-rules { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); color: var(--color-ink-2); }
.pk-group { display: grid; gap: var(--space-sm); }
.pk-group h3 { font: 600 var(--text-md)/1.3 var(--font-body); letter-spacing: 0; color: var(--color-ink); }
.pk-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.pk-sw { position: relative; display: grid; gap: var(--space-3xs); padding: 0 0 var(--space-sm); overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.pk-sw:hover { border-color: var(--color-muted); }
.pk-sw:active { transform: translateY(1px); }
.pk-sw:focus-visible, .pk-copy:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pk-chip { height: 72px; margin-bottom: var(--space-xs); border-bottom: 1px solid var(--color-rule); background: var(--sw); }
.pk-sw b, .pk-sw code, .pk-sw small { padding-inline: var(--space-sm); }
.pk-sw b { font-size: var(--text-sm); font-weight: 600; }
.pk-sw code { font-size: var(--text-sm); }
.pk-sw small { font-size: var(--text-xs); color: var(--color-muted); }
.pk-copied { position: absolute; top: var(--space-xs); right: var(--space-xs); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-xs); opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.pk-sw.is-copied .pk-copied { opacity: 1; }
.pk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.pk-type { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--color-accent-2); }
.pk-type__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.pk-type__top b { font-size: var(--text-xl); font-weight: 600; }
.pk-type__top a, .pk-actions a { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-text); }
.pk-d { font-family: var(--font-display); }
.pk-b { font-family: var(--font-body); }
.pk-role, .pk-weights { font-size: var(--text-sm); color: var(--color-muted); }
.pk-spec { font-size: var(--text-2xl); line-height: 1.25; color: var(--color-ink); }
.pk-spec--700 { font-weight: 700; } .pk-spec--600 { font-weight: 600; } .pk-spec--500 { font-weight: 500; } .pk-spec--400 { font-weight: 400; }
.pk-quote { margin: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-accent); font: 600 var(--text-xl)/1.45 var(--font-display); color: var(--color-ink); }
.pk-actions, .pk-contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); color: var(--color-ink-2); }
.pk-contact .sel, .pk-phone { font: 600 var(--text-xl)/1.3 var(--font-display); color: var(--color-ink); }
.pk-copy { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.pk-copy:hover { background: var(--color-paper-2); }
.pk-note { color: var(--color-ink-2); }
.pk-note a { color: var(--color-accent-text); }

/* ── under 60rem every composition stacks in reading order ──────────────── */
@media (max-width: 60rem) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .split-head h2, .split-head .lead, .moment__text, .moment__screen, .stage:nth-child(n), .stage:first-child .stage__text, .aside-grid > .head-block, .aside-grid > .rows, .aside-grid > .faq, .aside-grid > .prose, .aside-grid > .values, .aside-grid > .statement, .doc__rail, .doc > .prose, .close h2, .close__get, .quote:nth-child(n), .page-head h1, .page-head .lead, .page-head .btn, .contact > .form, .contact__side, .legal-group h2, .legal-list, .pk-sec > .head-block, .pk-sec > .pk-body, .post-card:nth-child(n), .values li { grid-column: 1 / -1; }
  .aside-grid { row-gap: var(--space-xl); }
  .doc__rail { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
  .stage:nth-child(n+2) .stage__photo { aspect-ratio: 16 / 9; }
  .spread { display: block; overflow: visible; background: none; border-radius: 0; }
  .spread__text { padding: 0 0 var(--space-xl); }
  .spread__photo { aspect-ratio: 4 / 3; object-position: 78% 50%; border-radius: var(--radius-card); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div:nth-child(n) { padding: var(--space-md) 0; border-left: 0; border-top: 1px solid var(--color-night-rule); }
  .stats > div:first-child { border-top: 0; }
  .options, .pk-logos, .pk-types { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .option { min-height: 0; }
  .site-foot__cols > div { grid-column: span 6; }
  .page-head { padding-block: var(--space-2xl) var(--space-xl); }
}
@media (max-width: 40rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__stage { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .store { min-height: 48px; padding: 0 var(--space-md) 0 var(--space-sm); gap: var(--space-xs); }
  .row, .facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .site-foot__cols > div { grid-column: 1 / -1; }
  .cuisines, .quote:first-child p { font-size: var(--text-xl); }
  .pk-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── motion ─────────────────────────────────────────────────────────────── */
/* Between pages: the browser's own cross-document view transition. The bar
   and the phone's download bar hold still; a blog card's photo grows into
   its article's (they share post-img-{id}). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-head { view-transition-name: site-head; }
.mbar { view-transition-name: site-mbar; }
::view-transition-old(root) { animation: fade-out var(--dur-short) var(--ease-in) both; }
::view-transition-new(root) { animation: fade-in var(--dur-long) var(--ease-out) both; }
::view-transition-group(*) { animation-duration: var(--dur-long); animation-timing-function: var(--ease-out); }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* the first screen settles once */
.hero__text > *, .board, .page-head__in > * { animation: settle 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
/* the one reveal: sections arrive as they scroll in; visible without script */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .moment.is-active { animation: fade-in var(--dur-long) var(--ease-out); }
.faq details[open] .ans { animation: fade-in var(--dur-long) var(--ease-out); }
.ok:not([hidden]), .fail:not([hidden]) { animation: fade-in var(--dur-long) var(--ease-out); }
.field [aria-invalid="true"] { animation: shake 320ms var(--ease-out); }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .board, .page-head__in > *, .js .moment.is-active, .faq details[open] .ans, .ok:not([hidden]), .fail:not([hidden]), .field [aria-invalid="true"] { animation: none; }
  .js [data-reveal], .menu__list li { opacity: 1; transform: none; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}
