/* Tabletop landing page — "Airmail" (values from DESIGN.md / Tabletop/Design/Stage.swift).
   Two papers: the aerogramme sheet and the envelope ground. Colour by role:
   Par Avion blue acts, postmark violet means delivered, airmail red means returned.
   The border stripes' red and blue are their own tokens and never stand for state. */

:root {
  --ground: #F8F9FB;
  --sheet: #D7E3F3;
  --ink: #1A2233;
  --secondary: #4A5568;
  --tertiary: #535F76;
  --par-avion: #1F3F8C;
  --on-par-avion: #FFFFFF;
  --postmark: #5A3D8E;
  --airmail-red: #B42D27;
  --seam: #D3DAE5;
  --control-edge: #5F6B80;   /* a control's outline: 5.1:1 on the ground, 4.2:1 on the sheet (WCAG 1.4.11) */
  --border-red: #C8312F;
  --border-blue: #1F3F8C;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "Hiragino Sans",
          "PingFang SC", "Apple SD Gothic Neo", "Noto Sans", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "Noto Sans", sans-serif;
  --compressed: "SF Pro Compressed", "SF Pro Display", -apple-system, "Arial Narrow", sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 112px);
  color-scheme: light;   /* the site is light only, whatever the device's appearance */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--par-avion); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .gallery:focus-visible {
  outline: 2px solid var(--par-avion);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
/* Vietnamese stacks diacritics above and below: give display lines room. */
:lang(vi) h1 { line-height: 1.14; }
:lang(vi) h2 { line-height: 1.2; }
/* Korean breaks between words, never inside one; Japanese and Chinese keep their punctuation off a line's start. */
:lang(ko) { word-break: keep-all; }
:lang(ja), :lang(zh-Hans), :lang(zh-Hant) { line-break: strict; }
/* Each CJK language in its own face: Chinese in Japanese glyphs (and Japanese punctuation spacing) reads as foreign. */
:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
/* Japanese headings break between phrases, never inside a word (スマートフォン). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) summary, :lang(ja) th { word-break: auto-phrase; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--secondary); }
.small { font-size: 15px; }
.lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--secondary); line-height: 1.5; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--par-avion); color: var(--on-par-avion); padding: 8px 16px; border-radius: 999px; }

/* Bracketed captioning cue, in Par Avion blue */
.cue { font-weight: 700; font-size: 15px; color: var(--par-avion); letter-spacing: 0.01em; margin-bottom: 16px; }

/* ---------- Buttons: one filled capsule, quiet text otherwise ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  background: var(--par-avion); color: var(--on-par-avion);
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--quiet { background: transparent; color: var(--par-avion); border: 1px solid var(--par-avion); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--seam);
}
@supports not (background: color-mix(in srgb, red, blue)) { .top { background: var(--ground); } }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a { color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 500; }
.top__nav a:hover { color: var(--ink); }
.top__actions { display: flex; align-items: center; gap: 12px; }
/* The language menu: the system's own picker in a quiet capsule, so six languages fit beside the store button. */
.lang { position: relative; display: inline-flex; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 600 14px/1 var(--font); color: var(--ink);
  background: var(--ground) no-repeat right 12px center / 10px 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%231F3F8C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border: 1px solid var(--control-edge); border-radius: 999px;
  min-height: 40px; padding: 0 32px 0 14px; cursor: pointer;
}
.lang select:focus-visible { outline: 2px solid var(--par-avion); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* On a phone the page's places sit in a row under the bar, so Questions and Pro are one tap away. */
@media (max-width: 820px) {
  .top__row { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .top__actions { margin-left: auto; }
  .top__nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
  .top__nav a { white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
}
@media (max-width: 440px) {
  :root { --gutter: 16px; }
  /* The mark alone (the link keeps its name), so the store button stays in reach on a phone. */
  .brand span { display: none; }
  .top__row { gap: 12px; }
  .top__actions { gap: 8px; }
  .btn--small { padding: 0 14px; }
}

/* ---------- Airmail border ---------- */
.airmail {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--border-red) 0 10px, var(--ground) 10px 14px,
    var(--border-blue) 14px 24px, var(--ground) 24px 28px);
}
.airmail--thin { height: 6px; }

/* Apple's own badge, as Apple draws it: never recoloured, at least 40 px tall. */
.badge { display: inline-flex; border-radius: 10px; }
.badge img { height: 52px; width: auto; }
figcaption { text-align: center; font-size: 13px; color: var(--tertiary); margin-top: 12px; }
/* Short lines end evenly: no word left alone on the last line. */
p, summary, li { text-wrap: pretty; }
/* Short copy sets in even lines: no word or two left alone at the bottom. */
.lede, .chapter p, .plan p, .also p, details p, .cmp th { text-wrap: balance; }
.nw { white-space: nowrap; }
::selection { background: var(--sheet); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section h2 { margin-bottom: 16px; }
.sheet { background: var(--sheet); }

/* Pause for the Duo video: what moves can always be stopped (WCAG 2.2.2). */
.controls { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.controls--center { justify-content: center; margin-top: 12px; }
.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font: 600 15px/1 var(--font); color: var(--par-avion);
  background: var(--ground); border: 1px solid var(--control-edge); border-radius: 999px; cursor: pointer;
}
.ctl--text { padding: 0 18px; }
.ctl:hover { border-color: var(--par-avion); }
.ctl[hidden] { display: none; }

/* ---------- The story: the app, used once ----------
   The opening is the table: the aerogramme sheet with the airmail seam across it, and on it a device drawn in HTML,
   Tabletop's Quick Start and then its conversation. The device sticks while six chapters scroll past; each sets its
   view and brackets what it is about. Sizes inside the device are in container units, so it reads the same at any size. */
:root {
  --bar: 64px;
  /* A postage stamp's perforated edge: holes along the border band only, solid inside. */
  --perf: radial-gradient(circle, transparent 3.1px, #000 3.5px) -3.8px -3.8px / 7.6px 7.6px repeat,
          linear-gradient(#000, #000) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
}
@media (max-width: 820px) { :root { --bar: 106px; } }

.story { padding-bottom: clamp(32px, 5vw, 80px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); }
@media (min-width: 901px) { .wrap.story__grid { max-width: 1280px; } }
.story__copy { grid-column: 1; grid-row: 1; min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.story__copy h1 { font-size: clamp(64px, 8.4vw, 120px); line-height: 0.96; letter-spacing: -0.04em; margin-bottom: 28px; }
.story__copy .lede { max-width: 22em; font-size: clamp(19px, 1.7vw, 23px); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.story__stage { grid-column: 2; grid-row: 1 / span 7; align-self: start; position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); padding: 3svh 0; }

.chapter { grid-column: 1; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding: 6svh 0; }
.chapter:last-child { min-height: 100svh; }
.chapter h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 14px; }
.chapter p { font-size: clamp(18px, 1.6vw, 21px); color: var(--secondary); max-width: 24em; }
.chapter__cta { margin-top: 28px; }
.js .chapter { opacity: 0.4; transition: opacity .4s ease-out; }
.js .chapter.is-on { opacity: 1; }

/* The chapter's stamp: a perforated postage stamp, its drawing in Par Avion blue on the stamp's paper. */
.stamp { display: block; width: 92px; margin-bottom: 22px; transform: rotate(-4deg); filter: drop-shadow(0 6px 10px rgba(10, 18, 36, .16)); }
.stamp svg { display: block; width: 100%; height: auto; -webkit-mask: var(--perf); mask: var(--perf); }
.chapter:nth-child(odd) .stamp { transform: rotate(3deg); }
.js .chapter .stamp { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.js .chapter.is-on .stamp { transform: rotate(-2deg) scale(1.04); }
.st-paper { fill: #FFFFFF; }
.st-line { fill: none; stroke: var(--par-avion); stroke-width: 1.5; }
.st-sky { fill: var(--sheet); }
.st-ink { fill: none; stroke: var(--par-avion); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-ink-fill, .st-fill { fill: var(--par-avion); }
.st-red { fill: none; stroke: var(--border-red); stroke-width: 3; stroke-linecap: round; }
.st-fill-red { fill: var(--border-red); }
.st-table { fill: #FFFFFF; stroke: var(--par-avion); stroke-width: 3; }
.st-phone { fill: var(--ink); }
.st-phone-big { fill: #FFFFFF; stroke: var(--ink); stroke-width: 4; }
.st-glyph { font: 800 17px var(--display); fill: var(--par-avion); text-anchor: middle; }
.st-card, .st-env { fill: #FFFFFF; stroke: var(--par-avion); stroke-width: 2.5; }
.st-corner-blue { fill: none; stroke: var(--par-avion); stroke-width: 4; stroke-linecap: round; }
.st-seal-mark-ring { fill: none; stroke: #FFFFFF; stroke-width: 2.5; }
.st-seal-mark { stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; }
.st-violet { fill: none; stroke: var(--postmark); stroke-width: 2.5; }

/* The table */
.table { position: relative; height: 100%; margin: 0; background: var(--sheet); border-radius: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.table__seam {
  position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px;
  background: repeating-linear-gradient(-45deg, var(--border-red) 0 12px, var(--sheet) 12px 17px, var(--border-blue) 17px 29px, var(--sheet) 29px 34px);
}
.side { position: absolute; left: 28px; font-weight: 700; font-size: 14px; color: var(--par-avion); z-index: 1; }
.side--them { top: 22px; }
.side--you { bottom: 22px; }
.table__seam, .side { transition: opacity .4s ease-out; }
.table:has(.device:not([data-view="talk"])) .side--them { opacity: 0; }
.table:has(.device[data-view="kept"]) .table__seam { opacity: 0; }

.device {
  position: relative; z-index: 1; height: 88%; aspect-ratio: 9 / 18.6; border-radius: 13% / 6.3%; background: #0E1118; padding: 2.6%;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 70px rgba(10,18,36,.25), 0 10px 24px rgba(10,18,36,.16);
}
.dv { position: relative; width: 100%; height: 100%; border-radius: 11% / 5.3%; overflow: hidden; background: var(--ground); container-type: size; }
.dv :lang(ja) { word-break: auto-phrase; }

/* Views: one shows at a time; the conversation is the default (and what shows without JavaScript). */
.dv__quick, .dv__cam, .dv__letter { position: absolute; inset: 0; z-index: 2; visibility: hidden; opacity: 0; transition: opacity .35s ease-out, visibility 0s linear .35s, transform .55s cubic-bezier(.2, .8, .2, 1); }
.device[data-view="quick"] .dv__quick, .device[data-view="cam"] .dv__cam, .device[data-view="kept"] .dv__letter { visibility: visible; opacity: 1; transition-delay: 0s; }

/* Quick Start, as the app opens: I speak, Swap, They speak, Start Conversation. */
.dv__quick { background: var(--ground); padding: 16cqw 8cqw 9cqw; display: flex; flex-direction: column; }
.dv__brand { font: 800 8cqw/1 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12cqw; }
.pick { position: relative; padding: 5cqw 0; border-top: 1px solid var(--seam); }
.pick--them { border-bottom: 1px solid var(--seam); }
.pick__k { display: block; font-size: 3.6cqw; font-weight: 600; color: var(--secondary); margin-bottom: 2cqw; }
.pick--them .pick__k { color: var(--par-avion); }
.pick__v { display: flex; align-items: center; gap: 3cqw; font: 700 6.8cqw/1.15 var(--display); color: var(--ink); }
.pick__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__chev { width: 3.4cqw; height: 3.4cqw; flex: none; fill: none; stroke: var(--par-avion); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; }
.pick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pick:has(select:focus-visible) { outline: 2px solid var(--par-avion); outline-offset: 2px; border-radius: 4px; }
.flag { flex: none; display: inline-flex; width: 9.2cqw; height: 6.9cqw; }
.flag img { width: 100%; height: 100%; border-radius: 0.8cqw; box-shadow: 0 0 0 1px rgba(26, 34, 51, .14); object-fit: cover; }
.dv__swap {
  align-self: flex-end; margin: -4.6cqw 0; position: relative; z-index: 1; width: 10cqw; height: 10cqw; min-width: 36px; min-height: 36px;
  border-radius: 50%; border: 1px solid var(--control-edge); background: var(--ground); color: var(--par-avion); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.dv__swap svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv__start {
  margin-top: auto; min-height: 44px; padding: 4.4cqw 0; border: 0; border-radius: 999px; background: var(--par-avion); color: var(--on-par-avion);
  font: 600 5cqw/1.1 var(--font); cursor: pointer;
}
.dv__start:hover { opacity: .9; }
.dv__start:focus-visible { outline: 2px solid var(--par-avion); outline-offset: 3px; }
.dv__more { display: flex; justify-content: center; gap: 7cqw; margin-top: 5cqw; font-size: 3.8cqw; font-weight: 600; color: var(--par-avion); }

/* A seal for the two Chinese: the character in a red chop, never a flag. */
.seal {
  flex: none; display: inline-grid; place-items: center; width: 100%; height: 100%; min-width: 0;
  background: var(--border-red); color: #FFFFFF; border-radius: 18%; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 2px var(--border-red), inset 0 0 0 3px rgba(255,255,255,.75);
}
.flag .seal { font-size: 4.2cqw; border-radius: 1cqw; }

/* Their half, turned to face the person across the table. */
.dv__theirs { position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--sheet); transform: rotate(180deg); padding: 7cqw; display: flex; flex-direction: column; transition: background-color .4s ease-out; }
.dv__big { order: 1; font-size: 7.4cqw; font-weight: 700; line-height: 1.22; color: var(--ink); transition: font-size .4s ease-out; }
.dv__prev { order: 2; font-size: 3.8cqw; line-height: 1.35; color: var(--secondary); margin-top: 3cqw; }
.dv__cue { order: 3; margin-top: auto; font-size: 3.4cqw; font-weight: 700; color: var(--par-avion); }
.device[data-focus="theirs"] .dv__theirs { background: #C9D8EE; }
.device[data-focus="theirs"] .dv__big { font-size: 8.6cqw; }
.dv__seam {
  position: absolute; left: 0; right: 0; top: 50%; height: 1.6cqw; margin-top: -0.8cqw;
  background: repeating-linear-gradient(-45deg, var(--border-red) 0 1.6cqw, #fff 1.6cqw 2.2cqw, var(--border-blue) 2.2cqw 3.8cqw, #fff 3.8cqw 4.4cqw);
}

/* Your half: the conversation as the owner reads it, each delivered line postmarked. */
.dv__mine { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; padding: 5cqw 6cqw 4cqw; display: flex; flex-direction: column; }
.dv__bar { display: flex; align-items: center; gap: 3cqw; font-size: 3.3cqw; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dv__pair { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dv__end { margin-left: auto; color: var(--secondary); font-weight: 500; }
.dv__pause { border: 1px solid var(--par-avion); color: var(--par-avion); border-radius: 999px; padding: 0.8cqw 2.6cqw; }
.dv__off { display: none; align-items: center; gap: 1.6cqw; background: var(--par-avion); color: var(--on-par-avion); border-radius: 999px; padding: 0.9cqw 2.8cqw 0.9cqw 2cqw; font-weight: 700; }
.dv__off svg { width: 3.6cqw; height: 3.6cqw; fill: currentColor; }
.dv__lines { list-style: none; margin: 2cqw 0 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.dv__line { display: none; position: relative; padding: 1.8cqw 9cqw 1.8cqw 0; }
.dv__line.is-in { display: block; animation: dv-arrive .35s ease-out both; }
.dv__line.is-in.is-gone { display: none; }
.dv__line b { display: block; font-size: 3.2cqw; letter-spacing: 0.06em; color: var(--secondary); }
.dv__line--them b { color: var(--par-avion); }
.dv__text { display: block; font-size: 5cqw; line-height: 1.28; font-weight: 500; color: var(--ink); }
.dv__gloss { display: block; font-size: 3.6cqw; line-height: 1.3; color: var(--secondary); margin-top: 0.5cqw; }
.dv__mark {
  position: absolute; right: 0; top: 4.2cqw; width: 5.6cqw; height: 5.6cqw; border-radius: 50%;
  border: 0.5cqw solid var(--postmark); box-shadow: inset 0 0 0 0.5cqw var(--ground), inset 0 0 0 0.8cqw var(--postmark);
  animation: dv-postmark .45s cubic-bezier(.16, 1, .3, 1) .1s both; transform: rotate(-12deg);
}
[dir="rtl"] + .dv__mark, .dv__line:has([dir="rtl"].dv__text) { text-align: right; }
.dv__line.is-new .dv__mark { visibility: hidden; animation: none; }
.dv__line.is-new .dv__text::after { content: ""; display: inline-block; width: 0.5cqw; height: 4cqw; margin-left: 0.4cqw; vertical-align: -0.6cqw; background: var(--par-avion); }
.dv__listen { font-size: 3cqw; font-weight: 700; color: var(--par-avion); margin-top: 1.5cqw; }

/* Read with Camera: the back camera on a printed sign, your language laid over each line, live. */
.dv__cam { background: radial-gradient(120% 80% at 50% 40%, #3A4152 0%, #1C2130 60%, #12161F 100%); }
.cam__sign {
  position: absolute; left: 13%; right: 13%; top: 24%; padding: 7cqw 6cqw; background: #F4F1E8; color: #1A2233;
  transform: rotate(-4deg); box-shadow: 0 2cqw 5cqw rgba(0,0,0,.45); border-radius: 1cqw;
}
.cam__s1 { font: 800 6cqw/1.15 var(--display); letter-spacing: 0.02em; }
.cam__s2 { margin-top: 3cqw; font-size: 4.2cqw; line-height: 1.35; }
.cam__slip {
  position: absolute; left: 10%; right: 16%; padding: 2cqw 3cqw; background: var(--ground); color: var(--ink); border-radius: 1.2cqw;
  font-size: 4cqw; font-weight: 600; line-height: 1.3; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.35); transform: rotate(-4deg);
}
.cam__slip--1 { top: 52%; font-weight: 800; }
.cam__slip--2 { top: 61%; left: 18%; right: 8%; }
.device[data-view="cam"] .cam__slip { animation: cam-slip .5s cubic-bezier(.16, 1, .3, 1) both; }
.device[data-view="cam"] .cam__slip--1 { animation-delay: .5s; }
.device[data-view="cam"] .cam__slip--2 { animation-delay: 1.1s; }
.cam__btn { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); white-space: nowrap; background: var(--par-avion); color: var(--on-par-avion); border-radius: 999px; padding: 3cqw 6cqw; font-size: 4cqw; font-weight: 600; }
@keyframes cam-slip { from { opacity: 0; transform: rotate(-4deg) translateY(2cqw) scale(.96); } to { opacity: 1; transform: rotate(-4deg); } }

/* Kept: an airmail letter, its minutes first, each point pointing at its line, and the violet KEPT stamp. */
.dv__letter { background: var(--ground); padding: 11cqw 9cqw 9cqw; transform: translateY(102%); box-shadow: inset 0 0 0 2.2cqw var(--ground); }
.device[data-view="kept"] .dv__letter { transform: none; }
.dv__letter::before { content: ""; position: absolute; inset: 0; border: 2.2cqw solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--border-red) 0 2.4cqw, var(--ground) 2.4cqw 3.4cqw, var(--border-blue) 3.4cqw 5.8cqw, var(--ground) 5.8cqw 6.8cqw) 30; pointer-events: none; }
.dv__lt { font: 700 6.4cqw/1.2 var(--display); color: var(--ink); }
.dv__lh { font-size: 3.2cqw; font-weight: 700; color: var(--secondary); margin: 5cqw 0 1.5cqw; }
.dv__pt { display: flex; justify-content: space-between; gap: 3cqw; font-size: 4.6cqw; line-height: 1.35; padding: 2.2cqw 0; border-top: 1px solid var(--seam); color: var(--ink); }
.dv__pt b { color: var(--par-avion); font-size: 3.4cqw; white-space: nowrap; }
.dv__cl { display: flex; gap: 3cqw; font-size: 4.2cqw; line-height: 1.35; padding: 1.6cqw 0; color: var(--ink); }
.dv__cl b { color: var(--secondary); font-size: 3.2cqw; }
.dv__kept {
  position: absolute; right: 6cqw; bottom: 6cqw; width: 24cqw; height: 24cqw; border-radius: 50%;
  border: 0.9cqw solid var(--postmark); box-shadow: inset 0 0 0 1cqw var(--ground), inset 0 0 0 1.5cqw var(--postmark);
  color: var(--postmark); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 800 3.2cqw/1.3 var(--display); letter-spacing: 0.08em; transform: rotate(-14deg); opacity: 0;
}
.dv__kept strong { font-size: 6.4cqw; letter-spacing: 0; }
.device[data-view="kept"] .dv__kept { opacity: 1; animation: dv-kept .5s cubic-bezier(.16, 1, .3, 1) .45s both; }

/* The highlight: captioning brackets, measured around the region (main.js), gliding from one to the next. */
.dv__focus { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), width .6s cubic-bezier(.16, 1, .3, 1), height .6s cubic-bezier(.16, 1, .3, 1), opacity .3s ease-out; }
.dv__focus.is-on { opacity: 1; }
.dv__focus i { position: absolute; width: 5cqw; height: 5cqw; border: 0.9cqw solid var(--par-avion); }
.dv__focus i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.dv__focus i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.dv__focus i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.dv__focus i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.device[data-view="cam"] .dv__focus i { border-color: #FFFFFF; }

@keyframes dv-arrive { from { opacity: 0; transform: translateY(2cqw); } }
@keyframes dv-postmark { from { opacity: 0; transform: scale(1.7) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes dv-kept { from { opacity: 0; transform: scale(1.6) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) {
  .dv__line.is-in, .dv__mark, .cam__slip, .device[data-view="kept"] .dv__kept { animation: none !important; }
  .dv__quick, .dv__cam, .dv__letter, .dv__focus, .js .chapter, .js .chapter .stamp, .table__seam, .side, .dv__theirs, .dv__big { transition: none; }
}

/* A phone: the copy, then the table sticks under the bar while the chapters pass beneath it. */
@media (max-width: 900px) {
  .story__grid { display: flex; flex-direction: column; }
  .story__copy { order: 0; min-height: 0; padding: 24px 0 20px; }
  .story__copy h1 { font-size: clamp(56px, 17vw, 76px); margin-bottom: 14px; }
  .story__copy .lede { font-size: 17px; }
  .hero__ctas { margin-top: 18px; }
  .story__stage { order: 1; align-self: stretch; position: sticky; top: var(--bar); z-index: 2; height: auto; padding: 6px 0 10px; background: var(--ground); }
  .table { height: min(50svh, 440px); border-radius: 24px; }
  .device { height: 84%; aspect-ratio: 9 / 12; max-width: 92%; }
  .side { left: 0; right: 0; text-align: center; font-size: 13px; }
  .side--them { top: 10px; } .side--you { bottom: 10px; }
  .dv__quick { padding: 7cqw 7cqw 6cqw; }
  .dv__brand { display: none; }
  .pick { padding: 2.6cqw 0; }
  .dv__more { margin-top: 3.6cqw; }
  .dv__start { padding: 3.6cqw 0; }
  .dv__prev { display: none; }
  .dv__theirs { padding: 5cqw 6cqw; }
  .dv__mine { padding: 3.5cqw 6cqw 3cqw; }
  .dv__mine .dv__gloss { display: none; }
  .dv__lines { margin-top: 1cqw; }
  .dv__line { padding-top: 1.2cqw; padding-bottom: 1.2cqw; }
  .dv__letter { padding: 8cqw 8cqw; }
  .dv__cl { padding: 1cqw 0; }
  .chapter { order: 2; min-height: 50svh; justify-content: flex-start; padding: 22px 0 32px; }
  .chapter:last-child { min-height: 56svh; }
  .stamp { width: 64px; margin-bottom: 14px; }
}

/* ---------- Languages: a sheet of stamps ---------- */
.langs__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.langs__copy { position: sticky; top: calc(var(--bar) + 32px); }
.langs__copy .lede { margin-bottom: 20px; }
.langs__ui { color: var(--secondary); }
.globe { width: 132px; height: 132px; margin: 0 0 24px -6px; transform: rotate(-10deg); }
.globe__rim { fill: none; stroke: var(--par-avion); stroke-width: 3; }
.globe__text { font: 800 15px var(--display); letter-spacing: 0.12em; fill: var(--par-avion); }
.globe__earth circle, .globe__earth ellipse, .globe__earth path { fill: none; stroke: var(--par-avion); stroke-width: 2.5; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px; }
.lstamp {
  width: 100%; min-height: 128px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 16px 14px 14px; background: #FFFFFF; border: 0; cursor: pointer; color: var(--ink); font: inherit;
  -webkit-mask: var(--perf); mask: var(--perf);
  box-shadow: inset 0 0 0 7px #FFFFFF, inset 0 0 0 8px var(--seam);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.lstamp img, .lstamp .seal { width: 40px; height: 30px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(26, 34, 51, .14); object-fit: cover; margin-bottom: 8px; }
.lstamp .seal { font-size: 19px; box-shadow: inset 0 0 0 2px var(--border-red), inset 0 0 0 3px rgba(255,255,255,.75); }
.lstamp__n { font: 700 17px/1.2 var(--display); }
.lstamp__l { font-size: 13px; color: var(--secondary); }
.lstamp:hover { transform: rotate(-2deg) translateY(-2px); }
.lstamp:focus-visible { outline: 2px solid var(--par-avion); outline-offset: 2px; }
.lstamp[aria-pressed="true"] { box-shadow: inset 0 0 0 7px #FFFFFF, inset 0 0 0 9px var(--par-avion); }
@media (max-width: 900px) {
  .langs__grid { grid-template-columns: 1fr; }
  .langs__copy { position: static; }
  .globe { width: 104px; height: 104px; }
  .stamps { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .lstamp { min-height: 112px; padding: 14px 12px 12px; }
}

/* ---------- Compare ---------- */
.compare .lede { max-width: 30em; margin-bottom: 36px; }
.cmp { overflow-x: auto; border-radius: 4px; }
.cmp:focus-visible { outline: 2px solid var(--par-avion); outline-offset: 3px; }
.cmp table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--seam); vertical-align: middle; }
.cmp thead th { font: 700 14px/1.25 var(--font); color: var(--secondary); vertical-align: bottom; }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--ink); width: 22%; min-width: 200px; position: sticky; left: 0; background: var(--ground); z-index: 1; }
.cmp .cmp__us { background: var(--sheet); }
.cmp thead .cmp__us { color: var(--par-avion); font: 800 17px/1.2 var(--display); border-radius: 12px 12px 0 0; }
.cmp tbody tr:last-child .cmp__us { border-radius: 0 0 12px 12px; }
.cmp__txt { font-weight: 600; color: var(--secondary); white-space: nowrap; }
.cmp__us.cmp__txt { color: var(--par-avion); }
/* The marks, drawn: yes a filled Par Avion ring with a tick, partly half filled, no a dash, not stated a question. */
[data-v]::before { content: ""; display: inline-block; width: 22px; height: 22px; vertical-align: middle; background: no-repeat center / contain; }
[data-v="y"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%231F3F8C'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-v="p"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='9.2' fill='none' stroke='%231F3F8C' stroke-width='1.6'/%3E%3Cpath d='M11 1.8a9.2 9.2 0 0 1 0 18.4z' fill='%231F3F8C'/%3E%3C/svg%3E"); }
[data-v="n"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10' stroke='%235F6B80' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-v="u"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='9.2' fill='none' stroke='%235F6B80' stroke-width='1.4' stroke-dasharray='2.4 2.4'/%3E%3Cpath d='M8.6 8.8a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.4' fill='none' stroke='%235F6B80' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='15.6' r='1' fill='%235F6B80'/%3E%3C/svg%3E"); }
.cmp__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 18px; font-size: 14px; color: var(--secondary); }
.cmp__key .nw { display: inline-flex; align-items: center; gap: 6px; }
.cmp__key [data-v]::before { width: 18px; height: 18px; }
.cmp__src { margin-top: 18px; border: 0; }
.cmp__src summary { font-size: 14px; font-weight: 600; color: var(--secondary); padding: 8px 32px 8px 0; min-height: 0; display: inline-block; }
.cmp__src summary::after { width: 16px; height: 16px; margin-top: -8px; }
.cmp__src ul { margin: 6px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.8; }
.cmp__src p { font-size: 14px; padding: 0; }

/* Free and Pro: two columns of plain words, Pro's edge in Par Avion */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 32px 0 0; }
.plan { border-top: 1px solid color-mix(in srgb, var(--par-avion) 30%, transparent); padding-top: 22px; }
.plan--pro { border-top: 2px solid var(--par-avion); }
.plan h3 { margin-bottom: 8px; }
.plan p { color: var(--secondary); max-width: 26em; }
.plan p + p { margin-top: 12px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; gap: 28px; } }

/* Duo: the copy beside the unfolding video */
.duo p { font-size: 19px; color: var(--secondary); max-width: 24em; }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .duo__grid { grid-template-columns: 1fr; } }

/* Also in Tabletop: one line each, in one column */
.also-section { padding-top: calc(var(--section) / 2); }
.also { max-width: 760px; margin-top: 24px; }
.also article { display: grid; grid-template-columns: 9em 1fr; gap: 4px 28px; padding: 16px 0; border-top: 1px solid var(--seam); align-items: baseline; }
.also h3 { font-size: 18px; }
.also p { color: var(--secondary); font-size: 17px; }
@media (max-width: 600px) { .also article { grid-template-columns: 1fr; } }

/* FAQ */
details { border-top: 1px solid color-mix(in srgb, var(--par-avion) 25%, transparent); }
details:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--par-avion) 25%, transparent); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 19px; font-weight: 700; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%231F3F8C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='%231F3F8C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
details p { padding: 0 0 22px; color: var(--secondary); max-width: 40em; }
#faq h2 { margin-bottom: 32px; }

/* Final */
.final h2 { margin-bottom: 32px; }

/* Footer */
.foot { padding: 32px 0 48px; color: var(--tertiary); font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--secondary); }
/* Footer and source links stand alone, so each gets a full 24px+ target (WCAG 2.5.8). */
.foot nav a, .cmp__src li a { display: inline-block; padding: 4px 0; }

/* The comparison on a phone: a narrow pinned criterion column, so Tabletop and the next apps show side by side and the
   rest peek in from the edge; a line says the table moves. */
.cmp__hint { display: none; }
@media (max-width: 700px) {
  .cmp__hint { display: block; font-size: 14px; color: var(--secondary); margin: -20px 0 14px; }
  .cmp table { min-width: 0; width: max-content; font-size: 13px; }
  .cmp th, .cmp td { padding: 12px 6px; }
  .cmp thead th { font-size: 12px; width: 64px; min-width: 64px; }
  .cmp thead .cmp__us { font-size: 14px; }
  .cmp tbody th { min-width: 118px; width: 118px; font-size: 13px; line-height: 1.3; box-shadow: 1px 0 0 var(--seam); }
  .cmp__txt { white-space: normal; font-size: 12px; }
  [data-v]::before { width: 20px; height: 20px; }
}

/* ---------- Both sides of the table: accessibility ----------
   Two columns divided by the airmail seam, as the screen is: what the person across the table gets, and what you get.
   Their column carries a live Aa: the sample line grows a step at each press and the dots show where it is. */
.access .lede { max-width: 32em; margin-bottom: 40px; }
.access__grid { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
.access__seam {
  align-self: stretch; width: 14px; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--border-red) 0 12px, var(--sheet) 12px 17px, var(--border-blue) 17px 29px, var(--sheet) 29px 34px);
}
.access__who { font-weight: 700; font-size: 15px; color: var(--par-avion); margin-bottom: 18px; }
.access__list article { padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--par-avion) 25%, transparent); }
.access__list h3 { font-size: 19px; margin-bottom: 4px; }
.access__list p { color: var(--secondary); font-size: 17px; max-width: 28em; text-wrap: balance; }
.access__soon { margin-top: 18px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--par-avion) 45%, transparent); color: var(--secondary); font-size: 16px; text-wrap: pretty; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--par-avion);
  border: 1.5px dashed var(--par-avion); border-radius: 6px; padding: 2px 8px; margin-right: 6px; vertical-align: 1px; }
:lang(ja) .soon, :lang(ko) .soon, :lang(zh-Hans) .soon, :lang(zh-Hant) .soon { letter-spacing: 0; }

/* The live Aa: their half's sheet, the app's own control. */
.aa-demo { margin: 0 0 22px; background: var(--ground); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 rgba(26,34,51,.04), 0 10px 24px rgba(10,18,36,.08); }
.aa-demo__sheet { min-height: 168px; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--sheet) 70%, var(--ground)); }
.aa-demo__text { font: 700 22px/1.25 var(--display); color: var(--ink); text-align: center; transition: font-size .35s cubic-bezier(.16, 1, .3, 1); }
.js-aa[data-step="1"] .aa-demo__text { font-size: 27px; }
.js-aa[data-step="2"] .aa-demo__text { font-size: 33px; }
.js-aa[data-step="3"] .aa-demo__text { font-size: 41px; }
.aa-demo__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.aa-demo figcaption { margin: 0; text-align: left; font-size: 14px; color: var(--secondary); }
.aa {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 56px; min-height: 48px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--ground); color: var(--par-avion); border: 1px solid var(--control-edge);
}
.aa:hover { border-color: var(--par-avion); }
.aa:focus-visible { outline: 2px solid var(--par-avion); outline-offset: 3px; }
.aa svg { width: 26px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aa__dots { display: flex; gap: 3px; }
.aa__dots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--tertiary) 45%, transparent); }
.js-aa[data-step="0"] .aa__dots i:nth-child(-n+1),
.js-aa[data-step="1"] .aa__dots i:nth-child(-n+2),
.js-aa[data-step="2"] .aa__dots i:nth-child(-n+3),
.js-aa[data-step="3"] .aa__dots i { background: var(--par-avion); }
.aa__dots i:first-child { background: var(--par-avion); }
@media (prefers-reduced-motion: reduce) { .aa-demo__text { transition: none; } }
@media (max-width: 800px) {
  .access__grid { grid-template-columns: 1fr; }
  .access__seam { width: auto; height: 12px; margin: 28px 0; }
}

/* Japanese and Chinese headlines are one phrase that can't break: sized so "ただ話すだけ。" fits its column whole. */
:lang(ja) .story__copy h1, :lang(zh-Hans) .story__copy h1, :lang(zh-Hant) .story__copy h1 { font-size: clamp(44px, 5.6vw, 80px); }
@media (max-width: 900px) {
  :lang(ja) .story__copy h1, :lang(zh-Hans) .story__copy h1, :lang(zh-Hant) .story__copy h1 { font-size: clamp(36px, 12vw, 64px); }
}

/* ---------- A phone that looks like a phone, on a phone ----------
   The demo is a true-proportioned iPhone (9:19.5) lying on the table, larger than the window: its centre, the screen's
   seam, sits on the table's seam at 38% of the table's height, and it is sized from the table's height so its rounded
   bottom edge and home bar always clear the table's lower edge. The far end of their half runs off under the table's top
   edge. What matters sits in view: Quick Start's pickers, the camera's sign and the letter's title move down the screen. */
@media (max-width: 900px) {
  .story { --table-h: min(56svh, 480px); }
  .table { height: var(--table-h); }
  .table__seam { top: 38%; }
  .side { display: none; }
  .device {
    position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
    height: calc(var(--table-h) * 1.24 - 24px); width: auto; max-width: none; aspect-ratio: 9 / 19.5;
    border-radius: 15% / 7%; padding: 2.4%;
  }
  .dv { border-radius: 13% / 6%; }
  /* The home bar, where the app keeps clear of it. */
  .dv::after { content: ""; position: absolute; left: 33%; right: 33%; bottom: 1.8cqw; height: 1.3cqw; border-radius: 1cqw; background: var(--ink); opacity: .82; z-index: 6; pointer-events: none; }
  .device[data-view="cam"] .dv::after { background: #FFFFFF; }
  .dv__mine { padding: 4cqw 6cqw 7cqw; }
  .dv__mine .dv__gloss { display: block; }
  .dv__prev { display: block; }
  .dv__theirs { padding: 6cqw 7cqw; }
  /* Quick Start, the camera and the letter, below the part that runs off the table. */
  .dv__quick { padding: 30% 7cqw 9cqw; }
  .dv__brand { display: block; margin-bottom: 6cqw; }
  .dv__more { display: flex; }
  .cam__sign { top: 30%; }
  .cam__slip--1 { top: 55%; }
  .cam__slip--2 { top: 63%; }
  .dv__letter { padding: 38% 9cqw 9cqw; }
  .dv__cl { display: flex; }
}

/* Safari doesn't clip transformed or animated children (their half is turned 180°) to a rounded box with overflow:
   hidden: the table showed through the screen's corners. A clip-path of the same rounded shape clips everything inside
   (a mask did too, but left a faint square at the frame's corner). */
.dv { clip-path: inset(0 round 11% / 5.3%); }
@media (max-width: 900px) { .dv { clip-path: inset(0 round 13% / 6%); } }

/* A tall, wide window (an iPad upright, a tall desktop window): sized from the height, the device came out wider than
   its column and was cut at its edge. It takes whichever is smaller, the height's share or the column's width. */
@media (min-width: 901px) {
  .device { height: auto; width: min(86%, calc((100svh - var(--bar)) * 0.40)); aspect-ratio: 9 / 18.6; }
}

/* ---------- Critique round 3 ---------- */
/* Private by default: a Par Avion postmark struck across the phone, its plane at the centre: a mark on the page's
   paper, never a control the app doesn't have. */
.dv__private {
  position: absolute; z-index: 4; left: 50%; top: 56%; width: 46cqw; aspect-ratio: 1; margin-left: -23cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
  border-radius: 50%; border: 0.9cqw solid var(--par-avion); box-shadow: inset 0 0 0 1.3cqw var(--ground), inset 0 0 0 1.8cqw var(--par-avion);
  background: color-mix(in srgb, var(--ground) 82%, transparent); color: var(--par-avion);
  font: 800 3.4cqw/1.15 var(--display); letter-spacing: 0.06em; text-align: center; padding: 0 5cqw;
  opacity: 0; transform: rotate(-12deg) scale(.9); pointer-events: none;
}
.dv__private svg { width: 8cqw; height: 8cqw; fill: currentColor; }
:lang(ja) .dv__private, :lang(ko) .dv__private, :lang(zh-Hans) .dv__private, :lang(zh-Hant) .dv__private { letter-spacing: 0; }
.device[data-focus="air"] .dv__private { opacity: 1; transform: rotate(-12deg); animation: dv-strike .5s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes dv-strike { from { opacity: 0; transform: rotate(-30deg) scale(1.5); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
.device[data-focus="air"] .dv__lines { opacity: .55; transition: opacity .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .device[data-focus="air"] .dv__private { animation: none; } }

/* The Duo, named in the first screen. */
.hero__duo { margin-top: 22px; font-size: 15px; font-weight: 600; }
.hero__duo a { color: var(--par-avion); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.hero__duo a:hover { text-decoration: underline; }
.hero__duo svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .hero__duo { margin-top: 8px; } }

/* A stamp chosen: said where the visitor is. */
.langs__note { margin: 4px 0 18px; padding: 12px 14px; background: var(--ground); border-radius: 12px; font-size: 15px; color: var(--ink); }
.langs__note a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--par-avion); text-decoration: none; }
.langs__note a:hover { text-decoration: underline; }
.langs__note svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lstamp__n { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 900px) { .lstamp__n { font-size: 15px; } }

/* The end, back on the table: an airmail letter lying across the seam, a postage stamp in its corner. */
.final { padding: calc(var(--section) * .6) var(--gutter) calc(var(--section) * .8); }
.final__table { position: relative; max-width: 1120px; margin: 0 auto; background: var(--sheet); border-radius: 36px; padding: clamp(56px, 8vw, 104px) var(--gutter); display: flex; justify-content: center; overflow: hidden; }
.final__seam { position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px;
  background: repeating-linear-gradient(-45deg, var(--border-red) 0 12px, var(--sheet) 12px 17px, var(--border-blue) 17px 29px, var(--sheet) 29px 34px); }
.final__letter {
  position: relative; width: min(100%, 560px); padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px); text-align: center;
  background: var(--ground); border: 10px solid transparent; transform: rotate(-1.5deg);
  border-image: repeating-linear-gradient(-45deg, var(--border-red) 0 12px, var(--ground) 12px 17px, var(--border-blue) 17px 29px, var(--ground) 29px 34px) 14;
  box-shadow: 0 18px 36px rgba(10, 18, 36, .14);
}
.final__letter h2 { margin: 0 0 28px; font-size: clamp(28px, 3.4vw, 42px); }
.final__stamp { position: absolute; top: 14px; right: 16px; width: 54px; transform: rotate(6deg); filter: drop-shadow(0 3px 5px rgba(10,18,36,.16)); }
.final__stamp svg { display: block; width: 100%; height: auto; -webkit-mask: var(--perf); mask: var(--perf); }
@media (max-width: 600px) { .final__table { border-radius: 24px; } .final__letter { transform: rotate(-1deg); } .final__stamp { width: 44px; } }

/* The letter's KEPT postmark under its lines, not alone at the bottom. */
.dv__kept { position: relative; right: auto; bottom: auto; margin: 6cqw 0 0 auto; display: flex; }
.device[data-view="kept"] .dv__kept { margin-right: 2cqw; }

/* Chapters waiting their turn stay legible. */
.js .chapter { opacity: 0.55; }

/* Phones: the demo's controls at a size a thumb trusts; the page's places say they scroll. */
@media (max-width: 900px) {
  .pick__k { font-size: 4.6cqw; }
  .pick__v { font-size: 7.6cqw; }
  .dv__start { font-size: 5.6cqw; }
  .dv__more { font-size: 4.6cqw; }
  .top__nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; }
}

/* Phones: the phone's own "Tabletop" title sits in the part that runs off the table; only its last pixels showed, as a
   stray dash at the crop. */
@media (max-width: 900px) { .dv__brand { display: none; } .dv__quick { padding-top: 44%; } }

/* Safari: each layer of the screen carries the screen's own rounded corners, so nothing is drawn outside them whether
   or not the screen clips it (their half, turned 180°, showed light blue in the screen's top corners). Their half is
   the top half: its rounded corners are its bottom ones before the turn, and its vertical radius doubles (it is half
   the height). */
.dv__quick, .dv__cam, .dv__letter { border-radius: inherit; }
.dv__theirs { border-radius: 0 0 11% 11% / 0 0 10.6% 10.6%; }
@media (max-width: 900px) { .dv__theirs { border-radius: 0 0 13% 13% / 0 0 12% 12%; } }

/* The language menu: Safari clips letters below the line when the line height is exactly 1 ("English" lost its g). */
.lang select { line-height: 1.25; padding-top: 2px; padding-bottom: 2px; }
/* Under another view (Quick Start, the camera, the letter) the conversation's layers step out altogether: drawn
   beneath on the same curve, their light edge showed as a fringe round the screen's corners. */
.device:not([data-view="talk"]) .dv__theirs, .device:not([data-view="talk"]) .dv__mine, .device:not([data-view="talk"]) .dv__seam {
  visibility: hidden; transition: visibility 0s linear .35s;
}
/* The camera view's dark screen: the screen beneath it dark too, so no light edge shows round its corners. */
.device[data-view="cam"] .dv { background: #12161F; }
