/* Night Log chapters, privacy and steps (module M5).
   The features are four night entries. Odd entries put the copy on the
   inline-start side and the scene beside it; entries 2 and 4 mirror that,
   and the copy is centred against its scene. Portraits are always in full,
   natural colour (docs/26). The automated scenes play one short move, once,
   when each reaches the 45% line; without JS or with reduced motion every
   chapter simply shows its end state; Lab uses manual example tabs. Start
   states live only under html.has-chapters (JS + motion allowed). */

/* ── Night Log ────────────────────────────────────────── */
.features { position: relative; padding-bottom: clamp(16px, 2vw, 32px); }
/* The intro is the log's header: stacked, and set in the machine's condensed voice. */
.features .section-heading { display: block; max-width: 1040px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.features .section-heading h2 { font-size: var(--h2-l); font-stretch: var(--w-log); letter-spacing: -.02em; }
.features .section-heading > p { max-width: 34em; margin-top: clamp(16px, 1.6vw, 24px); padding: 0; }
/* The trilogy is the log's route in three legs, read before the entries.
   Legs one and two are flown by the machine (signal); the third is the human
   hand-off, so its waypoint and number are the cabin amber of the date. */
.trilogy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(40px, 5vw, 72px); }
.trilogy-leg { position: relative; display: grid; align-content: start; gap: 10px; padding-block-start: clamp(22px, 2.2vw, 30px); padding-inline-end: clamp(16px, 2.4vw, 40px); border-top: 1px solid var(--line-2); }
.trilogy-leg::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px var(--ink); transition: background-color .5s var(--ease); }
.trilogy-human::before { background: var(--amber); }
.trilogy-no { font: 900 clamp(48px, 5vw, 80px)/.8 var(--font-display); font-stretch: var(--w-machine); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--faint); }
.trilogy-human .trilogy-no { color: var(--amber); }
.trilogy-leg strong { margin-top: 8px; font: 800 clamp(20px, 1.9vw, 28px)/1.2 var(--font-display); font-stretch: var(--w-log); letter-spacing: -.01em; color: var(--bone); text-wrap: balance; }
.trilogy-leg > span:last-child { font-size: 15px; line-height: 1.5; color: var(--muted); }
.feature-stack { display: grid; }
.lab-demo { border: 1px dashed var(--line-2); border-radius: 18px; padding: clamp(16px, 2vw, 28px); align-self: start; min-width: 0; }
.lab-demo [hidden] { display: none; }
.lab-demo-heading { display: grid; gap: 8px; }
.lab-demo h4 { font: 650 16px/1.5 var(--font-text); color: var(--bone); margin: 0; overflow-wrap: anywhere; }
.lab-demo p, .lab-demo li, .lab-demo dt, .lab-demo dd { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.lab-demo p { color: var(--muted); margin: 0; }
.lab-demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-block: 20px; }
.lab-demo-tabs button { min-width: 0; min-height: 44px; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px/1.4 var(--font-text); overflow-wrap: anywhere; cursor: pointer; }
.lab-demo-tabs button[aria-selected=true] { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.lab-demo :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.lab-demo-panel { display: grid; gap: 14px; margin-block: 20px; }
.lab-demo-pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lab-demo-pictures figure { min-width: 0; margin: 0; }
.lab-demo-pictures img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--ink-4); }
.lab-demo-pictures figcaption { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.lab-demo-pictures figcaption span { color: var(--muted); }
.lab-demo .lab-demo-caption { color: var(--faint); font-size: 12px; }
.lab-demo-bios { display: grid; gap: 10px; }
.lab-demo-bios blockquote { margin: 0; padding: 14px; border-inline-start: 2px solid var(--line-2); background: var(--ink-2); border-radius: 0 8px 8px 0; }
[dir=rtl] .lab-demo-bios blockquote { border-radius: 8px 0 0 8px; }
.lab-demo-diff { margin: 0; display: grid; gap: 14px; }
.lab-demo-diff > div { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.lab-demo-diff dt { color: var(--faint); }
.lab-demo-diff dd { margin: 5px 0 0; }
.lab-demo-publish-steps { display: grid; gap: 10px; list-style: decimal; padding-inline-start: 22px; color: var(--muted); }
.lab-demo-footer { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; }
.lab-demo-footer strong { color: var(--bone); }
.lab-demo-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.lab-demo-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: var(--bone); font-size: 14px; line-height: 1.6; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .lab-demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-demo-pictures { gap: 10px; }
}
.chapter {
  --gap: clamp(32px, 5vw, 96px);
  --plate-pad: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "text art";
  column-gap: var(--gap);
  row-gap: clamp(20px, 2.2vw, 30px);
  padding-block: clamp(36px, 4vw, 60px);
  border-top: 1px solid var(--line);
}
/* Entries 2 and 4 mirror: the scene leads. */
.chapter:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "art text"; }

