/* Quiet Relay 2.0 prototype, pass 5 (polish of the approved Sleeve composition). Direction: Night Transmission, composition "Sleeve" (approved foundation).
   Static CSS, no JavaScript, self-hosted fonts, no external requests.

   The idea: a record sleeve. One deep violet plate carries the mark, enlarged and cropped so the maple leaf
   leads and the arcs and pulse recede into the plate. The statement sits beside it. TextLift is a raised card
   that overlaps the edge between the two surfaces.

   - Depth is overlap, crop and three flat tones. No gradients outside the leaf, no glow, no blur.
   - Violet belongs to the plate, the leaf and the one primary action.
   - One family, Archivo: semi-bold for statements, wide capitals for labels. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  /* colour roles; text contrast measured with contrast.py on ground / plate / card */
  --ground: #07060d;
  --plate: #160d33;           /* the sleeve */
  --plate-arc: #201347;       /* arcs, one step off the plate */
  --card: #110e1e;
  --card-rule: #302a49;
  --card-block: #0b0915;      /* the flat offset block under the card */
  --rule: #2b2640;
  --plate-rule: #3a2d6b;      /* hairlines on the plate */
  --ink: #ece9f5;             /* 16.9 / 15.4 / 15.9 */
  --ink-2: #a7a2bd;           /*  8.2 /  7.5 /  7.7 */
  --ink-3: #9a95b0;           /*  7.0 /  6.4 /  6.6, labels and notes */
  --violet: #6a2fd0;          /* primary action; text on it 6.4:1 */
  --violet-hover: #7d43ea;    /* primary action, hovered; text on it 4.9:1 or better */
  --on-violet: #f4f1fb;       /* text on the primary action */
  --violet-ink: #c4b1ff;      /* links */
  --focus: #4fb9f5;           /* focus ring, sampled from the logo's pulse line */

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale: seven steps */
  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1.0625rem; --t-lg: 1.3125rem;
  --t-xl: clamp(1.5rem, 2.2vw, 1.875rem);
  --t-2xl: clamp(2rem, 3.4vw, 3rem);
  --t-hero: clamp(2.125rem, 4vw, 3.75rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s6: 1.5rem; --s8: 2rem; --s12: 3rem; --s16: 4rem; --s24: 6rem;
  --radius: 2px;
  --tap: 2.75rem;             /* minimum height of anything that can be tapped (44px at the base size) */
  --dur: .18s;
  --gutter: clamp(1.25rem, 5.5vw, 7rem);
  color-scheme: dark;
}

html { font-size: clamp(100%, .5vw + .55rem, 150%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-base)/1.6 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius); }
::selection { background: var(--violet); color: var(--ink); }
.skip { position: absolute; left: -999rem; top: var(--s2); background: var(--ink); color: var(--ground); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { left: var(--s2); }
#content:focus { outline: none; }   /* the skip link's target; it is a region, not a control */
.kicker { font: 600 var(--t-xs)/1.4 var(--sans); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Stage: plate | statement and card ---------- */
/* Rows: header, spare, statement, card, spare. When the plate is taller than the content, the spare height is
   shared above the statement and below the card, so the two never drift apart. */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1.5fr); }

.plate { grid-column: 1; grid-row: 1 / 6; position: relative; overflow: hidden; min-height: min(100vh, 60rem); background: var(--plate); }
/* The mark, enlarged until the leaf is about two thirds of the plate's width. Arcs and pulse are re-toned to sit
   in the plate; only the leaf keeps its colour. Geometry is the logo's own, unchanged. */
.plate svg { position: absolute; width: 250%; max-width: none; left: -75%; top: 43%; transform: translateY(-58.6%); }
.plate .arc { fill: var(--plate-arc); }
/* At this crop the pulse line survives only as two fragments at the plate's edges, so it is not drawn here.
   The logo files themselves are complete; the whole mark is shown uncropped in the closing section. */
.plate .pulse { display: none; }

.masthead { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; white-space: nowrap; font: 600 var(--t-xs)/1 var(--sans); font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(0rem, 2vw, var(--s8)); font-size: var(--t-sm); }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s3); color: var(--ink-2); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet-ink); }

