/* Maillard — maillardkp.com
   One page. Brand values are literal here on purpose: this file is the source of truth.
   The page inherits the product's register — serif, near-white, document-like, hairline
   rules. The photographs are the only loud things on it.

   Set as one sheet: the page is a single printed form, sections divided by the 2px ink
   rule and numbered in the margin. Colour appears in one place only — the day — where
   it names the module a moment belongs to, never a state (brand board, 6 Sep). */

:root {
  --bg: #e6e5e2;
  --sheet: #fff;
  --sheet-alt: #f9f8f7;
  --sub: #f4f3f1;
  --rule: #c9c8c4;
  --hair: #ebeae7;
  --ink: #141414;
  --mid: #4a4a48;
  --muted: #6d6d6a;
  --slot: #efeeeb;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 52px;
}

/* Module hues — the light seven's five that the day uses, each with its ink and its
   20% band, baked to hex as the board specifies. A category, never a state. */
[data-mod="haccp"]     { --hue: #d6e0ea; --hue-ink: #2b3646; }
[data-mod="mep"]       { --hue: #f3e8b6; --hue-ink: #4a4118; }
[data-mod="inventory"] { --hue: #ecd5c0; --hue-ink: #5a3320; }
[data-mod="recipes"]   { --hue: #d8c7a8; --hue-ink: #443620; }
[data-mod="home"]      { --hue: #eeeeea; --hue-ink: #4a4a48; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.45; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--mid); }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; }

/* ── The sheet ────────────────────────────────────────────────────────── */

.page > .head, .stack, .foot { background: var(--sheet); border: 1px solid var(--rule); }
.page > .head { border-bottom: 2px solid var(--ink); }
.stack { border-top: none; border-bottom: none; counter-reset: sec; }
.stack > .sheet + .sheet { border-top: 2px solid var(--ink); }
.foot { border-top: 2px solid var(--ink); }

/* ── Quick jump ─────────────────────────────────────────────────────────
   One line of section names under the header, stuck to the top edge while the
   page scrolls. The current section carries the 3px ink rule (brand board:
   "marks the current page"). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.stack > section[id] { scroll-margin-top: 58px; }
.jump { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: var(--sheet); border: 1px solid var(--rule); border-top: none; border-bottom: 1px solid var(--rule); padding: 0 calc(var(--pad) - 14px); }
.jump::-webkit-scrollbar { display: none; }
.jump a { position: relative; flex: 0 0 auto; padding: 15px 14px 14px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.jump a:hover, .jump a.on { color: var(--ink); }
.jump a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--ink); }
.jump a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* A quiet text link under a section's copy */
.more { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.more:hover { color: var(--mid); }

/* ── Header ───────────────────────────────────────────────────────────── */

.head { padding: 17px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 11px; }
.wordmark img { width: 26px; }
.wordmark .name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1; }
.wordmark .role { display: block; font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 4px; }
.head-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.langs { display: flex; border: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.langs button { padding: 6px 11px; color: var(--muted); }
.langs button + button { border-left: 1px solid var(--rule); }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Buttons. One filled primary on the page — the ending's. Everything else outlined. */
.cta { display: inline-block; padding: 15px 28px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.cta--sm { padding: 11px 21px; background: var(--sheet); color: var(--ink); }
.cta--sm:hover { background: var(--ink); color: #fff; }
.cta--end { background: var(--ink); color: #fff; padding: 18px 34px; font-size: 13.5px; }
.cta--end:hover { background: #000; color: #fff; }

/* ── Shared ───────────────────────────────────────────────────────────── */

.block { padding: 44px var(--pad) 48px; }
.block-head { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.block-head h2, .print-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; max-width: 760px; margin-top: 12px; text-wrap: pretty; }
.lede { font-style: italic; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--mid); max-width: 640px; margin-top: 14px; text-wrap: pretty; }

/* Eyebrow: Plex Sans 600 .2em, as the board. Numbered in mono — the form's own
   numbering, generated here so it is never copy. */
.eyebrow { display: flex; gap: 14px; align-items: baseline; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.block .eyebrow::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--ink); }

figure { margin: 0; }
figcaption { font-family: var(--serif); font-size: 18px; line-height: 1.35; margin-top: 12px; text-wrap: pretty; }

/* Image slots. Real photograph / real screen when the file exists; otherwise a
   labelled placeholder naming what goes there and the path to drop it at. */
.slot { position: relative; display: block; overflow: hidden; background: var(--slot); aspect-ratio: var(--ar, 16 / 10); }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.slot--photo > img { object-position: center; }
.slot .ph { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px 20px; border: 1px dashed var(--rule); }
.slot.is-empty .ph { display: flex; }
.slot .ph-label { font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--mid); max-width: 520px; text-wrap: pretty; }
.slot .ph-path { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
/* A screen's edge is a rule, never a shadow */
.slot--screen.is-loaded { outline: 1px solid var(--rule); outline-offset: -1px; }
.slot--a4 { --ar: 210 / 297; }

/* ── 1 · The clipboard ───────────────────────────────────────────────── */

.hero { overflow: hidden; }
/* The swipe: photograph, then the screen. Scroll-snap does the work. */
.swipe { position: relative; border-bottom: 1px solid var(--rule); }
.swipe-track { border-bottom: 1px solid var(--hair); }
.swipe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: pointer; }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-track:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.swipe-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 16 / 9; max-height: 78vh; }
.swipe-slide.slot { --ar: 16 / 9; }
.swipe-screen { position: relative; background: var(--slot); border-left: 1px solid var(--rule); }
.swipe-screen .slot { position: absolute; inset: 0; aspect-ratio: auto; }
.swipe-screen .slot:not(.is-loaded):not(.is-empty) { display: none; }
.swipe-screen .slot[data-media="(max-width: 900px)"] { display: none; }
/* Dots under the image, as Instagram does: one per slide, the current one filled.
   Squares, not circles — the board allows no rounded corner. */
.swipe-dots { display: flex; justify-content: center; gap: 7px; padding: 11px 0 10px; }
.swipe-dots span { width: 6px; height: 6px; background: var(--rule); transition: background .2s; }
.swipe-dots span.on { background: var(--ink); }

/* ‹ › at the edges — pointer screens only, shown on hover or keyboard focus,
   and only in the direction there is somewhere to go. */
.swipe-arrow { position: absolute; top: calc(50% - 14px); transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); font-family: var(--mono); font-size: 22px; line-height: 1; opacity: 0; transition: opacity .2s; }
.swipe-arrow--prev { left: 16px; }
.swipe-arrow--next { right: 16px; }
.swipe:hover .swipe-arrow, .swipe-arrow:focus-visible { opacity: 1; }
.swipe-arrow:hover { border-color: var(--ink); }
.swipe-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.swipe-arrow:disabled { display: none; }
@media (hover: none) { .swipe-arrow { display: none; } }
.hero-copy { padding: 44px var(--pad) 52px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.6vw, 80px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.hero-copy p { font-style: italic; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--mid); max-width: 440px; padding-bottom: 6px; text-wrap: pretty; }

/* ── 2 · The day ─────────────────────────────────────────────────────── */

.tour { margin-top: 18px; }
.rail { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.rail li { position: relative; }
.rail li + li { border-left: 1px solid var(--hair); }
/* Each time sits on its module's hue: a band under the ink rule */
.rail li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--hue); z-index: 1; pointer-events: none; }
.rail button { position: relative; width: 100%; padding: 22px 10px 12px; text-align: left; font-family: var(--mono); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.rail button::before { content: ""; position: absolute; left: 10px; top: 0; width: 1px; height: 9px; background: var(--rule); z-index: 2; }
.rail button.heavy::before { width: 3px; height: 14px; background: var(--ink); }
.rail button:hover { color: var(--ink); background: var(--sheet-alt); }
.rail button[aria-selected="true"] { color: var(--hue-ink); background: var(--hue); font-weight: 600; }
.rail button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.rail button:focus-visible, .step:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* All ten moments share one grid cell, so the stage is always as tall as the
   tallest moment and never resizes when the moment changes. */
.stage { margin-top: 30px; display: grid; }
.stage > .moment { grid-area: 1 / 1; align-self: start; }
.stage > .moment[hidden] { display: grid !important; visibility: hidden; }
/* Every moment the same: one frame size, the image filling it, the card below.
   The weighted moments carry their weight on the rail, not in a bigger frame. */
.moment { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.moment .slot { --ar: 16 / 10; cursor: pointer; }
.moment .slot > img { object-position: var(--pos, center top); }

/* The moment's card: a panel head in the module's hue — badge and time — then
   the caption. Times are mono: a number is never set in the serif. */
.moment-text { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; border: 1px solid var(--rule); background: var(--sheet); }
.time-row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--hue); color: var(--hue-ink); border-right: 2px solid var(--ink); }
.moment .time { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(40px, 4.8vw, 58px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--hue-ink); }
.moment .caption { align-self: center; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; padding: 18px 24px; max-width: 760px; text-wrap: pretty; }

/* Module badge — the logo at module scale, clip and all. Board geometry, 44px:
   wire arch, clamp bar, board, one sheet of depth, the module's hue on the face. */
.badge { width: 44px; position: relative; padding-top: 4.16px; flex: 0 0 auto; }
.badge .arch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 9.05px; height: 4.16px; border: .98px solid var(--ink); border-bottom: none; border-radius: 1.71px 1.71px 0 0; }
.badge .clamp { position: absolute; left: 50%; top: 3.42px; transform: translateX(-50%); width: 17.36px; height: 5.62px; background: var(--ink); border-radius: .73px; z-index: 3; }
.badge .board { position: relative; display: block; background: var(--ink); border-radius: 1.22px; height: 62.24px; padding: 1.96px 1.96px 3.67px; }
.badge .depth { position: absolute; left: 2.3px; right: 1.44px; top: 2.3px; bottom: 1.96px; background: #dcdad6; border-radius: .37px; }
.badge .face { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; background: var(--hue); color: var(--hue-ink); }
.badge svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tour-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--hair); }
.step { width: 48px; height: 48px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 18px; }
.step:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.step:disabled { color: var(--rule); cursor: default; }
/* The board's boxed count */
.count { border: 1px solid var(--ink); padding: 4px 11px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ── 3 · The week ────────────────────────────────────────────────────── */

/* The week: three screens in one frame, the day's frame — 16:10 on desktop, 4:5 on
   a phone — swiped like the hero. The caption under the dots follows the slide. */
.swipe--week { margin-top: 28px; border: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.swipe--week .swipe-slide { aspect-ratio: 16 / 10; max-height: none; --ar: 16 / 10; }
.swipe--week .swipe-slide > img { object-position: left top; }
.swipe--week .swipe-arrow { top: calc(50% - 40px); }
.swipe-caps { border-top: 1px solid var(--hair); padding: 14px 20px 18px; }
.swipe-caps p { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; text-wrap: pretty; }

/* ── 4 · The top shelf ───────────────────────────────────────────────── */

.shelf { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); overflow: hidden; }
.shelf .slot:first-child { --ar: 4 / 3; }
.shelf .slot:last-child { --ar: auto; border-left: 1px solid var(--rule); }

/* ── 5 · What paper cannot produce ───────────────────────────────────── */

.promise { font-size: clamp(34px, 4.6vw, 56px) !important; line-height: 1.05 !important; letter-spacing: -.02em; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 28px; }
.cell--wide { grid-column: 1 / -1; }
.cell--wide .slot { --ar: 21 / 9; }
/* Report pages are shown whole, at their own shape: no frame, no crop. */
.paper-grid .slot { aspect-ratio: auto; background: var(--sheet); outline: 1px solid var(--rule); outline-offset: -1px; }
.paper-grid .slot > img { position: static; width: 100%; height: auto; }
.cell--wide figcaption { font-size: clamp(20px, 2.2vw, 26px); max-width: 720px; }

/* ── 6 · Print — stays greyscale, as paper does ──────────────────────── */

.print { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.print-copy h2 { margin-top: 14px; }
.print-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.print-sheets > .slot:last-child { margin-top: 36px; }
.print-sheets > .slot { background: var(--sheet); outline: 1px solid var(--rule); outline-offset: -1px; }
/* The blank forms swipe in their own A4 frame; the filled record stands beside them. */
.swipe--a4 { border: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.swipe--a4 .swipe-slide { aspect-ratio: 210 / 297; max-height: none; --ar: 210 / 297; }
.swipe--a4 .swipe-slide > img { object-position: center top; }
.swipe--a4 .swipe-arrow { top: calc(50% - 16px); width: 34px; height: 34px; font-size: 19px; }
.swipe--a4 .swipe-arrow--prev { left: 8px; }
.swipe--a4 .swipe-arrow--next { right: 8px; }
.swipe--a4 .swipe-dots { border-top: 1px solid var(--hair); }

/* ── 7 · Responsibility ──────────────────────────────────────────────── */

/* Quiet on purpose: body face at reading size, muted, left-aligned on the sheet's
   own ground — read by whoever looks for it, never shouted. */
.resp { background: var(--sheet); padding: 30px var(--pad) 34px; }
.stack > .sheet.resp { border-top: 1px solid var(--hair); }
.resp p { font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 620px; text-wrap: pretty; }

/* ── 8 · Pricing ─────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.plan { background: var(--sheet-alt); border: 1px solid var(--rule); padding: 26px 24px 22px; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.plan-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.plan-head .who { font-size: 14.5px; font-style: italic; color: var(--mid); text-wrap: pretty; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.price .big { font-family: var(--mono); font-weight: 500; font-size: 50px; line-height: 1; letter-spacing: -.04em; }
.price .caption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mtm { border-top: 1px solid var(--hair); margin-top: 18px; padding-top: 11px; }
.mtm .val { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--mid); }
.plan .note { font-family: var(--mono); font-size: 12.5px; color: var(--mid); margin-top: 10px; }
.trial { margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: baseline; }
.trial h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; text-wrap: balance; }
.trial p { font-style: italic; font-size: 15.5px; line-height: 1.6; color: var(--mid); text-wrap: pretty; }

/* ── 9 · The ending — on the sub-bar grey, carrying the page's one filled button ── */

.end { background: var(--sub); padding: 64px var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.end h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.015em; max-width: 680px; text-wrap: balance; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.foot { background: var(--sheet-alt); padding: 24px 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; }
.foot .who { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot .legal { display: flex; gap: 0; flex-wrap: wrap; }
.foot .legal a + a::before { content: "·"; padding: 0 9px; color: var(--muted); display: inline-block; }
.foot a { font-size: 13.5px; color: var(--mid); }
.foot a:hover { color: var(--ink); }
.foot .legal a, .foot .mail { text-decoration: underline; text-underline-offset: 3px; }
.foot .legal a::before { text-decoration: none; }

/* ── Narrow ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .page { padding: 0 0 20px; }
  .page > .head, .stack, .foot { border-left: none; border-right: none; }
  .head { padding: 13px 18px; gap: 12px; }
  .head-right { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .head-right .cta { width: 100%; }
  .langs { align-self: flex-start; }
  .block { padding: 26px var(--pad) 26px; }
  .block-head { padding-bottom: 18px; }

  .swipe-slide { aspect-ratio: 4 / 5; }
  .swipe-slide.slot { --ar: 4 / 5; }
  .swipe-screen .slot[data-media="(min-width: 901px)"] { display: none; }
  .swipe-screen .slot[data-media="(max-width: 900px)"] { display: block; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px var(--pad) 30px; }

  .rail { display: flex; overflow-x: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail li { flex: 0 0 72px; }
  .rail button { padding: 20px 10px 12px; min-height: 52px; }
  /* On a phone the day swipes, like the hero: one moment per screen width,
     so moving on never pushes the moment out of view. The rail is the index. */
  .stage { margin-top: 20px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
           overscroll-behavior-x: contain; scrollbar-width: none; }
  .stage::-webkit-scrollbar { display: none; }
  .stage > .moment { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .stage > .moment[hidden] { visibility: visible; }
  .tour-nav { display: none; }
  .moment { gap: 16px; }
  .moment .slot { --ar: 4 / 5; }
  .moment .slot > img { object-position: var(--pos-phone, var(--pos, center top)); }
  .moment-text { display: block; }
  .time-row { padding: 14px 18px; border-right: none; border-bottom: 2px solid var(--ink); }
  .moment .time { font-size: 44px; }
  .moment .caption { font-size: 19px; padding: 14px 18px 18px; }

  .paper-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .swipe--week .swipe-slide { aspect-ratio: 4 / 5; --ar: 4 / 5; }
  .swipe--week .swipe-slide > img { object-position: var(--pos-phone, left top); }
  .swipe-caps { padding: 12px 18px 16px; }
  .swipe-caps p { font-size: 19px; }
  .cell--wide .slot { --ar: 16 / 10; }

  .shelf { grid-template-columns: minmax(0, 1fr); }
  .shelf .slot:last-child { --ar: 4 / 5; border-left: none; border-top: 1px solid var(--rule); }

  .print { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .print-sheets > .slot:last-child { margin-top: 24px; }

  .resp { padding: 24px var(--pad); }
  .resp p { font-size: 14.5px; }

  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-head { display: block; }
  .plan-head .who { display: block; margin-top: 6px; }
  .price .big { font-size: 42px; }
  .trial { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .end { padding: 36px var(--pad); flex-direction: column; align-items: stretch; gap: 24px; }
  .end .cta { width: 100%; }

  .foot { padding: 20px; flex-direction: column; }
}

/* ── Subpages: legal texts and the blank forms ─────────────────────────── */

.doc { padding: 44px var(--pad) 56px; }
.doc > * { max-width: 720px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; padding-bottom: 20px; border-bottom: 2px solid var(--ink); max-width: none; text-wrap: balance; }
.doc h1 + p em { font-family: var(--mono); font-style: normal; font-size: 12.5px; color: var(--muted); }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; color: var(--mid); text-wrap: pretty; }
.doc p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .table { max-width: none; overflow-x: auto; margin-top: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc th { text-align: left; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; background: var(--sub); border-bottom: 2px solid var(--ink); }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--hair); color: var(--mid); vertical-align: top; }

.doc .forms-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 24px; margin: 30px 0 0; padding: 0; max-width: none; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form-sheet { display: block; aspect-ratio: 210 / 297; background: var(--sheet); outline: 1px solid var(--rule); outline-offset: -1px; overflow: hidden; }
.form-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.form-sheet:hover { outline-color: var(--ink); }
.form-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-name { font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.form-pdf { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--ink); padding: 4px 9px; }
.form-pdf:hover { background: var(--ink); color: #fff; }
.forms-all { display: inline-block; margin-top: 22px; }

@media (max-width: 900px) {
  .jump { padding: 0 6px; border-left: none; border-right: none; }
  .jump a { padding: 14px 12px 13px; font-size: 11px; }
  .doc { padding: 28px var(--pad) 36px; }
  .doc .forms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .form-meta { flex-direction: column; gap: 8px; }
}