.feature-text { grid-area: text; align-self: center; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Entry headings are log lines: condensed (Latin only; other scripts ignore the width axis). */
.feature-card h3 { font: 800 var(--h2-m)/1.06 var(--font-display); font-stretch: var(--w-log); letter-spacing: -.015em; overflow-wrap: break-word; }
.feature-card .feature-text > p { max-width: 34em; font-size: 16px; line-height: 1.7; color: var(--muted); }
/* The act an entry belongs to: a machine caption over its heading, lit like its leg. */
.feature-card .feature-text > .chapter-act { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
:is(:lang(zh), :lang(ja), :lang(ko)) .feature-card .feature-text > .chapter-act { letter-spacing: .06em; }
.chapter-act::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); transition: background-color .5s var(--ease); }
.feature-date .chapter-act::before { background: var(--amber); }
/* The two ways to like: a short spec list under the auto-like entry. */
.like-modes { max-width: 34em; margin: 8px 0 0; border-top: 1px solid var(--line-2); }
.like-mode { display: grid; gap: 6px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.like-mode dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 750 17px/1.35 var(--font-text); color: var(--bone); }
.mode-for { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 99px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.like-mode + .like-mode .mode-for { border-color: currentColor; color: var(--signal); transition: color .5s var(--ease); }
.like-mode dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* The scene: no plate, it stands on the night itself. */
.feature-illustration { grid-area: art; position: relative; z-index: 1; align-self: start; min-width: 0; isolation: isolate; }

/* 2 · Auto-like: an untilted deck; the front card is liked toward the inline end. */
.swipe-illustration { --w: min(27cqi, 196px); --deck-x: 52cqi; --liked: calc(100cqi - var(--deck-x) - var(--w) * .45 - 6px); container-type: inline-size; min-height: clamp(280px, 24vw, 340px); }
.swipe-mini { --depth: 0; position: absolute; top: 44px; inset-inline-start: calc(var(--deck-x) - var(--w) / 2); width: var(--w); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--ink); translate: 0 calc(var(--depth) * -20px); scale: calc(1 - var(--depth) * .055); box-shadow: 0 24px 48px -24px rgb(0 0 0 / .9); }
/* Depth dims each card into the night (the card is ink underneath). */
.swipe-mini img { width: 100%; height: 100%; object-fit: cover; }
.back-two { --depth: 1; z-index: 1; }
.back-one { --depth: 0; z-index: 2; }
.swipe-mini.front { z-index: 3; translate: calc(var(--dir) * var(--liked)) 14px; scale: .9; }
.swipe-meta { position: absolute; z-index: 2; inset: auto 0 0; padding: 36px 14px 14px; background: linear-gradient(transparent, rgb(11 13 18 / .9)); }
.swipe-meta > svg { width: 20px; height: 20px; color: var(--bone); fill: var(--bone); }
.swipe-meta > span { display: block; margin-top: 6px; font: 600 12px/1.35 var(--font-text); color: var(--bone); }
.mini-line { height: 4px; width: 78%; margin-top: 10px; border-radius: 4px; background: rgb(242 240 234 / .3); }
.mini-line.short { width: 48%; margin-top: 6px; }
.swipe-check { position: absolute; z-index: 4; top: 30px; inset-inline-start: calc(var(--deck-x) + var(--liked) - 26px); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bone); color: var(--ink); box-shadow: 0 0 0 6px var(--ink); }
.swipe-check svg { width: 24px; height: 24px; stroke-width: 2.8; }