.statement { grid-column: 2; grid-row: 3; position: relative; z-index: 1; padding: clamp(var(--s6), 6vh, var(--s16)) var(--gutter) var(--s12) clamp(var(--s8), 5vw, var(--s24)); }
.statement h1 { margin-top: var(--s4); max-width: 12em; font: 600 var(--t-hero)/1.02 var(--sans); font-stretch: 108%; letter-spacing: -.035em; text-wrap: balance; }
.statement p:last-child { margin-top: var(--s6); max-width: 30em; color: var(--ink-2); }

/* ---------- TextLift: the card that overlaps the two surfaces ---------- */
.card { grid-column: 2; grid-row: 4; position: relative; z-index: 3; margin: 0 var(--gutter) var(--s12) clamp(-13rem, -11vw, -3rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6) var(--s12); padding: var(--s8); background: var(--card); border: 1px solid var(--card-rule); border-radius: var(--radius); box-shadow: .75rem .75rem 0 var(--card-block); }
.card__name { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.card__name img { width: 2.5rem; height: 2.5rem; flex: none; }
/* The TextLift app icon file is a square with a white surround; rounding slightly beyond its own corner radius
   (about 26%) hides the surround without touching the artwork. */
.card__name img, .statement__name img { border-radius: 28%; }
.card h2 { font: 600 var(--t-2xl)/1 var(--sans); font-stretch: 108%; letter-spacing: -.035em; }
.card__tag { margin-top: var(--s4); font-size: var(--t-lg); line-height: 1.3; }
.card__body { margin-top: var(--s2); max-width: 32em; color: var(--ink-2); }
.card__action { display: grid; justify-items: start; gap: var(--s1); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: var(--s3) var(--s6); background: var(--violet); color: var(--on-violet); font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: var(--radius); transition: background-color var(--dur) ease; }
.btn:hover { background: var(--violet-hover); color: #fff; }
/* Two install buttons of equal weight (Chrome and Firefox, approved 2026-12-04): stacked, the same width, the same
   colour. The pair is as wide as its longer label; on phones it fills the card like the single button did. */
.btns { display: inline-grid; gap: var(--s2); }
.doc__body .btns { margin-top: var(--s6); }
.doc__body .btn, .doc__body .btn:hover { color: var(--on-violet); text-decoration: none; }
.doc__body .dispatch-list { list-style: none; padding-left: 0; }
.dispatch-list time { display: block; font-size: var(--t-sm); color: var(--ink-3); }
.dispatch-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.doc__title .kicker a { display: inline-flex; align-items: center; min-height: var(--tap); color: inherit; text-decoration-color: var(--violet); text-underline-offset: .3em; }
.doc__title .kicker a:hover { color: var(--ink); }
.card__more { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); font-size: var(--t-sm); color: var(--ink-3); }
.card__more a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); }
/* The demonstration video is not shown until real footage exists. The planned markup, styles and header change
   are in docs/VIDEO-PLAN.md. */

/* ---------- Practice: a second plate, set in from the left and running off the right edge.
   It starts exactly where the first plate ends, so the two read as stepped sleeves with no gap. ---------- */
.practice { grid-column: 1 / -1; grid-row: 6; position: relative; margin: 0 0 0 clamp(var(--s6), 16vw, 22rem); padding: clamp(var(--s12), 9vh, var(--s24)) var(--gutter) clamp(var(--s12), 9vh, var(--s24)) clamp(var(--s6), 5vw, var(--s24)); background: var(--plate); }
.practice__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); margin-top: var(--s8); }
.practice h3 { font: 600 var(--t-xl)/1.1 var(--sans); font-stretch: 108%; letter-spacing: -.025em; }
.practice__list p { margin-top: var(--s3); color: var(--ink-2); text-wrap: pretty; }
.practice__list p b { color: var(--ink); font-weight: 400; }

/* ---------- Closing: the back of the sleeve (Study B, "one stepped plate", approved 2026-11-16) ----------
   One violet plate holds the contact details (60%) and the whole logo (40%). It mirrors the Practice plate's
   step: Practice runs off the right edge; this plate runs off the left edge and stops short of the right.
   The address sits one step below the section names so the logo anchors the section. */
