/* HaulFinder — page v4 (draft). System fonts, no external requests, no trackers. Light and dark.
   Layout: a dark first screen with the before / after slider under the headline; light tiles by value (arrange the board, email a broker from the row, open the
   map, the regular DAT page too); one integrations panel; questions; the offer on the dark ground; the footer.
   Colour tokens: every one is defined on bare :root (light); the two dark blocks only redefine them (the page works as a file, as a site and as an artifact). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #0f1720;
  --muted: #4f5b6b;
  --line: #e3e7ee;
  --tile: #f4f6f9;
  --link: #2b57a0;
  --btn: #3462a7;
  --btn-ink: #ffffff;
  --btn-hover: #2b5391;
  --edge: rgba(16, 24, 40, 0.14);
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.22), 0 2px 8px rgba(16, 24, 40, 0.08);
  /* the product's own dark strip family, and the F of the mark */
  --strip: #161d25;
  --strip-2: #1e2833;
  --on-strip: #ffffff;
  --on-strip-dim: rgba(255, 255, 255, 0.8);
  --blue: #7fb0ff;
  --ring: #2b57a0;
  --tag: rgba(14, 19, 25, 0.95);
  --tag-hl: #7fb0ff;
  --tag-hl-ink: #0e1520;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1319;
    --ink: #e8edf3;
    --muted: #a1acba;
    --line: #252d37;
    --tile: #151c24;
    --link: #7fb0ff;
    --btn: #7fb0ff;
    --btn-ink: #0e1520;
    --btn-hover: #a3c6ff;
    --edge: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --strip: #121820;
    --strip-2: #1a232d;
    --ring: #7fb0ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1319;
  --ink: #e8edf3;
  --muted: #a1acba;
  --line: #252d37;
  --tile: #151c24;
  --link: #7fb0ff;
  --btn: #7fb0ff;
  --btn-ink: #0e1520;
  --btn-hover: #a3c6ff;
  --edge: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  --strip: #121820;
  --strip-2: #1a232d;
  --ring: #7fb0ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* ki750 QA (17.10): the ground below a SHORT page (welcome, renewed) is the footer's colour, not a white band — with a background of its own the root
   no longer takes the body's, so the body paints only its own box and what is left of the window below the footer is the strip */