/* 3 · AI chat: the other side asks; your voice answers after a short typing beat. */
.chat-illustration { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "out" "tag"; align-content: start; gap: 14px; padding-block: 4px; }
.mini-bubble { grid-area: in; justify-self: start; max-width: min(76%, 480px); padding: .8em 1.1em; border-radius: 1.2em; border-end-start-radius: 4px; background: var(--bone); color: var(--ink); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.4; }
.mini-bubble.translated { grid-area: out; justify-self: end; display: flex; align-items: center; gap: 14px; border-radius: 1.2em; border-end-end-radius: 4px; background: var(--ink-4); color: var(--bone); }
.mini-bubble.translated svg { width: 18px; height: 18px; color: var(--signal); transition: color .5s var(--ease); }
.language-pair { grid-area: tag; justify-self: end; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--font-text); letter-spacing: .02em; color: var(--faint); }
.language-pair::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); transition: background-color .5s var(--ease); }
.typing { grid-area: out; justify-self: end; align-self: start; display: flex; gap: 5px; padding: 15px 18px; border-radius: 20px; border-end-end-radius: 4px; background: var(--ink-4); opacity: 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--bone); }

/* 4 · The date: a ticket prints from a slot; then the other side's yes lands in amber. */
/* The slot stays inside the scene's own column: the ticket is inset by the slot's lip. */
.date-illustration { display: grid; grid-template-columns: min(100%, 440px); justify-content: end; align-content: start; padding-block: 22px 28px; padding-inline-end: 14px; }
.date-illustration::before { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: min(100%, 468px); height: 8px; border-radius: 8px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.date-ticket { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 14px; background: var(--afternoon); color: var(--ink); -webkit-mask: radial-gradient(circle 11px at calc(100% - 88px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 88px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at calc(100% - 88px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 88px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
[dir=rtl] .date-ticket { -webkit-mask: radial-gradient(circle 11px at 88px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 88px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at 88px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 88px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px 26px; }
.date-day { font: 500 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.date-ticket strong { font: 900 clamp(64px, 6.2vw, 100px)/.84 var(--font-display); font-stretch: var(--w-machine); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--amber-deep); direction: ltr; unicode-bidi: isolate; transition: color var(--t-scene) var(--ease); }
.date-place { font-size: 16px; font-weight: 650; }
.ticket-stub { width: 88px; display: grid; place-items: center; border-inline-start: 2px dashed var(--ink-line); }
.barcode { width: 38px; height: 72%; background: repeating-linear-gradient(var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); }
.date-check { position: relative; z-index: 1; grid-area: 1 / 1; align-self: end; justify-self: start; margin-block-end: -20px; margin-inline-start: -22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--amber); color: var(--on-amber); font-weight: 750; font-size: 14px; box-shadow: 0 16px 30px -12px rgb(0 0 0 / .7); }
.date-check svg { width: 16px; height: 16px; stroke-width: 2.6; }

/* ── One-shots: start states (JS + motion only) and their single moves ── */

html.has-chapters .back-one, html.has-chapters .back-two { transition: translate .7s var(--ease) .28s, scale .7s var(--ease) .28s; }
html.has-chapters .chapter:not(.is-active) .back-two { --depth: 2; }
html.has-chapters .chapter:not(.is-active) .back-one { --depth: 1; }
html.has-chapters .chapter:not(.is-active) .swipe-mini.front { translate: 0 0; scale: 1; }
html.has-chapters .is-active .swipe-mini.front { animation: m5-like .9s var(--ease) backwards; }
html.has-chapters .swipe-check { transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) .62s, opacity .2s linear .62s; }
html.has-chapters .chapter:not(.is-active) .swipe-check { scale: .3; opacity: 0; }

/* clip-path only interpolates between two inset()s, so the end state is spelled out. */
html.has-chapters .mini-bubble.translated { clip-path: inset(0); transition: clip-path .8s var(--ease) .7s; }
html.has-chapters .chapter:not(.is-active) .mini-bubble.translated { clip-path: inset(0 100% 0 0); }
[dir=rtl].has-chapters .chapter:not(.is-active) .mini-bubble.translated { clip-path: inset(0 0 0 100%); }
html.has-chapters .typing { transition: opacity .25s linear .62s, scale .25s var(--ease) .62s; }
html.has-chapters .chapter:not(.is-active) .typing { opacity: 1; }
html.has-chapters .is-active .typing { scale: .85; }
html.has-chapters .is-active .typing i { animation: m5-typing .35s ease-in-out 2 alternate; }
html.has-chapters .is-active .typing i:nth-child(2) { animation-delay: .1s; }
html.has-chapters .is-active .typing i:nth-child(3) { animation-delay: .2s; }

/* A printer feeds at an even pace, so the ticket uses a steadier curve than the house ease. */
html.has-chapters .date-ticket { clip-path: inset(0); transition: clip-path .9s cubic-bezier(.35, .1, .25, 1), translate .9s cubic-bezier(.35, .1, .25, 1); }
html.has-chapters .date-ticket strong { transition-delay: .55s; }
html.has-chapters .chapter:not(.is-active) .date-ticket { clip-path: inset(0 0 100% 0); translate: 0 -28px; }
html.has-chapters .chapter:not(.is-active) .date-ticket strong { color: var(--ink); }
html.has-chapters .date-check { transition: scale .45s var(--ease) .78s, opacity .15s linear .78s; }
html.has-chapters .chapter:not(.is-active) .date-check { scale: 1.15; opacity: 0; }

@keyframes m5-like {
  0% { translate: 0 0; scale: 1; }
  42% { translate: calc(var(--dir) * var(--liked) * .78) -18px; rotate: calc(var(--dir) * 9deg); scale: .97; }
  100% { translate: calc(var(--dir) * var(--liked)) 14px; scale: .9; }
}
@keyframes m5-typing { from { translate: 0 0; opacity: .45; } to { translate: 0 -4px; opacity: 1; } }

/* ── Privacy: one T-shaped split ──────────────────────────
   The device and the cloud are two columns of plain rows under their own
   labels, divided by a single hairline: the boundary the data crosses. */
.local-band { position: relative; padding-block: clamp(64px, 7vw, 112px); }
.local-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: clamp(40px, 5vw, 88px); }
.local-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 600 13px/1.3 var(--font-text); letter-spacing: .04em; color: var(--faint); }
.local-kicker svg { width: 15px; height: 15px; stroke-width: 2; color: var(--bone); }
.local-copy h2 { font-size: var(--h2-m); text-wrap: balance; }
/* Chinese and Japanese keep the heading's designed break, so its lines are set
   by the measure. The longest Chinese line is 11 ideographs; the Japanese one
   must wrap once, after お使いの, ahead of a 13-wide phrase. The copy column is
   never narrower than that line at --h2-m (the Japanese heading is capped at
   it, so the phrase always starts the line), and on phones, where the screen
   is the measure, that line sets the size. No "上。" or "み保存されます。" is
   ever left on a line of its own. */
html.is-cjk .local-band-inner { --cjk-line: 11; }
html.is-cjk:lang(ja) .local-band-inner { --cjk-line: 13; }
html.is-cjk:lang(ja) .local-copy h2 { max-inline-size: 13.2em; }
@media (min-width: 1201px) {
  html.is-cjk .local-band-inner { grid-template-columns: minmax(min(100%, calc(var(--h2-m) * var(--cjk-line))), 1fr) minmax(0, 2fr); }
}
@media (max-width: 640px) {
  html.is-cjk .local-copy h2 { font-size: min(var(--h2-m), (100vw - 2 * var(--gutter)) / (var(--cjk-line) + .2)); }
}
.local-copy > p { max-width: 34em; margin: 22px 0 26px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.data-split { --side: clamp(20px, 2.6vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; margin-top: 6px; }
/* Both labels share one row, so the crossbar of the T is one straight rule in every language. */
.data-col { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; }
.data-col h3 { align-self: end; padding-block: 0 16px; border-bottom: 1px solid var(--line-2); font: 700 17px/1.35 var(--font-text); }
.data-col h3 svg { width: 17px; height: 17px; margin-inline-end: 8px; vertical-align: -.17em; color: var(--bone); }
.data-col li { padding-block: 14px 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* What stays home is set in bone; it leans on the boundary from the device side. */
.data-local { text-align: end; }
.data-local h3 { padding-inline-end: var(--side); }
.data-local li { padding-inline-end: var(--side); color: var(--bone); }
.data-cloud { border-inline-start: 1px solid var(--line-2); }
.data-cloud h3, .data-cloud li { padding-inline-start: var(--side); }

/* ── Getting started: the pre-flight checklist ────────────
   Set like a checklist card: one item per hairline, a box, the item in the
   log's condensed voice, a dotted leader running out to its note. The third
   box is the autopilot's own: the one lit, and it greys with the switch. */
.getting-started { padding-block: clamp(64px, 7vw, 112px); background: var(--ink-1); color: var(--bone); border-top: 1px solid var(--line); }
.start-heading { margin-bottom: clamp(24px, 3vw, 40px); }
/* A checklist card is practical print: the entry size of the scale, not a poster. */
.start-heading h2 { max-width: 24em; font-size: var(--h2-m); }
.steps { --box: 13px; --item: clamp(20px, 2vw, 28px); border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: var(--box) minmax(0, 1fr); align-items: start; column-gap: clamp(18px, 2vw, 30px); padding-block: clamp(18px, 1.7vw, 24px); border-bottom: 1px solid var(--line); }
/* The box sits on the item's first line. */
.steps li::before { content: ""; box-sizing: border-box; inline-size: var(--box); block-size: var(--box); margin-block-start: calc((var(--item) * 1.2 - var(--box)) / 2); border: 1.5px solid var(--line-2); border-radius: 2px; }
.steps li:last-child::before { border-color: var(--signal); background: var(--signal); transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.steps li > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(36em, 48%)); align-items: baseline; column-gap: clamp(20px, 2.4vw, 40px); }
.steps h3 { display: flex; align-items: last baseline; gap: 16px; font: 800 var(--item)/1.2 var(--font-display); font-stretch: var(--w-log); letter-spacing: -.015em; }
/* The leader stands on the item's last baseline and runs to the note. */
.steps h3::after { content: ""; flex: 1 1 0; min-inline-size: 24px; border-bottom: 2px dotted var(--line-2); }
.steps p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.start-link { margin-top: clamp(32px, 3.6vw, 52px); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .local-band-inner { grid-template-columns: minmax(0, 1fr); }
  .local-copy > p { margin-bottom: 18px; }
}

/* Night Log on narrow screens: one column, the copy above its scene. */
@media (max-width: 860px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "text" "art"; row-gap: 16px; padding-block: 28px 36px; }
  .feature-illustration { margin-top: 8px; }
  .swipe-illustration { min-height: clamp(240px, 62vw, 340px); }
  .date-illustration { padding-inline-end: 0; }
  .date-illustration::before { inset-inline-end: -6px; width: min(100% + 6px, 468px); }
}

@media (max-width: 640px) {
  .feature-card .feature-text > p { font-size: 15px; line-height: 1.7; }
  /* The route turns on its side: one leg per row, the number beside its line. */
  .trilogy { grid-template-columns: minmax(0, 1fr); }
  .trilogy-leg { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding-block: 20px 18px; padding-inline-end: 0; }
  .trilogy-no { grid-row: 1 / span 2; font-size: 52px; }
  .trilogy-leg strong { margin-top: 0; font-size: 20px; }
  .like-mode dt { font-size: 16px; }
  .swipe-illustration { --w: min(36cqi, 150px); --deck-x: 30cqi; }
  .swipe-check { width: 42px; height: 42px; }
  .swipe-check svg { width: 20px; height: 20px; }
  .swipe-meta { padding: 24px 10px 10px; }
  .swipe-meta > span { font-size: 11px; }
  .mini-bubble { font-size: 15px; padding: 12px 15px; }
  .ticket-main { padding: 18px 18px; }
  .ticket-stub { width: 64px; }
  .date-illustration { grid-template-columns: min(100% - 8px, 430px); }
  .date-check { margin-inline-start: -4px; padding: 8px 13px; font-size: 13px; }
  /* Privacy: the split turns on its side; the hairline becomes the rule between the two lists. */
  .data-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 32px; }
  .data-col { display: block; grid-row: auto; }
  .data-local { text-align: start; }
  .data-local h3, .data-local li, .data-cloud h3, .data-cloud li { padding-inline: 0; }
  .data-cloud { border-inline-start: 0; }
  .data-col li { padding-block-start: 12px; }
}

/* Checklist on narrower screens: the note drops under its item, and the leader goes. */
@media (max-width: 860px) {
  .steps li > div { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .steps h3::after { display: none; }
  .steps p { max-width: 34em; }
}