.closing { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); align-items: center; margin: clamp(var(--s16), 12vh, var(--s24)) clamp(var(--s6), 12vw, 18rem) 0 0; background: var(--plate); }
.closing__text { position: relative; z-index: 1; padding: clamp(var(--s12), 9vh, var(--s24)) var(--s8) clamp(var(--s12), 9vh, var(--s24)) var(--gutter); }
.closing__text > a { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: var(--s4); font: 600 var(--t-xl)/1.1 var(--sans); font-stretch: 108%; letter-spacing: -.035em; white-space: nowrap; color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.closing__text > a:hover { text-decoration-color: var(--violet-ink); }
.closing__text p:last-child { margin-top: var(--s6); color: var(--ink-2); max-width: 30em; }
.closing__plate { display: grid; place-items: center; padding: clamp(var(--s12), 9vh, var(--s24)) clamp(var(--s4), calc(var(--s4) + (100vw - 68rem) / 11), var(--s12)); }   /* the logo's half of the shared plate */
/* One continuous rule from tablet to desktop: the side padding eases from 1rem at 68rem (1088px) to 3rem at 1440px,
   and the logo is never narrower than 22rem unless its column is. At 1440px and wider 86% exceeds 22rem and the
   padding is capped at 3rem, so the approved desktop and ultrawide sizes are unchanged; phones set their own rules. */
.closing__plate img { width: min(max(86%, 22rem), 100%, 30rem); height: auto; }
.colophon { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s8); align-items: center; padding: var(--s4) var(--gutter) var(--s12); font-size: var(--t-sm); color: var(--ink-3); }
.colophon a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-2); }
.colophon a:hover { color: var(--ink); }
.colophon span:last-child { margin-left: auto; }

/* ---------- Tablets and small laptops: the card stacks, the plate stays ---------- */
@media (max-width: 68rem) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .practice__list { grid-template-columns: minmax(0, 1fr); gap: var(--s8); max-width: 34em; }
}

/* ---------- Phones: a composition of its own ----------
   The plate becomes the top of the page and holds the header and the statement. The leaf sits in its upper
   right corner, cropped by the edge, so identity and words arrive together. The TextLift card overlaps the
   plate's lower edge, and its name and install button are on the first screen. */
@media (max-width: 40rem) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .plate { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
  .plate svg { width: min(190vw, 817px); left: calc(79vw - min(95vw, 408.5px)); top: calc(9.75rem + var(--tap)); }   /* (+ the navigation row, RC9.2) the whole leaf silhouette below the header row; only its right tip leaves the screen. Capped at its size on a 430px screen (190vw = 817px), centre kept at 79vw, so wider phone-layout screens (to 640px) do not push the leaf up into the header */
  .masthead { padding-block: var(--s2); }
  /* Four navigation items (Dispatches, RC9.2) do not fit beside the name on a phone, so they take a second row
     under it, the first link's text aligned with the name. The leaf moves down by the same row. */
  .masthead { flex-wrap: wrap; row-gap: 0; }
  .nav { flex-basis: 100%; margin-left: calc(var(--s2) * -1); }
  .nav a { padding-inline: var(--s2); }
  .brand { letter-spacing: .2em; }
  .statement { grid-column: 1; grid-row: 2; padding: 12.5rem var(--gutter) var(--s16); }
  .kicker { letter-spacing: .14em; }
  .statement .kicker { white-space: nowrap; }
  .statement h1 { max-width: 9em; font-size: 2.5rem; }
  .card { grid-column: 1; grid-row: 3; margin: calc(var(--s12) * -1) var(--gutter) var(--s8); padding: var(--s6); box-shadow: .5rem .5rem 0 var(--card-block); }
  .card h2 { font-size: 1.75rem; }
  .card__name img { width: 2rem; height: 2rem; }
  .card__action { justify-items: stretch; }
  /* Two install buttons (2026-12-04): on phones the description moves below them, so both buttons reach the first
     screen together. Only that paragraph moves; reading and tab order of the links are unchanged. */
  .card { row-gap: 0; }
  .card__copy { display: contents; }
  .card__action { margin-top: var(--s4); }
  .card__body { order: 1; margin-top: var(--s3); }
  .practice { grid-row: 4; margin: var(--s8) 0 0 var(--gutter); padding-right: var(--gutter); }
  .closing { grid-template-columns: minmax(0, 1fr); margin-right: var(--gutter); }
  .closing__text { padding-right: var(--gutter); }
  .closing__plate { padding: 0 var(--gutter) var(--s12); justify-items: start; }   /* logo left-aligned with the contact text */
  .closing__plate img { width: min(80%, 19rem); }
  .colophon span:last-child { margin-left: 0; }
}
/* Narrow phones (under 375px, for example 360px Android phones): tighter navigation links so the header fits
   without sideways scrolling. Links keep their full 44px height. Wider screens are unchanged. */
