/* ddir.co.uk public pages: one stylesheet for the home page, the capability
 * pages, the pricing calculator, the terms and the help centre.
 *
 * Read docs/site/design-brief.md first. In short: phone first; an ink base
 * with warm paper panels for the light sections; DM Sans, bold and tight;
 * the app's green only for the main action; the product shown as live
 * "Sample data" cards and as real screens.
 *
 * Written mobile first: the base rules are the 390 px phone, and
 * min-width queries widen it.
 *
 * Served as /site/site.css?v=48336b01b2; the build stamps ?v=<hash> on it in dist/
 * (scripts/postbuild-site-assets.mjs), because Firebase caches CSS for a year.
 */
@font-face {
  font-family: 'DM Sans';
  src: url('/site/fonts/dm-sans.woff2?v=9fea608a94') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/site/fonts/ibm-plex-mono-500.woff2?v=01d2854474') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ledger (dark): kept identical to src/index.css */
  --ink-0: #0c0f14;
  --ink-1: #141922;
  --ink-2: #1b222e;
  --ink-3: #242d3b;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --paper: #eef0f3;
  --paper-2: #a9b1bd;
  --paper-3: #7b8593;
  --accent: #3cb371;
  --accent-strong: #2e9e5e;
  --accent-soft: rgba(60, 179, 113, 0.14);
  --accent-ink: #0c0f14;
  --warn: #e5a33b;
  --stop: #e8594e;
  --plate-face-rear: #ffd400;
  --plate-band: #003399;
  --plate-ink: #111111;

  /* The light panels */
  --sheet: #f4f2ee;
  --sheet-tile: #e9e6df;
  --sheet-ink: #0c0f14;
  --sheet-ink-2: #4b5059;
  --sheet-ink-3: #5c6169;
  --sheet-rule: rgba(12, 15, 20, 0.1);

  /* What every component reads; light panels reset these */
  --fg: var(--paper);
  --fg-2: var(--paper-2);
  --fg-3: var(--paper-3);
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --tile: #12161d;
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);

  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 180ms;
  --header-h: 60px;
  --gutter: 20px;
  --page: 1200px;
  --panel-r: 32px;
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 68px; --panel-r: 56px; } }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink-0); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink-0); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 0.86em; font-variant-numeric: tabular-nums; }
.reg {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82em;
  border-radius: 3px;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: 0.06em;
}
.reg::before { content: 'UK'; background: var(--plate-band); color: #fff; font-size: 0.62em; padding: 0 4px; display: grid; place-items: center; }
.reg b { background: var(--plate-face-rear); color: var(--plate-ink); padding: 0 6px; font-weight: 500; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 76px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.5; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }
@media (min-width: 760px) { .lede { font-size: 20px; } }
.note { font-size: 14px; color: var(--fg-3); text-wrap: pretty; }
.label { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--accent); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), filter var(--dur) ease;
}
.btn::after { content: '→'; font-weight: 500; transition: transform 160ms var(--ease-out); }
.btn.plain::after { content: none; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  .btn:hover::after { transform: translateX(3px); }
}
.btn.light { --btn-bg: #f4f2ee; --btn-fg: var(--ink-0); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.acts { display: grid; gap: 12px; }
.acts .btn { width: 100%; }
@media (max-width: 559px) {
  /* Full-width buttons wrap rather than push a narrow phone sideways. */
  .acts .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
}
@media (min-width: 560px) {
  .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .acts .btn { width: auto; }
}
.more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.more:hover { text-decoration-color: currentColor; }

/* ── Header ───────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(12, 15, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--paper);
}
@supports (backdrop-filter: blur(1px)) {
  .top { background: rgba(12, 15, 20, 0.7); backdrop-filter: blur(18px) saturate(1.5); }
}
.top .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin-right: auto; }
.brand img { width: 28px; height: 26px; }
.nav { display: none; gap: 26px; }
.nav a { font-size: 15px; color: var(--paper-2); text-decoration: none; padding: 8px 0; transition: color var(--dur) ease; }
.nav a:hover { color: var(--paper); }
.top .login { display: none; font-size: 15px; font-weight: 600; text-decoration: none; }
.top .btn { display: none; }
.menu-btn { background: none; border: 0; min-height: 44px; padding: 0 2px; font-size: 15px; font-weight: 600; cursor: pointer; }
/* The phone menu covers the page under the header. Opening: the ground
   fades in and the links arrive top to bottom, 30ms apart. Closing is
   quicker and all at once. The label crossfades between Menu and Close. */
.sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 19;
  background: var(--ink-0);
  color: var(--paper);
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 180ms ease;
}
.sheet.open { opacity: 1; transition-duration: 220ms; }
.sheet[hidden] { display: none; }
.sheet a { display: block; padding: 14px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--rule); opacity: 0; transform: translateY(-10px); transition: opacity 140ms ease, transform 140ms ease; }
.sheet a { --d: 0ms; }
.sheet a.btn { display: flex; margin-top: 24px; border: 0; font-size: 16px; letter-spacing: 0; }
.sheet.open a { opacity: 1; transform: none; transition: opacity 320ms ease var(--d), transform 520ms var(--ease-out) var(--d); }
.sheet a:nth-child(2) { --d: 30ms; } .sheet a:nth-child(3) { --d: 60ms; } .sheet a:nth-child(4) { --d: 90ms; }
.sheet a:nth-child(5) { --d: 120ms; } .sheet a:nth-child(6) { --d: 150ms; } .sheet a:nth-child(7) { --d: 180ms; } .sheet a:nth-child(8) { --d: 220ms; }
html.menu-open { overflow: hidden; }
.menu-btn.flip { animation: label-in 220ms var(--ease-out); }
@keyframes label-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn, .sheet { display: none !important; }
  .top .btn, .top .login { display: inline-flex; }
}

/* The price and the sign-up stay in reach on a phone. */
.bar {
  position: fixed;
  inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: rgba(20, 25, 34, 0.94);
  color: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  font-size: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(calc(100% + 24px));
  transition: transform 300ms var(--ease-out);
}
.bar.on { transform: none; }
.bar b { font-size: 17px; }
@media (min-width: 760px) { .bar { display: none; } }

