/* Casera shopper pages. Tokens and components from prototypes/stall-page/pilot.html (branch
   prototype/stall-page), which takes them from docs/concept.html, except the colours: cream, forest green and oxblood
   replace the concept's aguayo magenta. Light only. One phone column, max 30rem. */
:root {
  --bg: #F7EEDF; --surface: #FFFBF4; --sunk: #EFE3CE; --fg: #22261A; --muted: #5E5A48; --line: #E2D5BD;
  --accent: #3A4A14; --accent-soft: #E4EAD5; --on-accent: #FFFFFF;
  --mayor: #6B1408; --mayor-soft: #F3DED8; --on-mayor: #FFFFFF;
  --ok: #1D7A4E; --ok-soft: #DFF0E6; --warn: #8A5300; --warn-soft: #FBEBD0;
  --brand: #6B1408; --on-dark: #FFFFFF;
  --photo-btn: rgba(255, 255, 255, 0.94); --photo-btn-ink: #22261A; --photo-shadow: rgba(0, 0, 0, 0.22); --photo-scrim: rgba(0, 0, 0, 0.66); --shadow: rgba(34, 38, 26, 0.16);
  --bezel: #22261A; /* the phone frame round screenshots */
  --font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.45 var(--font-body); margin: 0; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(58, 74, 20, .15); } /* the accent's RGB; a token can't take alpha */
html { scroll-padding-bottom: 88px; } /* the sticky bag bar must not cover a focused tile */
button, .btn, .chip, .scard, .saved-row a { transition: transform .1s ease-out; }
button:active, .btn:active, .chip:active, .scard:active, .saved-row a:active { transform: scale(.96); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.col { max-width: 30rem; margin: 0 auto; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.pad { padding-left: var(--gl); padding-right: var(--gr); }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph { background: var(--sunk); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; font: 700 20px/1.2 var(--font-body); padding-block: 12px 10px; }

/* tags: one shape, colour by meaning */
.tag { display: inline-flex; align-items: center; gap: 4px; font: 800 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; white-space: nowrap; }
.tag-mayor { background: var(--mayor); color: var(--on-mayor); }
.tag-out { background: var(--fg); color: var(--bg); }

/* skip link: out of sight until it takes focus */
.skip { position: fixed; top: 8px; left: var(--gl); z-index: 100; display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* app bar */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 10px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font: 400 26px/1 var(--font-display); color: var(--accent); letter-spacing: .01em; text-decoration: none; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { padding: 6px 11px; font-weight: 700; font-size: 13px; color: var(--muted); min-height: 44px; min-width: 44px; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.lang button:focus-visible { outline-offset: -3px; } /* .lang clips its overflow, which cut the ring */

/* home */
.market { display: grid; gap: 6px; padding-block: 4px 14px; }
.market h1 { font: 400 28px/1.1 var(--font-display); }
.promise { display: flex; gap: 10px; align-items: flex-start; padding-block: 4px; font-weight: 600; }
.promise .ico { color: var(--ok); margin-top: 1px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--muted); border-radius: 10px; padding: 0 12px; min-height: 48px; margin-block: 12px; }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; padding: 12px 0; font-size: 16px; } /* under 16px, iOS zooms on focus */
a.ptile { color: inherit; text-decoration: none; font-weight: 400; transition: transform .1s ease-out; }
a.ptile:active { transform: scale(.96); }
.ptile .at { font-size: 13px; color: var(--muted); }
.more { padding-block: 4px 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--muted); background: var(--surface); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.chip[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.mayor[aria-current] { background: var(--mayor); border-color: var(--mayor); color: var(--on-mayor); }
.stalls { display: grid; gap: 14px; }
.scard { display: block; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); color: inherit; text-decoration: none; font-weight: 400; }
.scard .ph { aspect-ratio: 16 / 10; }
.scard .tag { position: absolute; top: 10px; left: 10px; }
.scard .body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px 14px; }
.scard .name { font: 800 18px/1.15 var(--font-body); overflow-wrap: anywhere; }
.scard .name .muted { font-weight: 600; font-size: 15px; }
.scard .meta { font-size: 13.5px; color: var(--muted); }
.mono-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: var(--brand); font: 400 22px/1 var(--font-display); color: var(--on-dark); flex: none; border: 3px solid var(--surface); }
.saved-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.saved-row a { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 4px; color: inherit; text-decoration: none; }
.saved-row .mono-av { width: 36px; height: 36px; font-size: 16px; border: 0; }