html { background: var(--strip); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .hero :focus-visible, .offer :focus-visible, footer :focus-visible { outline-color: var(--blue); }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap.narrow { max-width: 50rem; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 30; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }
[id] { scroll-margin-top: 72px; }

/* ── strip ───────────────────────────────────────────────────────────────── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--strip); color: var(--on-strip); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bar { display: flex; align-items: center; gap: 12px 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-strip); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 12%; outline: 1px solid #4a5565; outline-offset: -1px; }
.wm { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1; }
.wm span { font-weight: 520; color: var(--blue); }
.top nav { display: flex; gap: 4px 24px; }
.top nav a { color: var(--on-strip-dim); text-decoration: none; padding: 8px 0; font-size: 0.95rem; }
.top nav a:hover { color: var(--on-strip); text-decoration: underline; text-underline-offset: 4px; }

/* ── buttons: one main call, «Book a demo» ───────────────────────────────── */
.btn {
  display: inline-block; background: var(--btn); color: var(--btn-ink); font-weight: 680; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; line-height: 1.2; text-align: center; font-size: 1.05rem;
}
.btn:hover { background: var(--btn-hover); }
.btn.small { padding: 9px 18px; font-size: 0.95rem; }
.btn.ghost { background: transparent; color: var(--on-strip); border-color: rgba(255, 255, 255, 0.45); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.top .btn, .hero .btn:not(.ghost), .offer .btn:not(.ghost), .int .btn { background: var(--blue); color: #0e1520; }
.top .btn:hover, .hero .btn:not(.ghost):hover, .offer .btn:not(.ghost):hover, .int .btn:hover { background: #a3c6ff; }
.btn.sticky { display: none; }

/* ── hero: the headline, the line under it, two buttons, the before / after ── */
.hero { display: flow-root; position: relative; z-index: 1; color: var(--on-strip); padding: clamp(36px, 6vw, 72px) 0 0; background: radial-gradient(120% 90% at 85% 0%, var(--strip-2) 0%, var(--strip) 60%); }
h1 { margin: 0 0 20px; max-width: 22em; font-size: clamp(2.2rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 790; text-wrap: balance; }
h1 .h1a, h1 .hl { display: block; }
h1 .hl { color: var(--blue); }
.sub { margin: 0 0 30px; max-width: 46rem; font-size: clamp(1.1rem, 2.1vw, 1.38rem); line-height: 1.42; color: var(--on-strip-dim); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.offer .cta { justify-content: center; }

/* ── the before / after: the same screen on the same loads, as two loops; the line shows more of one or of the other ──
   Each side is a poster (the loop's first frame, an <img>) with the loop's <video> over it once app.js has both ready. WHICH side the line uncovers from the left is
   data-order on the figure (before-left: the regular DAT One on the left), so the order can change without touching a video. */
.cmp { max-width: 68rem; margin: clamp(30px, 5vw, 52px) auto -92px; }
.cmp-stage {
  --pos: 58%;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--edge); box-shadow: var(--shadow);
  background: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate;
}
.cmp-pic { position: absolute; inset: 0; z-index: 0; }
.cmp-pic picture { display: block; width: 100%; height: 100%; }
.cmp-pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border: 0; border-radius: 0; }
/* The loop lies exactly over its poster. Its top 3px stay the poster's: those rows are the page's static top bar in both recordings, so nothing shows — but a video as large as
   the picture under it can be counted by Chrome as the page's largest paint the moment its first frame arrives (measured: LCP 1.8 s -> 3.0 s on a throttled phone, once in
   five runs); a box 3px smaller never is. tools/test-slider.mjs holds this with a control. */
.cmp-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; visibility: hidden; border: 0; border-radius: 0; background: transparent; pointer-events: none; clip-path: inset(3px 0 0 0); }
.cmp.is-live .cmp-vid { visibility: visible; }
.cmp[data-order="before-left"] .cmp-dat, .cmp[data-order="after-left"] .cmp-hf { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* the line moves by transform (a full-width box slid left by the rest of the width), never by left: a moving left would count as layout shift */
.cmp-line { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: 3; pointer-events: none; transform: translateX(calc(var(--pos) - 100%)); will-change: transform; }
.cmp-line::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; margin-right: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(14, 19, 25, 0.45), 0 0 22px rgba(0, 0, 0, 0.35); }
.cmp-grip {
  position: absolute; top: 50%; right: 0; width: 46px; height: 46px; margin: -23px -23px 0 0; border-radius: 50%; background: #fff; color: #0f1720;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(14, 19, 25, 0.3);
}
.cmp-grip::before, .cmp-grip::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 3px 3px; border-radius: 1px; }
.cmp-grip::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.cmp-grip::after { right: 13px; transform: translateY(-50%) rotate(-135deg); }
.cmp-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.cmp-range:focus-visible { outline: none; }
.cmp-range:focus-visible ~ .cmp-line .cmp-grip { outline: 3px solid var(--blue); outline-offset: 3px; }
.cmp-tag {
  position: absolute; top: 12px; z-index: 2; padding: 6px 13px; border-radius: 999px; background: var(--tag); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; pointer-events: none; transition: opacity 0.2s ease;
}
.cmp-tag[data-side="hf"] { background: var(--tag-hl); color: var(--tag-hl-ink); }
.cmp[data-order="before-left"] .cmp-tag[data-side="dat"], .cmp[data-order="after-left"] .cmp-tag[data-side="hf"] { left: 12px; }
.cmp[data-order="before-left"] .cmp-tag[data-side="hf"], .cmp[data-order="after-left"] .cmp-tag[data-side="dat"] { right: 12px; }
/* a tag is hidden when the line is within 20 % of the edge it sits at */
.cmp[data-order="before-left"] .cmp-stage[data-edge~="l"] .cmp-tag[data-side="dat"], .cmp[data-order="before-left"] .cmp-stage[data-edge~="r"] .cmp-tag[data-side="hf"],
.cmp[data-order="after-left"] .cmp-stage[data-edge~="l"] .cmp-tag[data-side="hf"], .cmp[data-order="after-left"] .cmp-stage[data-edge~="r"] .cmp-tag[data-side="dat"] { opacity: 0; }
.cmp figcaption { margin-top: 10px; padding: 0 4px; min-height: 28px; font-size: 0.85rem; line-height: 1.4; color: var(--on-strip-dim); text-align: center; }

/* ── a wide screen: the text on the left, the before / after beside it, both inside the first screen ── */
@media (min-width: 1180px) {
  .hero { display: flex; align-items: center; min-height: min(calc(100svh - 61px), 52rem); padding: clamp(28px, 4.5vh, 56px) 0; }
  .hero .wrap { width: 100%; max-width: min(100%, 112rem); display: grid; grid-template-columns: minmax(360px, 3fr) minmax(0, 8fr); column-gap: clamp(32px, 3.6vw, 80px); align-items: center; }
  .top .wrap { max-width: min(100%, 112rem); }     /* the header lines up with the hero's edges */
  /* two lines (Pan 06.11: «думаю надо в 2 строки»): the first line is 9.8 em wide and the text column is about a quarter of the window, so 2.5vw fits it and 2.75vw did not from 1366 up */
  h1 { max-width: none; margin-bottom: 18px; font-size: clamp(2.2rem, 2.5vw, 2.8rem); }
  h1 .h1a { white-space: nowrap; }
  .sub { max-width: 34rem; margin-bottom: 26px; font-size: clamp(1.02rem, 1.25vw, 1.3rem); }
  .cmp { margin: 0; max-width: none; }
  /* never taller than the first screen leaves room for: the stage narrows (16:9 kept) on a short window */
  .cmp-stage { width: min(100%, calc((100svh - 61px - 2 * clamp(28px, 4.5vh, 56px) - 44px) * 16 / 9)); margin-inline-start: auto; }
  .cmp figcaption { text-align: right; }
  main > #what { padding-top: clamp(56px, 9vw, 104px); }
}

/* ── media: real recordings, in a plain frame ────────────────────────────── */
.media { position: relative; margin: 0; }
.media video, .media img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--edge); background: #fff; }
.media figcaption { margin-top: 10px; padding-right: 38px; min-height: 30px; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.ar-tabs video, .ar-card video, .ar-mail video { aspect-ratio: 16 / 9; }
.vt {
  position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(14, 19, 25, 0.78); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.vt:hover { background: rgba(14, 19, 25, 0.95); }
.vt::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.vt[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
@media (prefers-reduced-motion: reduce) { .vt { display: none; } }

/* ── sections ────────────────────────────────────────────────────────────── */
main > section { padding: clamp(56px, 9vw, 104px) 0; }
main > #what { padding-top: calc(92px + clamp(44px, 7vw, 80px)); }
h2 { margin: 0 0 28px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 770; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 740; text-wrap: balance; }

/* ── bento ───────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--tile); overflow: hidden; }
.tile.s12 { grid-column: span 12; }
.tile .media { margin-top: auto; }
.tile.s12:not(.wide) .pts { columns: 2; column-gap: 40px; }
.tile.s12:not(.wide) .pts li { break-inside: avoid; margin: 0 0 12px; }
.tile.wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 48px); align-items: center; }
.tile.wide.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.tile.wide.flip .media { order: -1; }
.tx { min-width: 0; }
.promise { margin: 0 0 16px; color: var(--muted); font-size: 1.08rem; }
.pts { margin: 0; padding: 0; list-style: none; }
.pts li { position: relative; margin: 7px 0; padding-left: 20px; }
.pts li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--btn); }
.pts li .fn { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.tail { margin: 16px 0 0; font-size: 0.98rem; color: var(--muted); }
.teams-line { margin: 28px 0 0; font-size: 1.08rem; color: var(--muted); }
.note-s { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ── integrations ────────────────────────────────────────────────────────── */
#integrations { padding-top: 0; }
.int { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(24px, 5vw, 56px); align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); color: var(--on-strip); background: radial-gradient(120% 140% at 100% 0%, var(--strip-2) 0%, var(--strip) 62%); }
.int h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.int p { margin: 0; max-width: 40rem; font-size: 1.1rem; color: var(--on-strip-dim); }

/* ── questions ───────────────────────────────────────────────────────────── */
#faq { background: var(--tile); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font-weight: 680; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.7rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; max-width: 42rem; color: var(--muted); }

/* ── the offer: ONE card in two columns (03.10: «растянутый блок — надо бы компактней») — the price and the free days on the left, what is needed and the two buttons on the right; one column on a phone ── */
.offer { text-align: center; color: var(--on-strip); padding: clamp(28px, 3.2vw, 40px) 0; background: radial-gradient(120% 120% at 50% 0%, var(--strip-2) 0%, var(--strip) 60%); }
.offer h2 { margin-bottom: 14px; }
.plan { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 0; max-width: 54rem; margin: 0 auto; padding: clamp(18px, 2.4vw, 22px) 0; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); text-align: left; }
.plan-main { padding: 0 clamp(20px, 3.4vw, 40px); text-align: center; }
.plan-side { padding: 0 clamp(20px, 3.4vw, 40px); border-left: 1px solid rgba(255, 255, 255, 0.16); }
.plan p { margin: 0; }
.price b { display: block; font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 0.95; letter-spacing: -0.06em; font-weight: 800; }
.price span { display: block; margin-top: 6px; font-size: 1.05rem; color: var(--on-strip-dim); }
.trial { margin-top: 10px !important; color: var(--blue); font-size: 1.05rem; font-weight: 720; }
.incl { margin-top: 8px !important; color: var(--on-strip-dim); font-size: 0.88rem; line-height: 1.4; }
.sales { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: var(--on-strip); font-size: 0.95rem; line-height: 1.4; }
.sales a { color: var(--blue); font-weight: 720; text-decoration: underline; text-underline-offset: 3px; }
.needs { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.needs li { position: relative; padding-left: 26px; font-size: 0.98rem; line-height: 1.35; color: var(--on-strip); }
.needs li::before { content: "\2713"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--blue); }
.offer .cta { justify-content: flex-start; gap: 10px; }
.offer .cta .btn { flex: 1 1 auto; padding: 11px 18px; white-space: nowrap; }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer { background: var(--strip); color: var(--on-strip-dim); font-size: 0.92rem; padding: 32px 0 40px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 14px 32px; }
footer a { color: var(--on-strip); overflow-wrap: anywhere; }
footer p, footer address { margin: 0; }
footer address { font-style: normal; }
.who { color: var(--on-strip); font-weight: 650; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.disc { grid-column: 1 / -1; max-width: 60rem; font-size: 0.78rem; line-height: 1.5; opacity: 0.92; }

/* ── «Book a demo»: the chooser (09.11, Pan: «book a demo должно предлагать тоже 2 варианта связи нужен тг бот как novility») — Telegram or the demo email, as on
   novility.net, in this page's tokens, so it follows the light and the dark theme. app.js opens it over the email button. The dialog itself never gets a `display`:
   the browser hides a closed <dialog> with its own `display: none`, and any author `display` on it would stand the chooser open over the page. ── */
dialog.demo {
  width: 440px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
}
dialog.demo::backdrop { background: rgba(8, 12, 18, 0.62); }
.demo-in { position: relative; display: grid; gap: 14px; padding: 28px 28px 26px; }
.demo-in h2 { margin: 0; padding-right: 44px; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 760; }
.demo-in p { margin: 0; color: var(--muted); }
.demo-opts { display: grid; gap: 10px; margin-top: 4px; }
.demo-opt {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--tile); color: var(--ink); text-decoration: none;
}
.demo-opt:hover { border-color: var(--btn); }
.demo-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
.demo-tx { display: grid; gap: 2px; min-width: 0; }
.demo-tx b { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.demo-tx span { font-size: 0.92rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.demo-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.demo-close:hover { background: var(--tile); color: var(--ink); }
@media (max-width: 640px) {
  .demo-in { padding: 24px 20px 20px; }
  .demo-in h2 { font-size: 1.4rem; }
}

/* ── narrower ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .top nav { display: none; }
  .tile, .tile.s12 { grid-column: span 12; }
  .tile.s12:not(.wide) .pts { columns: 1; }
  .tile.wide, .tile.wide.flip { grid-template-columns: minmax(0, 1fr); }
  .tile.wide.flip .media { order: 0; }
  .int { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  h1 { font-size: min(9vw, 2.2rem); }     /* two lines on a phone of 320 to 390 too */
  .plan { grid-template-columns: minmax(0, 1fr); gap: 14px 0; }
  .plan-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
  .price { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
  .price b { display: inline-block; font-size: 3rem; }
  .price span { display: inline-block; margin-top: 0; }
  .offer .cta .btn { flex: 1 1 auto; padding: 11px 12px; font-size: 1rem; }
  .cmp { margin-bottom: -48px; }
  .cmp-stage { aspect-ratio: 4 / 5; }
  .cmp-tag { top: 10px; padding: 5px 11px; font-size: 0.76rem; }
  main > #what { padding-top: calc(48px + 40px); }
  .cta .btn { flex: 1 1 100%; }
  /* the one main call stays within reach on a phone */
  .btn.sticky {
    display: block; position: fixed; z-index: 25; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--blue); color: #0e1520; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  }
  footer { padding-bottom: 96px; }
  .top .btn.small { padding: 8px 14px; }
}

/* the page after paying (welcome.html, P70): a plain column, the steps numbered, no recordings and no script */
.welcome { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); }
.welcome h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; }
.welcome h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.welcome .lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 22px; }
.welcome .cta { margin: 0 0 26px; }
.welcome .w-steps { margin: 0 0 6px; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.06rem; }
.welcome .w-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* the other pages (privacy, terms, support, 404 — P70-SITE S2, rendered by store/render-site.py): the landing's own strip, a plain column, the landing's footer; light and dark by the same tokens */
.top nav a[aria-current="page"] { color: var(--on-strip); text-decoration: underline; text-underline-offset: 4px; }
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); }
.doc h1 { margin: 0 0 14px; max-width: none; font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 780; }
.doc h2 { margin: 38px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 740; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.35rem; }
.doc li { margin: 6px 0; }
.doc .lead { font-size: 1.12rem; color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.doc a { overflow-wrap: anywhere; }
.doc code { font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tile); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.doc .table { overflow-x: auto; margin: 0 0 18px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--tile); }

/* ── the blocks added on 06.11: a wide tile with a picture and a small table, a tile with two pictures, the settings grid ── */
.media img + figcaption { margin-top: 10px; }
.calc { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.35; }
.calc caption { padding-bottom: 6px; text-align: left; color: var(--muted); font-size: 0.85rem; }
.calc th, .calc td { padding: 7px 10px 7px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.calc th { font-weight: 650; white-space: nowrap; }
.calc td:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.calc td:last-child { font-weight: 650; padding-right: 0; }
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.duo-side { display: grid; gap: 14px; }
.setgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px clamp(24px, 3vw, 40px); }
.setg h4 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.25; font-weight: 700; }
.setl { margin: 0; padding: 0; list-style: none; }
.setl li { position: relative; margin: 6px 0; padding-left: 18px; font-size: 0.98rem; line-height: 1.4; }
.setl li::before { content: ""; position: absolute; left: 2px; top: 0.56em; width: 7px; height: 7px; border-radius: 2px; background: var(--btn); }
@media (max-width: 980px) {
  .setgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .setgrid { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .calc th { white-space: normal; }
}