/* ── Sections and panels ──────────────────────────────────────────────── */
.sec { padding: 72px 0; }
@media (min-width: 760px) { .sec { padding: 120px 0; } }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
@media (min-width: 760px) { .sec-head { margin-bottom: 56px; } }
.sec-head.center { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }
/* A light room on the dark page. */
.panel {
  --fg: var(--sheet-ink);
  --fg-2: var(--sheet-ink-2);
  --fg-3: var(--sheet-ink-3);
  --line: var(--sheet-rule);
  --line-strong: rgba(12, 15, 20, 0.18);
  --tile: var(--sheet-tile);
  --btn-bg: var(--sheet-ink);
  --btn-fg: #ffffff;
  background: var(--sheet);
  color: var(--fg);
  border-radius: var(--panel-r);
  margin: 0 4px;
}
.panel :focus-visible { outline-color: var(--sheet-ink); }
.panel .label { color: #1f7a45; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; } }

/* ── Product cards: drawn from the app's real wording, shown finished ── */
.live {
  background: #fbfaf8;
  color: #16191f;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0 0 1px rgba(12, 15, 20, 0.08), 0 24px 60px -24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}
.live-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(12, 15, 20, 0.08); }
.live-top b { font-weight: 700; font-size: 15px; margin-right: auto; }
.live-body { padding: 10px; display: grid; gap: 8px; }
.live-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 4px; font-size: 14px; color: #5a5f67; }
.live .reg { font-size: 12px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 11px 12px; border-radius: 12px; background: #f1efea; transition: opacity 400ms ease, transform 400ms var(--ease-out); }
.row b { font-weight: 600; }
.row small { display: block; color: #5a5f67; font-size: 13px; }
.row .mono { color: #5a5f67; font-size: 12px; }
.chip { position: relative; display: inline-grid; justify-items: end; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip > span { grid-area: 1 / 1; padding: 3px 10px; border-radius: 99px; transition: opacity 260ms ease, filter 260ms ease; }
.chip .then { opacity: 0; filter: blur(2px); }
.on > .chip .then, .chip.on .then { opacity: 1; filter: none; }
.on > .chip .now, .chip.on .now { opacity: 0; filter: blur(2px); }
.no-js .chip .then { opacity: 1; filter: none; }
.no-js .chip .now { opacity: 0; }
.c-wait { background: #e8e6e1; color: #5a5f67; }
.c-done { background: #e3f3e9; color: #1d7442; }
.c-bad { background: #fbe7e4; color: #b3392d; }
.c-seen { background: #e6edf8; color: #2f5a9e; }
.c-warn { background: #fbf0dc; color: #94600f; }
.tick-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f1efea; }
.on > .mark { animation: mark-in 360ms var(--ease-out); }
@keyframes mark-in { from { transform: scale(0.6); } 60% { transform: scale(1.12); } to { transform: none; } }
.live .go { transition: background-color 260ms ease; }
.tick-row .what { flex: 1; min-width: 0; }
.tick-row .what small { display: block; color: #b3392d; font-size: 13px; }
.mark { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e8e6e1; transition: background-color 260ms ease; }
.mark::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); opacity: 0; transition: opacity 200ms ease; }
.on > .mark.ok { background: #2e9e5e; }
.on > .mark.bad { background: #d24a3c; }
.on > .mark.ok::after { opacity: 1; }
.on > .mark.bad::after { content: '!'; width: auto; height: auto; border: 0; transform: none; color: #fff; font-weight: 700; font-size: 13px; line-height: 1; }
.no-js .mark.ok { background: #2e9e5e; }
.no-js .mark.ok::after { opacity: 1; }
.live-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 10px; }
.live .go { display: inline-grid; padding: 9px 16px; border-radius: 99px; background: #16191f; color: #fff; font-weight: 700; font-size: 14px; }
.live .go > span { grid-area: 1 / 1; transition: opacity 260ms ease, filter 260ms ease; }
.live .go .then { opacity: 0; filter: blur(2px); }
.live .go.on { background: #2e9e5e; }
.live .go.on .then { opacity: 1; filter: none; }
.live .go.on .now { opacity: 0; filter: blur(2px); }
.prio { display: grid; gap: 8px; counter-reset: p; }
.prio li { text-wrap: pretty; counter-increment: p; display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f1efea; transition: opacity 400ms ease; }
.prio li::before { content: counter(p); font-family: var(--mono); font-weight: 500; color: #1d7442; }
.js .prio li:not(.on) { opacity: 0.4; }
.brief { padding: 4px 4px 10px; font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5a5f67; }
.who img { width: 26px; height: 26px; border-radius: 50%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 64px; overflow: hidden; }
.hero::before {
  /* A faint green light behind the tour: the one gradient on the page. */
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  right: -300px;
  top: 120px;
  background: radial-gradient(closest-side, rgba(60, 179, 113, 0.16), rgba(60, 179, 113, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 36px; }
.hero .types-wrap { display: block; }
.hero-text { display: grid; gap: 22px; }
/* The price and the free trial are what the page sells: big, first, plain. */
.hero h1 { display: grid; gap: 14px; font-size: inherit; letter-spacing: normal; line-height: 1; }
.kicker { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.025em; color: var(--paper-2); }
.big-price { display: flex; align-items: center; gap: 0.18em; }
.pound {
  position: relative;
  font-size: clamp(112px, 15vw, 196px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.78;
  color: var(--accent);
  padding: 0.04em 0.04em 22px 0;
  font-variant-numeric: tabular-nums;
}
.pound::after { content: ''; position: absolute; left: 0.02em; right: 0.1em; bottom: 0; height: 7px; border-radius: 4px; background: var(--accent); }
.per { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: var(--paper); padding-bottom: 14px; }
.hero .lede b { color: var(--paper); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .kicker { animation: settle 700ms var(--ease-out) both; }
  .js .hero .pound { animation: settle-big 900ms var(--ease-out) both; transform-origin: 0 100%; }
  .js .hero .per { animation: settle 800ms var(--ease-out) 60ms both; }
  .js .hero .pound::after { animation: draw 900ms var(--ease-out) 280ms both; transform-origin: 0 50%; }
  .js .hero .lede { animation: settle 800ms var(--ease-out) 100ms both; }
  /* These two carry the offer and the primary CTA, so they animate on
     TRANSFORM ONLY. `arrive` starts at opacity:0 and, with fill-mode
     `both`, holds that from first paint until the animation completes —
     which left the "Start free 30-day trial" button invisible on a phone
     for the first seconds of the page. `settle` moves without hiding, so
     the motion survives and the button is readable the instant it paints.
     Decorative blocks below the fold may still use `arrive`. */
  .js .hero .trial { animation: settle 700ms var(--ease-out) 160ms both; }
  .js .hero .acts { animation: settle 700ms var(--ease-out) 230ms both; }
  .js .hero .tour { animation: arrive-far 1000ms var(--ease-out) 120ms both; }
}
@keyframes settle { from { transform: translateY(12px); } to { transform: none; } }
@keyframes settle-big { from { transform: translateY(10px) scale(0.94); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes arrive-far { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.trial-head { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--accent); }
.trial-note { margin-top: 6px; font-size: 16px; color: var(--paper-2); }
.hero .acts { margin-top: 4px; }
/* Below 1000px the words are not one block: the price, the trial and the
   buttons come first, then the tour (moving on the first screen), then
   the summary paragraph. */
@media (max-width: 999px) {
  .hero { padding-top: 28px; }
  .hero .wrap:not(.types-wrap) { gap: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; }
  .hero .trial { order: 2; margin-top: 26px; }
  .hero .acts { order: 3; margin-top: 20px; }
  .hero .tour { order: 4; margin-top: 40px; }
  .hero .lede { order: 5; margin-top: 40px; font-size: 17px; }
  .trial-head { font-size: 26px; }
  .trial-note { font-size: 15px; }
}
@media (max-width: 559px) {
  /* One green button; pricing is a quiet link under it. */
  .hero .acts { gap: 2px; }
  .hero .acts .btn.light { min-height: 44px; background: none; color: var(--paper); font-size: 15px; font-weight: 600; }
}
@media (min-width: 1000px) {
  .hero { padding: 56px 0 104px; }
  /* The words on the left, the two phones on the right. */
  .hero .wrap:not(.types-wrap) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .pound { font-size: clamp(112px, 13.5vw, 188px); }
  .per { font-size: clamp(34px, 4vw, 56px); }
  .hero::before { right: -260px; top: -60px; }
}

/* ── Hero tour: what DDIR does, on phones and on a desktop ───────────────
   Two rows of features over a stage, by where each one happens: on the
   phones, or on the desktop. The open feature has a line under it that
   fills over --tour-ms, then the next one opens, reading along the rows.
   Phone features show the driver app and the manager's dashboard on a
   phone: side by side from 600px, and on phones one held over the other,
   swapping halfway through the scene (tap either to bring it forward).
   Desktop features turn the phones into a laptop. Hover holds the
   rotation; going off screen or pressing pause holds everything; picking a
   feature or a phone stops the rotation. Reduced motion shows each
   scene's end. Other features' screens load after the page. */
.tour { --tour-ms: 7000ms; min-width: 0; }
/* Pause sits in the free end of the second row, which is always short. */
.tour-head { position: relative; }
.tour-rows { display: grid; min-width: 0; }
.tour-row { display: flex; align-items: center; column-gap: clamp(8px, 2.9vw, 22px); }
.tour-row svg { flex: none; width: 15px; height: 15px; margin-right: -3px; fill: none; stroke: var(--fg-3); stroke-width: 1.3; stroke-linecap: round; }
.tour-tab {
  position: relative;
  flex: none;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-2);
  font: inherit;
  font-size: clamp(12px, 3.75vw, 15px);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) ease;
}
.tour-tab::after { content: ''; position: absolute; inset: 0 -6px; }
.tour-tab::before, .tour-fill { position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; }
.tour-tab::before { content: ''; background: var(--line-strong); opacity: 0; }
.tour-tab[aria-selected="true"] { color: var(--fg); }
.tour-tab[aria-selected="true"]::before { opacity: 1; }
.tour-fill { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tour-tab[aria-selected="true"] .tour-fill { animation: tour-fill var(--tour-ms) linear forwards; }
.tour.stopped .tour-tab[aria-selected="true"] .tour-fill { animation: none; transform: none; }
.tour.held .tour-fill, .tour:has(.tour-rows :focus-visible) .tour-fill { animation-play-state: paused; }
@keyframes tour-fill { to { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .tour:hover .tour-fill { animation-play-state: paused; }
  .tour-tab:hover { color: var(--fg); }
}
.no-js .tour-head { display: none; }

.tour-play {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--fg-2);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color var(--dur) ease, border-color var(--dur) ease;
}
.tour-play::after { content: ''; position: absolute; inset: -5px; }
.tour-play:active { transform: scale(0.97); }
.tour-play svg { width: 12px; height: 12px; fill: currentColor; }
.tour-play .i-play, .tour.stopped .tour-play .i-pause { display: none; }
.tour.stopped .tour-play .i-play { display: block; }
@media (hover: hover) and (pointer: fine) { .tour-play:hover { color: var(--fg); border-color: var(--fg-3); } }

.tour-more { display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 36px; margin: 14px 0 0 auto; color: var(--fg-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color var(--dur) ease; }
.tour-more::after { content: '→'; font-weight: 500; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tour-more:hover { color: var(--fg); } .tour-more:hover::after { transform: translateX(2px); } }

.tour-stage { position: relative; display: grid; margin-top: 18px; }
.tour-panel { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-items: start; min-width: 0; }
.tour-panel.kind-desk { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
/* The stage keeps the height of the phones, so the laptop sits in the
   middle of that space and its caption at the bottom, where the phones'
   captions are: the words stay put as the features change. */
.kind-desk .lap { grid-template-rows: minmax(0, 1fr) auto; }
.kind-desk .laptop { align-self: center; margin-bottom: 18px; }
.tour-panel.later { display: none; }
/* Between two phone features the new pair fades in over the old, which
   stays put underneath, so the identical frames never dim. Between phones
   and laptop the old view shrinks away and the new one grows in. */
.tour-panel { opacity: 0; visibility: hidden; transition: opacity 0s linear 360ms, visibility 0s linear 360ms; }
.tour-panel.on { z-index: 1; opacity: 1; visibility: visible; transition: opacity 360ms ease; }
.tour-stage.morph .tour-panel.on { animation: tour-morph-in 620ms var(--ease-out) 90ms both; }
.tour-stage.morph .tour-panel.was { visibility: visible; animation: tour-morph-out 300ms var(--ease-out) both; }
@keyframes tour-morph-in { from { opacity: 0; transform: scale(0.94); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tour-morph-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.96); } }

.dev { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.frame { position: relative; border: 6px solid #05070a; border-radius: 15% / 7%; background: #05070a; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-strong), 0 40px 70px -30px rgba(0, 0, 0, 0.85); }
.screen { position: relative; overflow: hidden; border-radius: 12% / 5.6%; }
.screen picture { display: block; }
.screen img { display: block; width: 100%; height: auto; }
.dev figcaption { padding: 0 2px; font-size: 13px; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.dev figcaption b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--fg); }
.dev figcaption .line { display: block; }
.who { display: none; }
/* Captions are text on nothing, so the old ones go at once rather than sit
   under the new ones while the screens crossfade. */
.tour-panel figcaption { transition: opacity 160ms ease; }
.tour-panel:not(.on) figcaption { opacity: 0; }

/* The laptop: a thin black bezel and a base, nothing else. */
.lap { gap: 26px; }
.laptop { position: relative; margin: 0 4%; border: 6px solid #05070a; border-bottom-width: 9px; border-radius: 12px 12px 4px 4px; background: #05070a; box-shadow: 0 0 0 1px var(--rule-strong), 0 40px 70px -30px rgba(0, 0, 0, 0.85); }
.laptop::after { content: ''; position: absolute; left: -5%; right: -5%; top: calc(100% + 9px); height: 9px; border-radius: 0 0 12px 12px; background: #1a1f28; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 30px -12px rgba(0, 0, 0, 0.8); }
.laptop .screen { border-radius: 4px; }
.cam { position: relative; transform-origin: var(--zx) var(--zy); transform: scale(var(--zs)); }
.lap figcaption { padding: 0 4%; }

@media (min-width: 600px) { .tour { width: min(100%, 560px); margin-inline: auto; } .tour-panel { column-gap: 24px; } }
@media (min-width: 760px) {
  .dev figcaption { font-size: 14px; }
  .dev figcaption b { font-size: 15px; }
  .frame { border-width: 8px; }
  .laptop { border-width: 8px; border-bottom-width: 12px; }
}
@media (min-width: 1000px) {
  .tour { width: min(100%, 560px); margin: 0 0 0 auto; }
  .tour-stage { margin-top: 20px; }
  .tour-panel.kind-phones { grid-template-columns: repeat(2, 228px); justify-content: center; }
  /* Every caption is a label and two short lines, so the phones' captions
     end on one line and the column's bottom edge stays straight. */
  .kind-phones figcaption { min-height: calc(3 * 1.45em + 2px); }
}

/* On phones the two screens share the stage: the one in front at 64% of
   the width, the other held behind it, smaller, turned a few degrees and
   dimmed, anchored to its own side. They swap with a short shuffle (the
   stacking order flips halfway). Under them, the two labels say which is
   which and bring either to the front; the front phone's line follows. */
@media (max-width: 599px) {
  .tour-panel.kind-phones { grid-template-columns: minmax(0, 1fr); }
  .kind-phones .dev { grid-area: 1 / 1; position: relative; z-index: 1; gap: 16px; pointer-events: none; transition: z-index 0s linear 260ms; }
  .kind-phones .frame { width: 64%; pointer-events: auto; transition: transform 520ms cubic-bezier(0.77, 0, 0.175, 1); }
  .kind-phones .drv .frame { justify-self: start; transform-origin: 0 55%; }
  .kind-phones .mgr .frame { justify-self: end; transform-origin: 100% 55%; }
  .kind-phones .frame::after { content: ''; position: absolute; inset: 0; z-index: 3; background: rgba(6, 8, 11, 0.5); opacity: 0; pointer-events: none; transition: opacity 520ms ease; }
  .kind-phones:not([data-front="mgr"]) .drv, .kind-phones[data-front="mgr"] .mgr { z-index: 2; }
  .kind-phones:not([data-front="mgr"]) .mgr .frame { transform: scale(0.84) rotate(3deg); cursor: pointer; }
  .kind-phones[data-front="mgr"] .drv .frame { transform: scale(0.84) rotate(-3deg); cursor: pointer; }
  .kind-phones:not([data-front="mgr"]) .mgr .frame::after, .kind-phones[data-front="mgr"] .drv .frame::after { opacity: 1; }

  .kind-phones figcaption { display: grid; pointer-events: none; font-size: 14px; }
  .js .kind-phones figcaption b { display: none; }
  .js .kind-phones .who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg-3);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    pointer-events: auto;
    cursor: pointer;
    transition: color var(--dur) ease;
  }
  .kind-phones .who::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 200ms var(--ease-out); }
  .kind-phones .who[aria-pressed="true"] { color: var(--fg); }
  .kind-phones .who[aria-pressed="true"]::before { transform: none; }
  .kind-phones .mgr .who { justify-self: end; }
  .kind-phones .mgr .line { text-align: right; }
  /* The old line goes first, then the new one comes in: never both at once. */
  .js .kind-phones .line { transition: opacity 200ms ease 140ms; }
  .js .kind-phones:not([data-front="mgr"]) .mgr .line, .js .kind-phones[data-front="mgr"] .drv .line { opacity: 0; transition: opacity 120ms ease; }

  /* The laptop is drawn bigger than the phone and runs off one edge,
     cropped to the part its scene is about (--bw: width against the stage,
     --bx: how much of it sits off the left). */
  .kind-desk .laptop { width: calc(var(--bw, 1) * 100%); margin: 0 0 18px calc(var(--bw, 1) * var(--bx, 0) * -100%); }
}

/* What happens on the screens. The resting style of each piece is the end
   of the scene, so without motion (or JS) every feature shows its outcome. */
.ring, .tap, .patch, .typed, .cover, .after, .cursor, .swap { position: absolute; pointer-events: none; }
.swap { width: 0; height: 0; }
.after { inset: 0; }
.ring { left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 8px; box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(60, 179, 113, 0.22); }
.laptop .ring { border-radius: 6px; box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(60, 179, 113, 0.22); }
.tap { left: var(--x); top: var(--y); width: 14%; aspect-ratio: 1; margin: -7% 0 0 -7%; border-radius: 50%; background: rgba(12, 15, 20, 0.22); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(0, 0, 0, 0.25); opacity: 0; }
.screen .patch { left: var(--x); top: var(--y); width: var(--w); height: auto; opacity: 0; }
.typed, .cover { left: var(--x); top: var(--y); width: var(--w); height: var(--h); background: var(--bg); }
.typed { clip-path: inset(0 0 0 100%); }
.cover { opacity: 0; }
.cursor { left: var(--x); top: var(--y); width: 2.4%; min-width: 11px; opacity: 0; transform-origin: 0 0; }
.cursor svg { display: block; width: 100%; height: auto; fill: #fff; stroke: #0c0f14; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.tour-panel.play .ring { animation: tour-ring 420ms var(--ease-out) var(--at) both; }
.tour-panel.play .after { animation: tour-show 520ms ease var(--at) both; }
.tour-panel.play .patch { animation: tour-hide 160ms ease var(--at) both; }
.tour-panel.play .cover { animation: tour-hide 260ms ease var(--at) both; }
.tour-panel.play .typed { animation: tour-type var(--dur, 1.1s) steps(var(--steps), end) var(--at) both; }
.tour-panel.play .tap { animation: tour-tap 760ms var(--ease-out) var(--at) both; }
.tour-panel.play .cursor { animation: tour-cursor 1500ms cubic-bezier(0.77, 0, 0.175, 1) var(--at) both; }
.tour-panel.play .swap { animation: tour-show 10ms linear var(--at) both; }
.tour-panel.play .cam { animation: tour-zoom 1300ms cubic-bezier(0.77, 0, 0.175, 1) var(--at) both; }
.tour.held .tour-panel *, .tour.paused .tour-panel * { animation-play-state: paused; }
@keyframes tour-ring { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes tour-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes tour-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes tour-type { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes tour-zoom { from { transform: none; } to { transform: scale(var(--zs)); } }
@keyframes tour-tap {
  0% { opacity: 0; transform: scale(1.5); }
  22% { opacity: 1; transform: scale(1); }
  42% { transform: scale(0.84); }
  62% { opacity: 1; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.35); }
}
@keyframes tour-cursor {
  0% { opacity: 0; transform: translate(260%, 300%); }
  15% { opacity: 1; }
  66% { transform: translate(0, 0); }
  74% { transform: scale(0.82); }
  82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-panel, .tour-panel.on, .kind-phones .dev, .kind-phones .frame, .kind-phones .frame::after { transition: none; }
  .tour-panel.play *, .tour-stage.morph .tour-panel { animation: none !important; }
}
.types { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.types > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.types b { font-size: 16px; }
.types p { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }
@media (min-width: 760px) {
  .types { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .types > div { padding: 24px 24px 24px 0; border-bottom: 0; }
  .types > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ── Bento of live cards (on a light panel) ───────────────────────────── */
.bento { display: grid; gap: 14px; }
.tile { background: var(--tile); border-radius: 24px; padding: 22px 16px 16px; display: grid; gap: 18px; align-content: start; }
.tile h3 { padding: 0 6px; }
.tile p { padding: 0 6px; color: var(--fg-2); font-size: 15px; margin-top: -10px; text-wrap: pretty; }
@media (min-width: 760px) { .tile { padding: 32px 28px 28px; } .tile h3, .tile p { padding: 0; } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .tile:nth-child(1) { grid-column: span 7; }
  .tile:nth-child(2) { grid-column: span 5; }
  .tile:nth-child(3) { grid-column: span 5; }
  .tile:nth-child(4) { grid-column: span 7; }
}

/* ── All modules ──────────────────────────────────────────────────────
   Four groups, each a header with its count over a ticked list: the name
   on its own line, what it does under it. On phones the group's header
   stays under the site header while its list scrolls by; from 760px the
   groups sit in two columns. */
.index { display: grid; gap: 44px; }
.mod-col { display: contents; }
.mod-group { order: var(--o); }
.mod-group h3 {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
  background: var(--ink-0);
  border-bottom: 1px solid var(--line-strong);
  font-size: 21px;
}
.mod-group .count { flex: none; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--fg-3); }
.mod-group li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mod-group li::before { content: ''; grid-row: 1 / span 2; width: 11px; height: 6px; margin: 7px 0 0 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.mod-group li b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.mod-group li span { grid-column: 2; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 760px) {
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; align-items: start; }
  .mod-col { display: grid; gap: 52px; }
  .mod-group h3 { position: static; font-size: 22px; }
  .mod-group li { padding: 18px 0; }
}

/* ── Real screens ─────────────────────────────────────────────────────── */
.phone {
  width: 100%;
  max-width: 290px;
  border-radius: 38px;
  border: 9px solid #0f1217;
  background: #0c0f14;
  box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.2), 0 30px 60px -24px rgba(12, 15, 20, 0.5);
  overflow: hidden;
}
.phone img { width: 100%; aspect-ratio: 402 / 874; object-fit: cover; object-position: top; }
.desk { border-radius: 16px; background: #141922; overflow: hidden; box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.14), 0 30px 70px -28px rgba(12, 15, 20, 0.5); }
.desk-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; background: #0f131a; font-family: var(--mono); font-weight: 500; font-size: 12px; color: #7b8593; }
.desk-bar::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3cb371; }
.desk picture { display: block; }
.phones { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phones figure { flex: 0 0 72%; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; }
.phones figcaption { font-size: 14px; color: var(--fg-3); text-align: center; max-width: 20em; text-wrap: balance; }
@media (min-width: 760px) {
  .phones { overflow: visible; margin: 0; padding: 0; justify-content: center; gap: 28px; }
  .phones figure { flex: 0 1 260px; }
}
.points { display: grid; }
.points li { padding: 16px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 3px; }
.points b { font-weight: 700; letter-spacing: -0.01em; }
.points span { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }
.two { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1fr; gap: 72px; } }
.two h3 { font-size: 24px; margin-bottom: 14px; }
.badges { display: flex; gap: 10px; margin-top: 22px; }
.badges img { height: 42px; width: auto; }
/* Rising into place: things below the first screen rise 16px and fade in
   once, as they come into view; ones that arrive together follow each
   other 60ms apart (--d, set by site.js). Only below the fold, only with
   JS, never under reduced motion. */
.js .rv { opacity: 0; transform: translateY(16px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 560ms ease var(--d, 0ms), transform 820ms var(--ease-out) var(--d, 0ms); }
.reveal { transition: transform 800ms var(--ease-out), opacity 600ms ease; }
.js .reveal:not(.seen) { opacity: 0; transform: translateY(24px); }

/* ── Andre ────────────────────────────────────────────────────────────── */
.chat { display: grid; gap: 10px; }
.chat p { padding: 13px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; max-width: 92%; text-wrap: pretty; }
.chat .you { justify-self: end; background: var(--accent); color: var(--ink-0); border-bottom-right-radius: 6px; font-weight: 500; }
.chat .andre { background: var(--ink-1); border: 1px solid var(--rule); border-bottom-left-radius: 6px; }
.chat .by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--paper-3); margin: 4px 0 -2px; }
.chat .by img { width: 24px; height: 24px; border-radius: 50%; }
.js .chat .rv { transform: translateY(10px) scale(0.96); }
.js .chat .rv.in { transform: none; }
.chat .you { transform-origin: 100% 100%; }
.chat .andre { transform-origin: 0 100%; }

/* ── Built by experts, testimonials ───────────────────────────────────── */
.quote { font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; text-wrap: pretty; }
.quote + cite { display: block; margin-top: 16px; font-style: normal; color: var(--fg-3); font-size: 15px; }
.voices { display: grid; gap: 12px; margin-top: 56px; }
.voices figure { background: #ffffff; border-radius: 24px; padding: 24px; display: grid; gap: 18px; align-content: space-between; box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.06); }
.voices blockquote { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.voices figcaption { font-size: 14px; color: var(--fg-3); }
.voices figcaption b { display: block; color: var(--fg); font-size: 15px; }
@media (min-width: 960px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; } .voices figure { padding: 28px; } }

/* ── Pricing (dark, with a light card) ────────────────────────────────── */
.price-card {
  --fg: var(--sheet-ink); --fg-2: var(--sheet-ink-2); --fg-3: var(--sheet-ink-3); --line: var(--sheet-rule); --line-strong: rgba(12, 15, 20, 0.18);
  --btn-bg: var(--sheet-ink); --btn-fg: #fff;
  background: var(--sheet);
  color: var(--fg);
  border-radius: 28px;
  padding: 28px 22px;
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) { .price-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding: 48px; } }
.amount { font-size: clamp(96px, 16vw, 168px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.amount small { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg-2); margin-top: 14px; line-height: 1.4; }
.inc { columns: 1; column-gap: 24px; font-size: 15px; color: var(--fg-2); }
@media (min-width: 560px) { .inc { columns: 2; } }
.inc li { break-inside: avoid; position: relative; padding: 4px 0 4px 24px; }
.inc li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 11px; height: 6px; border-left: 2px solid #2e9e5e; border-bottom: 2px solid #2e9e5e; transform: rotate(-45deg); }
.extras { margin-top: 40px; }
.extras h3 { font-size: 24px; margin-bottom: 8px; }
.extra-list { display: grid; }
.extra-list > div { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.extra-list .name { font-weight: 700; }
.extra-list .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.extra-list .price small { display: block; font-weight: 400; color: var(--fg-3); font-size: 14px; }
.extra-list .what { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }
@media (min-width: 760px) { .extra-list > div { grid-template-columns: 1.1fr 1.2fr 2fr; } }
.calc { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--ink-1); border: 1px solid var(--rule); display: grid; gap: 16px; }
@media (min-width: 760px) { .calc { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } }

/* ── Questions ────────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; min-height: 44px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 22px; color: var(--fg-2); max-width: 40em; display: grid; gap: 10px; }
.faq details[open] > div { animation: answer-in 320ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (hover: hover) and (pointer: fine) { .faq summary { transition: color var(--dur) ease; } .faq summary:hover { color: var(--accent); } }

/* ── Close ────────────────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; text-align: center; }
.final::before { content: ''; position: absolute; left: 50%; bottom: -480px; width: 1000px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(60, 179, 113, 0.18), rgba(60, 179, 113, 0)); pointer-events: none; }
.final .wrap { position: relative; display: grid; gap: 20px; justify-items: center; }
.final h2 { font-size: clamp(40px, 6vw, 76px); max-width: 11em; }
.final .acts { justify-content: center; width: 100%; max-width: 420px; }

/* ── Guides: the capability pages ─────────────────────────────────────
   Each guide is built around one thing from the operator's own world (the
   walkaround timings, a driver's medical record, the evidence folder, a
   driver's day on the tachograph) rather than a stack of feature sections.
   The parts below are shared; each guide's own object follows. */
.g-hero { padding: 36px 0 72px; }
.g-hero .wrap { display: grid; gap: 48px; }
.g-text { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.g-text h1 { font-size: clamp(40px, 5.4vw, 68px); max-width: 12em; }
.g-text .lede b { color: var(--fg); font-weight: 600; }
.g-text .acts { width: 100%; margin-top: 6px; }
.g-q { font-size: 18px; font-weight: 500; color: var(--fg-2); max-width: 30em; text-wrap: balance; }
.price-line { display: flex; align-items: baseline; gap: 10px; font-size: 18px; color: var(--fg-2); }
.price-line b { font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--fg-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-2px) rotate(-45deg); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost::after { content: '↗'; }
@media (min-width: 760px) { .g-hero { padding: 72px 0 112px; } }
@media (min-width: 1000px) { .g-hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 72px; } }

.sec-head .lede b { color: var(--fg); font-weight: 600; }
.prose { display: grid; gap: 16px; max-width: 38em; color: var(--fg-2); font-size: 17px; text-wrap: pretty; }
.prose b, .prose strong { color: var(--fg); font-weight: 600; }
@media (min-width: 760px) { .prose { font-size: 18px; } }
.pair { display: grid; gap: 32px; }
@media (min-width: 960px) { .pair { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* The question every operator asks, answered beside it. */
.ask { display: grid; gap: 28px; }
.ask h2 { max-width: 11em; }
.ask h2::before { content: '“'; }
.ask h2::after { content: '”'; }
@media (min-width: 960px) { .ask { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

/* Closing: the price again and the two ways in; then who made it. */
.final-price { display: flex; align-items: baseline; gap: 10px; color: var(--fg-2); font-size: 18px; }
.final-price b { font-size: 56px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.final p.lede { margin: 0 auto; text-align: center; }
.made { padding: 0 0 56px; }
.made .wrap { display: grid; gap: 8px; justify-items: center; text-align: center; padding-top: 32px; border-top: 1px solid var(--rule); }
.made p { max-width: 40em; font-size: 15px; color: var(--fg-3); text-wrap: balance; }
.made b { color: var(--fg-2); font-weight: 600; }
.made-facts { font-family: var(--mono); font-weight: 500; font-size: 13px !important; max-width: none !important; }

/* A small legend under a chart. */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #5a5f67; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend .r { background: #d24a3c; } .legend .a { background: #d99a2b; } .legend .g { background: #2e9e5e; }

/* Daily vehicle checks: how long each walkaround took, against the
   fourteen minutes that marks a check done properly. The bars draw once
   when the page opens. */
.timing { display: grid; gap: 14px; min-width: 0; }
.timing figcaption { font-size: 14px; color: var(--fg-3); text-align: center; text-wrap: balance; }
.timing-card { background: #fbfaf8; color: #16191f; border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 14px; }
.timing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.timing-top b { font-size: 16px; }
.timing-top span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #5a5f67; }
.timing-chart { --who: 112px; display: grid; gap: 10px; }
.timing-scale { position: relative; height: 18px; margin-left: calc(var(--who) + 12px); margin-right: 30px; font-family: var(--mono); font-weight: 500; font-size: 11px; color: #7a7f87; }
.timing-scale span { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); }
.timing-scale .mark { top: 0; color: #1d7442; font-weight: 500; white-space: nowrap; background: #fbfaf8; padding: 0 4px; z-index: 1; }
.t-row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); align-items: center; gap: 12px; }
.t-row .who { display: grid; gap: 2px; min-width: 0; }
.t-row .who small { font-size: 12.5px; color: #5a5f67; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row .reg { font-size: 12px; justify-self: start; }
.track { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; margin-right: 30px; background: #f1efea; border-radius: 8px; }
.track::after { content: ''; position: absolute; left: 56%; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed rgba(29, 116, 66, 0.75); }
.track i { display: block; height: 100%; width: calc(var(--m) / 25 * 100%); min-width: 6px; border-radius: 8px; transform-origin: left center; }
.track em { position: absolute; left: calc(var(--m) / 25 * 100% + 8px); font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.t-row.g i { background: #2e9e5e; } .t-row.a i { background: #d99a2b; } .t-row.r i { background: #d24a3c; }
.t-row.r em { color: #b3392d; }
.timing .legend { padding: 2px 2px 0; }
.js .t-row i { animation: bar-in 700ms var(--ease-out) both; }
.js .t-row em { animation: label-fade 300ms ease both; }
.t-row:nth-child(2) i { animation-delay: 300ms; } .t-row:nth-child(2) em { animation-delay: 850ms; }
.t-row:nth-child(3) i { animation-delay: 370ms; } .t-row:nth-child(3) em { animation-delay: 920ms; }
.t-row:nth-child(4) i { animation-delay: 440ms; } .t-row:nth-child(4) em { animation-delay: 990ms; }
.t-row:nth-child(5) i { animation-delay: 510ms; } .t-row:nth-child(5) em { animation-delay: 1060ms; }
.t-row:nth-child(6) i { animation-delay: 580ms; } .t-row:nth-child(6) em { animation-delay: 1130ms; }
@keyframes bar-in { from { transform: scaleX(0); } }
@keyframes label-fade { from { opacity: 0; } }
@media (min-width: 480px) { .timing-chart { --who: 132px; } .timing-card { padding: 22px 22px 18px; } }

/* The walkaround in three phones, in the order it happens. */
.walk { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; counter-reset: w; }
.walk::-webkit-scrollbar { display: none; }
.walk li { flex: 0 0 74%; scroll-snap-align: center; display: grid; gap: 10px; align-content: start; counter-increment: w; }
.walk .phone { max-width: none; margin-bottom: 10px; }
.walk h3::before { content: counter(w); display: block; margin-bottom: 8px; font-family: var(--mono); font-weight: 500; font-size: 14px; color: #1f7a45; }
.walk p { font-size: 15.5px; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 860px) {
  .walk { overflow: visible; margin: 0; padding: 0; gap: 48px; }
  .walk li { flex: 1 1 0; }
  .walk .phone { max-width: 270px; }
}

/* An alert as the app raises it. */
.missing { align-items: center; }
.missing h3 { font-size: 24px; color: var(--fg); }
@media (min-width: 960px) { .missing .flag { padding: 24px; } .missing .flag p { font-size: 17px; } }
.flag { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--rule-strong); }
.flag .reg { font-size: 13px; margin-top: 2px; }
.flag p { font-size: 15px; color: var(--fg-2); }
.flag p b { display: block; color: var(--warn); font-weight: 600; margin-bottom: 2px; }

@media (prefers-reduced-motion: reduce) { .js .t-row i, .js .t-row em { animation: none; } }

/* ── Guide: Driver medicals (med-/pack- classes) ── */
/* Driver medicals: one driver's record seen twice, the tiers as a choice,
   the reminders on a track. Page-only parts; merged into site.css later. */

/* Product card shared by the hero and the two records (paper, like .timing-card). */
.med-hero-fig, .med-rec { display: grid; gap: 14px; min-width: 0; }
.med-hero-fig figcaption { font-size: 14px; color: var(--fg-3); text-align: center; }
.med-card, .med-rec-card { background: #fbfaf8; color: #16191f; border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.med-card-top, .med-rec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.med-card-top b, .med-rec-top b { font-size: 16px; }
.med-card-top span, .med-rec-top span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #5a5f67; }
.med-list { display: grid; gap: 8px; }
.med-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 12px; border-radius: 12px; background: #f1efea; }
.med-who { display: grid; gap: 2px; min-width: 0; }
.med-who b { font-weight: 600; font-size: 15px; }
.med-who small { font-family: var(--mono); font-weight: 500; font-size: 12px; color: #5a5f67; }
.med-who .med-expired { color: #b3392d; }
.med-open { background: #fbf0dc !important; box-shadow: inset 0 0 0 1px rgba(148, 96, 15, 0.22); }
.med-flag { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(148, 96, 15, 0.2); }
.med-flag-k { font-size: 12.5px; color: #5a5f67; }
.med-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.med-tags span { padding: 3px 10px; border-radius: 99px; background: #fff; color: #94600f; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(148, 96, 15, 0.25); }
.med-answers { display: grid; gap: 6px; padding: 4px 0; }
.med-flag-note { font-size: 13px; line-height: 1.45; color: #5a5f67; text-wrap: pretty; }

/* A redaction: a solid bar, the way a marker pen hides a line on paper. */
.med-redact { display: block; width: var(--w, 60%); height: 12px; border-radius: 2px; background: #16191f; }

/* Tiers: three choices on one strip; the chosen one opens below. Without
   JS every tier shows, one under another, and the strip is hidden. */
.med-tabs { display: none; }
.med-tier { display: grid; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.med-tier[hidden] { display: none; }
.med-tier-k { font-family: var(--mono); font-weight: 500; font-size: 13px; color: #1f7a45; margin-bottom: 6px; }
.med-tier h3 { font-size: 26px; letter-spacing: -0.025em; }
.med-tier-text p:last-child { margin-top: 8px; color: var(--fg-2); font-size: 17px; max-width: 34em; text-wrap: pretty; }
.med-ticks { display: grid; gap: 10px; align-content: start; }
.med-ticks li { position: relative; padding-left: 26px; font-size: 16px; text-wrap: pretty; }
.med-ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid #2e9e5e; border-bottom: 2px solid #2e9e5e; transform: rotate(-45deg); }
.med-held { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-3); }
.med-held span:last-child { color: var(--fg); font-weight: 600; }
.med-meter { display: inline-flex; gap: 4px; }
.med-meter b { width: 26px; height: 8px; border-radius: 2px; background: var(--sheet-tile); box-shadow: inset 0 0 0 1px var(--line-strong); }
.med-meter[style*='--n:1'] b:nth-child(-n+1), .med-meter[style*='--n:3'] b { background: #16191f; box-shadow: none; }
.med-tabbed .med-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  background: var(--sheet-tile); border-radius: 18px;
}
.med-tabs button {
  position: relative; display: grid; gap: 2px; justify-items: start; align-content: start; text-align: left;
  min-height: 64px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--fg-2);
  cursor: pointer; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.med-tabs button b { font-size: 15px; color: var(--fg); }
.med-tabs button span { font-size: 13px; line-height: 1.3; }
.med-tabs button em { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: #1f7a45; }
.med-tabs button[aria-selected='true'] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(12, 15, 20, 0.08), 0 0 0 1px rgba(12, 15, 20, 0.06); }
.med-tabs button:focus-visible { outline: 2px solid var(--sheet-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .med-tabs button[aria-selected='false']:hover { color: var(--fg); } }
.med-tabbed .med-tier { border-top: 0; padding-top: 28px; }
.med-tabbed .med-tier:not([hidden]) { animation: med-tier-in 240ms var(--ease-out); }
@keyframes med-tier-in { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 860px) {
  .med-tabs button { min-height: 72px; padding: 14px 18px; }
  .med-tabs button b { font-size: 17px; }
  .med-tabs button span { font-size: 14px; }
  .med-tier { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; }
}

/* Reminders: three dates on one line, in the order they happen. */
.med-track { display: grid; gap: 0; }
.med-track li { position: relative; display: grid; gap: 6px; padding: 0 0 28px 32px; }
.med-track li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-0); box-shadow: inset 0 0 0 2px var(--accent); }
.med-track li::after { content: ''; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 2px; background: var(--rule-strong); }
.med-track li.med-last::before { background: var(--warn); box-shadow: none; }
.med-track li.med-last::after { display: none; }
.med-track li:last-child { padding-bottom: 0; }
.med-day { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--accent); }
.med-last .med-day { color: var(--warn); }
.med-track li p:last-child { font-size: 17px; color: var(--fg-2); max-width: 22em; text-wrap: pretty; }
@media (min-width: 760px) {
  .med-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .med-track li { padding: 34px 0 0; }
  .med-track li::before { top: 0; }
  .med-track li::after { left: 22px; right: -26px; top: 6px; bottom: auto; width: auto; height: 2px; }
}

/* The same record, twice. */
.med-twice { display: grid; gap: 28px; }
.med-rec figcaption { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.med-rec-card { box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.06), 0 24px 50px -30px rgba(12, 15, 20, 0.35); }
.med-outcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #f1efea; font-size: 14px; color: #5a5f67; }
.med-rows { margin: 8px 0 0; }
.med-rows > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-bottom: 1px solid rgba(12, 15, 20, 0.08); }
.med-rows dt { font-size: 14.5px; color: #5a5f67; }
.med-rows dd { margin: 0; font-size: 15px; font-weight: 600; }
.med-rows dd.med-flagged { color: #94600f; }
.med-rows > div:has(.med-flagged) dt { color: #94600f; font-weight: 600; }
.med-rec:not(.med-rec-open) .med-rows dd.med-flagged { display: flex; align-items: center; gap: 10px; }
.med-rec:not(.med-rec-open) .med-rows dd.med-flagged .med-redact { flex: none; width: min(var(--w), 9em); }
.med-rec:not(.med-rec-open) .med-rows dd.med-flagged::after { content: 'Flagged'; font-family: var(--mono); font-weight: 500; font-size: 12px; }
.med-rec-open .med-rows dd.med-flagged::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #d99a2b; vertical-align: 1px; }
.med-rec-note { padding: 12px 12px 2px; font-size: 13px; color: #5a5f67; }
.med-after { margin-top: 56px; }
.med-leave h3 { font-size: 22px; margin-bottom: 14px; }
.med-leave ul { display: grid; border-top: 1px solid var(--line-strong); }
.med-leave li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.med-leave li::after { content: 'Deleted'; font-family: var(--mono); font-weight: 500; font-size: 12px; color: #b3392d; }
.med-leave > p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 860px) { .med-twice { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* The second action stays on this site, so it points along, not out. */
.med-close .btn.ghost::after { content: '→'; }

@media (prefers-reduced-motion: reduce) { .med-tabbed .med-tier:not([hidden]) { animation: none; } }

/* ── Guide: DVSA audit pack (med-/pack- classes) ── */
/* DVSA audit pack: the Evidence Pack as the folder it is, a folder per
   vehicle holding the original sheets, with a missing inspection shown as
   the gap it leaves. Then the six reports, led by the question each one
   answers, and what the pack will not do. (Merged into site.css later.) */

.pack-fig { display: grid; gap: 14px; min-width: 0; }
.pack-fig figcaption { font-size: 14px; color: var(--fg-3); text-align: center; text-wrap: balance; }
.pack-card { background: #fbfaf8; color: #16191f; border-radius: 22px; padding: 8px 8px 10px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.pack-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 10px 14px; border-bottom: 1px solid rgba(12, 15, 20, 0.08); }
.pack-top b { display: block; font-size: 16px; }
.pack-top span { display: block; margin-top: 2px; font-family: var(--mono); font-weight: 500; font-size: 12px; color: #5a5f67; }
.pack-sum { flex: none; display: grid; justify-items: end; gap: 3px; font-size: 13px; color: #5a5f67; text-align: right; }
.pack-sum em, .pack-count em { font-style: normal; font-weight: 600; color: #b3392d; }

.pack-folder { border-bottom: 1px solid rgba(12, 15, 20, 0.08); }
.pack-folder:last-child { border-bottom: 0; }
.pack-folder summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 10px; cursor: pointer;
  list-style: none; border-radius: 12px; transition: background-color var(--dur) ease;
}
.pack-folder summary::-webkit-details-marker { display: none; }
.pack-folder summary::before {
  content: ''; flex: none; width: 7px; height: 7px; margin: 0 2px 0 3px;
  border-right: 2px solid #5a5f67; border-bottom: 2px solid #5a5f67;
  transform: rotate(-45deg); transition: transform 200ms var(--ease-out);
}
.pack-folder[open] summary::before { transform: translateY(-2px) rotate(45deg); }
.pack-folder summary:focus-visible { outline: 2px solid #16191f; outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pack-folder summary:hover { background: #f1efea; } }
.pack-folder .reg { font-size: 12.5px; }
.pack-count { margin-left: auto; font-size: 13px; color: #5a5f67; white-space: nowrap; }
.pack-count em { margin-left: 6px; }

.pack-files { display: grid; gap: 2px; padding: 0 2px 10px 22px; }
.pack-files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: #f1efea; }
.pack-type { min-width: 34px; padding: 2px 0; border-radius: 4px; background: #16191f; color: #fbfaf8; font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-align: center; }
.pack-name { display: grid; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pack-name small { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: #5a5f67; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-files time { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #5a5f67; white-space: nowrap; }
/* The gap: where a sheet should be and is not. */
.pack-files .pack-gap { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(210, 74, 60, 0.55); }
.pack-gap .pack-type { background: #fbe7e4; color: #b3392d; }
.pack-gap .pack-name { color: #b3392d; }
.pack-gap time { color: #b3392d; }

/* Opening a folder lays its files out top to bottom; the one open when the
   page loads does it once, just after the page settles. */
.js .pack-folder[open] .pack-files li { animation: pack-file 300ms var(--ease-out) both; }
.pack-files li:nth-child(2) { animation-delay: 40ms; } .pack-files li:nth-child(3) { animation-delay: 80ms; }
.pack-files li:nth-child(4) { animation-delay: 120ms; } .pack-files li:nth-child(5) { animation-delay: 160ms; }
.pack-files li:nth-child(6) { animation-delay: 200ms; }
.js .pack-folder[data-first][open] .pack-files li { animation-duration: 360ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(1) { animation-delay: 300ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(2) { animation-delay: 360ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(3) { animation-delay: 420ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(4) { animation-delay: 560ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(5) { animation-delay: 620ms; }
.js .pack-folder[data-first] .pack-files li:nth-child(6) { animation-delay: 680ms; }
@keyframes pack-file { from { opacity: 0; transform: translateY(-4px); } }

@media (min-width: 480px) {
  .pack-card { padding: 10px 12px 12px; }
  .pack-files { padding-left: 28px; }
}

/* The six reports: the operator's question first, then the report that
   answers it. */
.pack-reports { display: grid; border-top: 1px solid var(--line-strong); }
.pack-reports li { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pack-ask { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.pack-reports h3 { font-size: 17px; }
.pack-reports div p { margin-top: 4px; font-size: 16px; color: var(--fg-2); max-width: 36em; text-wrap: pretty; }
@media (min-width: 860px) {
  .pack-reports li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: baseline; padding: 30px 0; }
}

/* What it will not do: four plain statements, two columns on a wide screen. */
.pack-limits { display: grid; gap: 0 64px; }
.pack-limits li { display: grid; align-content: start; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.pack-limits h3 { font-size: 19px; }
.pack-limits p { font-size: 16px; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 860px) { .pack-limits { grid-template-columns: 1fr 1fr; } .pack-limits li { padding: 28px 0 32px; } }

/* The closing's second button stays on this site. */
.btn.ghost.pack-next::after { content: '→'; }

@media (prefers-reduced-motion: reduce) {
  .js .pack-folder[open] .pack-files li { animation: none; }
  .pack-folder summary::before { transition: none; }
}

/* ── Guide: Tachograph analysis (tacho- classes) ── */
/* Tachograph analysis: the driver's day is the page. Opening on a paper
   card of one real-looking shift (a 24-hour activity bar drawn the way a
   tachograph chart is: driving tall, other work lower, the break low), then
   the same analysis on the manager's screen, Andre's plain words, the
   driver's reply, the escalation ladder with one driver's place on it, the
   training library, the Homer price build-up and the limits. */

/* ── The driver's day (hero) ── */
.tacho-day { display: grid; gap: 14px; min-width: 0; }
.tacho-day figcaption { font-size: 14px; color: var(--fg-3); text-align: center; text-wrap: balance; }
.tacho-card { background: #fbfaf8; color: #16191f; border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 16px; }
.tacho-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.tacho-top b { font-size: 16px; }
.tacho-top span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: #5a5f67; }

.tacho-chart { position: relative; padding-top: 26px; }
.tacho-bar { position: relative; height: 46px; background: #f1efea; border-radius: 8px; overflow: hidden; }
.tacho-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(46, 158, 94, 0.35); }
.tacho-bar i { position: absolute; bottom: 0; left: var(--a); width: var(--w); min-width: 3px; transform-origin: bottom; }
.tacho-bar .d { height: 100%; background: #16191f; }
.tacho-bar .d.x { background: #d24a3c; }
.tacho-bar .o { height: 62%; background: #d99a2b; }
.tacho-bar .b { height: 30%; background: #2e9e5e; }
.tacho-breach { position: absolute; top: 0; left: var(--a); width: var(--w); height: 20px; border: 2px solid #d24a3c; border-bottom: 0; border-radius: 4px 4px 0 0; }
.tacho-breach span { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: #b3392d; background: #fbfaf8; padding: 0 4px; }
.tacho-hours { position: relative; height: 16px; margin-top: 6px; font-family: var(--mono); font-weight: 500; font-size: 11px; color: #7a7f87; }
.tacho-hours span { position: absolute; left: var(--a); transform: translateX(-50%); }
.tacho-hours span:first-child { transform: none; }
.tacho-hours span:last-child { transform: translateX(-100%); }

.tacho-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tacho-totals > div { padding: 10px 12px; border-radius: 12px; background: #f1efea; display: grid; gap: 2px; }
.tacho-totals dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5a5f67; }
.tacho-totals dt::before { content: ''; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tacho-totals .d dt::before { background: #16191f; }
.tacho-totals .o dt::before { background: #d99a2b; }
.tacho-totals .b dt::before { background: #2e9e5e; }
.tacho-totals dd { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 379px) { .tacho-totals { gap: 6px; } .tacho-totals > div { padding: 9px 9px; } .tacho-totals dd { font-size: 15px; } .tacho-totals dt { font-size: 12px; } }

.tacho-inf { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: #fbe7e4; color: #8f2c22; }
.tacho-inf b { font-size: 15px; }
.tacho-inf span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }

.tacho-log { display: grid; }
.tacho-log li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 2px; border-top: 1px solid rgba(12, 15, 20, 0.07); font-size: 14px; }
.tacho-log time, .tacho-log em { font-family: var(--mono); font-weight: 500; font-size: 12.5px; font-style: normal; color: #5a5f67; font-variant-numeric: tabular-nums; }
.tacho-log li.x span, .tacho-log li.x em { color: #b3392d; font-weight: 600; }
@media (min-width: 480px) { .tacho-card { padding: 22px 22px 18px; } }
@media (min-width: 1000px) {
  /* Two columns of the log, so the card stays the height of the words beside it. */
  .tacho-log { grid-template-columns: 1fr 1fr; column-gap: 20px; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
}

.js .tacho-bar i { animation: tacho-rise 520ms var(--ease-out) both; animation-delay: calc(250ms + var(--n) * 90ms); }
.js .tacho-breach { animation: tacho-fade 320ms ease both; animation-delay: 900ms; }
.js .tacho-inf { animation: tacho-fade 320ms ease both; animation-delay: 1000ms; }
@keyframes tacho-rise { from { transform: scaleY(0); } }
@keyframes tacho-fade { from { opacity: 0; } }

/* ── Same analysis, both sides ── */
.tacho-same { display: grid; gap: 36px; }
.tacho-same .desk { margin: 0; }
.tacho-points { display: grid; }
.tacho-points li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.tacho-points li:last-child { padding-bottom: 0; }
.tacho-who { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--fg-3); }
.tacho-points b, .tacho-rules b, .tacho-limits b { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.tacho-points p, .tacho-rules p, .tacho-limits p { margin-top: 2px; font-size: 15.5px; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 1000px) { .tacho-same { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; } }

/* ── Andre: the regulation, then the plain words ── */
.tacho-andre { display: grid; gap: 40px; }
.tacho-andre h2 { color: var(--fg); margin-bottom: 4px; }
.tacho-langs { display: grid; margin-top: 8px; }
.tacho-langs li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.tacho-langs b { color: var(--fg); font-weight: 600; font-size: 17px; }
.tacho-langs span { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--fg-3); }
.tacho-say { display: grid; gap: 18px; align-content: center; }
.tacho-reg { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--rule-strong); font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--fg-3); }
.tacho-reg span { font-family: var(--sans); font-size: 13px; }
.tacho-say .chat p { font-size: 17px; max-width: 100%; }
.tacho-listen { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 7px 14px 7px 10px; border-radius: 99px; background: var(--ink-1); border: 1px solid var(--rule); font-size: 13.5px; color: var(--fg-2); }
.tacho-listen i { width: 0; height: 0; border-left: 8px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (min-width: 960px) { .tacho-andre { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; } }

/* ── The driver's reply on the record ── */
.tacho-answer { display: grid; gap: 36px; }
.tacho-record { align-self: start; background: #fff; border-radius: 22px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.06), 0 24px 60px -30px rgba(12, 15, 20, 0.35); }
.tacho-record-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tacho-record-top b { font-size: 16px; }
.tacho-record-meta { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--fg-3); }
.tacho-record blockquote { padding: 14px 16px; border-radius: 14px; background: var(--sheet); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.tacho-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tacho-photos span { display: grid; place-items: end start; height: 84px; padding: 10px; border-radius: 12px; background: repeating-linear-gradient(135deg, #ebe8e2 0 10px, #e4e1da 10px 20px); font-size: 13px; font-weight: 600; color: var(--fg-2); }
.tacho-signed { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.tacho-signed .sig { font-size: 22px; font-weight: 500; font-style: italic; letter-spacing: -0.02em; color: var(--fg); }
@media (min-width: 1000px) { .tacho-answer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } .tacho-record { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── The ladder ── */
.tacho-ladder-top { display: grid; gap: 8px; }
.tacho-ladder { position: relative; display: grid; gap: 10px; counter-reset: rung; max-width: 520px; }
.tacho-ladder::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--rule-strong); }
.tacho-ladder li { position: relative; counter-increment: rung; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 10px 14px 10px 0; }
.tacho-ladder li::before { content: counter(rung); grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-1); border: 1px solid var(--rule-strong); font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--fg-2); z-index: 1; }
.tacho-ladder b { font-size: 17px; font-weight: 600; }
.tacho-ladder span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--fg-3); }
.tacho-ladder li.here { background: var(--ink-1); border: 1px solid var(--rule-strong); border-radius: 16px; padding: 12px 14px 12px 0; margin-left: -8px; padding-left: 8px; grid-template-columns: 36px minmax(0, 1fr) auto; }
.tacho-ladder li.here::before { background: var(--warn); border-color: var(--warn); color: var(--ink-0); }
.tacho-pin { grid-column: 2 / -1; margin-top: 6px; font-size: 14px; color: var(--fg-2); }
.tacho-pin strong { margin-left: 4px; font-weight: 600; color: var(--warn); }
.tacho-rules { display: grid; margin-top: 56px; }
.tacho-rules li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .tacho-rules { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
@media (min-width: 1000px) {
  .tacho-ladder-top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
  .tacho-ladder-top .sec-head { margin-bottom: 0; }
}

/* ── Training library ── */
.tacho-subjects { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
.tacho-subjects li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tacho-subjects b { font-size: 17px; font-weight: 600; }
.tacho-subjects span { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tacho-after { margin-top: 28px; max-width: 40em; font-size: 17px; color: var(--fg-2); text-wrap: pretty; }
.tacho-after b { color: var(--fg); font-weight: 600; }
@media (min-width: 600px) { .tacho-subjects { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 960px) { .tacho-subjects { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } }

/* ── Homer price build-up: the calculator's quote, on paper ── */
.tacho-homer { display: grid; gap: 40px; }
.tacho-homer h2 { color: var(--fg); margin-bottom: 4px; }
.tacho-foot { font-size: 15px !important; color: var(--fg-3) !important; }
.tacho-foot b { color: var(--fg-2) !important; }
.tacho-foot a { display: inline-block; margin-top: 6px; color: var(--fg); font-weight: 600; text-underline-offset: 4px; }
.tacho-price {
  --fg: var(--sheet-ink); --fg-2: var(--sheet-ink-2); --fg-3: var(--sheet-ink-3); --line: var(--sheet-rule); --line-strong: rgba(12, 15, 20, 0.18);
  align-self: start; background: var(--sheet); color: var(--fg); border-radius: 22px; padding: 24px;
}
.tacho-price-head { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.tacho-price-head h3 { font-size: 24px; }
.tacho-price-head span { font-size: 14px; color: var(--fg-3); }
.tacho-ln { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tacho-ln .k { font-size: 15.5px; font-weight: 600; line-height: 1.35; min-width: 0; }
.tacho-ln small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: var(--fg-3); line-height: 1.45; text-wrap: pretty; }
.tacho-ln .v { font-family: var(--mono); font-weight: 500; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tacho-price-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; margin-top: 2px; padding-top: 16px; border-top: 2px solid var(--sheet-ink); }
.tacho-price-total span { font-size: 14.5px; color: var(--fg-2); }
.tacho-price-total b { grid-row: span 2; font-size: 46px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.tacho-price-total small { font-size: 13.5px; color: var(--fg-3); }
@media (max-width: 479px) { .tacho-ln { flex-direction: column; gap: 4px; } .tacho-price { padding: 20px 18px; } }
@media (min-width: 960px) { .tacho-homer { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; } .tacho-price { padding: 28px; } }

/* ── Limits ── */
.tacho-limits { display: grid; }
.tacho-limits li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .tacho-limits { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* ── Close ── */
.final-price .tacho-plus { color: var(--fg-2); }
.final-price { flex-wrap: wrap; justify-content: center; }
.btn.ghost.tacho-in::after { content: '→'; }

@media (prefers-reduced-motion: reduce) { .js .tacho-bar i, .js .tacho-breach, .js .tacho-inf { animation: none; } }

/* ── Pricing calculator: the quote writes itself ──────────────────────
   The fleet is one sentence with the numbers in it. Each element is a
   quiet row on the ink page with its price and its control; whatever is
   switched on is written onto the quote, a paper slip held beside the list
   on desktop and a bar holding the total on a phone, opened into a sheet.
   The long explanations wait behind "What you get". */
.qt-top { padding: 36px 0 24px; }
.qt-top-in { display: grid; gap: 16px; }
.qt-top h1 { max-width: 12em; }
.qt-top .lede b { color: var(--fg); font-weight: 600; }
.fleet-line { margin-top: 20px; max-width: 19em; font-size: clamp(27px, 3.8vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; color: var(--fg-2); text-wrap: pretty; }
.num input {
  width: calc(var(--ch, 2) * 0.6em + 0.8em); min-width: 1.7em; padding: 0 0.12em;
  font: inherit; letter-spacing: -0.02em; color: var(--fg); text-align: center; font-variant-numeric: tabular-nums;
  background: var(--ink-1); border: 0; border-bottom: 3px solid var(--accent); border-radius: 12px 12px 3px 3px;
  -moz-appearance: textfield; transition: background-color var(--dur) ease;
}
.num input::-webkit-inner-spin-button, .num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num input:hover, .num input:focus { background: var(--ink-2); }
.num input:focus-visible { outline: none; border-bottom-color: var(--paper); }
@media (min-width: 760px) { .qt-top { padding: 80px 0 40px; } .qt-top-in { gap: 20px; } }

.qt { padding: 12px 0 136px; }
.qt-grid { display: grid; gap: 32px; }
.qt-build { min-width: 0; }
@media (min-width: 960px) {
  .qt { padding: 24px 0 120px; }
  .qt-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
  .qt-grid > .slip { margin-top: 80px; }
}
.qt-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; }
.qt-start > p:first-child { font-size: 14px; color: var(--fg-3); }
.qt-start-note { font-size: 14.5px; color: var(--fg-2); min-height: 1.5em; }
.seg { display: flex; gap: 4px; padding: 4px; width: 100%; max-width: 460px; background: var(--ink-1); border: 1px solid var(--rule); border-radius: 99px; }
.seg button { flex: 1; min-width: 0; min-height: 42px; padding: 0 8px; border: 0; border-radius: 99px; background: transparent; color: var(--fg-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--ink-0); }
@media (max-width: 359px) { .seg button { font-size: 14px; } }
@media (hover: hover) and (pointer: fine) { .seg button[aria-pressed='false']:hover { color: var(--fg); } }

.grp { margin-top: 44px; }
.grp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.grp-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.grp-head span { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--fg-3); }
.mod { display: grid; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mod h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; transition: color var(--dur) ease; }
.mod:not(.on) h3 { color: var(--fg-2); }
.mod-price { margin-top: 3px; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--fg-2); }
.free { margin-left: 8px; color: var(--accent); white-space: nowrap; }
.mod-what { margin-top: 6px; max-width: 34em; font-size: 15px; color: var(--fg-3); text-wrap: pretty; }
.more-btn { padding: 0; border: 0; background: none; color: var(--fg-2); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.more-btn:hover { color: var(--fg); text-decoration-color: currentColor; }
.mod-ctl { display: flex; align-items: center; }
@media (min-width: 600px) { .mod { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; } .mod-ctl { justify-content: flex-end; min-width: 196px; } }
.count { display: flex; align-items: center; gap: 6px; }
.st { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; font-size: 19px; line-height: 1; cursor: pointer; transition: background-color var(--dur) ease, transform 140ms var(--ease-out); }
.count .n { min-width: 38px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.all { min-height: 40px; margin-left: 6px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rule-strong); background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--dur) ease; }
.count button:disabled { opacity: 0.3; cursor: default; }
.count button:active:not(:disabled) { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .count button:hover:not(:disabled) { background: var(--ink-2); } }
.auto { font-size: 14px; color: var(--fg-3); }
.mod-ctl .auto { max-width: 15em; text-align: right; }
@media (max-width: 599px) { .mod-ctl .auto { text-align: left; } }
.sw { position: relative; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 99px; background: var(--ink-3); cursor: pointer; transition: background-color 200ms ease; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); transition: transform 240ms var(--ease-out); }
.sw[aria-checked='true'] { background: var(--accent-strong); }
.sw[aria-checked='true']::after { transform: translateX(20px); }
.qt-fine { margin-top: 36px; display: grid; gap: 10px; max-width: 44em; font-size: 14px; line-height: 1.65; color: var(--fg-3); }
.qt-fine b { color: var(--fg-2); font-weight: 600; }
.qt-fine a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }

.slip {
  --fg: var(--sheet-ink); --fg-2: var(--sheet-ink-2); --fg-3: var(--sheet-ink-3); --line: var(--sheet-rule); --line-strong: rgba(12, 15, 20, 0.18);
  --btn-bg: var(--sheet-ink); --btn-fg: #ffffff;
  background: var(--sheet); color: var(--fg); border-radius: 22px;
}
.slip :focus-visible { outline-color: var(--sheet-ink); }
.slip-bar { display: none; }
.slip-body { padding: 24px; }
.slip-head h2 { font-size: 26px; }
.slip-head p { margin-top: 4px; font-size: 14px; color: var(--fg-3); }
.slip-lines { margin-top: 18px; border-top: 1px solid var(--line-strong); }
.ln { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ln .k { font-size: 15px; font-weight: 500; line-height: 1.35; }
.ln small { display: block; margin-top: 2px; font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--fg-3); }
.ln .v { font-family: var(--mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln s { margin-right: 6px; color: var(--fg-3); }
.js .ln.new { animation: ln-in 260ms var(--ease-out); }
@keyframes ln-in { from { opacity: 0; transform: translateY(-4px); } }
.slip-empty { padding: 14px 0; font-size: 15px; color: var(--fg-3); }
.slip-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 2px; padding-top: 16px; border-top: 2px solid var(--sheet-ink); }
.slip-total span { font-size: 14px; color: var(--fg-2); }
.slip-total b { font-size: 46px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.slip-sub { margin-top: 10px; font-size: 14px; color: var(--fg-2); }
.slip-sub b { color: var(--fg); font-variant-numeric: tabular-nums; }
.slip .btn { width: 100%; margin-top: 20px; }
@media (min-width: 960px) {
  .slip { position: sticky; top: calc(var(--header-h) + 24px); }
  .slip-body { padding: 28px; }
}
.slip-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(5, 7, 10, 0.6); animation: scrim-in 200ms ease; }
.slip-scrim[hidden] { display: none; }
@keyframes scrim-in { from { opacity: 0; } }
@media (max-width: 959px) {
  .slip {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30;
    display: flex; flex-direction: column; max-height: calc(100dvh - var(--header-h) - 20px);
    box-shadow: 0 18px 50px -8px rgba(0, 0, 0, 0.6);
  }
  .slip-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 12px;
    width: 100%; min-height: 62px; padding: 0 20px; flex: none;
    border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
  }
  .slip-bar span { font-size: 14px; color: var(--fg-2); }
  .slip-bar b { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
  .slip-bar i { width: 9px; height: 9px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(2px) rotate(45deg); transition: transform 240ms var(--ease-out); }
  .slip.open .slip-bar { border-bottom: 1px solid var(--line); }
  .slip.open .slip-bar i { transform: translateY(-2px) rotate(225deg); }
  .slip-body { display: none; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; }
  .slip.open .slip-body { display: block; animation: sheet-in 280ms var(--ease-out); }
  .slip-head h2 { font-size: 22px; }
  .slip-total b { font-size: 36px; }
  html.sheet-open { overflow: hidden; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }

.why { width: min(560px, calc(100% - 24px)); max-height: min(82dvh, 720px); padding: 0; border: 0; border-radius: 24px; background: var(--sheet); color: var(--sheet-ink); overscroll-behavior: contain; }
.why::backdrop { background: rgba(5, 7, 10, 0.6); }
.why[open] { animation: why-in 240ms var(--ease-out); }
@keyframes why-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.why-in { display: grid; gap: 16px; padding: 24px; }
.why-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.why-head h2 { font-size: 24px; letter-spacing: -0.025em; }
.why-x { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid rgba(12, 15, 20, 0.18); border-radius: 99px; background: transparent; color: inherit; font-weight: 600; cursor: pointer; }
.why-body { display: grid; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--sheet-ink-2); }
.why-body b { color: var(--sheet-ink); font-weight: 600; }
.why :focus-visible { outline-color: var(--sheet-ink); }
@media (max-width: 599px) {
  .why { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .why[open] { animation-name: why-up; }
  @keyframes why-up { from { transform: translateY(24px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .ln.new, .slip.open .slip-body, .why[open], .slip-scrim { animation: none; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); padding: 56px 0 72px; font-size: 15px; color: var(--paper-2); }
.foot .wrap { display: grid; gap: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.foot h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--paper-3); margin-bottom: 12px; }
.foot li + li { margin-top: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot .brand { color: var(--paper); }
.foot .small { color: var(--paper-3); font-size: 14px; display: grid; gap: 4px; }
@media (min-width: 760px) {
  .foot .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot .small { grid-column: 1 / -1; }
}
@media (max-width: 759px) { body.has-bar .foot { padding-bottom: 120px; } }

/* ── Install prompt (only when the browser offers one) ────────────────── */
.install { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 17; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ink-2); color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 18px; font-size: 15px; }
.install[hidden] { display: none; }
.install span { flex: 1; }
@media (min-width: 760px) { .install { left: auto; right: 24px; bottom: 24px; max-width: 360px; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.seen) { opacity: 1; transform: none; }
  .btn:active { transform: none; }
  .chip > span, .live .go > span { transition: opacity 120ms ease; filter: none !important; }
}

/* Reduced motion: every state shows at once. */
@media (prefers-reduced-motion: reduce) {
  .on > .mark, .faq details[open] > div, .menu-btn.flip { animation: none; }
  .sheet, .sheet a, .sheet.open a, .faq details::details-content { transition: none; }
}