/* stall page */
.hero { position: relative; aspect-ratio: 16 / 10; }
.hero .ph { position: absolute; inset: 0; }
.hero-btns { position: absolute; top: 10px; left: var(--gl); right: var(--gr); display: flex; justify-content: flex-end; }
.rb { width: 44px; height: 44px; border-radius: 50%; background: var(--photo-btn); color: var(--photo-btn-ink); display: grid; place-items: center; box-shadow: 0 2px 8px var(--photo-shadow); }
.rb[aria-pressed="true"] { color: var(--brand); }
.rb[aria-pressed="true"] .ico { fill: currentColor; }
.ident { position: relative; display: grid; gap: 8px; padding-block: 0 14px; }
.ident .mono-av { width: 64px; height: 64px; font-size: 28px; margin-top: -32px; border-width: 4px; border-color: var(--bg); }
.ident h1 { font: 400 30px/1.05 var(--font-display); }
.ident .where { font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.rep { font-weight: 700; color: var(--fg); }
ul.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.trust .ico { color: var(--accent); margin-top: 1px; }
.trust b { display: block; }
.trust small { color: var(--muted); font-size: 13px; }
.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid var(--line); margin-top: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 13px 12px 11px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; min-height: 48px; }
.tabs button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); }
.tabs button.mayor[aria-pressed="true"] { color: var(--mayor); border-color: var(--mayor); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding-block: 0 14px; }
.ptile { display: grid; gap: 6px; align-content: start; text-align: left; }
.ptile[aria-disabled] { cursor: default; }
.ptile .ph { aspect-ratio: 1; border-radius: 12px; }
.ptile .tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.ptile .pn { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ptile .gl { font-size: 13px; color: var(--muted); }
.price { font-size: 15px; }
.price b { font: 700 16px/1 var(--font-body); }
.price span { color: var(--muted); }
.ptile.out .ph img { filter: grayscale(1) contrast(.8) brightness(1.1); opacity: .55; }
.ptile.out .pn, .ptile.out .price { color: var(--muted); }
.credit { font-size: 13px; color: var(--muted); padding-block: 4px 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }
.toast:empty { display: none; }

/* pages and forms */
.page-h { padding-block: 14px 8px; }
.page-h h1 { font: 400 26px/1.1 var(--font-display); }
.stack { display: grid; gap: 12px; padding-block: 6px 16px; }
.lbl { font: 700 15px/1.3 var(--font-body); display: block; margin-bottom: -4px; }
.field { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); min-height: 48px; font-size: 17px; }
.field:focus { border-color: var(--accent); outline: 0; }
.field::placeholder { color: var(--muted); opacity: 1; }
.code { font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.help { font-size: 13.5px; color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 14px; font-weight: 800; font-size: 16px; padding: 12px 16px; }
.btn-p { background: var(--accent); color: var(--on-accent); }
.notice { border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.notice.warn { background: var(--warn-soft); }
.pick { display: flex; gap: 10px; align-items: flex-start; padding-block: 4px; font-weight: 600; }
.pick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }

/* short terms and the FAQ */
.terms { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; margin: 0; padding: 10px 12px 10px 30px; display: grid; gap: 8px; font-size: 14px; }
.prose { display: grid; gap: 10px; padding-block: 4px 16px; }
.prose h2 { font: 800 18px/1.2 var(--font-body); padding-top: 12px; }
.prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* product sheet: a native <dialog>, so focus, Escape and the scrim come free */
.ptile .plus, .ptile .qty { position: absolute; right: 8px; bottom: 8px; height: 40px; border-radius: 999px; display: grid; place-items: center; box-shadow: 0 2px 8px var(--photo-shadow); }
.ptile .plus { width: 40px; background: var(--surface); color: var(--fg); }
.ptile .qty { min-width: 40px; padding: 0 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 30rem; max-height: 90vh; border: 0; border-radius: 18px 18px 0 0; padding: 0; background: var(--surface); color: var(--fg); overflow-y: auto; }
.sheet::backdrop { background: rgba(34, 38, 26, 0.5); } /* literal: older browsers don't pass variables to ::backdrop */
body:has(.sheet[open]) { overflow: hidden; }
.sheet-ph { position: relative; }
.sheet-ph .ph { aspect-ratio: 16 / 10; }
.sheet .x { position: absolute; top: 10px; right: 10px; }
.sheet-b { display: grid; gap: 16px; padding-block: 14px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sheet h2 { font: 800 22px/1.15 var(--font-body); }
.sheet .lbl { margin-bottom: 8px; }
.unit { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 56px; }
.unit .un { font-weight: 700; }
.unit .ug { font-size: 13px; color: var(--muted); display: block; }
.unit .up { font: 700 15px/1 var(--font-body); white-space: nowrap; display: grid; gap: 6px; justify-items: end; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .q { font-weight: 800; font-size: 18px; min-width: 7ch; text-align: center; }
.cap { font-size: 13px; color: var(--muted); margin-top: 6px; }
.btn-s { border: 2px solid var(--line); background: var(--surface); }
.linkish { position: relative; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.linkish::after { content: ""; position: absolute; inset: -16px -8px -10px; }

/* the bag bar: sticky at the foot of the column, so it never covers the last Products */
.bagbar { position: sticky; bottom: 0; z-index: 20; padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.bagbar a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 12px 16px; min-height: 56px; box-shadow: 0 8px 24px var(--shadow); text-decoration: none; transition: transform .1s ease-out; }
.bagbar a:active { transform: scale(.96); }
.bagbar b { font-size: 16px; }
.bagbar small { display: block; font-size: 13px; font-weight: 400; opacity: .9; }
.bagbar .tot { font: 700 18px/1 var(--font-body); white-space: nowrap; }
body:has(.bagbar:not([hidden])) .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* basket */
.group { background: var(--surface); border-radius: 14px; border: 1.5px solid var(--line); margin-block: 10px; overflow: hidden; }
.group-h { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.group-h .mono-av { width: 34px; height: 34px; font-size: 15px; border: 0; }
.group-h b { display: block; line-height: 1.15; }
.group-h small { color: var(--muted); }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 10px 12px; align-items: center; }
.line .ph { width: 52px; height: 52px; border-radius: 8px; }
.line .ln { font-weight: 700; line-height: 1.2; }
.line .lq { font-size: 13.5px; color: var(--muted); }
.line .lnote { font-size: 13px; font-style: italic; }
.line .lp { font: 700 15px/1 var(--font-body); text-align: right; white-space: nowrap; }
.line .edit { font-size: 13px; margin-top: 4px; display: block; }
.line.out .ph img { filter: grayscale(1); opacity: .55; }
.line.out .ln, .line.out .lp { text-decoration: line-through; color: var(--muted); }
.block { padding-block: 10px; }
.block .notice { margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--surface); min-height: 60px; cursor: pointer; }
.opt:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.opt b { display: block; }
.opt small { color: var(--muted); font-size: 13px; }
.opt .op { font: 700 15px/1 var(--font-body); white-space: nowrap; }
.sum { display: grid; gap: 6px; margin: 0; padding-block: 14px; }
.sum div { display: flex; justify-content: space-between; }
.sum dt, .sum dd { margin: 0; }
.sum dd { font-weight: 600; white-space: nowrap; }
.sum .big { font-weight: 800; font-size: 18px; border-top: 1.5px solid var(--line); padding-top: 8px; }
.sum .big dd { font-weight: 800; }
.empty { text-align: center; padding-block: 48px; display: grid; gap: 8px; justify-items: center; }
.empty .btn { max-width: 16rem; text-decoration: none; }

/* checkout */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { display: none; } /* Pickup: no zone or door */
legend { padding: 0; }
textarea.field { resize: vertical; }
a.btn { text-decoration: none; }
.door summary, .cancel summary { font-weight: 700; padding-block: 10px; min-height: 44px; cursor: pointer; }
.center { text-align: center; }

/* Basket status */
.notice.ok { background: var(--ok-soft); }
.ostatus { display: grid; gap: 12px; padding-block: 4px 8px; }
.ostatus h2 { font: 800 18px/1.2 var(--font-body); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tl li { display: grid; gap: 6px; align-content: start; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.tl li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.tl li.done, .tl li.now { color: var(--fg); font-weight: 700; }
.tl li.done::before { background: var(--ok); }
.tl li.now::before { background: var(--accent); }
.wait { padding: 12px; background: var(--sunk); color: var(--muted); font-weight: 600; font-size: 14px; }
.wait.ok { background: var(--ok-soft); color: var(--fg); }
.pack { aspect-ratio: 4 / 3; margin: 0; }
.cap2 { position: absolute; left: 10px; bottom: 10px; background: var(--photo-scrim); color: var(--on-dark); font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.notice.info { background: var(--accent-soft); }
.group .notice { margin: 0 12px 12px; }
/* change requests (.acts is below) */
.change summary { font-weight: 700; padding-block: 10px; min-height: 44px; cursor: pointer; }
.vreply { display: grid; gap: 8px; padding: 12px; background: var(--sunk); border-radius: 12px; }
.vreply audio { width: 100%; }
/* "Quitar" and Replacements, under an Order's Lines */
.remove { padding: 0 12px 4px; }
.remove summary { font-weight: 700; padding-block: 10px; min-height: 44px; cursor: pointer; }
.remove .pick { justify-content: space-between; align-items: center; }
.remove .pick .btn { width: auto; min-height: 44px; }
.acts { display: grid; gap: 4px; padding: 0 12px 12px; }
.repl { display: grid; grid-template-columns: 44px 1fr 4rem auto; gap: 8px; align-items: center; padding-block: 6px; }
.repl .ph { width: 44px; height: 44px; border-radius: 8px; }
.repl small { display: block; color: var(--muted); font-size: 13px; }
.repl .field { min-height: 44px; padding: 8px; text-align: center; }
.repl button { padding: 8px 12px; border-radius: 10px; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; min-height: 44px; }

/* hover feedback, for pointers only: a tone change in the existing tokens */
@media (hover: hover) {
  .btn-p:hover { background: var(--fg); }
  .btn-s:hover, .chip:not([aria-current]):hover { background: var(--sunk); }
  .scard:hover { border-color: var(--muted); }
}

/* About (/about/): the one page wider than the phone column, for a link in an email */
.col:has(.about) { max-width: 72rem; }
.about { display: grid; gap: 72px; padding-block: 12px 8px; }
.about section { scroll-margin-top: 16px; }
.about h2 { font: 400 clamp(28px, 4vw, 40px)/1.1 var(--font-display); }
.about h3 { font: 800 19px/1.2 var(--font-body); }
.about .lede { font-size: 17px; }
.about a.btn-s { color: var(--fg); }
.phone { margin: 0; padding: 6px; border-radius: 26px; background: var(--bezel); }
.phone img { width: 100%; height: auto; border-radius: 20px; }
.a-hero { display: grid; gap: 40px; align-items: center; }
.a-copy { display: grid; gap: 20px; }
.a-hero h1 { font: 400 clamp(36px, 4.2vw, 54px)/1.06 var(--font-display); }
.a-hero h1 span { display: block; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ctas .btn { width: auto; flex: 1 1 12rem; }
.a-note { font-weight: 600; font-size: 14.5px; }
/* Two phones on a soft disc, with two cards over their edges. Heights follow the 390x844 screens. */
.a-vis { position: relative; width: 100%; max-width: 34rem; margin-inline: auto; aspect-ratio: 1 / 1.16; }
.a-vis::before { content: ""; position: absolute; inset: 8% 2% 6% 6%; border-radius: 50%; background: var(--accent-soft); }
.a-vis .phone { position: absolute; box-shadow: 0 22px 44px -18px var(--shadow); }
.a-vis .front { width: 48%; left: 12%; top: 2%; z-index: 2; }
.a-vis .back { width: 42%; right: 4%; top: 13%; z-index: 1; }
.float { position: absolute; z-index: 3; width: 44%; max-width: 13.5rem; background: var(--surface); border-radius: 14px; padding: 10px; box-shadow: 0 12px 30px -10px var(--shadow); display: grid; gap: 2px; font-size: 13px; line-height: 1.3; }
.float b { display: block; font-size: 14px; }
.float small { display: block; color: var(--muted); font-size: 12.5px; }
.f-photo { left: 0; top: 46%; }
.f-photo img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 6px; }
.f-door { right: 0; bottom: 3%; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.f-door .ico { color: var(--accent); }
.a-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.a-facts div { background: var(--surface); border-radius: 16px; padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.a-facts b { font: 400 28px/1.1 var(--font-display); color: var(--accent); }
.a-sec { display: grid; gap: 28px; align-content: start; }
.a-head { display: grid; gap: 12px; align-content: start; }
.a-head p { max-width: 40rem; }
.a-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
.a-steps li { display: grid; grid-template-columns: min(40%, 14rem) 1fr; gap: 18px; align-items: center; counter-increment: step; }
.a-steps li > div { display: grid; gap: 8px; }
.a-steps h3::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 400 16px/1 var(--font-display); }
.a-band { background: var(--accent-soft); border-radius: 28px; padding: 32px 20px; }
.a-vend { display: grid; gap: 36px; }
.a-points { display: grid; gap: 18px; }
.a-points div { display: grid; gap: 4px; }
.a-msg { margin: 0; background: var(--surface); border-radius: 16px; padding: 14px 16px 16px; display: grid; gap: 8px; font-size: 14px; max-width: 28rem; }
.a-msg figcaption { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.a-msg .btns { display: flex; flex-wrap: wrap; gap: 6px; }
.a-msg .btns span { flex: 1 1 auto; text-align: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 700; color: var(--accent); }
.a-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 28rem; margin-inline: auto; align-items: start; }
.a-pair .phone + .phone { margin-top: 48px; }
.a-pilot { display: grid; gap: 28px; }
.a-pilot .a-head p + p { margin-top: 4px; }
.a-dl { margin: 0; display: grid; align-content: start; }
.a-dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 12px; border-top: 1.5px solid var(--line); }
.a-dl dt { font-weight: 700; }
.a-dl dd { margin: 0; }
.a-contact { background: var(--fg); color: var(--bg); border-radius: 28px; padding: 32px 24px; display: grid; gap: 12px; }
.a-contact p { font-size: 17px; max-width: 36rem; }
.a-credits { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.a-credits a { font-weight: 600; }
/* Welcome (/welcome/): the about page's layout for everyone, with links into the app */
.w-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding-block: 0 8px; }
.w-nav a:not(.btn) { color: var(--fg); min-height: 44px; display: inline-flex; align-items: center; }
.w-nav .btn { display: none; width: auto; min-height: 44px; margin-left: auto; } /* the hero has it on a phone */
.w-points { gap: 24px; }
.w-points div { align-content: start; }
.w-steps li { grid-template-columns: 1fr; }
.w-faq { display: grid; max-width: 44rem; border-bottom: 1.5px solid var(--line); }
.w-faq details { border-top: 1.5px solid var(--line); }
.w-faq summary { font-weight: 700; font-size: 16px; padding-block: 12px; min-height: 44px; cursor: pointer; }
.w-faq details p { padding-bottom: 16px; max-width: 40rem; }
@media (min-width: 900px) {
  .col:has(.about) { --gl: 40px; --gr: 40px; }
  .about { gap: 104px; padding-top: 24px; }
  .a-hero { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .f-photo { left: -8%; top: 52%; } /* into the column gap, off the phone's middle */
  .f-door { right: -4%; }
  .a-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .a-steps li { grid-template-columns: 1fr; align-content: start; }
  .a-band { padding: 56px; }
  .a-vend { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .a-pilot { grid-template-columns: 1fr 1fr; gap: 56px; }
  .a-contact { padding: 48px 56px; }
  .w-nav .btn { display: flex; }
  .w-points { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .w-grid { grid-template-columns: repeat(6, 1fr); }
}

/* How it works (/welcome/#how): one day on the clock, four stations down a rail. Each <li> owns a quarter of --cycle
   through its --i: every keyframe set below is written for the first quarter, and a station delays it by --i quarters.
   The rest state is the finished picture, so reduced motion, no JS and the paused list all show the same thing. */
.how { --cycle: 12s; --v: 96px; --ease-out: cubic-bezier(.22, 1, .36, 1); gap: 28px; }
.how li { grid-template-columns: var(--v) 1fr; gap: 16px; align-items: start; position: relative; }
.how li:nth-child(2) { --i: 1; } .how li:nth-child(3) { --i: 2; } .how li:nth-child(4) { --i: 3; }
.how h3::before { content: none; }
.how p { font-size: 16px; }
.how .how-when { font-weight: 700; font-size: 15px; }
.how-v { width: var(--v); height: var(--v); display: block; }
.how-v * { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.how-v text { font: 400 15px var(--font-display); fill: var(--on-mayor); stroke: none; }
.how-v .s { fill: var(--surface); } .how-v .k { fill: var(--sunk); } .how-v .g { fill: var(--accent); }
.how-v .gs { fill: var(--accent-soft); } .how-v .ms { fill: var(--mayor-soft); } .how-v .ws { fill: var(--warn-soft); }
.how-v .m { fill: var(--mayor); stroke: var(--bg); stroke-width: 3; }
.how-v .ok { fill: var(--ok); stroke: var(--bg); stroke-width: 3; }
.how-v .on { stroke: var(--on-accent); stroke-width: 3; }
.how-v .v-in, .how-v .leaf { transform-box: fill-box; transform-origin: center; }
.how-v .leaf { transform-origin: left center; transform: scaleX(.3); } /* the door stands open */
/* the rail from each picture to the next, and the sweep that travels it while that station plays */
.how li::before, .how li::after { content: ""; position: absolute; left: calc(var(--v) / 2 - 4px); top: var(--v); bottom: -28px; width: 8px; border-radius: 4px; background: var(--line); }
.how li::after { background: var(--accent); opacity: 0; transform: scaleY(0); transform-origin: top; }
.how li:last-child::before, .how li:last-child::after { display: none; }
@media (min-width: 900px) {
  .how { --v: 168px; }
  .how li { grid-template-columns: 1fr; gap: 18px; }
  .how li::before, .how li::after { left: var(--v); right: -28px; top: calc(var(--v) / 2 - 4px); bottom: auto; width: auto; height: 8px; }
  .how li::after { transform: scaleX(0); transform-origin: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .how .v-in, .how .leaf, .how li::after { animation: how-pop var(--cycle) var(--ease-out) calc(var(--i, 0) * var(--cycle) / 4 + var(--d, 0s)) infinite paused; }
  .how.is-on .v-in, .how.is-on .leaf, .how.is-on li::after { animation-play-state: running; }
  .v-basket .v-in { animation-name: how-drop; }
  .v-basket g:nth-of-type(2) { --d: 120ms; } .v-basket g:nth-of-type(3) { --d: 240ms; }
  .v-basket g:nth-of-type(4), .v-photo .v-in { --d: 600ms; animation-name: how-rise; }
  .v-photo .v-in { --d: 0s; }
  .v-door .v-in { animation-name: how-slide; }
  .v-door .leaf { animation-name: how-open; }
  .how li::after { animation-name: how-sweep-down; animation-timing-function: linear; }
  @media (min-width: 900px) { .how li::after { animation-name: how-sweep-right; } }
}
/* 0% is the finished picture; the station leaves it at 1%, holds, and arrives again by 9% (16% for the door) */
@keyframes how-pop { 0%, 9%, 100% { opacity: 1; transform: none; } 1%, 3% { opacity: 0; transform: scale(.4); } }
@keyframes how-drop { 0%, 9%, 100% { opacity: 1; transform: none; } 1%, 3% { opacity: 0; transform: translateY(-16px); } }
@keyframes how-rise { 0%, 9%, 100% { opacity: 1; transform: none; } 1%, 3% { opacity: 0; transform: translateY(10px); } }
@keyframes how-slide { 0%, 9%, 100% { transform: none; } 1%, 3% { transform: translateX(-44px); } }
@keyframes how-open { 0%, 16%, 100% { transform: scaleX(.3); } 1%, 10% { transform: none; } }
@keyframes how-sweep-down { 0%, 10% { opacity: 1; transform: scaleY(0); } 23% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: none; } }
@keyframes how-sweep-right { 0%, 10% { opacity: 1; transform: scaleX(0); } 23% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