@media (max-width: 23.375rem) {
  .nav { margin-left: calc(var(--s1) * -1); }
  .nav a { padding-inline: var(--s1); }
  .btn { padding-inline: var(--s3); }   /* keeps "Get it on the Chrome Web Store" on one line down to 360px */
}
@media (max-width: 21rem) {
  .btn { white-space: normal; text-align: center; }   /* under 336px a long store name wraps instead of overflowing the card */
}
/* Short phones: a smaller leaf and tighter statement, so the install button stays within the first screen. */
@media (max-width: 40rem) and (max-height: 45rem) {
  .plate svg { width: min(140vw, 602px); left: calc(83vw - min(70vw, 301px)); top: calc(7.5rem + var(--tap)); }   /* capped at its 430px-screen size (140vw = 602px), centre kept at 83vw */
  .statement { padding: 9rem var(--gutter) var(--s12); }
  .statement h1 { font-size: 2.125rem; }
  .statement p:last-child { margin-top: var(--s3); }
  .card { padding: var(--s4) var(--s6); }
  .card__tag { margin-top: var(--s2); }
  .card__body { font-size: var(--t-sm); }
}
/* Very short phones (for example 360x640): slightly tighter, so both install buttons still fit on the first screen.
   Buttons keep a 44px tap height. */
@media (max-width: 40rem) and (max-height: 42.5rem) {
  /* RC9.2: the navigation row costs 44px, won back here with the same moves as the short-phone block: a
     tighter header and a slightly smaller leaf, so the statement can start higher. */
  .masthead { padding-block: 0; }
  .plate svg { width: min(110vw, 429px); left: calc(83vw - min(55vw, 214.5px)); top: calc(6.5rem + var(--tap)); }   /* capped at its 390px-screen size */
  .statement { padding-top: 7.25rem; }
  .statement h1 { font-size: 2rem; }
  .btn { min-height: var(--tap); padding-block: var(--s2); }
  .card { padding-top: var(--s3); }
  .card__action { margin-top: var(--s2); }
}

/* ---------- Ultrawide (at least 2400px wide and 2:1): three surfaces across one screen ----------
   Plate, then statement and card, then the practice plate standing as a full-height third column, so the
   width carries real content and nothing is stretched. */
@media (min-width: 2400px) and (min-aspect-ratio: 2/1) {
  html { font-size: 137.5%; }
  .stage { grid-template-columns: minmax(0, 30fr) minmax(0, 44fr) minmax(0, 26fr); }
  .plate { min-height: 100vh; }
  .plate svg { width: 235%; left: -67.5%; }
  .statement { padding-top: 7vh; padding-right: var(--s16); }
  .statement h1 { font-size: 4.75rem; }
  .card { margin-right: var(--s16); margin-bottom: var(--s16); }
  .closing { margin: var(--s12) 26% 0 0; }   /* the plate ends where the Practice column begins; a small gap keeps it off the first screen's plates */
  .practice { grid-column: 3; grid-row: 1 / 6; margin: 0; padding: 12vh var(--gutter) var(--s16) var(--s16); display: flex; flex-direction: column; justify-content: center; }
  .practice__list { grid-template-columns: minmax(0, 1fr); gap: var(--s12); max-width: 26em; }
}

/* ---------- Large, tall screens: scale answers the spare room, not more boxes ----------
   Both blocks need at least 1300px of height, so a low ultrawide (2560x1080) keeps the compact sizes and the
   install button stays on the first screen. Every size used here is an existing step of the scale. */
@media (min-width: 2200px) and (min-height: 1300px) {
  .card { padding: var(--s12); }
  .card__tag { font-size: var(--t-xl); }
  .card__body { max-width: 38em; }
}
@media (min-width: 2400px) and (min-aspect-ratio: 2/1) and (min-height: 1300px) {
  .statement h1 { font-size: 5.75rem; line-height: 1; }   /* two lines in the middle column */
  .statement p:last-child { font-size: var(--t-lg); line-height: 1.5; }
  .practice__list { gap: var(--s16); max-width: none; }
  .practice h3 { font-size: var(--t-2xl); }
  .practice__list p { margin-top: var(--s4); font-size: var(--t-lg); line-height: 1.5; max-width: 22em; }
}

