/* Neutral ground, ink text. Colour means urgency: the signal yellow is the one main button of a page and the
   tracking card once the first alert went out; the hot red is the card once the second one did. On the dark
   theme the yellow is kept to small touches (see the end of the tracking card rules): a full yellow surface
   on a near black ground is harsh to look at.
   A theme is one block of colours: dark is the default, and <html data-theme="light"> takes the light one
   (pages.mjs). An element inside the page may carry data-theme too: the swatches of the theme choice do. */
:root, [data-theme=dark] { --bg: #0f1113; --card: #1a1d20; --text: #f0f1ed; --muted: #a3a8af; --line: #2e3237; --soft: #24282c; --signal: #ffd21f; --signal-text: #14161a; --hot: #ff5a3c; --hot-text: #14161a; --ok: #6fd49b; --soon: #ff9f43; --err: #ff9086; --edge: transparent; --scrim: rgb(0 0 0 / 0.6); color-scheme: dark; }
[data-theme=light] { --bg: #f2f3f0; --card: #fff; --text: #14161a; --muted: #585d65; --line: #d7d9d4; --soft: #e7e8e4; --signal: #ffd21f; --signal-text: #14161a; --hot: #d93414; --hot-text: #fff; --ok: #1c7446; --soon: #c96a00; --err: #b3261e; --edge: #14161a; --scrim: rgb(20 22 26 / 0.45); color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 0.9rem 1.1rem; }
.wide > header, .wide > main, .wide > footer { max-width: 65rem; }
header, footer, nav, .row { display: flex; align-items: center; gap: 0.5rem 1.1rem; flex-wrap: wrap; }
header { justify-content: space-between; }
main { display: flex; flex-direction: column; gap: 1.1rem; padding-bottom: 2rem; }
main > *, .side > *, .hero > *, .card > *, .track > *, .warn > *, .in > * { margin-top: 0; margin-bottom: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer a, footer button.link, nav a, .langs strong { display: inline-flex; align-items: center; min-height: 2.75rem; }
a { color: inherit; text-underline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.brand rect { fill: var(--signal); }
.brand circle, .brand path { fill: none; stroke: var(--signal-text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
nav a { font-weight: 550; }
h1 { font-size: 1.9rem; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h2 { font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1rem; }
.card, .card > form, .hero, .side, .in { display: flex; flex-direction: column; gap: 0.85rem; }
.two, .side { display: flex; flex-direction: column; gap: 1.1rem; }
.cols, .cols > div { display: flex; flex-direction: column; gap: inherit; }
.cols > div > * { margin-top: 0; margin-bottom: 0; }
.cols > div > h2 { margin-top: 0.6rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; }
label { display: block; font-weight: 650; }
.row { gap: 0.5rem; }
.row label { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; font-weight: 600; }
input, select, textarea, button, .button { font: inherit; min-height: 3.1rem; padding: 0 0.9rem; border-radius: 13px; border: 1.5px solid var(--muted); background: var(--bg); color: var(--text); }
input[type=url] { width: 100%; }
textarea { width: 100%; min-height: 9rem; padding: 0.7rem 0.9rem; resize: vertical; }
input[type=number] { width: 3.8rem; text-align: center; }
.unit { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
input[type=checkbox] { width: 1.5rem; height: 1.5rem; min-height: 0; padding: 0; accent-color: var(--text); }
input::placeholder { color: var(--muted); }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 0 1.25rem; background: var(--signal); border-color: var(--edge); color: var(--signal-text); font-weight: 700; text-decoration: none; cursor: pointer; }
button.secondary, .button.secondary { background: transparent; border-color: currentColor; color: inherit; }
button.link { background: none; border: none; color: inherit; padding: 0; min-height: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: 0.5; cursor: default; }
.block { width: 100%; }
form.inline { display: inline; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.history { list-style: none; margin: 0; padding: 0 1.1rem; gap: 0; }
.history li { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.history p { margin: 0; }
/* The owner's test cases (/simulate): the parameters two by two on a wide window, one per line on a phone. */
.card > form.generator { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem 1rem; align-items: end; }
.generator input, .generator select { display: block; width: 100%; margin-top: 0.35rem; }
.generator button { grid-column: 1 / -1; }
.cases { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.cases li { border-top: 1px solid var(--line); padding-top: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.cases p { margin: 0; }
.cases form.inline { display: flex; gap: 0.5rem; }
.cases select { flex: 1; min-width: 0; }
.field { display: flex; gap: 0.5rem; }
.field input { flex: 1; min-width: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.msg { padding: 0.75rem 1.1rem; border-radius: 14px; border: 1.5px solid currentColor; font-size: 0.95rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: 1.06rem; color: var(--muted); }
.platforms { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.platforms li { position: relative; padding: 0.6rem 2.7rem 0.6rem 1.1rem; }
.platforms li + li { border-top: 1px solid var(--line); }
.platforms li::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 0.7rem; height: 0.7rem; margin-top: -0.35rem; border-radius: 50%; background: var(--soon); }
.platforms li[data-state=live]::after { background: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topic { display: block; font: 0.85rem/1.4 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.steps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps summary { cursor: pointer; font-weight: 650; min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.steps summary::-webkit-details-marker { display: none; }
.steps summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; }
.steps[open] summary::after { content: "\2013"; }
.steps > :not(summary) { margin: 0 0 0.85rem; font-size: 0.95rem; }
.steps ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.langs { display: inline-flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.langs strong { color: var(--text); }
.pill { font-size: 0.8rem; font-weight: 650; padding: 0.25rem 0.65rem; border-radius: 99px; background: var(--soft); white-space: nowrap; }
.pill.on { background: none; border: 1.5px solid var(--ok); color: var(--ok); }
.pill.on::before, .track .pill.sent::before { content: "\2713\00a0"; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--rows-line, var(--line)); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows small { display: block; color: var(--rows-muted, var(--muted)); font-size: 0.85rem; }
.warn { background: var(--signal); color: var(--signal-text); border: 1.5px solid var(--edge); border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.warn button { background: var(--signal-text); border-color: var(--signal-text); color: var(--signal); }
.warn .small { color: inherit; }
.warn { position: relative; }
.warn .close { position: absolute; top: 0.6rem; right: 0.6rem; width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 50%; background: transparent; border-color: transparent; color: inherit; }
.warn .close:hover { border-color: currentColor; }
.warn .close svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.warn .close:not([hidden]) ~ h2 { padding-right: 2.75rem; }
.theme { gap: 0.6rem; }
.theme[aria-pressed=true] { box-shadow: 0 0 0 1.5px currentColor; }
.theme[aria-pressed=true]::after { content: "\2713"; }
.swatch { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--muted); }
.swatch::after { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--signal); }

/* The landing page: what the visitor will receive, shown as the two alerts of one order. */
.hero h1 { font-size: 2.45rem; }
.preview { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.preview li { display: grid; grid-template-columns: 2.9rem 1fr; gap: 0.6rem; align-items: start; }
.preview time { font: 600 0.8rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); padding-top: 1rem; font-variant-numeric: tabular-nums; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; }
.bubble b { line-height: 1.3; }
.bubble span { font-size: 0.875rem; color: var(--muted); }
.bubble.soon { background: var(--signal); color: var(--signal-text); border-color: var(--edge); }
.bubble.now { background: var(--hot); color: var(--hot-text); border-color: var(--hot); }
.bubble.soon span, .bubble.now span { color: inherit; }
/* The trailer: a small tracking card, the courier going from the shop to the home, then the two alerts. Its
   resting state is one still frame (the courier near the home, 2 min, both alerts, each with the line that says how
   it makes itself felt), which is what a visitor who
   asks for less motion sees; the loop runs only under prefers-reduced-motion: no-preference (end of file).
   What only the end of the loop shows (the tick, the lit door) is hidden at rest.
   Four loops follow each other: four cards in the same place, a bike and a scooter (Deliveroo, turquoise), then a
   car and a big SUV (Uber Eats, green); at rest only the first shows.
   The minutes count down one by one in the loop: their number is a counter of --m, an integer the loop animates.
   Every animation starts at --t-at, so one negative value of it shows any moment of the 36 s. */
.trailer { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.t-cards { display: grid; }
.t-track { grid-area: 1 / 1; --accent: #00ccbc; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.9rem; }
.t-track + .t-track { opacity: 0; }
.t-track + .t-track + .t-track { --accent: #06c167; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.t-head > span:first-child { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.t-status { display: grid; }
.t-status i { grid-area: 1 / 1; font-style: normal; }
.t-status i + i { opacity: 0; }
.t-eta { display: grid; justify-items: end; font-size: 1.9rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-eta b { grid-area: 1 / 1; color: var(--hot); }
.t-eta i { font-style: normal; }
.t-eta svg { grid-area: 1 / 1; width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.t-road { display: flex; align-items: center; gap: 0.6rem; }
.t-road svg { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-road .t-home { stroke: var(--text); }
.t-dot .box, .courier .box { fill: #14161a; }
.t-dot:has(.t-flash) { overflow: visible; }
.t-flash, .t-beam { fill: #ffe066; stroke: none; opacity: 0; }
.t-road .t-door { fill: var(--accent); fill-opacity: 0; stroke: none; }
.t-end { display: flex; flex: none; }
.t-run { position: relative; flex: 1; height: 6px; border-radius: 99px; background: var(--soft); }
.t-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0.92); }
.t-road .t-dot { position: absolute; top: 50%; left: 92%; box-sizing: border-box; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; padding: 0.3rem; border-radius: 50%; background: var(--accent); stroke: #14161a; box-shadow: 0 0 0 3px var(--card); }
.t-fx { grid-column: 2; display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.t-fx svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-a2 .t-fx { color: var(--text); }
/* How to track an order, folded until the visitor opens it: one card per platform, with the steps that give
   its link; the Deliveroo one shows where the Share button is. */
.apps { display: grid; gap: 1.1rem; }
.apps ol { padding-left: 1.25rem; }
.shot { margin-left: 0; margin-right: 0; max-width: 24rem; display: flex; flex-direction: column; gap: 0.5rem; }
.shot svg { display: block; width: 100%; height: auto; }
.s-frame { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.s-ground { fill: var(--bg); }
.s-soft { fill: var(--soft); }
.s-ink { fill: var(--text); }
.s-teal { fill: #00ccbc; }
.s-dark { fill: #14161a; }
.s-road { fill: none; stroke: var(--bg); stroke-width: 9; stroke-linecap: round; }
.s-ink-line, .s-dark-line, .s-ring { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-dark-line { stroke: #14161a; }
.s-ring { stroke: var(--soon); stroke-width: 3; }
.s-hand { font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive; font-weight: 700; fill: var(--text); }
.s-brand { font-size: 17px; fill: #14161a; }
.s-big { font-size: 24px; }
.s-label { font-size: 15px; fill: #14161a; }

/* The tracking card. data-urgency follows the alerts already sent: calm, soon (first), now (second). */
.track { --rows-muted: var(--muted); --rows-line: var(--line); --seg: var(--soft); --fill: var(--text); --pill-text: var(--card); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.track[data-urgency=soon] { --rows-muted: #4a3f00; --rows-line: rgba(20, 22, 26, 0.25); --seg: rgba(20, 22, 26, 0.18); --fill: var(--signal-text); --pill-text: var(--signal); background: var(--signal); color: var(--signal-text); border-color: var(--edge); }
.track[data-urgency=now] { --rows-muted: var(--hot-text); --rows-line: rgba(128, 128, 128, 0.45); --seg: rgba(128, 128, 128, 0.4); --fill: var(--hot-text); --pill-text: var(--hot); background: var(--hot); color: var(--hot-text); border-color: var(--hot); }
.track h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rows-muted); }
.track .status { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; }
.track .status .sep { display: none; }
.track .status strong { font-size: 3.1rem; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.track .small { color: var(--rows-muted); }
.route { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; list-style: none; margin: 0; padding: 0; }
.route li { height: 8px; border-radius: 99px; background: var(--seg); }
.route li.done { background: var(--fill); }
.track .pill { background: var(--seg); }
.track .pill.sent { background: var(--fill); color: var(--pill-text); }
.track h3 { font-size: 1.05rem; margin: 0 0 0.6rem; }

/* The courier of the tracking card, over the step bar: a bike in a turquoise disc for Deliveroo, a car in a
   green disc for Uber Eats, the colours of the trailer. It stands over the step reached (data-step, 0 before the
   first read), waits with a halo while the order is made (steps 0 to 2) and rides once it is picked up (3 to 5),
   with speed lines behind it. Its ring takes the colour of the bar, so it reads on every card and theme. Still
   unless the visitor accepts motion: its own query, apart from the trailer's. */
.ride { position: relative; padding-top: 2.5rem; }
.courier { --accent: var(--seg); --at: 1rem; position: absolute; top: 0; left: var(--at); box-sizing: border-box; width: 2rem; height: 2rem; margin-left: -1rem; padding: 0.3rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--fill); }
.courier svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ride[data-platform=deliveroo] .courier { --accent: #00ccbc; color: #14161a; }
.ride[data-platform=ubereats] .courier { --accent: #06c167; color: #14161a; }
.ride[data-step="1"] .courier { --at: 10%; }
.ride[data-step="2"] .courier { --at: 30%; }
.ride[data-step="3"] .courier { --at: 50%; }
.ride[data-step="4"] .courier { --at: 70%; }
.ride[data-step="5"] .courier { --at: 90%; }
.ride:is([data-step="3"], [data-step="4"], [data-step="5"]) .courier::before { content: ""; position: absolute; top: 50%; right: 100%; width: 0.7rem; height: 2px; margin: -1px 0.3rem 0 0; border-radius: 2px; background: var(--fill); box-shadow: 0.3rem -0.4rem 0 var(--fill), 0.3rem 0.4rem 0 var(--fill); }
@media (prefers-reduced-motion: no-preference) {
  .ride:is([data-step="0"], [data-step="1"], [data-step="2"]) .courier { animation: courier-wait 2s ease-in-out infinite; }
  .ride:is([data-step="3"], [data-step="4"], [data-step="5"]) .courier svg { animation: courier-ride 0.5s ease-in-out infinite alternate; }
  .ride:is([data-step="3"], [data-step="4"], [data-step="5"]) .courier::before { animation: courier-trail 0.5s linear infinite; }
  @keyframes courier-wait { 0% { box-shadow: 0 0 0 2px var(--fill), 0 0 0 2px var(--accent); } 70%, 100% { box-shadow: 0 0 0 2px var(--fill), 0 0 0 11px transparent; } }
  @keyframes courier-ride { from { transform: translateY(0.5px) rotate(-2deg); } to { transform: translateY(-1.5px) rotate(1deg); } }
  @keyframes courier-trail { 0% { opacity: 0.2; transform: translateX(0.25rem); } 50% { opacity: 1; } 100% { opacity: 0.2; transform: translateX(-0.35rem); } }
}

/* Dark theme: no large yellow surface. The main buttons are a neutral light fill; what was a yellow surface
   (the warning, the first alert of the landing page, the tracking card after the first alert) becomes a dark
   card with a yellow edge, and yellow marks only its title, its time, its step bar and its sent alerts.
   These rules hold unless the page is light; :where() gives the condition no weight, so that the rules around
   them win or lose as they would without it. */
:where(html:not([data-theme=light])) button, :where(html:not([data-theme=light])) .button { background: var(--text); color: var(--bg); }
:where(html:not([data-theme=light])) .warn, :where(html:not([data-theme=light])) .bubble.soon, :where(html:not([data-theme=light])) .track[data-urgency=soon] { background: var(--card); color: var(--text); border-color: var(--signal); }
:where(html:not([data-theme=light])) .warn h2, :where(html:not([data-theme=light])) .track[data-urgency=soon] .status strong { color: var(--signal); }
:where(html:not([data-theme=light])) .warn button { background: var(--text); border-color: transparent; color: var(--bg); }
:where(html:not([data-theme=light])) .warn .small, :where(html:not([data-theme=light])) .bubble.soon span { color: var(--muted); }
:where(html:not([data-theme=light])) .track[data-urgency=soon] { --rows-muted: var(--muted); --rows-line: var(--line); --seg: var(--soft); --fill: var(--signal); --pill-text: var(--signal-text); }

main > h2 { margin-top: 0.6rem; }
.prose h2 { margin-top: 0.9rem; }
.prose p, .prose li { max-width: 65ch; }

/* Once the page is wider than its column, the rule above the footer is as wide as the content, not as the
   footer and its side padding: it lines up with the blocks above it. */
@media (min-width: 40rem) {
  footer { border-top: 0; padding-top: 0; }
  footer::before { content: ""; flex: 0 0 100%; border-top: 1px solid var(--line); margin-bottom: 0.4rem; }
}

@media (min-width: 48rem) {
  header, main, footer { padding-left: 2rem; padding-right: 2rem; }
  header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  main { gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 3.5rem; }
  .two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .hero h1 { font-size: 3.6rem; }
  .hero .lead { font-size: 1.2rem; }
  .hero .button, .hero button { align-self: flex-start; width: auto; }
  .hero .platforms { max-width: 24rem; }
  .track { padding: 2rem; gap: 1.35rem; }
  .track .status strong { font-size: 4.6rem; }
}
/* A window wider than a tablet held upright: the header, the content and the footer fill the height of the
   window, the footer at its bottom. The landing page takes the height left, its two columns each one packed
   block right under the header, with no empty band above them (Victor found the page empty at the top when
   they stood in the middle of the height): the title, the text, the services, the sign in button and the note on one side,
   the example of alerts on the other, with no empty band inside a column. The folded steps of each platform close the content right above the footer, whose rule closes them:
   they keep no bottom rule of their own. A window shorter than the content packs the page as before. */
@media (min-width: 64rem) {
  body { min-height: 100vh; display: flex; flex-direction: column; }
  header, main, footer { width: 100%; }
  main { flex: 1; }
  .two:has(.hero) { flex: 1; align-items: start; }
  .two > .hero { gap: 1.5rem; }
  main > .steps { border-bottom: 0; }
}
/* A desktop screen: the page uses the width and the height it has, at the sizes public sites keep on a large
   screen, whatever the width of the window: the text stays at 16px, titles are smaller than on a tablet, and
   buttons and fields are those of a mouse, not of a thumb. A main button is as wide as its label, not as its
   card. The footer sits at the bottom of the window, and the content starts lower. The home page and the
   settings take two columns (.cols); under this width .cols is a plain column, with the spacing of the page
   around it. On the landing page the example of alerts, the part a visitor looks at, takes the wider column
   and is drawn 10 % bigger; the services and the sign in button keep the size of a tablet. */
@media (min-width: 75rem) {
  header, main, footer { max-width: 46rem; }
  .wide > header, .wide > main, .wide > footer { max-width: 68rem; }
  .desk > header, .desk > main, .desk > footer { max-width: 75rem; }
  main { padding-top: clamp(1.5rem, 5vh, 4.5rem); padding-bottom: 2rem; }
  .two { gap: 3rem; }
  .cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .cols > div { gap: 1.5rem; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero .lead { font-size: 1rem; }
  input, select, button, .button { min-height: 2.5rem; }
  .block:not(input) { width: auto; align-self: flex-start; min-width: 13rem; }
  .preview { gap: 1rem; }
  .two > .side { align-self: start; }
  .two:has(.hero) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .two > .side:has(.trailer) { zoom: 1.1; }
  .two > .hero > .platforms { max-width: 24rem; font-size: 1rem; }
  .two > .hero > .platforms li { padding: 0.6rem 2.7rem 0.6rem 1.1rem; }
  .two > .hero .block { min-height: 2.75rem; min-width: 13rem; font-size: 1rem; }
  .bubble { padding: 0.9rem 1.1rem; }
  .bubble b { font-size: 1.05rem; }
  .track .status strong { font-size: 3rem; }
}
@property --m { syntax: '<integer>'; inherits: false; initial-value: 2; }
@media (prefers-reduced-motion: no-preference) {
  button, .button { transition: transform 0.08s; }
  button:active, .button:active { transform: translateY(1px); }
  /* The trailer's loop, 9 s: the courier leaves the shop at 5 min, its disc at the very start of the bar, and rides at an even pace, slowing near the
     home, while the minutes count down one by one, one every real second from 5 down to 1, at the same pace to the end; at the start, 5 min and the first alert, which
     vibrates lightly; at 3 s, 2 min and the second alert, which vibrates hard in two bursts while its sound sign pulses; at 4 s, 1 min.
     Before an alert arrives and once it has gone, its place stays drawn in faint grey, so the column under the card is never empty.
     At 5 s the count is over and the order is validated with no pause: the courier parks at the door and waits with the halo of
     the tracking card, twice, while a tick takes the place of the minutes, the door lights up and the home takes the colour of
     the card; the car and the SUV, on the second and third cards, flash their headlight twice as it parks, each flash a flat yellow light and a small flat cone toward the home, both on at once for 0.225 s, then off (V9). The minutes stay red the whole loop, as at rest.
     The status of the card follows with the words of the real tracking card: on the way, almost here at 3 s with the
     second alert, delivered at 5 s with the tick; at rest it reads on the way. The courier never rides into the home. The four cards
     take turns, one loop each, 36 s in all: every animation of a card lasts 36 s, its loop in the first quarter,
     and each card plays 9 s after the one before. The server draws which card plays first at each visit (data-start,
     pages.mjs): it starts the whole trailer one, two or three loops in, so the others follow in their order; the
     alerts, on a loop of 9 s, are unchanged. A loop ends on its tick, held 3 s so the visitor can read it: from 8 s the alerts and what the card holds
     fade out, nothing shows for 0.2 s, then the next card, already at the shop with its 5 min, fades in, never over the one before; only
     the frame of the first card stays drawn, so the frame never blinks. It rides off at 9 s. A click pauses the trailer where it is (data-paused, client.js),
     every frame held still, and another plays it again from that moment, never from the start. */
  .trailer * { animation-duration: 9s; animation-delay: var(--t-at, 0s); animation-iteration-count: infinite; animation-timing-function: linear; }
  .trailer .t-track, .trailer .t-track * { animation-duration: 36s; }
  .trailer .t-track > * { animation-name: t-show; }
  .trailer .t-track + .t-track { opacity: 1; background: none; border-color: transparent; }
  .trailer .t-track + .t-track, .trailer .t-track + .t-track * { animation-delay: calc(var(--t-at, 0s) - 27s); }
  .trailer .t-track + .t-track + .t-track, .trailer .t-track + .t-track + .t-track * { animation-delay: calc(var(--t-at, 0s) - 18s); }
  .trailer .t-track + .t-track + .t-track + .t-track, .trailer .t-track + .t-track + .t-track + .t-track * { animation-delay: calc(var(--t-at, 0s) - 9s); }
  .trailer[data-start="1"] { --t-at: -9s; }
  .trailer[data-start="2"] { --t-at: -18s; }
  .trailer[data-start="3"] { --t-at: -27s; }
  .t-dot { animation-name: t-drive; }
  .t-fill { animation-name: t-fill; }
  .t-eta b { animation-name: t-count; counter-reset: m var(--m); }
  .t-eta b::before { content: counter(m); }
  .t-eta b i { display: none; }
  .t-a1 { animation-name: t-alert1; }
  .t-a2 { animation-name: t-alert2; }
  .t-a1 .bubble, .t-a1 .t-fx svg { animation-name: t-buzz1; }
  .t-a2 .bubble, .t-a2 .t-fx svg:first-child { animation-name: t-buzz2; }
  .t-a2 .t-fx svg:nth-child(2) { animation-name: t-loud; }
  .t-eta svg { animation-name: t-tick; }
  .t-home { animation-name: t-home; }
  .t-door { animation-name: t-door; }
  .t-flash, .t-beam { animation-name: t-flash; }
  .t-status i:nth-child(1) { animation-name: t-status1; }
  .t-status i:nth-child(2) { animation-name: t-status2; }
  .t-status i:nth-child(3) { animation-name: t-status3; }
  .trailer[data-paused] * { animation-play-state: paused !important; }
  .trailer[role=button] { cursor: pointer; }
  @keyframes t-show { 0%, 22.222% { opacity: 1; } 23.333%, 99% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes t-drive { 0% { left: 1.1rem; transform: none; box-shadow: 0 0 0 3px var(--card); animation-timing-function: linear; } 11.89% { left: 92%; animation-timing-function: cubic-bezier(0.2, 0.6, 0.75, 1); } 13.889% { left: calc(100% - 1.1rem); transform: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 3px var(--accent); } 14.056% { transform: rotate(9deg); } 14.278% { transform: rotate(-3deg); } 14.5% { transform: none; } 15.112% { box-shadow: 0 0 0 3px var(--card), 0 0 0 16px transparent; } 15.116% { box-shadow: 0 0 0 3px var(--card), 0 0 0 3px var(--accent); } 16.334%, 25% { left: calc(100% - 1.1rem); transform: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 16px transparent; } 25.005%, 100% { left: 1.1rem; transform: none; box-shadow: 0 0 0 3px var(--card); } }
  @keyframes t-fill { 0% { transform: scaleX(0.04); animation-timing-function: linear; } 11.89% { transform: scaleX(0.92); animation-timing-function: cubic-bezier(0.2, 0.6, 0.75, 1); } 13.889%, 25% { transform: scaleX(1); } 25.005%, 100% { transform: scaleX(0.04); } }
  @keyframes t-count { 0% { --m: 5; opacity: 1; animation-timing-function: steps(3, jump-end); } 8.333% { --m: 2; animation-timing-function: steps(1, jump-end); } 11.111%, 13.889% { --m: 1; opacity: 1; } 14.111%, 99% { --m: 1; opacity: 0; } 99.005%, 100% { --m: 5; opacity: 1; } }
  @keyframes t-tick { 0%, 13.889% { opacity: 0; transform: scale(0.4); } 14.267% { opacity: 1; transform: scale(1.25); } 14.645%, 25% { opacity: 1; transform: none; } 25.005%, 100% { opacity: 0; transform: scale(0.4); } }
  @keyframes t-home { 0%, 13.889% { stroke: var(--text); } 14.333%, 25% { stroke: var(--accent); } 25.005%, 100% { stroke: var(--text); } }
  @keyframes t-door { 0%, 13.889% { fill-opacity: 0; } 14.444%, 25% { fill-opacity: 1; } 25.005%, 100% { fill-opacity: 0; } }
  @keyframes t-flash { 0%, 14.097% { opacity: 0; } 14.098%, 14.722% { opacity: 1; } 14.723%, 15.486% { opacity: 0; } 15.487%, 16.111% { opacity: 1; } 16.111%, 100% { opacity: 0; } }
  @keyframes t-status1 { 0%, 8.333% { opacity: 1; } 8.334%, 25% { opacity: 0; } 25.005%, 100% { opacity: 1; } }
  @keyframes t-status2 { 0%, 8.333% { opacity: 0; } 8.334%, 13.889% { opacity: 1; } 13.89%, 100% { opacity: 0; } }
  @keyframes t-status3 { 0%, 13.889% { opacity: 0; } 13.89%, 25% { opacity: 1; } 25.005%, 100% { opacity: 0; } }
  @keyframes t-alert1 { 0% { opacity: 0.16; filter: grayscale(1); animation-timing-function: ease-out; } 4.444%, 88.889% { opacity: 1; filter: none; animation-timing-function: ease-in; } 93.333%, 100% { opacity: 0.16; filter: grayscale(1); } }
  @keyframes t-alert2 { 0%, 33.333% { opacity: 0.16; filter: grayscale(1); animation-timing-function: ease-out; } 37.778%, 88.889% { opacity: 1; filter: none; animation-timing-function: ease-in; } 93.333%, 100% { opacity: 0.16; filter: grayscale(1); } }
  @keyframes t-buzz1 { 0%, 4.444% { transform: none; } 5.068% { transform: translateX(-2px); } 5.689% { transform: translateX(2px); } 6.312% { transform: translateX(-2px); } 6.932% { transform: translateX(2px); } 7.556% { transform: translateX(-1px); } 8.179%, 100% { transform: none; } }
  @keyframes t-buzz2 { 0%, 37.778% { transform: none; } 38.399% { transform: translateX(-5px) rotate(-1.5deg); } 39.022% { transform: translateX(5px) rotate(1.5deg); } 39.643% { transform: translateX(-5px) rotate(-1.5deg); } 40.268% { transform: translateX(5px) rotate(1.5deg); } 40.888% { transform: translateX(-4px) rotate(-1deg); } 41.51% { transform: translateX(4px) rotate(1deg); } 42.133%, 44.001% { transform: none; } 44.62% { transform: translateX(-5px) rotate(-1.5deg); } 45.244% { transform: translateX(5px) rotate(1.5deg); } 45.869% { transform: translateX(-5px) rotate(-1.5deg); } 46.488% { transform: translateX(5px) rotate(1.5deg); } 47.111% { transform: translateX(-4px) rotate(-1deg); } 47.733% { transform: translateX(4px) rotate(1deg); } 48.354%, 100% { transform: none; } }
  @keyframes t-loud { 0%, 37.778% { transform: none; } 39.558% { transform: scale(1.35); } 41.333% { transform: none; } 43.111% { transform: scale(1.35); } 44.889% { transform: none; } 46.667% { transform: scale(1.35); } 48.447%, 100% { transform: none; } }
}

/* The ntfy topic name alone, large enough to read letter by letter, with its copy button beside it, or under
   it on a narrow phone (issue 194). */
.topic-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.topic-box .topic { flex: 1 1 15rem; padding: 0.7rem 0.9rem; border-radius: 13px; background: var(--soft); font-size: 1rem; word-break: break-all; user-select: all; }
/* The ntfy guide: in the page, every step shown, without the script; a modal, one step at a time, with it. */
dialog.guide { position: static; width: auto; max-width: none; margin: 0; color: var(--text); }
dialog.guide:not([open]) { display: none; }
dialog.guide:modal { position: fixed; width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; margin: auto; }
dialog.guide::backdrop { background: var(--scrim); }
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.guide-head h2 { margin: 0; font-size: 1.25rem; }
.guide-head button.link { flex: none; min-height: 2.75rem; padding-inline: 0.5rem; margin-inline-end: -0.5rem; }
.guide-steps { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.guide-steps.one { list-style: none; padding-left: 0; }
.guide-steps h3 { margin: 0; font-size: 1.1rem; }
.guide-steps h3:focus { outline: none; }
.guide-steps p, .guide-steps form { margin: 0.7rem 0 0; }
.guide-steps ol { margin: 0.7rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.guide-nav { justify-content: space-between; }
.guide-nav button { flex: 1; }