/* ====================================================================================================
   Product page (/textlift/), composition "Spine". Everything above is shared; rules here are scoped to
   body.product so the homepage is untouched.
   The first screen is the homepage's stage with the product in the lead. Below it the plate's edge continues
   down the page as the alignment line: section names to its left, facts to its right.
   ==================================================================================================== */
/* Rows: header, spare, name, install card, summary, spare, details. */
/* Twice as much spare height above the name as below the summary, so the card crosses the plate's edge at the
   same height as on the homepage and leaves the leaf clear. */
.product .stage { grid-template-rows: auto minmax(0, 2fr) auto auto auto minmax(0, 1fr) auto; }
.product .plate { grid-row: 1 / 7; }
.statement__name { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.statement__name img { width: clamp(2.25rem, 3.6vw, 3.25rem); height: auto; flex: none; }
.statement__name h1 { margin-top: 0; }
.product .statement .statement__tag { margin-top: var(--s4); max-width: none; font-size: var(--t-xl); line-height: 1.2; color: var(--ink); }
.product .card__copy .card__tag { margin-top: var(--s3); }
.product .card__more span { display: inline-flex; align-items: center; min-height: var(--tap); }
.summary { grid-column: 2; grid-row: 5; max-width: 36em; box-sizing: content-box; padding: 0 var(--gutter) var(--s12) clamp(var(--s8), 5vw, var(--s24)); font-size: var(--t-lg); line-height: 1.5; text-wrap: pretty; }

/* Sections: name | facts, on the same two columns as the stage. */
.sec { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); }
.sec > * { padding-block: clamp(var(--s8), 6vh, var(--s12)); }
.sec__name { padding-inline: var(--gutter) var(--s8); font: 600 var(--t-xl)/1.1 var(--sans); font-stretch: 108%; letter-spacing: -.025em; text-wrap: balance; }
.sec > :last-child { margin: 0; padding-inline: clamp(var(--s8), 5vw, var(--s24)) var(--gutter); }
.sec--plate { margin-block: clamp(var(--s8), 6vh, var(--s12)); }
.sec--plate > :last-child { background: var(--plate); }   /* the plate on the right, mirroring the first screen */

/* Details: a strip of three facts across the full width under the first screen. */
.sec--details { grid-column: 1 / -1; grid-row: 7; grid-template-columns: minmax(0, 1fr); padding: clamp(var(--s8), 6vh, var(--s12)) var(--gutter) 0; }
.sec--details > * { padding: 0; }
.sec--details > :last-child { padding: 0; margin-top: var(--s4); }
.sec--details .sec__name, .facts dt { font: 600 var(--t-xs)/1.4 var(--sans); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s12); align-content: start; }
.facts dd { margin: var(--s2) 0 0; overflow-wrap: anywhere; }

/* Facts are lists, not cards: one fact per row, a lead phrase in full ink, the rest muted, a hairline above. */
.notes { list-style: none; margin: 0; }
.notes li { max-width: 44em; }
.sec--pair .notes { padding: 0; }
.notes li, .facts > div { padding: var(--s4) 0 var(--s6); border-top: 1px solid var(--rule); color: var(--ink-2); text-wrap: pretty; }
.notes b { color: var(--ink); font-weight: 400; }
.sec--plate .notes li { border-color: var(--plate-rule); }
.prose p { max-width: 36em; color: var(--ink-2); }
.prose p + p { margin-top: var(--s4); }
.prose a { display: inline-flex; align-items: center; min-height: var(--tap); }
.product .closing__text p, .product .closing__action { margin-top: var(--s6); }

/* Illustrated sections: the real popup, cropped from the store screenshot, sits under the section name in the
   left column. It is never shown larger than its own pixels. */
.sec--shot { grid-template-rows: auto 1fr; }
.sec--shot .sec__name { padding-bottom: 0; }
.sec--shot .notes { grid-column: 2; grid-row: 1 / 3; }
.shot { grid-column: 1; grid-row: 2; margin: 0; padding: var(--s6) var(--s8) clamp(var(--s8), 6vh, var(--s12)) var(--gutter); }
.shot img { width: 100%; max-width: 489px; height: auto; border: 1px solid var(--card-rule); border-radius: var(--radius); box-shadow: .5rem .5rem 0 var(--card-block); }
.shot figcaption { max-width: 489px; margin-top: var(--s6); font-size: var(--t-sm); color: var(--ink-3); }

/* Privacy and known limitations side by side, so the left column carries a whole section. */
.sec--pair > section > * { padding-block: 0; }
.sec--pair > section:first-child { padding-inline: 0 var(--s8); }
.sec--pair > section:first-child .prose { padding-left: var(--gutter); }
.sec--pair > section:last-child { padding-inline: clamp(var(--s8), 5vw, var(--s24)) var(--gutter); }
.sec--pair > section:last-child .sec__name { padding-inline: 0; }
.sec--pair .sec__name { padding-bottom: var(--s6); }

/* The demonstration video, when real footage exists (docs/VIDEO-PLAN.md). Not in the page until then. */
.product .reel { margin: 0 var(--gutter) var(--s12) calc(39% + clamp(var(--s8), 5vw, var(--s24))); max-width: 52rem; aspect-ratio: 16 / 9; background: var(--ground); border: 1px solid var(--card-rule); border-radius: var(--radius); overflow: hidden; }
.product .reel video { display: block; width: 100%; height: 100%; }

/* Tablets: the plate is narrow, so the card only just crosses its edge and leaves the leaf clear, and the
   popup images move to the right column where they can be shown at a readable size. */
@media (max-width: 68rem) {
  .product .card { margin-left: calc(var(--s6) * -1); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .sec--shot { grid-template-rows: auto auto; }
  .shot { grid-column: 2; grid-row: 1; padding: clamp(var(--s8), 6vh, var(--s12)) var(--gutter) 0 clamp(var(--s8), 5vw, var(--s24)); }
  .sec--shot .sec__name { grid-row: 1 / 3; }
  .sec--shot .notes { grid-row: 2; padding-top: var(--s8); }
}
@media (max-width: 40rem) {
  .product .stage { grid-template-rows: auto auto auto auto auto; }
  .product .plate { grid-row: 1 / 3; min-height: 0; }
  .product .statement { padding-bottom: calc(var(--s12) + var(--s8)); }   /* keeps the card clear of the tagline */
  .product .card { margin-left: var(--gutter); }
  .summary { grid-column: 1; grid-row: 4; padding: 0 var(--gutter) var(--s4); font-size: var(--t-base); line-height: 1.6; }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec--details { grid-column: 1; grid-row: 5; padding-top: var(--s8); }
  .sec__name { padding: var(--s8) var(--gutter) 0; }
  .sec--details .sec__name { padding: 0; }
  .sec > :last-child { padding: var(--s4) var(--gutter) var(--s4); }
  .sec--details > :last-child { padding: 0; }
  .sec--plate > :last-child { margin-left: var(--gutter); padding: var(--s6) var(--gutter) var(--s6) var(--s6); }
  .sec--shot .sec__name, .shot, .sec--shot .notes { grid-column: 1; grid-row: auto; }
  .shot { padding: var(--s6) var(--gutter) 0; }
  .sec--shot .notes { padding-top: var(--s6); }
  .sec--pair > section, .sec--pair > section:first-child, .sec--pair > section:last-child { padding: 0; }
  .sec--pair > section:first-child .prose, .sec--pair .notes { padding: var(--s4) var(--gutter); }
  .sec--pair > section:last-child .sec__name { padding-inline: var(--gutter); }
  .sec--pair .sec__name { padding-bottom: 0; }
  .product .reel { margin: 0 var(--gutter) var(--s8); }
}
@media (min-width: 2400px) and (min-aspect-ratio: 2/1) {
  .product .stage { grid-template-rows: auto minmax(0, 2fr) auto auto auto minmax(0, 1fr); }
  .product .plate { min-height: 100vh; }
  .summary { padding-right: var(--s16); }
  .sec { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
  .sec--details { grid-column: 3; grid-row: 1 / 7; display: flex; flex-direction: column; justify-content: center; padding: 12vh var(--gutter) var(--s16) var(--s16); background: var(--plate); }   /* the third surface, as Practice is on the homepage */
  .sec--details > :last-child { margin-top: var(--s8); }
  .sec--details .facts { grid-template-columns: minmax(0, 1fr); }
  .sec--details .facts > div { border-color: var(--plate-rule); }
  .product .reel { margin-left: calc(30% + var(--s24)); }
}
/* Tall ultrawide: the first screen is scaled up, so the reading text below it goes up one step too. */
@media (min-width: 2400px) and (min-aspect-ratio: 2/1) and (min-height: 1300px) {
  .product .statement h1 { font-size: 5.75rem; }
  .sec--details .facts dd, .notes, .prose p { font-size: var(--t-lg); line-height: 1.5; }
  .notes li { max-width: 40em; }
}

/* ====================================================================================================
   Policy and help pages (/textlift/privacy/, /textlift/support/). Quieter than the homepage and product page:
   a low violet band for the header and title, then a single reading column. The section names sit on the
   plate edge's line (the 39% column), as on the product page. No leaf, no card, nothing moves.
   Scoped to body.doc; the homepage and product page are untouched.
   ==================================================================================================== */
.doc__head { background: var(--plate); }
.doc__head .masthead { padding-block: var(--s4); }
.doc__title { padding: clamp(var(--s8), 7vh, var(--s16)) var(--gutter) clamp(var(--s8), 6vh, var(--s12)); }
.doc__title:focus { outline: none; }   /* the skip link's target; it is a region, not a control */
.doc__title h1 { max-width: 16em; font: 600 var(--t-2xl)/1.05 var(--sans); font-stretch: 108%; letter-spacing: -.035em; text-wrap: balance; }
.doc__title .muted { margin-top: var(--s3); color: var(--ink-2); }

.doc__text { padding: clamp(var(--s8), 6vh, var(--s12)) 0 clamp(var(--s12), 9vh, var(--s24)); }
/* The short version lines up with the text column: the gutter, the name column, then the column gap. */
.doc .notice { --name-col: calc((100% - var(--gutter) * 2) * .39); --col-gap: clamp(var(--s8), 5vw, var(--s24)); margin: 0 var(--gutter) clamp(var(--s8), 5vh, var(--s12)) calc(var(--gutter) + var(--name-col) + var(--col-gap)); max-width: 40em; padding: var(--s6); background: var(--card); border: 1px solid var(--card-rule); border-left: 3px solid var(--violet); border-radius: var(--radius); }
.doc .notice p { color: var(--ink); }
.doc__sec { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); border-top: 1px solid var(--rule); margin-inline: var(--gutter); }
.doc__sec > h2 { padding: var(--s6) var(--s8) var(--s6) 0; font: 600 var(--t-lg)/1.25 var(--sans); font-stretch: 108%; letter-spacing: -.015em; text-wrap: balance; }
.doc__body { padding: var(--s6) 0 var(--s8) clamp(var(--s8), 5vw, var(--s24)); color: var(--ink-2); }
.doc__body > * { max-width: 40em; }
.doc__body > * + * { margin-top: var(--s4); }
.doc__body ul { margin-block: 0; padding-left: 1.1em; }
.doc__body li + li { margin-top: var(--s3); }
.doc__body li::marker { color: var(--ink-3); }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body h3 { margin-top: var(--s8); font: 600 var(--t-base)/1.4 var(--sans); color: var(--ink); }
.doc__body h3:first-child { margin-top: 0; }
.doc__body h3 + p, .doc__body p + ul { margin-top: var(--s2); }
.doc__body a { color: var(--violet-ink); }
.doc__body a:hover { color: var(--ink); }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--ink); overflow-wrap: anywhere; }
.doc .colophon a[aria-current] { color: var(--ink); }

@media (max-width: 40rem) {
  .doc .notice { margin-left: var(--gutter); }
  .doc__sec { grid-template-columns: minmax(0, 1fr); }
  .doc__sec > h2 { padding: var(--s6) 0 0; }
  .doc__body { padding: var(--s3) 0 var(--s8); }
}
@media (min-width: 2400px) and (min-aspect-ratio: 2/1) {
  .doc__sec { margin-left: 30%; }
  .doc__title { padding-left: 30%; }   /* the title starts on the same line as the section names */
  .doc__sec { grid-template-columns: minmax(0, 24fr) minmax(0, 76fr); margin-right: 26%; }
  .doc .notice { margin-left: calc(30% + 44% * .24 + var(--col-gap)); }
}

/* ---------- Motion ----------
   Nothing animates on load: the leaf, the statement, the TextLift card and the install button are all in the
   first painted frame. The only motion is the button's colour change on hover, and smooth scrolling to the
   in-page sections; both are switched off for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
