/* ------------------------------------------------------------------
   The home page: a product page told by scrolling, in the manner of
   Apple's iPhone pages. Loaded by index.html only; styles.css holds the
   tokens, the nav, the footer and everything the other pages share.

   Every scene is written twice over in one place. The rules outside
   `.scenes` are the page at rest: each scene in its final state, in normal
   flow. That is what a visitor sees without script, with Reduce Motion on,
   or if home.js fails. `.scenes` (set by head.js when motion is allowed,
   taken back if home.js never confirms) turns each scene's track into a
   tall runway with a sticky stage, and home.js plays the scene across it.
   home.js only ever writes transform and opacity (and a route's dash
   offset), plus the few classes below that start or stop a loop.

   Sizes inside the drawn iPhone are in the app's own points: --pt is one
   point of a 402-point-wide screen at the phone's drawn size, so a card is
   28pt round with a 16pt inset, as in the app, at any size.
   ------------------------------------------------------------------ */

:root {
  --map-land: #f2f2f0;
  --accent-12: rgb(0 0 0 / 0.12);
  --ph-fill: #ffffff;
  --pw: min(360px, 40svh, calc(100vw - 48px));
  /* AideMemo's accent on Apple Watch, whose screen is always dark. */
  --watch-accent: #0a84ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --map-land: #24262c;
    --accent-12: rgb(255 255 255 / 0.14);
    --ph-fill: #2c2c2e;
  }
}

.anchor {
  display: block;
  height: 0;
}

/* A linked section lands 8px under the bar, whatever the bar's height
   (styles.css, --bar-h). */
html:has(.local) {
  scroll-padding-top: calc(var(--bar-h) + 8px);
}

/* The home page's one bar, as on Apple's product pages: the product, the
   page's features and Download, on one row flush with the window's top
   and sides (styles.css sets the row's height and where its words stand,
   for the other pages' bar and the menu's sheet too). It stays at the top
   and takes no room in the page, which starts under it and scrolls
   visibly behind it. It has two states, and only its surface changes
   between them: at the top of the page it is words on the page, like the
   site's other bars; once the reader scrolls (app.js, `bar-top` on the
   root while they have not), the words are on a strip of frosted glass as
   wide as the window, which only fades in. Apple's product pages do the
   same: words on the page at the top, and a glass bar of this height once
   the page has moved.

   It was a racetrack floating 10px inside the window until 15 November
   2026 (owner: "不要再用这个胶囊导航栏了，我说过的用磨砂半透明的 Apple.com 的
   效果"), and on a phone until the day before. */
.local {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  margin-bottom: calc(-1 * var(--bar-h));
  pointer-events: none;
}

.local-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: color 300ms ease;
}

/* Above the surface, which is drawn first. */
.local-in > * {
  position: relative;
}

/* The strip: the row's whole box, so the window's whole width, in the
   page's colour mostly opaque over a blur of what is behind it, as
   Apple's bars are (measured there: 80% over saturate(180%) blur(20px)).
   Square corners, no ring, no shadow and no hairline under it: over the
   page's own colour it is a faint band, and it reads as glass once
   anything passes under it. Solid where the browser cannot blur, or
   Reduce Transparency or Increase Contrast is on. A layer of its own, so
   the change of state is only its opacity. */
.local-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition:
    opacity 240ms var(--ease-out),
    background-color 300ms ease;
}

.js.bar-top .local-in::before {
  opacity: 0;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .local-in::before {
    background: var(--bar-solid);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .local-in::before {
    background: var(--bar-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .local-in::before {
    background: var(--bar-solid);
  }
}

.local-title {
  margin-right: auto;
}

/* Download, the link to the App Store: a word in ink at the top, where
   Apple's bar has no buttons; on the strip, a yellow pill where Apple
   puts its one action. */
.local-get {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  padding: 0 14px;
  border-radius: 999px;
  /* The pill is the site's yellow (styles.css, "Yellow"), ringed where the
     yellow alone would be no edge on the bar. */
  background-color: var(--mark);
  box-shadow: inset 0 0 0 1px var(--mark-edge);
  color: var(--on-mark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.js.bar-top .local-get {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  color: var(--ink);
}

/* Under Reduce Motion the bar changes state at once. */
@media (prefers-reduced-motion: reduce) {
  .local-in,
  .local-in::before,
  .local-get {
    transition: none;
  }
}

/* Where the bar's words do not fit they fold into the menu (styles.css,
   "Folded bar"), opened by the icon after Download, which stays. The
   menu is in the bar but not its row (.local-in), which alone takes
   taps: the rest of the bar lets them through to the page, and the menu
   would too (owner, 14 October, of the menu before this one: tapping a
   section in it closed it and went nowhere, the tap having gone through
   to the page under it). Being in the bar, the menu and the lists are
   dark while the bar is, over the page's black sections. */
.local .sheet {
  pointer-events: auto;
}

.local.is-dark {
  --bar-ring: rgb(255 255 255 / 0.12);
  --bar: rgb(22 22 23 / 0.8);
  --bar-solid: #161617;
  --menu: #161617;
  --fill-2: #2c2c2e;
  --ink: #ffffff;
  --on-ink: #000000;
  --mark-edge: var(--mark);
  --text-2: #a1a1a6;
  --line: rgb(255 255 255 / 0.12);
  --line-2: rgb(255 255 255 / 0.16);
  color: #ffffff;
}

/* ------------------------------------------------------- Type -------
   Apple's product-page scale: a small grey eyebrow, a headline that owns
   the screen, and paragraphs in grey with the phrase that matters in ink. */
.eyebrow {
  font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-2);
}

.headline {
  font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.headline-sm {
  font-size: clamp(2.25rem, 1.1rem + 4vw, 4.5rem);
}

/* Words lit by the scroll, each on its own. Only there once home.js has
   split the headline. */
.headline .w {
  display: inline-block;
}

.scene-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.scene-lede {
  max-width: 44rem;
  margin-inline: auto;
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}

.scene-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.scene-lede {
  margin-top: 6px;
}

/* The recorders, as they stand, between Transcribe's words and its lines. */

/* ---------------------------------------------------------- Scenes --
   A scene: the headline, a stage, the sentences. Alternate scenes sit on
   Apple's light grey. */

.track {
  position: relative;
}

/* ------------------------------------------------------ SF Symbols --
   Inside the drawn app, every glyph is the SF Symbol the app itself uses,
   rendered by scripts/build-symbols.swift into a mask and painted in the
   current colour, at the element's font size, as SwiftUI sizes a symbol to
   its font. Apple's symbols depict AideMemo's iOS interface here and
   nowhere else on the site. */
.sf {
  display: inline-block;
  flex: none;
  width: calc(var(--sf-w) * 1em);
  height: calc(var(--sf-h) * 1em);
  background-color: currentColor;
  -webkit-mask: var(--sf) center / 100% 100% no-repeat;
  mask: var(--sf) center / 100% 100% no-repeat;
  vertical-align: middle;
}

/* symbols:begin — written by scripts/build-symbols.swift; Apple's SF Symbols, for the drawn app only */
.sf-tab-chat { --sf: url("/assets/symbols/tab-chat.webp?v=c7ff77231b"); --sf-w: 1.344; --sf-h: 1.156; }
.sf-tab-journal { --sf: url("/assets/symbols/tab-journal.webp?v=8175e7d524"); --sf-w: 1.094; --sf-h: 1.250; }
.sf-tab-ideas { --sf: url("/assets/symbols/tab-ideas.webp?v=de9198307f"); --sf-w: 0.906; --sf-h: 1.344; }
.sf-tab-friends { --sf: url("/assets/symbols/tab-friends.webp?v=0e7a82cb1f"); --sf-w: 1.625; --sf-h: 1.188; }
.sf-tab-search { --sf: url("/assets/symbols/tab-search.webp?v=dd531eab42"); --sf-w: 1.188; --sf-h: 1.156; }
.sf-tab-chat-on { --sf: url("/assets/symbols/tab-chat-on.webp?v=211a6491e5"); --sf-w: 1.344; --sf-h: 1.156; }
.sf-tab-journal-off { --sf: url("/assets/symbols/tab-journal-off.webp?v=6b03ead672"); --sf-w: 1.094; --sf-h: 1.250; }
.sf-chat-list { --sf: url("/assets/symbols/chat-list.webp?v=81d8085c86"); --sf-w: 1.250; --sf-h: 0.688; }
.sf-new-chat { --sf: url("/assets/symbols/new-chat.webp?v=cb35d43631"); --sf-w: 1.219; --sf-h: 1.250; }
.sf-mic-outline { --sf: url("/assets/symbols/mic-outline.webp?v=70517bc74a"); --sf-w: 1.000; --sf-h: 1.250; }
.sf-send { --sf: url("/assets/symbols/send.webp?v=e7bb71371d"); --sf-w: 1.031; --sf-h: 1.125; }
.sf-settings { --sf: url("/assets/symbols/settings.webp?v=781072ba72"); --sf-w: 1.250; --sf-h: 1.250; }
.sf-more { --sf: url("/assets/symbols/more.webp?v=cb70ba4274"); --sf-w: 1.125; --sf-h: 0.375; }
.sf-add { --sf: url("/assets/symbols/add.webp?v=b33f0d6d10"); --sf-w: 1.062; --sf-h: 1.000; }
.sf-play-circle { --sf: url("/assets/symbols/play-circle.webp?v=e108dd25b4"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-mic { --sf: url("/assets/symbols/mic.webp?v=d7c6c32342"); --sf-w: 1.062; --sf-h: 1.281; }
.sf-circle { --sf: url("/assets/symbols/circle.webp?v=a8474705e2"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-close { --sf: url("/assets/symbols/close.webp?v=ced2158dc8"); --sf-w: 1.062; --sf-h: 1.000; }
.sf-pause { --sf: url("/assets/symbols/pause.webp?v=0c24d09a8c"); --sf-w: 0.875; --sf-h: 1.000; }
.sf-fl-plane { --sf: url("/assets/symbols/fl-plane.webp?v=ff2ce506c5"); --sf-w: 1.312; --sf-h: 1.219; }
.sf-fl-seat { --sf: url("/assets/symbols/fl-seat.webp?v=c6be804cbd"); --sf-w: 1.406; --sf-h: 1.281; }
.sf-fl-depart { --sf: url("/assets/symbols/fl-depart.webp?v=54d071961e"); --sf-w: 1.562; --sf-h: 1.094; }
.sf-fl-arrive { --sf: url("/assets/symbols/fl-arrive.webp?v=aa7382021b"); --sf-w: 1.469; --sf-h: 1.250; }
.sf-back { --sf: url("/assets/symbols/back.webp?v=4386dda63e"); --sf-w: 0.750; --sf-h: 1.062; }
.sf-sh-check { --sf: url("/assets/symbols/sh-check.webp?v=17f9dda697"); --sf-w: 1.156; --sf-h: 1.062; }
.sf-tab-friends-on { --sf: url("/assets/symbols/tab-friends-on.webp?v=ef4fb47a2f"); --sf-w: 1.594; --sf-h: 1.156; }
.sf-rec-down { --sf: url("/assets/symbols/rec-down.webp?v=d971da26ce"); --sf-w: 1.156; --sf-h: 0.719; }
.sf-rec-flag { --sf: url("/assets/symbols/rec-flag.webp?v=867723db94"); --sf-w: 1.125; --sf-h: 1.188; }
.sf-rec-hints { --sf: url("/assets/symbols/rec-hints.webp?v=52c18b298e"); --sf-w: 1.500; --sf-h: 1.594; }
.sf-rec-hand { --sf: url("/assets/symbols/rec-hand.webp?v=201872721a"); --sf-w: 1.219; --sf-h: 1.312; }
.sf-rec-translate { --sf: url("/assets/symbols/rec-translate.webp?v=39f0563907"); --sf-w: 1.844; --sf-h: 1.344; }
.sf-rec-stop { --sf: url("/assets/symbols/rec-stop.webp?v=48cd3a2bdf"); --sf-w: 1.094; --sf-h: 1.031; }
.sf-hint-bulb { --sf: url("/assets/symbols/hint-bulb.webp?v=8525e10730"); --sf-w: 0.938; --sf-h: 1.375; }
.sf-hint-prev { --sf: url("/assets/symbols/hint-prev.webp?v=b80475c802"); --sf-w: 0.781; --sf-h: 1.094; }
.sf-hint-next { --sf: url("/assets/symbols/hint-next.webp?v=b10faa55f9"); --sf-w: 0.781; --sf-h: 1.094; }
.sf-hint-open { --sf: url("/assets/symbols/hint-open.webp?v=d971da26ce"); --sf-w: 1.156; --sf-h: 0.719; }
.sf-kb-options { --sf: url("/assets/symbols/kb-options.webp?v=141f8437d4"); --sf-w: 1.281; --sf-h: 1.062; }
.sf-kb-wave { --sf: url("/assets/symbols/kb-wave.webp?v=6eac6226ac"); --sf-w: 1.188; --sf-h: 1.250; }
.sf-kb-mic { --sf: url("/assets/symbols/kb-mic.webp?v=d7c6c32342"); --sf-w: 1.062; --sf-h: 1.281; }
.sf-kb-undo { --sf: url("/assets/symbols/kb-undo.webp?v=219c9a149b"); --sf-w: 1.188; --sf-h: 1.125; }
.sf-kb-delete { --sf: url("/assets/symbols/kb-delete.webp?v=93a40bcf07"); --sf-w: 1.281; --sf-h: 1.094; }
.sf-kb-pen { --sf: url("/assets/symbols/kb-pen.webp?v=26427e7032"); --sf-w: 1.562; --sf-h: 1.125; }
.sf-im-video { --sf: url("/assets/symbols/im-video.webp?v=7b825e3989"); --sf-w: 1.438; --sf-h: 1.000; }
.sf-play { --sf: url("/assets/symbols/play.webp?v=a73f2f169b"); --sf-w: 0.875; --sf-h: 1.031; }
.sf-rec-iphone { --sf: url("/assets/symbols/rec-iphone.webp?v=a838ef78f0"); --sf-w: 1.031; --sf-h: 1.250; }
.sf-status-signal { --sf: url("/assets/symbols/status-signal.webp?v=ee51b7e214"); --sf-w: 1.594; --sf-h: 1.094; }
.sf-status-wifi { --sf: url("/assets/symbols/status-wifi.webp?v=f1f1bc29c2"); --sf-w: 1.344; --sf-h: 1.000; }
.sf-status-battery { --sf: url("/assets/symbols/status-battery.webp?v=6f30b3288f"); --sf-w: 1.719; --sf-h: 0.875; }
.sf-menu-reminder { --sf: url("/assets/symbols/menu-reminder.webp?v=d357bea146"); --sf-w: 1.375; --sf-h: 1.188; }
.sf-menu-event { --sf: url("/assets/symbols/menu-event.webp?v=e59b1bdc25"); --sf-w: 1.375; --sf-h: 1.250; }
.sf-menu-walk { --sf: url("/assets/symbols/menu-walk.webp?v=1b275bdd8b"); --sf-w: 0.969; --sf-h: 1.344; }
.sf-menu-import { --sf: url("/assets/symbols/menu-import.webp?v=52d9e75bba"); --sf-w: 1.344; --sf-h: 1.281; }
.sf-tab-ideas-on { --sf: url("/assets/symbols/tab-ideas-on.webp?v=6220a2250a"); --sf-w: 0.906; --sf-h: 1.344; }
.sf-friends-none { --sf: url("/assets/symbols/friends-none.webp?v=4d05d66929"); --sf-w: 1.469; --sf-h: 1.125; }
.sf-kb-shift { --sf: url("/assets/symbols/kb-shift.webp?v=b382bf4bfd"); --sf-w: 1.250; --sf-h: 1.094; }
.sf-kb-emoji { --sf: url("/assets/symbols/kb-emoji.webp?v=2626dfe032"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-gift { --sf: url("/assets/symbols/gift.webp?v=aec4bf2549"); --sf-w: 1.219; --sf-h: 1.219; }
.sf-menu-today { --sf: url("/assets/symbols/menu-today.webp?v=8df7eb3cc0"); --sf-w: 1.250; --sf-h: 1.094; }
.sf-menu-daily { --sf: url("/assets/symbols/menu-daily.webp?v=6325bc4dce"); --sf-w: 1.250; --sf-h: 1.094; }
.sf-menu-weekly { --sf: url("/assets/symbols/menu-weekly.webp?v=36157950d1"); --sf-w: 1.250; --sf-h: 1.094; }
.sf-menu-filter { --sf: url("/assets/symbols/menu-filter.webp?v=347558347a"); --sf-w: 1.250; --sf-h: 0.781; }
.sf-set-sources { --sf: url("/assets/symbols/set-sources.webp?v=b8ed78a3a9"); --sf-w: 1.250; --sf-h: 1.281; }
.sf-set-memory { --sf: url("/assets/symbols/set-memory.webp?v=474d20411b"); --sf-w: 1.344; --sf-h: 1.125; }
.sf-set-devices { --sf: url("/assets/symbols/set-devices.webp?v=901527affb"); --sf-w: 1.688; --sf-h: 1.094; }
.sf-set-storage { --sf: url("/assets/symbols/set-storage.webp?v=87e206d403"); --sf-w: 1.406; --sf-h: 1.031; }
.sf-set-models { --sf: url("/assets/symbols/set-models.webp?v=ceea740441"); --sf-w: 1.094; --sf-h: 1.312; }
.sf-set-keyboard { --sf: url("/assets/symbols/set-keyboard.webp?v=5dd9660cad"); --sf-w: 1.500; --sf-h: 0.969; }
.sf-set-access { --sf: url("/assets/symbols/set-access.webp?v=7ad68a8f95"); --sf-w: 1.750; --sf-h: 1.250; }
.sf-set-notify { --sf: url("/assets/symbols/set-notify.webp?v=8849aabae2"); --sf-w: 1.156; --sf-h: 1.219; }
.sf-set-look { --sf: url("/assets/symbols/set-look.webp?v=0a23e9fa80"); --sf-w: 1.281; --sf-h: 1.406; }
.sf-set-language { --sf: url("/assets/symbols/set-language.webp?v=a9b4c7619f"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-set-maps { --sf: url("/assets/symbols/set-maps.webp?v=5aef708f71"); --sf-w: 1.281; --sf-h: 1.156; }
.sf-set-issue { --sf: url("/assets/symbols/set-issue.webp?v=dd47ff6f60"); --sf-w: 1.375; --sf-h: 1.375; }
.sf-set-about { --sf: url("/assets/symbols/set-about.webp?v=ce8fcd27e2"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-arrow-out { --sf: url("/assets/symbols/arrow-out.webp?v=035b995777"); --sf-w: 1.000; --sf-h: 0.938; }
.sf-up-circle { --sf: url("/assets/symbols/up-circle.webp?v=b71292f4fa"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-up-circle-line { --sf: url("/assets/symbols/up-circle-line.webp?v=73e2e91f11"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-gift-line { --sf: url("/assets/symbols/gift-line.webp?v=19f153119f"); --sf-w: 1.219; --sf-h: 1.219; }
.sf-share { --sf: url("/assets/symbols/share.webp?v=3e1aab735f"); --sf-w: 1.125; --sf-h: 1.375; }
.sf-person-add { --sf: url("/assets/symbols/person-add.webp?v=c6e8e4f5e3"); --sf-w: 1.312; --sf-h: 1.344; }
.sf-creditcard { --sf: url("/assets/symbols/creditcard.webp?v=6afb3a938b"); --sf-w: 1.406; --sf-h: 1.031; }
.sf-question { --sf: url("/assets/symbols/question.webp?v=8629c6dc2b"); --sf-w: 1.188; --sf-h: 1.188; }
.sf-seal { --sf: url("/assets/symbols/seal.webp?v=afe4ef22ea"); --sf-w: 1.312; --sf-h: 1.344; }
.sf-ask-about { --sf: url("/assets/symbols/ask-about.webp?v=3f7fb06351"); --sf-w: 1.344; --sf-h: 1.219; }
.sf-chevron-up { --sf: url("/assets/symbols/chevron-up.webp?v=86349b8b13"); --sf-w: 1.156; --sf-h: 0.719; }
.sf-car { --sf: url("/assets/symbols/car.webp?v=c9d09d8d06"); --sf-w: 1.406; --sf-h: 1.094; }
.sf-map-route { --sf: url("/assets/symbols/map-route.webp?v=4c86e561e6"); --sf-w: 1.125; --sf-h: 1.281; }
.sf-map-style { --sf: url("/assets/symbols/map-style.webp?v=16b781985f"); --sf-w: 1.281; --sf-h: 1.156; }
.sf-map-locate { --sf: url("/assets/symbols/map-locate.webp?v=0e2fd01bf8"); --sf-w: 1.156; --sf-h: 1.156; }
/* symbols:end */

/* ----------------------------------------------------------- Phone --
   Every iPhone on the page is Apple's picture of iPhone 18 Pro, its product
   bezel (owner, 14 November 2026, of the scenes' phones: "给之前下面做的那些
   页面 也套上 Apple 的这个 UI 框，而不是自己画的"), with a 402 by 874 point
   screen drawn in HTML under its window and the app inside in the system
   font, as the app is. "The iPhone", further down, says how the picture is
   drawn. Everything inside is hidden from assistive technology; the scene's
   own text says what it shows.

   Apple's rules for its product images hold for every one of them: upright
   and whole, never turned, tilted or cut, nothing laid over it, no shadow,
   and no smaller than 200 px high. The one exception is the owner's (15
   November 2026: "需要套Apple 的 iPhone的手机壳，可以裁切"): in the lower half's
   pictures the iPhone is larger than its card and the card cuts it ("The
   lower half", at the end of this file); the rest holds there too. */
.phone {
  --pt: calc(var(--pw) / 450);
  position: relative;
  flex: none;
  width: var(--pw);
  aspect-ratio: 1350 / 2760;
  transform-style: flat;
}

.phone-screen {
  position: absolute;
  left: 5.3333%;
  top: 2.5%;
  width: 89.3333%;
  height: 95%;
  overflow: hidden;
  border-radius: calc(var(--pt) * 48);
  background: var(--page);
  box-shadow: 0 0 0 calc(var(--pt) * 6) #000;
  color: var(--ink);
  font-family: var(--font-ios);
  font-size: calc(var(--pt) * 17);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  isolation: isolate;
  transform: translateZ(0);
}

/* The status bar, level with the Dynamic Island in the bezel: the time at
   the left, and at the right a full network icon, Wi-Fi and a full battery,
   each an SF Symbol like every other glyph in the phone. */
.ph-status {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--pt) * 54);
  padding: calc(var(--pt) * 12) calc(var(--pt) * 34) 0 calc(var(--pt) * 52);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ph-sys {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 5);
}

.ph-sys .sf {
  font-size: calc(var(--pt) * 14);
}

.ph-sys .sf-status-battery {
  font-size: calc(var(--pt) * 21);
}

/* Toolbar buttons: round, flat (see "The app's controls"). */
.ph-round {
  display: grid;
  place-items: center;
  height: calc(var(--pt) * 44);
  border-radius: 999px;
  font-size: calc(var(--pt) * 17);
}

.ph-round {
  width: calc(var(--pt) * 44);
}

/* The More and Create menus: .title3 glyphs in 24pt frames. */

.ph-toolbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(var(--pt) * 8) calc(var(--pt) * 16) 0;
}

.ph-toolbar .ph-round {
  font-size: calc(var(--pt) * 21);
}

.ph-month {
  font-size: calc(var(--pt) * 20);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* The date strip: weekday letters over numbers, today's number blue, the
   chosen day on a grey rounded surface that slides when the day changes. */

/* The feed under the date strip scrolls; home.js moves it the way a
   finger would. */
.ph-scroll {
  position: absolute;
  inset: calc(var(--pt) * 176) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 calc(var(--pt) * 14));
  mask-image: linear-gradient(transparent, #000 calc(var(--pt) * 14));
}

.ph-feed {
  display: grid;
  gap: calc(var(--pt) * 12);
  padding: calc(var(--pt) * 6) calc(var(--pt) * 16) calc(var(--pt) * 120);
}

.ph-slot {
  margin: calc(var(--pt) * 10) 0 calc(var(--pt) * -2) calc(var(--pt) * 4);
  font-size: calc(var(--pt) * 20);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------- The day's map --
   The Journal's 2:1 map card. The marks sit where the day's places are,
   in the world's coordinates (see the map's definition in index.html). */
.ph-mapcard {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: calc(var(--pt) * 28);
  background: var(--map-land);
  box-shadow: 0 0 0 1px var(--line);
}

.map-img,
.map-img img,
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-img img {
  object-fit: cover;
}

/* The day's places, where MapKit put them (written by scripts/build-maps.py). */
/* maps:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard { --bx: 34.03%; --by: 65.41%; --cx: 47.14%; --cy: 34.19%; --dx: 71.46%; --dy: 33.59%; --ex: 65.22%; --ey: 89.73%; --fx: 66.04%; --fy: 26.71%; --hx: 28.56%; --hy: 72.23%; --t1x: 31.49%; --t1y: 69.18%; --t2x: 37.37%; --t2y: 43.69%; --t3x: 59.84%; --t3y: 37.03%; --t4x: 68.65%; --t4y: 33.07%; --t5x: 54.84%; --t5y: 44.33%; }
/* maps:end */
/* maps-agent:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-agent { --cx: 55.11%; --cy: 75.27%; --dx: 32.29%; --dy: 76.97%; --ex: 66.71%; --ey: 52.16%; --fx: 38.20%; --fy: 21.19%; --hx: 65.13%; --hy: 15.97%; --t1x: 68.20%; --t1y: 44.67%; --t2x: 44.24%; --t2y: 83.42%; --t3x: 37.10%; --t3y: 56.67%; --t4x: 36.25%; --t4y: 57.62%; --t5x: 62.35%; --t5y: 72.05%; --t6x: 70.50%; --t6y: 30.65%; }
/* maps-agent:end */
/* maps-agent-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-agent { --cx: 61.68%; --cy: 63.79%; --dx: 14.15%; --dy: 64.61%; --ex: 85.85%; --ey: 52.72%; --fx: 26.47%; --fy: 37.89%; --hx: 82.56%; --hy: 35.39%; }
/* maps-agent-full:end */
/* maps-sales:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-sales { --cx: 56.54%; --cy: 76.43%; --dx: 37.98%; --dy: 85.96%; --ex: 48.22%; --ey: 63.71%; --fx: 58.09%; --fy: 43.93%; --hx: 46.63%; --hy: 11.36%; --mx: 37.70%; --my: 68.89%; --t1x: 52.92%; --t1y: 40.37%; --t2x: 47.44%; --t2y: 85.17%; --t3x: 40.40%; --t3y: 75.33%; --t4x: 48.26%; --t4y: 59.01%; --t5x: 60.99%; --t5y: 57.29%; --t6x: 53.79%; --t6y: 69.20%; --t7x: 54.71%; --t7y: 32.88%; }
/* maps-sales:end */
/* maps-sales-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-sales { --cx: 75.35%; --cy: 61.74%; --dx: 20.94%; --dy: 68.16%; --ex: 50.96%; --ey: 53.17%; --fx: 79.88%; --fy: 39.84%; --hx: 46.30%; --hy: 17.89%; --mx: 20.12%; --my: 56.66%; }
/* maps-sales-full:end */
/* maps-realtor:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-realtor { --cx: 48.75%; --cy: 63.22%; --dx: 47.28%; --dy: 86.51%; --ex: 60.81%; --ey: 68.04%; --fx: 51.21%; --fy: 18.08%; --hx: 59.45%; --hy: 15.14%; --mx: 53.23%; --my: 74.64%; --t1x: 52.05%; --t1y: 38.83%; --t2x: 52.55%; --t2y: 67.52%; --t3x: 51.15%; --t3y: 88.00%; --t4x: 38.35%; --t4y: 64.91%; --t5x: 48.68%; --t5y: 40.83%; --t6x: 55.38%; --t6y: 71.56%; --t7x: 58.78%; --t7y: 43.34%; }
/* maps-realtor:end */
/* maps-realtor-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-realtor { --cx: 31.34%; --cy: 49.07%; --dx: 26.20%; --dy: 67.92%; --ex: 73.80%; --ey: 52.97%; --fx: 40.02%; --fy: 12.53%; --hx: 69.03%; --hy: 10.15%; --mx: 47.13%; --my: 58.31%; }
/* maps-realtor-full:end */
/* maps-lawyer:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-lawyer { --cx: 34.99%; --cy: 18.20%; --dx: 22.60%; --dy: 73.16%; --ex: 77.40%; --ey: 61.19%; --fx: 32.83%; --fy: 64.69%; --hx: 51.76%; --hy: 72.40%; --mx: 50.77%; --my: 18.01%; --t1x: 48.82%; --t1y: 50.43%; --t2x: 43.18%; --t2y: 20.94%; --t3x: 38.38%; --t3y: 46.05%; --t4x: 28.15%; --t4y: 70.58%; --t5x: 54.99%; --t5y: 67.22%; --t6x: 66.18%; --t6y: 77.31%; }
/* maps-lawyer:end */
/* maps-lawyer-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-lawyer { --cx: 30.36%; --cy: 38.77%; --dx: 14.15%; --dy: 55.31%; --ex: 85.85%; --ey: 51.71%; --fx: 27.54%; --fy: 52.76%; --hx: 52.31%; --hy: 55.08%; --mx: 51.00%; --my: 38.71%; }
/* maps-lawyer-full:end */
/* maps-journalist:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-journalist { --cx: 50.75%; --cy: 58.69%; --dx: 34.53%; --dy: 87.28%; --ex: 62.36%; --ey: 69.30%; --fx: 50.39%; --fy: 88.81%; --hx: 59.38%; --hy: 14.15%; --mx: 42.51%; --my: 89.81%; --t1x: 59.40%; --t1y: 40.90%; --t2x: 46.62%; --t2y: 73.66%; --t3x: 38.45%; --t3y: 86.96%; --t4x: 43.75%; --t4y: 71.79%; --t5x: 48.89%; --t5y: 77.22%; --t6x: 56.84%; --t6y: 63.44%; --t7x: 59.44%; --t7y: 40.99%; }
/* maps-journalist:end */
/* maps-journalist-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-journalist { --cx: 55.45%; --cy: 48.67%; --dx: 17.14%; --dy: 64.19%; --ex: 82.86%; --ey: 54.43%; --fx: 54.60%; --fy: 65.03%; --hx: 75.83%; --hy: 24.47%; --mx: 35.98%; --my: 65.57%; }
/* maps-journalist-full:end */
/* maps-student:begin — written by scripts/build-maps.py from MapKit's own projection */
.ph-mapcard.dm-day-student { --cx: 42.16%; --cy: 45.24%; --dx: 45.01%; --dy: 72.26%; --ex: 63.07%; --ey: 88.33%; --fx: 52.13%; --fy: 49.28%; --hx: 59.35%; --hy: 14.10%; --mx: 52.20%; --my: 30.69%; --t1x: 48.20%; --t1y: 21.53%; --t2x: 45.48%; --t2y: 31.47%; --t3x: 48.00%; --t3y: 47.08%; --t4x: 38.23%; --t4y: 42.15%; --t5x: 50.87%; --t5y: 39.89%; --t6x: 61.27%; --t6y: 60.89%; --t7x: 54.61%; --t7y: 56.10%; }
/* maps-student:end */
/* maps-student-full:begin — written by scripts/build-maps.py from MapKit's own projection */
.dm-map-full.dm-day-student { --cx: 17.13%; --cy: 38.70%; --dx: 26.09%; --dy: 58.23%; --ex: 82.87%; --ey: 69.85%; --fx: 48.46%; --fy: 41.63%; --hx: 71.18%; --hy: 16.20%; --mx: 48.68%; --my: 28.19%; }
/* maps-student-full:end */

/* The route, coloured by speed as the app colours a workout's route: each
   run of one colour its own path, red where slowest, through yellow, to
   green where fastest. The guide holds the whole route, unpainted, and
   where each place falls along it. */
.route-guide {
  fill: none;
  stroke: none;
}

.route-run {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* One dash the run's length, then a longer gap, so an undrawn run leaves
     no round cap behind. */
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

:root {
  --yellow: #ffcc00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --yellow: #ffd60a;
  }
}

.p0 { stroke: color-mix(in oklab, var(--red) 100%, var(--yellow)); }
.p1 { stroke: color-mix(in oklab, var(--red) 90%, var(--yellow)); }
.p2 { stroke: color-mix(in oklab, var(--red) 80%, var(--yellow)); }
.p3 { stroke: color-mix(in oklab, var(--red) 70%, var(--yellow)); }
.p4 { stroke: color-mix(in oklab, var(--red) 60%, var(--yellow)); }
.p5 { stroke: color-mix(in oklab, var(--red) 50%, var(--yellow)); }
.p6 { stroke: color-mix(in oklab, var(--red) 40%, var(--yellow)); }
.p7 { stroke: color-mix(in oklab, var(--red) 30%, var(--yellow)); }
.p8 { stroke: color-mix(in oklab, var(--red) 20%, var(--yellow)); }
.p9 { stroke: color-mix(in oklab, var(--red) 10%, var(--yellow)); }
.p10 { stroke: color-mix(in oklab, var(--red) 0%, var(--yellow)); }
.p11 { stroke: color-mix(in oklab, var(--yellow) 90%, var(--green)); }
.p12 { stroke: color-mix(in oklab, var(--yellow) 80%, var(--green)); }
.p13 { stroke: color-mix(in oklab, var(--yellow) 70%, var(--green)); }
.p14 { stroke: color-mix(in oklab, var(--yellow) 60%, var(--green)); }
.p15 { stroke: color-mix(in oklab, var(--yellow) 50%, var(--green)); }
.p16 { stroke: color-mix(in oklab, var(--yellow) 40%, var(--green)); }
.p17 { stroke: color-mix(in oklab, var(--yellow) 30%, var(--green)); }
.p18 { stroke: color-mix(in oklab, var(--yellow) 20%, var(--green)); }
.p19 { stroke: color-mix(in oklab, var(--yellow) 10%, var(--green)); }
.p20 { stroke: color-mix(in oklab, var(--yellow) 0%, var(--green)); }

.ph-mapmarks {
  position: absolute;
  inset: 0;
}

.mk {
  position: absolute;
  translate: -50% -50%;
}

.mk-c { left: var(--cx); top: var(--cy); }
.mk-d { left: var(--dx); top: var(--dy); }
.mk-e { left: var(--ex); top: var(--ey); }
.mk-f { left: var(--fx); top: var(--fy); }
.mk-h { left: var(--hx); top: var(--hy); }
.mk-m { left: var(--mx); top: var(--my); }

/* Two days' places lie so close on their cards that a mark drawn later
   covered the count of the one before it (the real-estate agent's Kenwood
   Avenue, the journalist's South First Street). There the marks are drawn in
   an order that leaves every count whole. The layer keeps its own order, so
   the card's one control stays over all of it. */
.ph-mapcard:is(.dm-day-realtor, .dm-day-journalist) .ph-mapmarks {
  isolation: isolate;
}

.ph-mapcard.dm-day-realtor :is(.mk-m, .mk-d),
.ph-mapcard.dm-day-journalist .mk-m {
  z-index: 1;
}

/* Apple Maps' attribution, on every map, as MapKit draws it. */
.map-credit {
  position: absolute;
  right: calc(var(--pt, 1px) * 8);
  bottom: calc(var(--pt, 1px) * 7);
  display: flex;
  gap: 0.5em;
  font-family: var(--font-ios);
  font-size: calc(var(--pt, 1px) * 9);
  font-weight: 600;
  line-height: 1;
  color: rgb(0 0 0 / 0.55);
  text-shadow: 0 0 2px rgb(255 255 255 / 0.9);
}

@media (prefers-color-scheme: dark) {
  .map-credit {
    color: rgb(255 255 255 / 0.62);
    text-shadow: 0 0 2px rgb(0 0 0 / 0.9);
  }
}

.map-credit a {
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* A place the day has been to, with no photo taken there: a 9pt blue dot in
   a 2pt white ring, as the app draws it. */
.mk-dot {
  width: calc(var(--pt) * 9);
  height: calc(var(--pt) * 9);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 calc(var(--pt) * 2) #ffffff, 0 calc(var(--pt) * 1) calc(var(--pt) * 4) rgb(0 0 0 / 0.25);
}

/* A planned place: its picture in a 2pt dashed ring — a circle, on every
   map — never on the route. */
.mk-plan {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.mk-plan {
  width: calc(var(--pt) * 30);
  height: calc(var(--pt) * 30);
  border: calc(var(--pt) * 2) dashed var(--text-2);
}

.mk-plan img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* ---------------------------------------------------------- Cards --
   The app's card: white, 28pt continuous-feeling corners, 16pt inset, a
   hairline ring and the resting shadow; a 40pt picture with an 18pt source
   badge, the title, the time at the right, one line, a caption. */
.ph-card {
  --pt-c: var(--pt, 1px);
  position: relative;
  padding: calc(var(--pt-c) * 16);
  border-radius: calc(var(--pt-c) * 28);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt-c) * 7) calc(var(--pt-c) * 12) rgb(0 0 0 / 0.07);
  font-family: var(--font-ios);
  font-size: calc(var(--pt-c) * 17);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ph-card-row {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--pt-c) * 12);
}

/* What a card carries under its words — a map, a row of photos — starts at
   the words' leading edge, right of the picture. */
.ph-card > :not(.ph-card-row) {
  margin-left: calc(var(--pt-c) * 52);
}

.ph-art {
  position: relative;
  flex: none;
  width: calc(var(--pt-c) * 40);
  height: calc(var(--pt-c) * 40);
}

.ph-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The source badge: 18pt at the picture's lower right, pushed 4pt past
   its corner, in a 2pt ring of the card's colour cut out of the picture. */
.ph-badge {
  position: absolute;
  right: calc(var(--pt-c) * -4);
  bottom: calc(var(--pt-c) * -4);
  display: grid;
  place-items: center;
  width: calc(var(--pt-c) * 18);
  height: calc(var(--pt-c) * 18);
  font-size: calc(var(--pt-c) * 10);
}

.ph-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* An Apple app's icon: a rounded square (24% corners) with a hairline and a
   little shadow, in a rounded ring. */
.ph-badge-app {
  border-radius: calc(var(--pt-c) * 4.3);
  background: var(--surface);
  box-shadow:
    0 0 0 calc(var(--pt-c) * 2) var(--surface),
    0 calc(var(--pt-c) * 1) calc(var(--pt-c) * 1.5) calc(var(--pt-c) * 2) rgb(0 0 0 / 0.08);
}

.ph-badge-app img {
  border-radius: inherit;
}

.ph-badge-app::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.1);
}

@media (prefers-color-scheme: dark) {
  .ph-badge-app::after {
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14);
  }
}

/* A recording: a white microphone on a red circle, in a round ring. */
.ph-badge-rec {
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 0 calc(var(--pt-c) * 2) var(--surface);
}

.ph-card-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: calc(var(--pt-c) * 1);
}

/* The title takes the room the time leaves it, in up to two lines. Only
   when even its longest word and the time don't fit side by side, as a
   longer language's countdown can make them ("Dentro de 10 min"), does
   the time go under the title, rather than widening the screen's
   column. */
.ph-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--pt-c) * 2) calc(var(--pt-c) * 8);
}

.ph-card-title {
  flex: 1 1 0;
  min-width: min-content;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ph-card-time {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(var(--pt-c) * 5);
  font-size: calc(var(--pt-c) * 15);
  color: var(--text-2);
  white-space: nowrap;
}

.ph-card-body {
  overflow: hidden;
  font-size: calc(var(--pt-c) * 16);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-card-cap {
  font-size: calc(var(--pt-c) * 13);
  color: var(--text-2);
}

/* The photos run from the words' edge off the card's own: two and a half
   in view, the card clipping the third. */
.ph-photos {
  overflow: clip;
}

.ph-card > .ph-thumbs {
  display: flex;
  gap: calc(var(--pt-c) * 8);
  margin: calc(var(--pt-c) * 10) calc(var(--pt-c) * -16) 0 calc(var(--pt-c) * 52);
}

.ph-thumb {
  flex: none;
  width: calc((100% - var(--pt-c) * 16) / 2.5);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--pt-c) * 12);
  background: var(--fill-2);
}

.ph-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A photo mark on the map: the first photo, framed, the count at its corner. */
.mk-photo {
  display: grid;
  place-items: center;
  border-radius: 28%;
}

.mk-photo {
  width: calc(var(--pt) * 38);
  height: calc(var(--pt) * 38);
  padding: calc(var(--pt) * 3);
}

.photo-mark-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22%;
}

.photo-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-mark-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.6em;
  padding: 0.15em 0.4em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-ios);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.mk-photo .photo-mark-count {
  top: calc(var(--pt) * -4);
  right: calc(var(--pt) * -4);
  font-size: calc(var(--pt) * 10);
}

/* "In 10 min" on today's next event. */

:root {
  --label-3: rgb(60 60 67 / 0.3);
  --fill-3: rgb(118 118 128 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --label-3: rgb(235 235 245 / 0.3);
    --fill-3: rgb(118 118 128 / 0.24);
  }
}

/* A recording's play button: play.circle.fill at .title2 in the accent
   colour, the symbol's own disc its circle, in a 44pt frame. */
.ph-play,
.ph-check {
  position: absolute;
  top: calc(var(--pt-c) * 10);
  right: calc(var(--pt-c) * 6);
  display: grid;
  place-items: center;
  width: calc(var(--pt-c) * 44);
  height: calc(var(--pt-c) * 44);
}

.ph-play {
  font-size: calc(var(--pt-c) * 22);
  color: var(--ink);
}

/* Room for it beside the time. */
.ph-card:has(> .ph-card-row > .ph-play, > .ph-card-row > .ph-check) .ph-card-top {
  padding-right: calc(var(--pt-c) * 46);
}

/* A reminder not yet done: circle at .title3 in the tertiary label colour. */
.ph-check {
  font-size: calc(var(--pt-c) * 20);
  color: var(--label-3);
}

/* ------------------------------------------------------- Tab bar ---- */
.ph-tabbar {
  position: absolute;
  left: calc(var(--pt) * 21);
  right: calc(var(--pt) * 21);
  bottom: calc(var(--pt) * 22);
  z-index: 6;
  display: flex;
  gap: calc(var(--pt) * 8);
}

.ph-tabs,
.ph-tab-search {
  height: calc(var(--pt) * 62);
  border-radius: 999px;
}

.ph-tabs {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--pt) * 6);
}

.ph-tab {
  display: grid;
  justify-items: center;
  gap: calc(var(--pt) * 3);
  flex: 1;
  padding: calc(var(--pt) * 6) 0 calc(var(--pt) * 5);
  border-radius: 999px;
  font-size: calc(var(--pt) * 10.5);
  font-weight: 500;
  color: var(--ink);
}

.ph-tab .sf {
  font-size: calc(var(--pt) * 24);
  margin: calc(var(--pt) * -3) 0;
}

.ph-tab.is-on {
  background: var(--fill-2);
}

.ph-tab-search {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 62);
}

.ph-tab-search .sf {
  font-size: calc(var(--pt) * 22);
}

/* ----------------------------------------------------------- Voice --
   The transcript following the audio, and then the summary as the app
   draws it: its Headings, and under each its Subheadings' picture cards,
   in rows of two and one by turns. */

.ph-navbar {
  position: relative;
  z-index: 4;
  padding: calc(var(--pt) * 2) calc(var(--pt) * 16) 0;
}

/* The recording page's toolbar: Close, the Summary and Transcript control
   (216pt wide) and More. */
.ph-navbar-rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-navbar-rec .ph-seg {
  width: calc(var(--pt) * 216);
  margin: 0;
}

.ph-rec-feed {
  gap: 0;
}

.ph-rec-name {
  font-size: calc(var(--pt) * 22);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ph-rec-meta {
  margin-top: calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

.ph-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: calc(var(--pt) * 18);
  padding: calc(var(--pt) * 3);
  border-radius: 999px;
  background: var(--fill-2);
  font-size: calc(var(--pt) * 14);
  font-weight: 600;
  text-align: center;
}

.ph-seg > span:not(.ph-seg-thumb) {
  position: relative;
  padding: calc(var(--pt) * 7) 0;
}

.ph-seg-thumb {
  position: absolute;
  top: calc(var(--pt) * 3);
  bottom: calc(var(--pt) * 3);
  left: calc(var(--pt) * 3);
  width: calc(50% - var(--pt) * 3);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line-2);
  translate: 100% 0;
}

.ph-lines {
  position: relative;
  display: grid;
  margin-top: calc(var(--pt) * 14);
}

.ph-line {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--pt) * 46) 1fr;
  padding: calc(var(--pt) * 10) calc(var(--pt) * 10) calc(var(--pt) * 10) calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 17);
  line-height: 1.3;
}

.ph-line-time {
  padding-top: calc(var(--pt) * 2);
  font-size: calc(var(--pt) * 13);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* The floating player: a 64pt bar, rounded 32pt, the Subheading's
   picture at 48pt, its title at .title3 semibold over a 3pt rail, and the
   bare play or pause glyph in a 64pt column. */
.ph-player {
  position: absolute;
  left: calc(var(--pt) * 16);
  right: calc(var(--pt) * 16);
  bottom: calc(var(--pt) * 26);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 12);
  height: calc(var(--pt) * 64);
  padding: 0 0 0 calc(var(--pt) * 8);
  border-radius: calc(var(--pt) * 32);
}

.ph-player-art {
  display: grid;
  flex: none;
  width: calc(var(--pt) * 48);
  height: calc(var(--pt) * 48);
}

/* The player names the Subheading being played, with its picture: each
   one it names lies in one place, and the scene shows the one playing. */
.ph-player-pic,
.ph-player-name {
  grid-area: 1 / 1;
}

.ph-player-pic:not(:first-child),
.ph-player-name:not(:first-child) {
  opacity: 0;
}

.ph-player-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-player-names {
  display: grid;
  min-width: 0;
}

.ph-player-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-player-text {
  display: grid;
  flex: 1;
  gap: calc(var(--pt) * 7);
  min-width: 0;
  font-size: calc(var(--pt) * 20);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ph-progress {
  height: calc(var(--pt) * 3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  overflow: hidden;
}

.ph-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0.37);
}

.ph-player-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--pt) * 64);
  height: 100%;
  font-size: calc(var(--pt) * 22);
}

/* The recording's Summary, in the same phone as its transcript, under the
   same toolbar: its unit, --sp, is one point of the app's 370-point content
   column. The recording's title (.title2 bold) and its line, where the
   transcript's are; the overview; then its Headings, each its picture and
   name on the page, and under each its Subheadings' picture cards. At rest
   the phone shows it. */
.summary {
  --sw: calc(var(--pt) * 370);
  --sp: calc(var(--sw) / 370);
  position: absolute;
  inset: calc(var(--pt) * 50) 0 0;
  overflow: hidden;
  background: var(--page);
  font-family: var(--font-ios);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
}

.summary-pan {
  display: grid;
  width: var(--sw);
  margin: 0 auto;
  padding: calc(var(--pt) * 6) 0 calc(var(--pt) * 120);
}

.summary-head {
  display: grid;
}

.summary-name {
  font-size: calc(var(--sp) * 22);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.summary-meta {
  margin-top: calc(var(--sp) * 8);
  font-size: calc(var(--sp) * 15);
  color: var(--text-2);
}

.summary-overview {
  margin-top: calc(var(--sp) * 18);
  font-size: calc(var(--sp) * 17);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* The first Heading 48 points under the overview, with its own 8 above
   and below it; its cards 8 under it, 8 apart; the next Heading 26 under
   the last of them, with its own 8. */
.sum-events {
  display: grid;
  margin-top: calc(var(--sp) * 48);
}

/* A Heading: its picture as an icon at the left, 76 points wide and
   1.1 times wider than tall, and its name at the right in .title bold,
   on the page without a card. */
.sum-h {
  display: flex;
  align-items: center;
  gap: calc(var(--sp) * 14);
  padding: calc(var(--sp) * 8) calc(var(--sp) * 4);
}

.sum-h-pic {
  flex: none;
  width: calc(var(--sp) * 76);
  height: calc(var(--sp) * 69);
}

.sum-h-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sum-h-title {
  min-width: 0;
  font-size: calc(var(--sp) * 28);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tc-rows {
  display: grid;
  gap: calc(var(--sp) * 8);
  margin-top: calc(var(--sp) * 8);
}

.tc-rows + .sum-h {
  margin-top: calc(var(--sp) * 26);
}

.tc-row {
  display: grid;
  gap: calc(var(--sp) * 8);
}

.tc-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* A folded card: its words in .subheadline, at most three lines in a row
   of two and four alone, and its picture, fitted. In a row of two the
   words go over the picture or under it by turns, and the picture takes
   what the row's fuller card leaves, at least its room (1.1 times wider
   than tall); alone, the picture stands beside the words, 46% of the
   card's inside. */
.tc {
  display: grid;
  gap: calc(var(--sp) * 10);
  padding: calc(var(--sp) * 16);
  border-radius: calc(var(--sp) * 28);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--sp) * 7) calc(var(--sp) * 12) rgb(0 0 0 / 0.07);
  min-height: 0;
}

.tc-above {
  grid-template-rows: auto minmax(calc(var(--sp) * 135), 1fr);
}

.tc-below {
  grid-template-rows: minmax(calc(var(--sp) * 135), 1fr) auto;
}

.tc-leading {
  display: flex;
  align-items: center;
  gap: calc(var(--sp) * 16);
}

.tc-words {
  font-size: calc(var(--sp) * 15);
  line-height: calc(var(--sp) * 20);
  letter-spacing: -0.01em;
}

.tc-leading .tc-words {
  flex: 1;
  min-width: 0;
}

.tc-pic {
  position: relative;
  min-height: 0;
}

.tc-leading .tc-pic {
  flex: none;
  width: calc(var(--sp) * 155);
  height: calc(var(--sp) * 141);
}

.tc-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* An open card, across the column: its picture over its name (.headline),
   then its Paragraphs, each its words with its picture at its left, 64
   points wide. Its ground is a layer of its own, so it can grow from the
   folded card. */
.tc-open {
  position: relative;
  display: block;
  gap: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.tc-ground {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--sp) * 28);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--sp) * 7) calc(var(--sp) * 12) rgb(0 0 0 / 0.07);
  transform-origin: 0 0;
}

.tc-open-pic {
  position: relative;
  display: block;
  height: calc(var(--sp) * 220);
  margin: calc(var(--sp) * 16) calc(var(--sp) * 16) 0;
}

.tc-open-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tc-open-title {
  position: relative;
  display: block;
  padding: calc(var(--sp) * 12) calc(var(--sp) * 16) calc(var(--sp) * 4);
  font-size: calc(var(--sp) * 17);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tc-ps {
  position: relative;
  display: grid;
  gap: calc(var(--sp) * 4);
  padding: 0 calc(var(--sp) * 4) calc(var(--sp) * 4);
}

.tc-p {
  display: flex;
  align-items: flex-start;
}

.tc-p-pic {
  position: relative;
  flex: none;
  width: calc(var(--sp) * 64);
  height: calc(var(--sp) * 58);
  margin: calc(var(--sp) * 12) 0 calc(var(--sp) * 12) calc(var(--sp) * 12);
}

.tc-p-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tc-p-words {
  flex: 1;
  min-width: 0;
  padding: calc(var(--sp) * 12);
  font-size: calc(var(--sp) * 17);
  line-height: 1.3;
}

/* A Heading pinned at the top while its Subheadings scroll under it: the
   Heading itself on a card like the player's, reaching 4 points past the
   cards on each side so nothing moves when it pins (in motion only). */

/* The first screen: what the app is, the page's only h1, and a line under
   it on what else it is for, over the five devices recording. On a short
   screen, such as a phone on its side, the headline and the lines are
   sized to its height as well, so the devices keep room under them.
   Its rhythm, at rest and in motion: the words --stage-room under the bar,
   their picture --stage-gap under them, and in motion as much room under
   the picture as over the words, at least. Registered as lengths, so that
   home.js reads them in pixels. */
@property --stage-room {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

@property --stage-gap {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* Where the headline must break, it breaks after its comma: the clause
   after it moves to a line of its own as a whole when it fits one. In
   Chinese that clause is nine characters, and nine fit a phone's line,
   with a little to spare; Japanese breaks only between phrases, and its
   longest, "あなたのプライベートな", is eleven; the Korean clause is ten. */

/* The second line sits under the first as the next line of one paragraph
   would: one statement in two, its lines evenly spaced however many a
   screen breaks it into (owner, 14 October: on a phone the gap after "No
   account. Nothing collected." was larger than the one after "Stored on
   your iPhone.", which the header's gap opened between the two). Its two
   sentences are laid out in a row that wraps, a space apart only while
   they share a line, so a sentence moved to a line of its own is centred
   like the others rather than pushed right by that space. */

/* "Stored on your phone." and "Never on our servers." are each kept whole,
   here and in the Privacy title, so a narrow screen breaks the line between
   them; a space apart, but not in Chinese or Japanese, which set none after
   a full stop or, in Chinese, the comma that joins them. The first ends in
   a real space, which a line's end hides, so a screen reader still hears
   two sentences. */
.sent {
  display: inline-block;
}

.sent + .sent {
  margin-inline-start: 0.27em;
}

:is(:lang(zh), :lang(ja)) .sent + .sent {
  margin-inline-start: 0;
}

/* Neither line may break inside a word: Chinese breaks after a full stop,
   a comma or at a space, Japanese between phrases (Korean already breaks
   at spaces). */

/* The stores, under the first screen's words (owner, 26 October): Apple's
   own "Download on the App Store" badge in the page's language, unaltered,
   first in the row and opening AideMemo on the App Store; then the Mac App
   Store and Google Play, which are coming. Those two are drawn here, as the
   owner asked, in the badge's own style, white, with "Coming soon" where it
   says "Download": its shape and proportions, each store's mark, and the
   words in the order Apple's badge has them in the page's language (the
   store's name under the line in the Latin languages, over it in Chinese,
   Japanese and Korean). They are not links, since there is nothing yet to
   open; neither Apple nor Google publishes a badge for an app that isn't in
   its store. The row is 44px tall, above Apple's 40px minimum, and every size
   in a badge is a share of that height, as in Apple's artwork: its mark 0.55
   of it, the line 0.2, the store's name 0.44. */
.stores {
  --store-h: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.store-badge {
  display: block;
  border-radius: 8px;
}

.store-badge img {
  display: block;
  width: auto;
  height: var(--store-h);
}

/* Apple's Chinese, Japanese and Korean badges put the store's name first. */

@media (max-width: 400px) {
  .stores {
    --store-h: 40px;
    gap: 10px;
  }
}

/* ------------------------------------------------- Voice: devices --
   The DJI Mic, the Apple Watch, AirPods Pro, the Plaud Note and the Plaud
   NotePin, left to right on one line, upright, nothing over any of them,
   in their true proportions and standing on their feet (owner, 21
   October). --ww is the watch's drawn width, bezel and band included
   (Apple's picture is 560 by 880); its screen is the bezel's transparent
   window, 416 by 496 of those pixels, and --wp is one of its 208 by 248
   points. --mm is a millimetre at the watch's scale: Apple's picture draws
   the 46 mm case 39 mm wide in 498 of its 560 pixels, so its width is
   43.85 mm. The gaps are watch widths too, so the whole line scales as
   one: it is 5.352 watch widths long (4.792 of devices, four gaps of
   0.14) and 1.952 tall, the Plaud Note's height. Under 640 px wide five in
   a line would leave a 60 px watch, whose screen can't be read, so they
   stand on two: the Apple Watch and AirPods Pro over the DJI Mic, the
   Plaud Note and the Plaud NotePin (owner, 21 October: "DJI 放下面 plaud
   的左边"), each line centred and in order, 2.661 watch widths wide (the
   lower line; the upper is 2.551) and 3.723 tall. On a phone the
   NotePin's rings, 8 px inside the screen's right edge, are what bound
   their size. The recorders' rings are drawn under all five
   (isolation). At rest they fit the first screen under a headline of two
   lines (13rem with the line under it, and 56px for the stores). */
.devices {
  --ww: min(300px, calc((100vw - 32px) / 5.352), max(80px, calc((100svh - var(--bar-h) - 2 * var(--stage-room) - var(--stage-gap) - 13rem - 56px) / 1.952)));
  --mm: calc(var(--ww) / 43.85);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--ww) * 0.2) calc(var(--ww) * 0.14);
  isolation: isolate;
}

@media (max-width: 640px) {
  .devices {
    --ww: min(300px, calc((100vw - 32px) / 2.661), max(64px, calc((100svh - var(--bar-h) - 2 * var(--stage-room) - var(--stage-gap) - 13rem - 56px) / 3.723)));
    row-gap: calc(var(--ww) * 0.1);
  }

  /* The break: a line of its own between the AirPods and the DJI Mic,
     which with the gaps on either side of it puts 0.2 watch widths between
     the two lines. The DJI Mic moves down with Plaud's two, ahead of
     them. */
  .devices::before {
    content: "";
    order: 1;
    flex-basis: 100%;
    height: 0;
  }

  .dji,
  .plaud-note,
  .plaud-pin {
    order: 2;
  }
}

.device {
  position: relative;
  flex: none;
}

.watch {
  --wp: calc(var(--ww) / 280);
  width: var(--ww);
  aspect-ratio: 560 / 880;
}

.wt-bezel,
.wt-bezel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The screen, under the bezel's window; the bezel's black edge covers its
   corners. */
.wt-screen {
  position: absolute;
  left: 12.857%;
  top: 21.818%;
  width: 74.286%;
  height: 56.364%;
  overflow: hidden;
  border-radius: calc(var(--wp) * 40);
  background: #000;
  color: #fff;
  font-family: var(--font-ios);
  font-size: calc(var(--wp) * 15);
  font-weight: 600;
  line-height: 1.15;
}

.wt-close {
  position: absolute;
  left: calc(var(--wp) * 9);
  top: calc(var(--wp) * 9);
  display: grid;
  place-items: center;
  width: calc(var(--wp) * 37);
  height: calc(var(--wp) * 37);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  font-size: calc(var(--wp) * 15);
}

.wt-time,
.wt-title {
  position: absolute;
  right: calc(var(--wp) * 14);
  text-align: right;
}

.wt-time {
  top: calc(var(--wp) * 9);
  font-variant-numeric: tabular-nums;
}

.wt-title {
  top: calc(var(--wp) * 27);
  color: var(--watch-accent);
}

/* The live waveform: a bar every 4 points, 1.75 wide, across the whole
   screen at its middle, 0.6 of the stop button tall. */
.wt-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--wp) * (124 - 26.7));
  height: calc(var(--wp) * 53.4);
  overflow: hidden;
}

.wt-wave-run {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
}

.wt-wave i {
  flex: none;
  width: calc(var(--wp) * 1.75);
  margin-right: calc(var(--wp) * 2.25);
  border-radius: 999px;
  background: var(--watch-accent);
}

.wt-wave .h1 { height: 6%; }
.wt-wave .h2 { height: 20%; }
.wt-wave .h3 { height: 30%; }
.wt-wave .h4 { height: 40%; }
.wt-wave .h5 { height: 50%; }
.wt-wave .h6 { height: 60%; }
.wt-wave .h7 { height: 70%; }
.wt-wave .h8 { height: 80%; }
.wt-wave .h9 { height: 90%; }

/* The stop button: a glass circle 0.428 of the screen wide, over the
   waveform, with the accent's stop square in it. */
.wt-stop {
  position: absolute;
  left: calc(var(--wp) * (104 - 44.5));
  top: calc(var(--wp) * (124 - 44.5));
  display: grid;
  place-items: center;
  width: calc(var(--wp) * 89);
  height: calc(var(--wp) * 89);
  border: calc(var(--wp) * 1.5) solid #666;
  border-radius: 50%;
  background: rgb(38 38 40 / 0.72);
}

.wt-stop i {
  width: calc(var(--wp) * 37);
  height: calc(var(--wp) * 37);
  border-radius: calc(var(--wp) * 7.4);
  background: var(--watch-accent);
}

.wt-clock {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--wp) * (204.6 - 19));
  font-size: calc(var(--wp) * 33);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: center;
}

/* The recorders at their makers' sizes. AirPods Pro are Apple's picture of
   AirPods Pro face on, the open charging case with both earbuds standing
   in it, its R on the right stem: the AirPods Pro 2 case it shows, 60.6 mm
   wide (Apple's tech specs: 45.2 by 60.6 by 21.7 mm), spans 1034 of the
   picture's 1056 pixels, so the picture is 61.9 by 67.05 mm. The Plaud
   Note is 85.6 mm (85.6 by 54.1), the Plaud NotePin 51.05 mm (51.05 by
   21.08) and the DJI Mic 3's transmitter 28.77 mm (28.77 by 28.34, its
   buttons beside). The DJI picture is now the Mic's charging case, kept at
   the transmitter's height so the group keeps its size and places (owner,
   16 October). Each one's rings are circles a little wider than it is
   tall; they start one after another, so the four don't pulse as one. */
.dji {
  --ring: calc(var(--mm) * 42);
  height: calc(var(--mm) * 28.77);
  aspect-ratio: 580 / 568;
}

.airpods {
  --ring: calc(var(--mm) * 78);
  --rd: 0.6s;
  height: calc(var(--mm) * 67.05);
  aspect-ratio: 860 / 931;
}

.plaud-note {
  --ring: calc(var(--mm) * 103);
  --rd: 0.3s;
  height: calc(var(--mm) * 85.6);
  aspect-ratio: 738 / 1172;
}

.plaud-pin {
  --ring: calc(var(--mm) * 64);
  --rd: 0.9s;
  height: calc(var(--mm) * 51.05);
  aspect-ratio: 300 / 724;
}

.rec-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/* Sound, reaching a recorder: rings that close in on it while it records. */
.rec-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: var(--ring);
  aspect-ratio: 1;
  translate: -50% -50%;
  display: none;
}

.rec-rings i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  /* Dark recorders on a black page, lit from behind; under all five, so
     no glow falls on the Apple Watch, and none behind the white AirPods,
     which need none and are Apple's picture as it is. */
  .recorder:not(.airpods)::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(255 255 255 / 0.16), transparent);
  }
}

/* At rest the phone shows the transcript with the second passage playing;
   as a scene, one wash travels from passage to passage. */
.ph-line.is-playing {
  border-radius: calc(var(--pt) * 14);
  background: var(--accent-12);
}

/* ------------------------------------------------------------ Mail -- */

/* --------------------------------------------------------- Privacy --
   Black, as the app's icon is: the two promises at the size of the
   screen, then the four taglines and the six promises. */
.privacy {
  position: relative;
  background: #000000;
  color: #ffffff;
  --text-2: #a1a1a6;
  --line: rgb(255 255 255 / 0.12);
}

.stage-privacy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 70svh;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(40px, 6vw, 72px);
  text-align: center;
}

.privacy-eyebrow {
  color: #a1a1a6;
}

/* Two lines, "No account." and "Nothing collected.": on a phone the
   title is as large as lets the longer, 7.95 of its ems (8.1 leaves a
   little to spare), fill one line of the text's width, rather than
   breaking it in two (owner, 15 October: it was three lines on a 390pt
   iPhone). Wider, from about 720px, the size it had applies. Korean's
   longer line is 9.34 ems and Japanese's 9, each with its own divisor
   (below). */
.privacy-title {
  font-size: min(clamp(3.5rem, 0.8rem + 9.6vw, 10rem), calc((100vw - 2 * var(--gutter)) / 8.1));
  font-weight: 680;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.privacy-title .pw {
  display: block;
}

/* In Chinese and Japanese each large line is one unbroken run of
   characters, which would leave its last one alone on a phone; nine fit a
   line in Chinese, and in Japanese the longer, "データの収集なし。", is
   nine ems. */
:lang(zh) .privacy-title {
  font-size: min(clamp(3.5rem, 0.8rem + 9.6vw, 10rem), calc((100vw - 2 * var(--gutter)) / 9));
}

/* Chinese, Japanese and Korean glyphs fill their em, so their two lines
   are set a tenth of an em more open than the Latin ones, as they read
   before: the margins that collapsed in motion had opened the gap
   between them by as much. */
:is(:lang(zh), :lang(ja), :lang(ko)) .privacy-title {
  line-height: 1.06;
}

:lang(ja) .privacy-title {
  font-size: min(clamp(3.5rem, 0.8rem + 9.6vw, 10rem), calc((100vw - 2 * var(--gutter)) / 9.2));
}

:lang(ko) .privacy-title {
  font-size: min(clamp(3.5rem, 0.8rem + 9.6vw, 10rem), calc((100vw - 2 * var(--gutter)) / 9.55));
}

/* The longer line, where the library is stored, a step smaller so it
   reads at a glance under the two short ones: two fifths of the title's
   size before a phone's width caps it, so that a phone keeps the size it
   had (Korean too; Chinese and Japanese, below, keep theirs). */
.privacy-title .pw-small {
  font-size: max(calc(0.4 * clamp(3.5rem, 0.8rem + 9.6vw, 10rem)), 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* In Chinese and Japanese it runs to about twenty-four ems at this size,
   a little smaller so a wide screen still holds it on one line. */
:is(:lang(zh), :lang(ja)) .privacy-title .pw-small {
  font-size: max(0.34em, 1.25rem);
}

.privacy-title .pw-3 {
  margin-top: 0.5em;
}

/* Chinese has no spaces to break a line at, so its translation marks the
   one place a smaller line may break (a zero-width space) and nowhere else;
   Japanese headings already break by phrase. */
:lang(zh) .privacy-title .pw-small {
  word-break: keep-all;
}

.privacy-body {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(96px, 12vw, 160px);
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.promise {
  border-radius: var(--r-card);
  background: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: background-color 200ms;
}

.promise summary {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px calc(26px + 30px + 12px) 26px 26px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-card);
}

.promise summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .promise:hover {
    background: #232325;
  }

  .promise:hover .promise-toggle {
    background: rgb(255 255 255 / 0.18);
  }
}

/* The disclosure is a plus in a circle that turns into a cross: drawn, not
   read, since the details element already tells assistive technology
   whether it is open. While a promise closes (home.js) it is still open,
   so the cross turns back as it starts to close, not when it ends. */
.promise-toggle {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  transition: background-color 200ms, transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.promise-toggle::before,
.promise-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 2px;
  margin: auto;
  border-radius: 1px;
  background: #ffffff;
}

.promise-toggle::after {
  transform: rotate(90deg);
}

.promise[open]:not(.is-closing) .promise-toggle {
  transform: rotate(45deg);
}

.promise p {
  color: #a1a1a6;
}

/* What a promise rests on, under a hairline, a step smaller. */
.promise-body {
  padding: 0 26px 26px;
}

.promise .fine-print {
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.privacy-foot {
  display: flex;
  justify-content: center;
}

.privacy .text-link {
  color: #ffffff;
}

.privacy :focus-visible {
  outline-color: #ffffff;
}

.privacy ::selection {
  background: #ffffff;
  color: #000000;
}

/* --------------------------------------------------------- Sharing --
   On black, straight after Privacy, in two parts — a day shared with a
   friend, as the app draws the invite and the friend's page; and an AI
   assistant's question going through the relay to the iPhone and back,
   the relay keeping nothing. */

/* The friend's page: who shares with them, then what arrives. */

/* An assistant's App Store icon, its square rounded as iOS rounds it. */

/* The same iPhone then shares with a friend: Share Memories lies over its
   Lock Screen until it is unlocked (in motion only), and the friend's
   iPhone stands under the two at rest, beside yours in motion. */

/* --------------------------------------------------------- Pricing --
   The three plans in the words of the app's plan cards, then a table
   against other companies' first paid plans. Figures are tabular, so the
   table's columns line up, and right-aligned under their headings. */
.pricing .scene-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.plan {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 28px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--ring), var(--shadow-card);
}

.plan-name {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan-price,
.plan-monthly {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.plan-amount {
  margin-right: 1px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* How the amount is billed sits under it, on every card alike. */
.plan-billed {
  display: block;
}

.plan-minutes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.pricing-terms {
  max-width: 44rem;
  margin: 28px auto 0;
  text-align: center;
  text-wrap: pretty;
}

.compare {
  max-width: 1000px;
  margin: clamp(72px, 9vw, 112px) auto 0;
}

.compare-title,
.compare-lede {
  text-align: center;
}

.compare-lede {
  margin-top: 8px;
}

/* Six columns don't fit a phone: there the table scrolls sideways within
   its frame, the plans' names staying put, and the page itself never does. */
.compare-scroll {
  margin-top: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.compare-table th,
.compare-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line-2);
  text-align: right;
  vertical-align: middle;
}

.compare-table th:first-child {
  text-align: left;
}

.compare-table thead th {
  padding-top: 0;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.3;
  color: var(--text-2);
  vertical-align: bottom;
}

.compare-table tbody th {
  font-weight: 600;
}

.compare-table .tier {
  font-weight: 500;
  color: var(--text-2);
}

.compare-table tbody td {
  color: var(--text-2);
  white-space: nowrap;
}

/* What a recorder is, under its price. */
.compare-table .cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--text-2);
}

/* The year's total with the recorder, the column the table builds to. */
.compare-table tbody td.first-year {
  color: var(--ink);
  font-weight: 600;
}

/* AideMemo's row, raised a step on the page's second ground. */
.compare-table .is-ours > * {
  border-bottom-color: transparent;
  background: var(--page-alt);
  color: var(--ink);
  font-weight: 600;
}

.compare-table .is-ours > :first-child {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.compare-table .is-ours > :last-child {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Feishu is compared on the Chinese pages only (owner, 28 October): its row
   and its note are in every page's source, as the English is, and shown
   where the page is in Chinese. */
.zh-only {
  display: none;
}

:root:lang(zh) .zh-only {
  display: revert;
}

/* The APIs, billed by the hour of audio, under a heading of their own. */
.compare-table .compare-group th {
  padding-top: 36px;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.3;
  color: var(--text-2);
}

.compare-notes {
  margin-top: 22px;
  text-wrap: pretty;
}

.compare-notes + .compare-notes {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }
}

/* On a phone the company and its plan take two lines, the table keeps its
   six columns at a readable size and scrolls, and the plan's name stays
   pinned at the left while the figures pass under it. */
@media (max-width: 760px) {
  .compare-table {
    min-width: 640px;
    font-size: 0.875rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 8px;
  }

  .compare-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 10px;
    background: var(--page);
  }

  .compare-table .is-ours > th:first-child {
    background: var(--page-alt);
  }

  /* The APIs' heading spans the whole table, so its words, not the cell,
     stay at the left. */
  .compare-table .compare-group th {
    position: static;
  }

  .compare-group-label {
    position: sticky;
    left: 10px;
    display: inline-block;
    max-width: calc(100vw - 2 * var(--gutter) - 20px);
    white-space: normal;
  }

  .compare-table th:last-child,
  .compare-table td:last-child {
    padding-right: 10px;
  }

  .compare-table tbody .co,
  .compare-table tbody .tier {
    display: block;
  }
}

/* ------------------------------------------------------------ Chat --
   The app's Chat: an inline title between the chat list and New Chat, the
   question in the accent colour on the right, the answer in system grey 5
   on the left, each a 20pt bubble with the app's tail, the records an
   answer was drawn from under it as the Journal's own cards, and the
   composer over the tab bar. */
:root {
  --gray5: #e5e5ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gray5: #2c2c2e;
  }
}

/* The thread, scrolled to its end as a chat opens: the newest just above
   the composer, what came before up out of view. In motion it starts at the
   top and home.js scrolls it as messages arrive. */

.chat-thread {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: calc(var(--pt) * 12);
  padding: calc(var(--pt) * 66) calc(var(--pt) * 16) calc(var(--pt) * 12);
  font-family: var(--font-ios);
}

.chat-row {
  display: flex;
}

.bubble-me {
  justify-content: flex-end;
  padding-left: calc(var(--pt) * 44);
}

/* A new question: a turn's 24pt after the last turn's records. */
.chat-thread > .bubble-me:not(:first-child) {
  margin-top: calc(var(--pt) * 12);
}

.bubble-ai {
  justify-content: flex-start;
  padding-right: calc(var(--pt) * 44);
}

.bubble {
  position: relative;
  isolation: isolate;
  margin-bottom: calc(var(--pt) * 7);
  padding: calc(var(--pt) * 10) calc(var(--pt) * 15);
  border-radius: calc(var(--pt) * 20);
  font-size: calc(var(--pt) * 17);
  line-height: 1.29;
  letter-spacing: -0.01em;
}

/* The tail, below the bubble's lower corner, as the app draws it. */
.bubble::after {
  content: "";
  position: absolute;
  bottom: calc(var(--pt) * -6.66);
  width: calc(var(--pt) * 21.05);
  height: calc(var(--pt) * 26.66);
  z-index: -1;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -20 21.05 26.66'%3E%3Cpath d='M0 -20C0 -6.18 10.33 -4.79 10.33 0.15C10.33 4.35 6.78 5.85 8.53 6.66C10.97 7.77 20.58 0 21.05 0L21.05 -20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -20 21.05 26.66'%3E%3Cpath d='M0 -20C0 -6.18 10.33 -4.79 10.33 0.15C10.33 4.35 6.78 5.85 8.53 6.66C10.97 7.77 20.58 0 21.05 0L21.05 -20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.bubble-ai .bubble {
  background: var(--gray5);
  color: var(--ink);
}

.bubble-ai .bubble::after {
  left: 0;
}

.bubble-me .bubble {
  background: var(--ink);
  color: var(--on-ink);
}

.bubble-me .bubble::after {
  right: 0;
  transform: scaleX(-1);
}

/* While the answer is being found: three dots in a bubble of their own, where
   the answer will be. */
.bubble-ai {
  position: relative;
}

.chat-thinking {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.dots {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  height: calc(var(--pt) * 20);
}

.dots i {
  width: calc(var(--pt) * 8);
  height: calc(var(--pt) * 8);
  border-radius: 50%;
  background: var(--text-2);
  opacity: 0.35;
}

/* A recording quoted in an answer: its card, with the quoted words as its
   line. */
.ph-card.is-quote .ph-card-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.chat-note {
  padding: 0 calc(var(--pt) * 4);
  font-size: calc(var(--pt) * 13);
  color: var(--text-2);
}

/* The composer: a 44pt capsule over the tab bar, "+" and the text on
   its left, the microphone and, once there is something to send, Send on
   its right. Held, it becomes the walkie-talkie: filled with the accent,
   the voice's waveform across it. */

/* The typed question, centred in the field like the placeholder. It starts
   at the left; once it is longer than the field, its end stays in view and
   its beginning slides out on the left, as a text field scrolls. The spacer
   takes the free space while the text fits; when it doesn't, flex-end lets
   the text overflow at the start. */

/* In motion the scene types, holds, thinks and answers; at rest the
   thread is complete and the composer empty. */

/* The Lock Screen: a calm wallpaper, the date and the time. */

/* Each wing lies in its own half, which cuts it at the island's middle: at
   rest it is under the bezel's island (94 points wide), its round end at the
   island's end; home.js slides it out. */

/* ------------------------------------------------ The app's controls --
   Flat (owner, 12 October): the tab bar, the toolbar buttons, the player,
   the map's marks, capsules and labels, the composer and its hint are a
   plain surface with a hairline — no blur, no rim, no lens. Content cards
   are the same surface, as in the app. */
.ph-round,
.ph-tabs,
.ph-tab-search,
.ph-player,
.mk-photo {
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

/* The segmented control: a quiet track, and a flat thumb (dark). */
.ph-seg {
  box-shadow: inset 0 0 0 0.5px var(--line);
}

@media (prefers-color-scheme: dark) {
  .ph-seg-thumb {
    background: #3a3a3c;
  }
}

/* A pinned stage shows nothing until home.js has drawn it. Its markup is
   the scene at rest, every beat in its final state, so pinned it is the
   beats laid over one another: the Voice stage's transcript and summary
   over the first screen. home.js is a deferred module, and the browser can
   paint before it runs: at the top of the page on a phone, where the Voice
   stage showed its second screen for a few frames before the first
   screen's entrance, and on a reload wherever the scroll was put back.
   home.js writes every stage's first frame, then sets `first-in` in the
   next frame, as the first screen's entrance starts. */

/* The phone comes up under the second line, a little smaller than in
   other scenes so the line has room above it. */

/* In motion the second Heading's cards are dealt folded, and one of them
   opens: the folded cards lie over the open card's rows until it does.
   The Heading at the top is pinned over the cards scrolling under it. */

/* The mask's negative margin would otherwise take the gap above the
   smaller lines. */

/* Typed text brings Send in beside the microphone. */

/* ------------------------------------------------------ Responsive -- */
@media (max-width: 900px) {
  .promises {
    grid-template-columns: 1fr;
  }

  

  
}

/* Narrower than 360px the bar's words are a size smaller, so that the
   logo and AideMemo, Download and the menu's icon stay on one line in
   every language: at their full size they would leave no room between
   AideMemo and Download in Japanese at 320px (styles.css sets the logo
   and the inset). */
@media (max-width: 359px) {
  .local-get {
    padding: 0 11px;
    font-size: 0.75rem;
  }
}

/* ---------------------------------------------------- Preferences -- */

@media (prefers-contrast: more) {
  .phone {
    box-shadow: inset 0 0 0 2px var(--ink);
  }
}

/* ======================================================== The first screen
   Words on the left, a made-up AideMemo to tap on the right (owner,
   13 November 2026; docs/specs/0008-split-hero-demo.md). The words are the
   page's own text: the App Store name's line, the h1, the sub-line and
   Apple's badge, then the professions, a tablist. The right column is the
   chosen profession's demo in the drawn iPhone, and under it the line
   saying it is one. Up to 880px the columns stack: words, the professions
   in a row that scrolls sideways, the phone, the line.

   The phone is as tall as the window leaves it under the bar (--bar-h,
   then the 134px the first screen keeps for its own padding and the line
   under the phone), so the first screen is one screen on a desktop; stacked, it is as wide as fits. Its
   width, --pw, is the width of Apple's picture of it, 450 points for a
   402-point screen, and its height 920. */
.hero {
  --pw: min(clamp(260px, calc((100svh - var(--bar-h) - 134px) / 2.0445), 430px), calc(100vw - 40px));
  position: relative;
  background: var(--page);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 176px);
  align-items: center;
  gap: clamp(24px, 3.6vw, 64px);
  width: min(100% - 2 * var(--gutter), 1340px);
  min-height: min(100svh, 1100px);
  margin-inline: auto;
  padding: calc(var(--bar-h) + 30px) 0 36px;
}

.hero-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.hero-eyebrow {
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
  font-weight: 560;
  color: var(--text-2);
  text-wrap: balance;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(3rem, 0.4rem + 5.4vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.hero-line {
  display: block;
}

:is(:lang(zh), :lang(ja), :lang(ko)) .hero-title {
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-eyebrow .clause,
.hero-sub .clause {
  display: inline-block;
}

/* Balanced lines would split a CJK clause to even them out; break at the
   clause instead. */
:is(:lang(zh), :lang(ja), :lang(ko)) :is(.hero-eyebrow, .hero-sub) {
  text-wrap: wrap;
}

.hero-sub {
  max-width: 31em;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: balance;
}

.hero .stores {
  justify-content: flex-start;
  margin-top: 22px;
}

/* The professions: a small grey name for the row, then a card each, in the
   shape of the app's Summary cards: the profession's picture, whole, over
   its name, the two one control. The chosen one stands in the site's
   yellow; one whose day is not written yet has no card under it, its picture
   grey and faint, and does nothing. Six stand in one row beside the phone. */
.jobs-wrap {
  container-type: inline-size;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(22px, 4vh, 44px);
}

.jobs-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.jobs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.job {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 6px 11px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: scale 140ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}

.job-pic {
  display: block;
  width: 100%;
  height: clamp(56px, 9vh, 72px);
}

/* The whole picture, as large as its box lets it be. */
.job-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-name {
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.job:active {
  scale: 0.97;
}

/* The chosen one is the site's yellow (styles.css, "Yellow"): the quiet
   yellow in its ring on the white page, the yellow itself on the black. */
.job[aria-selected="true"] {
  background: var(--mark-quiet);
  box-shadow: inset 0 0 0 2px var(--mark-edge), 0 6px 16px rgb(0 0 0 / 0.08);
}

.job[aria-selected="true"] .job-name {
  color: var(--on-mark);
  font-weight: 640;
}

.job[aria-disabled="true"] {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-3);
  cursor: default;
  scale: none;
}

.job[aria-disabled="true"] .job-pic {
  filter: grayscale(1);
  opacity: 0.42;
}

/* On the black page a dark suit would sink into it: the grey is lifted. */
@media (prefers-color-scheme: dark) {
  .job[aria-disabled="true"] .job-pic {
    filter: grayscale(1) brightness(1.7) contrast(0.75);
    opacity: 0.5;
  }
}

/* Where the column is too narrow for six names in a row, two rows of three,
   their pictures a little smaller. */
@container (max-width: 619px) {
  .jobs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-pic {
    height: 52px;
  }
}

.job:focus-visible {
  border-radius: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .job:not([aria-selected="true"], [aria-disabled="true"]):hover {
    background: var(--fill-2);
    box-shadow: inset 0 0 0 1px var(--text-3);
  }
}

@media (prefers-contrast: more) {
  .job {
    box-shadow: inset 0 0 0 1px var(--ink);
  }

  .job[aria-selected="true"] {
    box-shadow: inset 0 0 0 3px var(--mark-edge);
  }

  .job[aria-disabled="true"] {
    box-shadow: inset 0 0 0 1px var(--text-2);
    color: var(--text-2);
  }

  .job[aria-disabled="true"] .job-pic {
    opacity: 0.6;
  }
}

.hero-demo {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  justify-items: center;
  gap: 14px;
}

/* The features, right of the phone: each a case the demo plays, in words.
   The one being played is in the site's yellow, over a line that fills as it
   plays; under them, the one control that stops the demo playing by itself. */
.hero-cases {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  justify-items: start;
  gap: 18px;
  min-width: 0;
}

.cases {
  display: grid;
  gap: 2px;
  width: 100%;
}

.case {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 10px 12px 9px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: scale 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

.case:active {
  scale: 0.97;
}

/* The one being played is the site's yellow too, like the chosen
   profession, and its line is in the dark yellow. */
.case[aria-current="true"] {
  background: var(--mark-quiet);
  color: var(--on-mark);
  font-weight: 640;
}

.case-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--on-mark) 18%, transparent);
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
}

.case[aria-current="true"] .case-bar {
  opacity: 1;
}

.case-bar i {
  display: block;
  height: 100%;
  background: var(--on-mark);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 420ms linear;
}

.demo-pause {
  margin-left: 12px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: scale 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

.demo-pause:active {
  scale: 0.97;
}

.case:focus-visible {
  border-radius: 12px;
}

.demo-pause:focus-visible {
  border-radius: 999px;
}

/* The pointer, where there is one: what can be chosen lifts or lights under
   it; what cannot does not answer. */
@media (hover: hover) and (pointer: fine) {
  .job:not([aria-disabled="true"]) {
    transition: scale 140ms var(--ease-out), translate 220ms var(--ease-out), background-color 200ms ease, box-shadow 220ms ease;
  }

  .job:not([aria-disabled="true"]) .job-pic img {
    transition: scale 260ms var(--ease-out);
  }

  .job:not([aria-disabled="true"]):hover {
    translate: 0 -2px;
  }

  .job[aria-selected="true"]:hover {
    box-shadow: inset 0 0 0 2px var(--mark-edge), 0 12px 26px rgb(0 0 0 / 0.14);
  }

  .job:not([aria-disabled="true"]):hover .job-pic img {
    scale: 1.05;
  }

  .case:not([aria-current="true"]):hover,
  .demo-pause:hover {
    background: var(--fill-2);
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-bar i {
    transition: none;
  }

  .job:not([aria-disabled="true"]):hover {
    translate: none;
  }
}

.demo[hidden] {
  display: none;
}

.demo-note {
  order: 1;
  max-width: 24em;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 880px) {
  .hero {
    --pw: min(390px, calc(100vw - 32px));
  }

  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 28px;
    min-height: 0;
    padding: calc(var(--bar-h) + 56px) 0 48px;
  }

  /* Stacked: the words and the professions, the features in a row over the
     phone, the phone, the line. */
  .hero-demo,
  .hero-cases {
    grid-column: auto;
    grid-row: auto;
  }

  /* Where the row is wider than the window the features scroll sideways
     and Pause stays where it is, in reach. */
  .hero-cases {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100vw;
    margin: -4px calc(50% - 50vw);
    padding: 0 var(--gutter);
  }

  .cases {
    display: flex;
    flex: 0 1 auto;
    gap: 2px;
    width: auto;
    min-width: 0;
    padding: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .cases::-webkit-scrollbar {
    display: none;
  }

  /* More of the row past an edge: it fades out there. demo.js says which. */
  .cases.is-more {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  .cases.is-less {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
  }

  .cases.is-more.is-less {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  }

  .cases li {
    flex: none;
  }

  .case {
    width: auto;
    white-space: nowrap;
  }

  .demo-pause {
    flex: none;
    margin-left: 6px;
  }

  .hero-type {
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(3rem, 0.6rem + 11vw, 5.5rem);
  }

  .hero .stores {
    justify-content: center;
  }

  /* The professions in one row, reaching both edges of the window and
     scrolling sideways under the finger; the page still scrolls up and
     down from anywhere on it. */
  .jobs-wrap {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
  }

  .jobs {
    display: flex;
    justify-content: safe center;
    padding: 2px var(--gutter) 18px;
    margin-bottom: -18px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
  }

  .jobs::-webkit-scrollbar {
    display: none;
  }

  .job {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }

  .job-pic {
    height: 68px;
  }
}

/* --------------------------------- The recorder with live hints, drawn --
   As the app draws it (in points): the nav bar's Put Away, the red time
   capsule and More; the hint card, black with white text, 28pt round,
   16pt inset; the transcript in body type, turns 18pt apart, the words the
   hint answers on the accent's 12% ground, 14pt round, 12pt past the
   words; and the row: four 50pt round controls and Save, 6pt apart. The
   controls are flat, as everywhere in the drawn app. */

.hx-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: calc(var(--pt) * 2) calc(var(--pt) * 16) 0;
}

.hx-nav .ph-round {
  font-size: calc(var(--pt) * 17);
}

.hx-time {
  justify-self: center;
  display: grid;
  place-items: center;
  height: calc(var(--pt) * 44);
  padding: 0 calc(var(--pt) * 18);
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hx-card {
  display: grid;
  gap: calc(var(--pt) * 8);
  margin: 0 calc(var(--pt) * 16);
  padding: calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 28);
  background: #1c1c1e;
  color: #fff;
}

.hx-head {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
  line-height: 1.25;
}

.hx-body {
  font-size: calc(var(--pt) * 16);
  line-height: 1.35;
}

.hx-body b {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: calc(var(--pt) * 2.5);
  text-decoration-thickness: calc(var(--pt) * 1.2);
}

.hx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: calc(var(--pt) * 13);
}

.hx-step {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 10);
}

.hx-count {
  font-size: calc(var(--pt) * 12);
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.75);
}

.hx-dim {
  opacity: 0.4;
}

.hx-tx {
  flex: 1;
  display: grid;
  align-content: start;
  gap: calc(var(--pt) * 18);
  padding: calc(var(--pt) * 4) calc(var(--pt) * 20) 0;
  overflow: hidden;
  font-size: calc(var(--pt) * 17);
  line-height: 1.3;
}

/* The words a hint answers sit on the accent's 12% ground: one rounded
   box round the whole turn, 14pt round, 12pt past the words. */
.hx-turn {
  position: relative;
}

.hx-turn::before {
  content: "";
  position: absolute;
  inset: calc(var(--pt) * -6) calc(var(--pt) * -12);
  border-radius: calc(var(--pt) * 14);
  background: var(--accent-12);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.hx-turn.is-marked::before {
  opacity: 1;
}

.hx-turn span {
  position: relative;
}

/* The second hint takes the first one's place. */
.hx-cards {
  display: grid;
}

.hx-cards > .hx-card {
  grid-area: 1 / 1;
}

.hx-row {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  padding: 0 calc(var(--pt) * 16);
}

.hx-btn {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 50);
  height: calc(var(--pt) * 50);
  flex: none;
  border-radius: 999px;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
  font-size: calc(var(--pt) * 17);
}

.hx-save {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pt) * 6);
  height: calc(var(--pt) * 50);
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}

/* -------------------------------------------- The AideMemo keyboard, drawn --
   In Messages, as iOS draws it (in points): the header (Back, Elena's avatar
   over her name, FaceTime), the thread from the top under the service and
   the time, the bubbles with their tails, the + button and the iMessage
   field; under them the AideMemo keyboard at rest: its header (the mark and
   name, options, the 142pt switch), Tap to speak over the 148 by 60
   microphone, Undo and Delete, and the pen, Return (118 by 48) and @, round
   keys 48pt. */
.ph-kb {
  position: absolute;
  inset: calc(var(--pt) * 54) 0 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
}

.im-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  padding: calc(var(--pt) * 2) calc(var(--pt) * 16) calc(var(--pt) * 4);
}

.im-back,
.im-video {
  width: calc(var(--pt) * 44);
  height: calc(var(--pt) * 44);
  margin-top: calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 20);
}

.im-video {
  font-size: calc(var(--pt) * 17);
}

/* The avatar, and the name in its capsule over the avatar's foot. */
.im-who {
  display: grid;
  justify-items: center;
}

.kb-avatar {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 58);
  height: calc(var(--pt) * 58);
  border-radius: 50%;
  background: linear-gradient(#a5a9b3, #868a94);
  color: #fff;
  font-size: calc(var(--pt) * 26);
  font-weight: 600;
}

.im-name {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 4);
  margin-top: calc(var(--pt) * -8);
  padding: calc(var(--pt) * 5) calc(var(--pt) * 14) calc(var(--pt) * 5) calc(var(--pt) * 18);
  border-radius: 999px;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
  font-size: calc(var(--pt) * 16);
  font-weight: 600;
}

.im-name .sf {
  font-size: calc(var(--pt) * 11);
  color: var(--text-3);
}

.kb-thread {
  flex: 1;
  display: grid;
  align-content: start;
  gap: calc(var(--pt) * 10);
  padding: calc(var(--pt) * 10) calc(var(--pt) * 16);
  font-size: calc(var(--pt) * 17);
  line-height: calc(22 / 17);
}

.im-when {
  display: grid;
  justify-items: center;
  margin-bottom: calc(var(--pt) * 4);
  font-size: calc(var(--pt) * 12);
  line-height: 1.3;
  color: var(--text-2);
}

.im-when b {
  font-weight: 600;
}

/* Bubbles as Messages draws them: 19.5pt round, the text 8.5pt from the
   top and 14pt from the sides; Elena's grey, the person's blue as Messages
   shows it near the top of the screen. The tail is
   traced from Messages on iOS 26: the bubble's foot runs straight into it,
   its corner rounds down into the tail's outer side, and the point hooks
   7pt below, 9pt in from the side. */
.kb-bubble {
  --bubble: #e9e9eb;
  --tail: #e9e9eb;
  position: relative;
  justify-self: start;
  max-width: 76%;
  padding: calc(var(--pt) * 8.5) calc(var(--pt) * 14);
  border-radius: calc(var(--pt) * 19.5);
  background: var(--bubble);
}

.kb-bubble.is-me {
  --bubble: #3db1fe;
  --tail: #3db1fe;
  justify-self: end;
  color: #fff;
}

.kb-bubble::after {
  content: "";
  position: absolute;
  bottom: calc(var(--pt) * -7);
  left: 0;
  width: calc(var(--pt) * 22);
  height: calc(var(--pt) * 27);
  background: var(--tail);
  scale: -1 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 27'%3E%3Cpath d='M0 0L22 0L22 .5C22 8 16.5 17 11.8 18.7L11.8 22.5L12.25 23L12.7 23.8L13.1 24.7L13.5 25.2L13.5 26.3L12.6 26.9L11.4 26.4L9.7 25.5L8 24.7L6.75 23.8L5.5 23L4.2 22.1L3 21.3L1.2 20.4L.6 20L0 20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 27'%3E%3Cpath d='M0 0L22 0L22 .5C22 8 16.5 17 11.8 18.7L11.8 22.5L12.25 23L12.7 23.8L13.1 24.7L13.5 25.2L13.5 26.3L12.6 26.9L11.4 26.4L9.7 25.5L8 24.7L6.75 23.8L5.5 23L4.2 22.1L3 21.3L1.2 20.4L.6 20L0 20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.kb-bubble.is-me::after {
  left: auto;
  right: 0;
  scale: 1 1;
}

.kb-bubble span {
  position: relative;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  .kb-bubble {
    --bubble: #262629;
    --tail: #262629;
  }
}

.kb-mark {
  display: inline-block;
  width: 0.75em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("/assets/brand/logomark.svg?v=6125efea2c") center / contain no-repeat;
  mask: url("/assets/brand/logomark.svg?v=6125efea2c") center / contain no-repeat;
}

/* The + button and the field, its waveform until something is written,
   then the blue Send. */
.im-bar {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--pt) * 8);
  padding: calc(var(--pt) * 6) calc(var(--pt) * 14) calc(var(--pt) * 10);
}

.im-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 40);
  height: calc(var(--pt) * 40);
  border-radius: 50%;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
  font-size: calc(var(--pt) * 20);
  color: var(--ink);
}

.kb-field {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
  min-height: calc(var(--pt) * 40);
  padding: calc(var(--pt) * 8.5) calc(var(--pt) * 44) calc(var(--pt) * 8.5) calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 20);
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
  font-size: calc(var(--pt) * 17);
  line-height: 1.3;
}

.im-mic,
.im-send {
  position: absolute;
  right: calc(var(--pt) * 5);
  bottom: calc(var(--pt) * 5);
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 30);
  height: calc(var(--pt) * 30);
  border-radius: 50%;
}

.im-mic {
  font-size: calc(var(--pt) * 17);
  color: var(--text-3);
  opacity: 0;
}

.im-send {
  background: #0a84ff;
  color: #fff;
  font-size: calc(var(--pt) * 14);
}

.kb-caret {
  display: inline-block;
  width: calc(var(--pt) * 2);
  height: 1.1em;
  margin-left: calc(var(--pt) * 1);
  vertical-align: -0.2em;
  background: #0a84ff;
}

.kb-board {
  position: relative;
  flex: none;
  height: calc(var(--pt) * 272);
  padding: calc(var(--pt) * 15.5) calc(var(--pt) * 18) 0;
  background: var(--fill-2);
}

/* In dark mode the keyboard is lighter than the phone's frame, its keys
   lighter again, so its edge never runs into the frame. */
@media (prefers-color-scheme: dark) {
  .kb-board {
    --fill: #3a3a3c;
    --ph-fill: #545458;
    background: #2c2c2e;
  }
}

.kb-head {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
  height: calc(var(--pt) * 36);
}

.kb-lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  margin-right: auto;
  font-family: var(--font-sans);
  font-size: calc(var(--pt) * 18);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.kb-lockup .kb-mark {
  font-size: calc(var(--pt) * 22);
}

.kb-opt {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 32);
  height: calc(var(--pt) * 32);
  border-radius: 50%;
  background: var(--fill);
  font-size: calc(var(--pt) * 14);
}

.kb-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(var(--pt) * 142);
  height: calc(var(--pt) * 32);
  padding: calc(var(--pt) * 2);
  border-radius: 999px;
  background: var(--fill);
  font-size: calc(var(--pt) * 13);
  font-weight: 600;
}

.kb-seg span {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.kb-seg .is-on {
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

.kb-tap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--pt) * 86);
  text-align: center;
  font-size: calc(var(--pt) * 14);
  color: var(--text-2);
}

.kb-pill {
  position: absolute;
  left: 50%;
  top: calc(var(--pt) * 112);
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 148);
  height: calc(var(--pt) * 60);
  translate: -50% 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: calc(var(--pt) * 28);
}

.kb-key {
  position: absolute;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 48);
  height: calc(var(--pt) * 48);
  border-radius: 50%;
  background: var(--fill);
  font-size: calc(var(--pt) * 19);
}

.kb-key.kb-white {
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

.kb-undo,
.kb-pen {
  left: calc(var(--pt) * 18);
}

.kb-delete,
.kb-at {
  right: calc(var(--pt) * 18);
}

.kb-undo,
.kb-delete {
  bottom: calc(var(--pt) * 66);
}

.kb-pen,
.kb-at,
.kb-return {
  bottom: calc(var(--pt) * 12);
}

.kb-at {
  font-size: calc(var(--pt) * 20);
  font-weight: 500;
}

.kb-return {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 118);
  height: calc(var(--pt) * 48);
  translate: -50% 0;
  border-radius: 999px;
  background: var(--fill);
  font-size: calc(var(--pt) * 16);
}

/* Live hints over the Voice scene's recording page: only while home.js
   plays the scene; at rest the page shows the recording, after Save. */

/* ---------------------------------------- The keyboard's states, drawn --
   The keys at rest; the writing page that replaces them while Help me
   write listens (the title, the 60pt halo round the 50pt circle and its
   wave, Describe what to write over Tap again to finish, and ✕ in the
   header); the Thinking pill (130 by 60, a light band sweeping across it).
   Outside the phone, the request spoken to Help me write and the memories
   it draws on, placed against the phone's box. At rest only the end shows:
   the reply written, the keys at rest, the memories beside the phone. */

/* The phone and what lies over it share one scale. */

.kb-head {
  position: relative;
  z-index: 2;
}

.kb-tools {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
}

.kb-idle,
.kb-write {
  position: absolute;
  inset: 0;
}

.kb-x {
  display: none;
  place-items: center;
  width: calc(var(--pt) * 32);
  height: calc(var(--pt) * 32);
  border-radius: 50%;
  background: var(--fill);
  font-size: calc(var(--pt) * 13);
}

.kb-write,
.kb-think,
.kb-placeholder {
  display: none;
}

/* Written, the field shows Send, not the waveform. */

.kb-placeholder {
  color: var(--text-3);
}

.kb-write-title {
  position: absolute;
  left: calc(var(--pt) * 18);
  top: calc(var(--pt) * 62);
  font-size: calc(var(--pt) * 20);
  font-weight: 600;
  color: var(--text-3);
}

.kb-circle {
  position: absolute;
  left: calc(var(--pt) * 23);
  bottom: calc(var(--pt) * 28);
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 50);
  height: calc(var(--pt) * 50);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 calc(var(--pt) * 5) color-mix(in srgb, var(--ink) 7%, transparent);
}

.kb-circle-wave {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 3);
  height: calc(var(--pt) * 18);
}

.kb-circle-wave i {
  width: calc(var(--pt) * 3);
  height: 100%;
  border-radius: 99px;
  background: var(--page);
  transform: scaleY(0.3);
}

.kb-write-text {
  position: absolute;
  left: calc(var(--pt) * 88);
  bottom: calc(var(--pt) * 34);
  display: grid;
  gap: calc(var(--pt) * 2);
}

.kb-write-main {
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
}

.kb-write-sub {
  font-size: calc(var(--pt) * 12);
  color: var(--text-2);
}

.kb-think {
  position: absolute;
  left: 50%;
  top: calc(var(--pt) * 112);
  place-items: center;
  width: calc(var(--pt) * 130);
  height: calc(var(--pt) * 60);
  translate: -50% 0;
  overflow: hidden;
  border-radius: 999px;
  background: #c7c7cc;
  color: rgb(60 60 67 / 0.6);
  font-size: calc(var(--pt) * 16);
  font-weight: 500;
}

.kb-think::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  translate: -100% 0;
}

.kb-think.is-on::after {
  animation: kb-sweep 1.4s var(--ease-out) infinite;
}

@keyframes kb-sweep {
  to {
    translate: 100% 0;
  }
}

@media (prefers-color-scheme: dark) {
  .kb-think {
    background: #48484a;
    color: rgb(235 235 245 / 0.6);
  }
}

/* ------------------------------------------------ The demo, drawn --
   One iPhone, four layers (in the app's points): the Journal; the recorder,
   a sheet that comes up over it and goes back down the same way; the saved
   recording, a sheet over that; and the status bar on top. A layer out of
   use is hidden and inert. demo.js only sets classes and attributes here,
   and, for the few things whose size the browser decides, a transform it
   has measured once; everything moves by translate, scale and opacity.

   The app as version 2.0.4 draws it. Nothing in it is glass: the menu, the
   bar and Create are the flat surface with a hairline, as everywhere in
   the drawn app. */
.demo-phone {
  --drawer: cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* The iPhone is Apple's picture of iPhone 18 Pro, its product bezel: the
   Black finish on the light page and Silver on the dark one, where a black
   phone would vanish (scripts/build-devices.py names them). It is shown
   whole and upright at the size the page gives it, over the screen, with no
   shadow, and lets every tap through to the screen under its window.

   In the file the window is 1206 by 2622 of 1350 by 2760 pixels, 72 from
   the left and 69 from the top, and the screen lies exactly under it. The
   screen's corners are rounder than the phone's outline and less round than
   the window's, so the bezel's edge covers them. Round the screen runs a
   black band, six points wide, all of it under the bezel's own black edge:
   no seam shows at any size, and until the picture arrives, or if it never
   does, the screen stands in a plain black edge of its own.

   The stylesheet draws the picture, over the phone's box, so that it is
   asked for after the page's text and scripts: it is the words a visitor
   waits for. Every browser draws it as a background, stretched over the box,
   which has the picture's own proportions. Chrome would report a picture of
   this size as the page's largest paint, some seconds after the words on a
   slow connection, whether it is an <img>, a background or a mask; it leaves
   a border image out of that. So where the browser is Chromium (told by a
   property only it has), the same picture is the box's border image instead,
   its one slice the whole of it. Safari does not draw a border image so, and
   keeps the background. Only the finish in use is fetched. */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("/assets/devices/iphone-light.webp?v=4e712eb6a3") center / 100% 100% no-repeat;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .phone::after {
    background-image: url("/assets/devices/iphone-dark.webp?v=4f9a91a470");
  }
}

@supports (-webkit-app-region: drag) {
  .phone::after {
    background: none;
    border-image: url("/assets/devices/iphone-light.webp?v=4e712eb6a3") 0 fill / 0 / 0 stretch;
  }

  @media (prefers-color-scheme: dark) {
    .phone::after {
      border-image-source: url("/assets/devices/iphone-dark.webp?v=4f9a91a470");
    }
  }
}

/* The Journal, the transcripts and the Summary scroll in the phone, as in
   the app: under the wheel, a finger and the keys, with no bar showing, and
   at their ends the page takes the scroll over. (The page's own smooth
   scrolling leaves them alone: each says so in the markup.) */
.demo-phone .phone-screen {
  overflow: clip;
}

.demo-phone [data-scroller] {
  overflow: hidden auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* The site keeps the scroll inside whatever the page's smooth scrolling
   leaves alone; here the page must take it at the end, so that the phone
   never holds a visitor who is only passing. */
.lenis .demo-phone [data-scroller] {
  overscroll-behavior: auto;
}

.demo-phone [data-scroller]::-webkit-scrollbar {
  display: none;
}

/* With a mouse or a pen a screen is dragged as a finger drags it (demo.js,
   "Dragging"). The hand shows where there is something to drag, and only
   there; a control keeps its own pointer. While it is dragged nothing under
   the pointer lights, lifts or presses, and no picture comes away. */
.demo-phone .can-grab {
  cursor: grab;
}

.demo-phone .is-grabbing,
.demo-phone .is-grabbing * {
  cursor: grabbing !important;
}

.demo[data-ready] .is-grabbing [data-act]:is(:active, .is-pressed, :hover) {
  scale: 1;
  translate: none;
}

.demo-phone img,
.demo-phone a {
  -webkit-user-drag: none;
  user-drag: none;
}

.demo-phone [data-scroller]:focus-visible {
  outline-offset: calc(var(--pt) * -4);
  border-radius: calc(var(--pt) * 20);
}

/* The touch the demo makes when it plays by itself: where a finger would
   be, over everything in the screen. demo.js moves and fades it. */
.dm-touch {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
  width: calc(var(--pt) * 46);
  height: calc(var(--pt) * 46);
  border-radius: 50%;
  background: rgb(128 128 132 / 0.36);
  box-shadow: inset 0 0 0 calc(var(--pt) * 1.5) rgb(255 255 255 / 0.7), 0 calc(var(--pt) * 2) calc(var(--pt) * 10) rgb(0 0 0 / 0.22);
  opacity: 0;
  pointer-events: none;
}

/* The status bar, level with the Dynamic Island in the bezel: the time at
   the left, and at the right a full network icon, Wi-Fi and a full battery,
   each an SF Symbol like every other glyph in this phone. */
.demo-phone .ph-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 11;
  pointer-events: none;
}

/* The app's controls are buttons here; they are drawn by their classes. */
:where(.demo-phone) button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

/* A press answers on the way down, on anything that does something. A
   control that also moves or fades gives its own transition further down. */
:where(.demo-phone) [data-act] {
  transition: scale 140ms var(--ease-out);
}

.demo[data-ready] [data-act]:not(.dm-menu-away) {
  cursor: pointer;
}

.demo[data-ready] [data-act]:not(.dm-menu-away):is(:active, .is-pressed) {
  scale: 0.97;
}

.demo[data-ready] :is(.dm-create, .ph-round):is(:active, .is-pressed) {
  scale: 0.94;
}

.demo[data-ready] .dm-card:is(:active, .is-pressed) {
  scale: 0.985;
}

/* Under a pointer a working control lights a little, as iPadOS's pointer
   lights what it is over; what does nothing does not answer. */
@media (hover: hover) and (pointer: fine) {
  .demo[data-ready] :is(.ph-round, .dm-create, .dm-bar-main, .dm-bar-stop, .ph-player-btn, .dm-seg button, .ph-tab-search, .dm-ask-field)[data-act]:hover {
    background-color: color-mix(in srgb, var(--ink) 9%, var(--g-tint));
  }

  .demo[data-ready] .ph-tab:not(.is-on):hover,
  .demo[data-ready] button.dm-item:hover {
    background-color: color-mix(in srgb, var(--ink) 8%, transparent);
  }

  .demo[data-ready] .hx-save:hover {
    opacity: 0.86;
  }

  .demo[data-ready] :is(.dm-card, .dm-newcard):hover {
    translate: 0 calc(var(--pt) * -1.5);
    box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt) * 12) calc(var(--pt) * 22) rgb(0 0 0 / 0.13);
  }

  .demo[data-ready] .dm-card.tc-open:hover {
    box-shadow: none;
  }

  .demo-phone :is(.dm-card, .dm-newcard) {
    transition: scale 140ms var(--ease-out), translate 220ms var(--ease-out), box-shadow 220ms ease;
  }
}

.demo-phone :focus-visible {
  outline: calc(var(--pt) * 2.5) solid var(--blue);
  outline-offset: calc(var(--pt) * 2);
}

.demo-phone .ph-round:focus-visible,
.demo-phone .dm-create:focus-visible,
.demo-phone .hx-save:focus-visible,
.demo-phone .dm-bar-stop:focus-visible,
.demo-phone .dm-seg button:focus-visible {
  border-radius: 999px;
}

/* A small control takes a touch a little past its edge. */
.demo-phone button.ph-round,
.dm-bar-stop {
  position: relative;
}

.demo-phone button.ph-round::before,
.dm-bar-stop::before,
.dm-seg button::before {
  content: "";
  position: absolute;
  inset: calc(var(--pt) * -7);
}

.dm-seg button::before {
  inset: calc(var(--pt) * -9) 0;
}

@media (prefers-contrast: more) {
  .dm-create,
  .dm-bar,
  .dm-menu,
  .dm-mic {
    box-shadow: 0 0 0 1px var(--ink);
  }
}

.dm-view {
  position: absolute;
  inset: 0;
  padding-top: calc(var(--pt) * 54);
  background: var(--page);
}

.dm-journal {
  z-index: 1;
}

/* A sheet rests under the screen's foot, and comes up the way it leaves. */
.dm-sheet {
  z-index: 2;
  translate: 0 100%;
  visibility: hidden;
  transition: translate 420ms var(--drawer), visibility 0s linear 420ms;
}

.dm-sheet.is-up {
  translate: 0 0;
  visibility: visible;
  transition: translate 500ms var(--drawer), visibility 0s;
}

.dm-sheet.is-cut {
  transition: none;
}

.dm-saved {
  z-index: 3;
}

/* ---- The tabs. Each tab's screen lies where the Journal lies, and one of
   them shows: the screen says which (data-tab, set by demo.js; with none,
   the Journal). A tab changes at once, as the app's does. Each screen has
   the tab bar of its own, so the bar changes with it. */
.dm-tab {
  z-index: 1;
  visibility: hidden;
}

.phone-screen[data-tab="chat"] [data-tab-view="chat"],
.phone-screen[data-tab="ideas"] [data-tab-view="ideas"],
.phone-screen[data-tab="friends"] [data-tab-view="friends"],
.phone-screen[data-tab="search"] [data-tab-view="search"] {
  visibility: visible;
}

.phone-screen[data-tab]:not([data-tab="journal"]) .dm-journal {
  visibility: hidden;
}

/* Nothing of a screen that is not showing shows: not what has made itself
   visible again inside it (a card that has joined the day, a bar, what has
   been said in Chat). */
.phone-screen[data-tab]:not([data-tab="journal"]) .dm-journal *,
.phone-screen:not([data-tab="chat"]) [data-tab-view="chat"] *,
.phone-screen:not([data-tab="ideas"]) [data-tab-view="ideas"] *,
.phone-screen:not([data-tab="friends"]) [data-tab-view="friends"] *,
.phone-screen:not([data-tab="search"]) [data-tab-view="search"] * {
  visibility: hidden !important;
}

.demo-phone .ph-tab:focus-visible,
.demo-phone .ph-tab-search:focus-visible {
  border-radius: 999px;
}

/* ---- Chat: Chat List and New Chat; its question until something is
   asked; the thread; Add attachment and the field over the tab
   bar. data-chat says how far the asking has got: empty, typing, thinking,
   answered. */
.dm-chat-bar {
  padding-top: calc(var(--pt) * 7.5);
}

.dm-chat-bar > :last-child {
  justify-self: end;
}

.dm-chat-scroll {
  position: absolute;
  inset: calc(var(--pt) * 112) 0 0;
}

.dm-thread {
  padding: calc(var(--pt) * 10) calc(var(--pt) * 16) calc(var(--pt) * 176);
}

.dm-chat-empty {
  position: absolute;
  inset: calc(var(--pt) * 112) 0 calc(var(--pt) * 152);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: calc(var(--pt) * 14);
  font-family: var(--font-ios);
  font-size: calc(var(--pt) * 20);
  letter-spacing: -0.01em;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.dm-chat:not([data-chat="empty"], [data-chat="typing"]) .dm-chat-empty {
  opacity: 0;
}

/* What is said comes up into its place; what has not been said yet takes
   no part. */
.dm-said,
.dm-chat-card,
.dm-chat-note {
  opacity: 0;
  visibility: hidden;
  translate: 0 calc(var(--pt) * 10);
}

.dm-chat:is([data-chat="thinking"], [data-chat="answered"]) .dm-said,
.dm-chat[data-chat="answered"] :is(.dm-chat-card, .dm-chat-note) {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 260ms ease, translate 420ms var(--drawer);
}

.dm-chat[data-chat="answered"] .dm-chat-card {
  transition-delay: 320ms;
}

.dm-chat[data-chat="answered"] .dm-chat-note {
  transition-delay: 460ms;
}

.demo[data-ready] .dm-chat[data-chat="answered"] .dm-chat-card:is(:active, .is-pressed) {
  scale: 0.985;
  transition: scale 140ms var(--ease-out);
}

/* While the answer is being found, three dots stand where it will be: the
   answer is not seen until it is given, not even as its row comes in. */
.dm-chat .chat-answer {
  transition: opacity 240ms ease;
}

.dm-chat:not([data-chat="answered"]) .chat-answer {
  opacity: 0;
  transition: none;
}

.dm-chat[data-chat="thinking"] .chat-thinking {
  display: block;
}

.dm-chat[data-chat="thinking"] .dots i {
  animation: dm-dot 1100ms ease-in-out infinite;
}

.dm-chat .dots i:nth-child(2) {
  animation-delay: 160ms;
}

.dm-chat .dots i:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes dm-dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
  }

  30% {
    opacity: 0.85;
  }
}

.demo-phone .dm-chat-card {
  display: block;
  width: 100%;
}

.dm-chat-card .ph-card-row {
  text-align: left;
}

.dm-chat-note {
  margin: 0;
}

.dm-ask {
  position: absolute;
  left: calc(var(--pt) * 16);
  right: calc(var(--pt) * 16);
  bottom: calc(var(--pt) * 92);
  z-index: 6;
  display: flex;
  gap: calc(var(--pt) * 8);
  font-family: var(--font-ios);
}

.dm-ask .ph-round {
  flex: none;
  font-size: calc(var(--pt) * 19);
}

.demo-phone .dm-ask-field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: calc(var(--pt) * 44);
  padding-left: calc(var(--pt) * 18);
  border-radius: 999px;
  font-size: calc(var(--pt) * 17);
  letter-spacing: -0.01em;
}

.demo[data-ready] .dm-ask-field {
  cursor: text;
}

.dm-ask-text {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.dm-ask-placeholder {
  color: var(--text-2);
}

/* The words asked: once they are longer than the field their end stays in
   view and their start goes out on the left, as a text field scrolls. */
.dm-ask-typed {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
}

.dm-ask-typed::after {
  content: "";
  flex: 1 0 0;
}

.dm-ask-typed:empty,
.dm-ask-typed:not(:empty) + .dm-ask-placeholder {
  display: none;
}

.dm-ask-mic {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--pt) * 44);
  font-size: calc(var(--pt) * 19);
}

/* ---- Ideas, Friends and Search share a page's parts: a large title, and
   an empty page's mark, words and button. */
.dm-large {
  margin: calc(var(--pt) * 8) calc(var(--pt) * 21) 0;
  font-family: var(--font-ios);
  font-size: calc(var(--pt) * 34);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.dm-large-fixed {
  position: absolute;
  top: calc(var(--pt) * 62);
  left: calc(var(--pt) * 16);
  margin: 0;
}

.dm-empty {
  position: absolute;
  inset: calc(var(--pt) * 130) calc(var(--pt) * 44) calc(var(--pt) * 110);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: calc(var(--pt) * 4);
  font-family: var(--font-ios);
  font-size: calc(var(--pt) * 17);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text-2);
}

.dm-empty b {
  font-size: calc(var(--pt) * 20);
  font-weight: 700;
  color: var(--ink);
}

.dm-empty-mark {
  margin-bottom: calc(var(--pt) * 14);
  font-size: calc(var(--pt) * 36);
}

/* ---- Ideas: its title and its groups. Import and AI Access are each a row
   of cards that runs off the screen's edge and is scrolled sideways;
   Connectors is a list; the page scrolls up and down. */
.dm-page {
  position: absolute;
  inset: calc(var(--pt) * 54) 0 0;
}

.dm-page-in {
  padding-bottom: calc(var(--pt) * 120);
  font-family: var(--font-ios);
}

.dm-group {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 7);
  margin: calc(var(--pt) * 22) calc(var(--pt) * 21) 0;
  font-size: calc(var(--pt) * 20);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dm-group .sf {
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

.dm-group-note {
  margin: calc(var(--pt) * 4) calc(var(--pt) * 21) 0;
  font-size: calc(var(--pt) * 15);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.dm-ideas-row {
  margin-top: calc(var(--pt) * 14);
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.dm-ideas-row::-webkit-scrollbar {
  display: none;
}

.dm-ideas-in {
  display: flex;
  gap: calc(var(--pt) * 16);
  width: max-content;
  padding: calc(var(--pt) * 2) calc(var(--pt) * 21) calc(var(--pt) * 22);
}

.dm-idea {
  display: grid;
  align-content: start;
  width: calc(var(--pt) * 242);
  min-height: calc(var(--pt) * 144);
  padding: calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 28);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt) * 7) calc(var(--pt) * 12) rgb(0 0 0 / 0.07);
  font-size: calc(var(--pt) * 13);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.dm-idea-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dm-idea-icon {
  width: calc(var(--pt) * 49);
  height: calc(var(--pt) * 49);
  border-radius: calc(var(--pt) * 11);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

.dm-idea-go {
  padding-top: calc(var(--pt) * 12);
  font-size: calc(var(--pt) * 13);
  color: var(--text-3, var(--text-2));
  opacity: 0.6;
}

.dm-idea b {
  margin-top: calc(var(--pt) * 13);
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
  color: var(--ink);
}

/* Connectors: a list down the page, each a mark, a name and the app's line. */
.dm-conns {
  display: grid;
  gap: calc(var(--pt) * 15);
  margin: calc(var(--pt) * 14) calc(var(--pt) * 21) 0;
}

.dm-conn {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 15);
  min-height: calc(var(--pt) * 98);
  padding: calc(var(--pt) * 16) calc(var(--pt) * 17);
  border-radius: calc(var(--pt) * 28);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt) * 7) calc(var(--pt) * 12) rgb(0 0 0 / 0.07);
}

.dm-conn .dm-idea-icon {
  flex: none;
}

.dm-conn-words {
  display: grid;
  gap: calc(var(--pt) * 2);
  min-width: 0;
  font-size: calc(var(--pt) * 15);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.dm-conn-words b {
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  color: var(--ink);
}

/* ---- Friends: Add Friends at the top right and the title. */
.dm-page-bar {
  display: flex;
  justify-content: flex-end;
  padding: calc(var(--pt) * 7.5) calc(var(--pt) * 16) 0;
}

.dm-page-bar .ph-round {
  font-size: calc(var(--pt) * 17);
}

.dm-friends .dm-empty {
  inset-inline: calc(var(--pt) * 72);
}

/* ---- Search, as it opens: its picture and words, the field and Close
   over the system's keyboard. There is no tab bar while it is open. */
.dm-search-empty {
  inset: calc(var(--pt) * 150) calc(var(--pt) * 36) auto;
}

.dm-search-pic {
  width: calc(var(--pt) * 132);
  margin-bottom: calc(var(--pt) * 22);
}

.dm-search-pic img {
  display: block;
  width: 100%;
  height: auto;
}

.dm-find {
  position: absolute;
  left: calc(var(--pt) * 9);
  right: calc(var(--pt) * 9);
  top: calc(var(--pt) * 492);
  z-index: 6;
  display: flex;
  gap: calc(var(--pt) * 8);
  font-family: var(--font-ios);
}

.dm-find-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: calc(var(--pt) * 8);
  min-width: 0;
  height: calc(var(--pt) * 44);
  padding: 0 calc(var(--pt) * 14);
  border-radius: 999px;
  font-size: calc(var(--pt) * 17);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text-2);
}

.dm-find-field .sf {
  flex: none;
  font-size: calc(var(--pt) * 16);
  color: var(--ink);
}

.dm-find-field span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-find .ph-round {
  flex: none;
  font-size: calc(var(--pt) * 17);
}

/* The system's keyboard, as it stands under the field: drawn, and dead. */
.dm-kb {
  --kb: color-mix(in srgb, var(--ink) 12%, var(--page));
  --kb-key: #fff;
  --kb-off: color-mix(in srgb, var(--ink) 18%, var(--page));
  position: absolute;
  inset: calc(var(--pt) * 546) 0 0;
  border-radius: calc(var(--pt) * 30) calc(var(--pt) * 30) 0 0;
  background: var(--kb);
  font-family: var(--font-ios);
}

@media (prefers-color-scheme: dark) {
  .dm-kb {
    --kb: color-mix(in srgb, var(--ink) 17%, var(--page));
    --kb-key: color-mix(in srgb, var(--ink) 42%, var(--page));
    --kb-off: color-mix(in srgb, var(--ink) 26%, var(--page));
  }
}

.dm-kb-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: calc(var(--pt) * 50);
}

.dm-kb-bar i {
  width: 1px;
  height: calc(var(--pt) * 22);
  background: var(--line-2);
}

.dm-keys {
  display: flex;
  justify-content: center;
  gap: calc(var(--pt) * 6);
  margin-bottom: calc(var(--pt) * 12.5);
}

.dm-key {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 33);
  height: calc(var(--pt) * 42);
  border-radius: calc(var(--pt) * 8.5);
  background: var(--kb-key);
  box-shadow: 0 calc(var(--pt) * 1) 0 rgb(0 0 0 / 0.22);
  font-size: calc(var(--pt) * 22);
  line-height: 1;
  color: var(--ink);
}

.dm-key-wide {
  width: calc(var(--pt) * 44);
  font-size: calc(var(--pt) * 19);
}

.dm-key-wide:first-child {
  margin-right: calc(var(--pt) * 8);
}

.dm-key-wide:last-child {
  margin-left: calc(var(--pt) * 8);
}

.dm-key-123 {
  width: calc(var(--pt) * 92);
  font-size: calc(var(--pt) * 16);
}

.dm-key-space {
  width: calc(var(--pt) * 189);
}

.dm-key-go {
  width: calc(var(--pt) * 93);
  background: var(--kb-off);
  font-size: calc(var(--pt) * 17);
  color: var(--text-2);
}

.dm-kb-foot {
  display: flex;
  justify-content: space-between;
  padding: calc(var(--pt) * 9) calc(var(--pt) * 30) 0;
  font-size: calc(var(--pt) * 24);
}

/* ---- The Journal: the toolbar and the week on a grey head, the day under
   them, Create over the tab bar. */
.dm-top {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--pt) * 206);
  background: color-mix(in srgb, var(--ink) 3.5%, var(--page));
}

.dm-toolbar {
  padding-top: calc(var(--pt) * 7.5);
}

.dm-toolbar > :last-child {
  justify-self: end;
}

.dm-dates {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: calc(var(--pt) * 25) calc(var(--pt) * 14) 0;
  text-align: center;
}

.dm-date {
  position: relative;
  display: grid;
  align-content: start;
  gap: calc(var(--pt) * 5);
  height: calc(var(--pt) * 61);
  padding-top: calc(var(--pt) * 9);
}

.dm-date span {
  position: relative;
  font-size: calc(var(--pt) * 12);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.dm-date b {
  position: relative;
  font-size: calc(var(--pt) * 22);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dm-date.is-selected::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pt) * 2.7);
  border-radius: calc(var(--pt) * 16);
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.dm-date.is-selected span {
  color: var(--ink);
}

.dm-date.is-selected b {
  font-weight: 600;
}

.dm-date.is-today b {
  color: var(--blue);
}

.dm-scroll {
  inset: calc(var(--pt) * 206) 0 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.dm-feed {
  padding: calc(var(--pt) * 28) calc(var(--pt) * 16) calc(var(--pt) * 190);
}

/* A photo card's photos: two and a half fit from the words' edge to the
   card's own, which clips them; a card with three or four is scrolled
   sideways, by a finger, a sideways wheel or the mouse's drag, to its last
   photo clear of the edge. The screen keeps the scroll up and down. */
.ph-card > .dm-thumbs {
  display: block;
  /* However many photos, the row is as wide as its card allows. */
  contain: inline-size;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.dm-thumbs::-webkit-scrollbar {
  display: none;
}

.dm-thumbs-in {
  display: flex;
  gap: calc(var(--pt) * 8);
  width: max-content;
  padding-right: calc(var(--pt) * 16);
}

.dm-thumbs .ph-thumb {
  width: calc(var(--pt) * 114.4);
}

/* The day as it stands: what is there only by the evening waits for it, and
   what was only to come is gone by then. The route is the legs travelled:
   by the morning the first one or two (`dm-reach-<n>`, from the day's
   marks), and the whole loop by the evening. A leg is there or it is not,
   as a mark is: nothing draws itself, so Reduce Motion changes nothing. */
.phone-screen:not(.is-later) .dm-later,
.phone-screen.is-later .dm-early,
.phone-screen:not(.is-later) .dm-reach-0 .route-run,
.phone-screen:not(.is-later) .dm-reach-1 .route-run:not(.l1),
.phone-screen:not(.is-later) .dm-reach-2 .route-run:not(.l1, .l2),
.phone-screen:not(.is-later) .dm-reach-3 .route-run:not(.l1, .l2, .l3) {
  display: none;
}

/* The recording's card is out of the day until it is saved, then takes its
   place in it. */
.dm-newcard {
  position: absolute;
  width: calc(100% - var(--pt) * 32);
  visibility: hidden;
  opacity: 0;
  scale: 0.96;
  transform-origin: 50% 0;
}

.dm-newcard .ph-card-row {
  text-align: left;
}

.is-saved .dm-newcard {
  position: relative;
  width: auto;
  visibility: visible;
  opacity: 1;
  scale: 1;
  transition: opacity 320ms ease 260ms, scale 520ms var(--drawer) 260ms;
}

.demo[data-ready] .is-saved .dm-newcard:is(:active, .is-pressed) {
  scale: 0.985;
  transition: scale 140ms var(--ease-out);
}

.dm-create {
  position: absolute;
  left: calc(50% - var(--pt) * 31);
  bottom: calc(var(--pt) * 91);
  z-index: 7;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 62);
  height: calc(var(--pt) * 62);
  border-radius: 999px;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 6) calc(var(--pt) * 18) rgb(0 0 0 / 0.14);
  font-size: calc(var(--pt) * 24);
  transition: scale 140ms var(--ease-out), opacity 180ms ease, translate 500ms var(--drawer);
}

/* While a recording is put away its bar takes Create's place above the
   tabs, and Create stands over the bar. */
.is-away .dm-create {
  translate: 0 calc(var(--pt) * -56);
}

.is-menu .dm-create {
  opacity: 0;
  scale: 0.9;
}

.dm-bar {
  position: absolute;
  left: calc(var(--pt) * 21);
  right: calc(var(--pt) * 21);
  bottom: calc(var(--pt) * 93);
  z-index: 6;
  display: flex;
  align-items: center;
  height: calc(var(--pt) * 44);
  border-radius: 999px;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 4) calc(var(--pt) * 14) rgb(0 0 0 / 0.1);
  opacity: 0;
  translate: 0 calc(var(--pt) * 14);
  visibility: hidden;
  transition: opacity 180ms ease, translate 420ms var(--drawer), visibility 0s linear 420ms;
}

.is-away .dm-bar {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  transition: opacity 240ms ease 120ms, translate 500ms var(--drawer) 60ms, visibility 0s;
}

.dm-bar-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: calc(var(--pt) * 10);
  min-width: 0;
  height: 100%;
  padding-left: calc(var(--pt) * 9);
  border-radius: 999px;
}

.dm-bar-time {
  flex: none;
  height: calc(var(--pt) * 30);
  padding: 0 calc(var(--pt) * 11);
  font-size: calc(var(--pt) * 15);
}

/* The words being said, their end in view, their start fading out. */
.dm-bar-words {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  font-size: calc(var(--pt) * 17);
  color: var(--text-2);
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 calc(var(--pt) * 22));
  mask-image: linear-gradient(to right, transparent, #000 calc(var(--pt) * 22));
}

.dm-bar-stop {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--pt) * 44);
  height: calc(var(--pt) * 44);
  border-radius: 999px;
  font-size: calc(var(--pt) * 13);
}

/* Create's menu: it grows out of the button and goes back into it. */
.dm-menu-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  visibility: hidden;
  transition: visibility 0s linear 200ms;
}

.is-menu .dm-menu-layer {
  visibility: visible;
  transition: none;
}

.dm-menu-away {
  position: absolute;
  inset: 0;
}

.dm-menu {
  position: absolute;
  left: calc(50% - var(--pt) * 125);
  bottom: calc(var(--pt) * 89);
  width: calc(var(--pt) * 250);
  padding: calc(var(--pt) * 10) 0;
  border-radius: calc(var(--pt) * 34);
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 18) calc(var(--pt) * 48) rgb(0 0 0 / 0.22);
  opacity: 0;
  scale: 0.5;
  transform-origin: 50% calc(100% - var(--pt) * 33);
  transition: scale 200ms var(--ease-out), opacity 160ms ease;
}

.is-menu .dm-menu {
  opacity: 1;
  scale: 1;
  transition: scale 360ms var(--drawer), opacity 140ms ease;
}

.dm-item {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--pt) * 48) 1fr;
  align-items: center;
  width: 100%;
  height: calc(var(--pt) * 42);
  padding: 0 calc(var(--pt) * 16) 0 calc(var(--pt) * 15.5);
  font-size: calc(var(--pt) * 17);
}

.dm-item .sf {
  justify-self: center;
  font-size: calc(var(--pt) * 18);
}

button.dm-item {
  border-radius: calc(var(--pt) * 14);
}

.dm-menu-rule {
  display: block;
  height: 0.5px;
  margin: calc(var(--pt) * 10) calc(var(--pt) * 23.5);
  background: var(--line-2);
}

/* ---- The recorder: Put Away, the time in red, the microphone and More;
   the newest hint over the transcript; the row. */
.dm-recorder {
  display: flex;
  flex-direction: column;
  gap: calc(var(--pt) * 14);
  padding-bottom: calc(var(--pt) * 50);
}

.dm-nav {
  display: flex;
  gap: calc(var(--pt) * 10);
  padding-top: calc(var(--pt) * 7.5);
}

.dm-nav .ph-round {
  flex: none;
}

.dm-mic {
  display: flex;
  flex: 1;
  align-items: center;
  gap: calc(var(--pt) * 8);
  min-width: 0;
  height: calc(var(--pt) * 44);
  padding: 0 calc(var(--pt) * 14);
  border-radius: 999px;
  background: var(--ph-fill);
  box-shadow: 0 0 0 0.5px var(--line-2);
  font-size: calc(var(--pt) * 17);
}

.dm-mic .sf {
  font-size: calc(var(--pt) * 19);
}

.dm-mic span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-live {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: clip;
}

/* A hint comes down over the transcript's place, and the transcript moves
   down for it by the hint's own height, which demo.js measures as the
   recorder opens. */
.dm-cards {
  position: absolute;
  inset: 0 calc(var(--pt) * 16) auto;
  z-index: 1;
  align-items: start;
}

.dm-cards > .hx-card {
  margin: 0;
  opacity: 0;
  translate: 0 calc(var(--pt) * -14);
  scale: 0.98;
  transition: opacity 180ms ease, translate 200ms var(--ease-out), scale 200ms var(--ease-out);
}

.dm-cards > .hx-card.is-on {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition: opacity 260ms ease 80ms, translate 460ms var(--drawer), scale 460ms var(--drawer);
}

.dm-tx {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 460ms var(--drawer);
}

.dm-turns {
  display: grid;
  gap: calc(var(--pt) * 18);
}

.dm-tx .hx-turn {
  opacity: 0;
  translate: 0 calc(var(--pt) * 8);
  transition: opacity 280ms ease, translate 420ms var(--drawer);
}

.dm-tx .hx-turn.is-on {
  opacity: 1;
  translate: 0 0;
}

/* The recorder's row: the four round buttons and Save, on one line. (It
   was named as the lists' rows are, and since those became a grid of three
   columns it had broken into two lines.) */
.dm-rec-row {
  padding: 0 calc(var(--pt) * 22);
}

/* ---- The saved recording: the switch, the transcript or the Summary,
   the player. */
/* The switch is 216 points wide, and wider where a language's words need
   it, up to the room between Close and More. */
.demo-phone .dm-seg {
  width: max-content;
  min-width: calc(var(--pt) * 216);
  max-width: calc(100% - var(--pt) * 108);
}

.dm-seg button {
  position: relative;
  padding: calc(var(--pt) * 7) calc(var(--pt) * 6);
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
}

.dm-seg .ph-seg-thumb {
  transition: translate 320ms var(--drawer);
}

.dm-seg.is-summary .ph-seg-thumb {
  translate: 0 0;
}

.dm-pane {
  position: absolute;
  inset: calc(var(--pt) * 104) 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.dm-pane.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease 60ms, visibility 0s;
}

/* With no script the saved page, never shown, would show its Summary. */
.dm-saved:not([data-pane]) .dm-pane-sum {
  opacity: 1;
  visibility: visible;
}

.dm-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--pt) * 14);
  background: var(--accent-12);
  opacity: 0;
  transition: opacity 320ms ease;
}

.dm-line.is-playing {
  background: none;
}

.dm-line.is-playing::before {
  opacity: 1;
}

.dm-line > span {
  position: relative;
}

.dm-pane-sum .summary-pan {
  position: relative;
}

/* The Subheading that opens: folded among its row, or open across the
   column, as two layouts of the same cards; demo.js moves them from one to
   the other. */
.demo-phone .dm-card {
  position: relative;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.dm-card.tc-open {
  display: block;
}

.dm-card-in {
  position: relative;
  display: block;
}

.dm-opened,
.dm-block.is-open .dm-folded {
  display: none;
}

.dm-block.is-open .dm-opened {
  display: grid;
}

.dm-player .ph-player-pic,
.dm-player .ph-player-name {
  opacity: 0;
  transition: opacity 240ms ease;
}

.dm-player .ph-player-pic.is-on,
.dm-player .ph-player-name.is-on {
  opacity: 1;
}

.dm-player .ph-progress i {
  transform: scaleX(0);
}

.dm-player .ph-player-btn {
  position: relative;
  border-radius: 999px;
}

.dm-glyph {
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  transition: opacity 140ms ease, scale 200ms var(--ease-out);
}

.dm-glyph-pause,
[aria-pressed="true"] > .dm-glyph-play {
  opacity: 0;
  scale: 0.8;
}

[aria-pressed="true"] > .dm-glyph-pause {
  opacity: 1;
  scale: 1;
}

.dm-item,
.hx-save,
.dm-seg button,
.demo-phone .dm-card {
  position: relative;
}

/* Reduce Motion: sheets, the menu and the hints fade where they stand,
   nothing slides or grows, and the next tap is a still ring. */
@media (prefers-reduced-motion: reduce) {
  .dm-sheet,
  .dm-sheet.is-up {
    translate: 0 0;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }

  .dm-sheet {
    opacity: 0;
  }

  .dm-sheet.is-up {
    opacity: 1;
    transition: opacity 200ms ease, visibility 0s;
  }

  .dm-menu,
  .is-menu .dm-menu,
  .is-menu .dm-create,
  .dm-cards > .hx-card,
  .dm-cards > .hx-card.is-on,
  .is-saved .dm-newcard,
  .dm-newcard {
    scale: 1;
    translate: 0 0;
    transition: opacity 200ms ease;
  }

  .dm-bar,
  .is-away .dm-bar {
    translate: 0 0;
    transition: opacity 200ms ease, visibility 0s;
  }

  .dm-tx,
  .dm-create,
  .dm-seg .ph-seg-thumb,
  .dm-pane-sum .summary-pan,
  :where(.demo-phone) [data-act] {
    transition: opacity 200ms ease;
  }

  .dm-tx .hx-turn,
  .dm-tx .hx-turn.is-on {
    translate: 0 0;
    transition: opacity 240ms ease;
  }

  .dm-said,
  .dm-chat-card,
  .dm-chat-note,
  .dm-chat:is([data-chat="thinking"], [data-chat="answered"]) .dm-said,
  .dm-chat[data-chat="answered"] :is(.dm-chat-card, .dm-chat-note) {
    translate: 0 0;
    transition: opacity 240ms ease;
  }

  .dm-chat[data-chat="thinking"] .dots i {
    animation: none;
  }

  .demo[data-ready] [data-act]:active {
    scale: 1;
  }

}

/* ---- The app's yellow (owner, 14 November 2026: "我们 2.0.4 新版本 用了黄色
   的强调色"). Version 2.0.4's theme, inside the demo's phone only: a yellow
   that is always a fill, a light yellow for the quiet version, and a dark
   yellow for the words on either and for theme-coloured words on the page.
   The values are the site's own tokens (styles.css, "Yellow"), so one line
   changes each. A button in the app's content is a solid capsule; what sits
   on the bars' layer stays glass, and the tab bar is as it was. */
.demo-phone {
  --th: var(--mark);
  --th-on: var(--on-mark);
  --th-quiet: #f7f3cb;
  --th-text: var(--on-mark);
  --th-card: var(--on-mark);
  --sheet: #ffffff;
  --sheet-grey: #f2f2f7;
  --box: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .demo-phone {
    --th-quiet: color-mix(in srgb, var(--mark) 27%, #1c1c1e);
    --th-text: var(--mark);
    --sheet: #1c1c1e;
    --sheet-grey: #1c1c1e;
    --box: #2c2c2e;
  }
}

/* Today's number, where it was blue. */
.demo-phone .dm-date.is-today b {
  color: var(--th-text);
}

/* Where no picture of 2.0.4 shows a control, the theme's pattern is
   applied (README lists these as inferred): the recorder's Save is a button
   in content, so a yellow capsule; the line being played, and the turn
   being said, are marked in the quiet yellow where the mark was a tint. */
.demo-phone .hx-save {
  background: var(--th);
  color: var(--th-on);
}

.demo-phone .dm-line::before,
.demo-phone .hx-turn::before {
  background: var(--th-quiet);
}

/* On the mark, a line's time is in the line's own colour, a little quieter:
   the page's grey falls short of 4.5 to 1 on the dark page's mark. */
.demo-phone .dm-line.is-playing .ph-line-time {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* The Journal's toolbar: Settings and the gift at the left. */
.dm-lead {
  display: flex;
  gap: calc(var(--pt) * 12);
}

/* (They are round buttons, which are glass further down: three classes, so
   that the yellow holds.) */
.demo-phone button.ph-round.dm-gift,
.demo-phone button.ph-round.dm-done {
  --g-tint: var(--th);
  --g-solid: var(--th);
  background: var(--th);
  color: var(--th-on);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.dm-toolbar button.ph-round {
  justify-self: start;
}

.dm-toolbar > button.ph-round:last-child {
  justify-self: end;
}

/* ---- Layers: what opens over the tabs. A sheet comes up from the screen's
   foot and leaves the page dimmed over it; a page pushed inside a sheet, or
   over a tab, comes from the right; a menu grows from its button. Only
   transform and opacity move. */
.dm-scrim {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgb(0 0 0 / 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.has-sheet .dm-scrim {
  opacity: 1;
}

.dm-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  visibility: hidden;
  font-family: var(--font-ios);
  letter-spacing: -0.01em;
}

.dm-layer.is-up {
  visibility: visible;
}

.dm-layer-sheet,
.dm-layer-sub {
  top: calc(var(--pt) * 62);
  overflow: clip;
  border-radius: calc(var(--pt) * 38) calc(var(--pt) * 38) 0 0;
  background: var(--sheet);
  translate: 0 100%;
  transition: translate 420ms var(--drawer), visibility 0s linear 420ms;
}

.dm-layer-grey {
  --sheet: var(--sheet-grey);
}

.dm-layer-sub,
.dm-layer-page {
  translate: 100% 0;
  transition: translate 380ms var(--drawer), visibility 0s linear 380ms;
}

.dm-layer-page {
  padding-top: calc(var(--pt) * 54);
  background: var(--page);
}

:is(.dm-layer-sheet, .dm-layer-sub, .dm-layer-page).is-up {
  translate: 0 0;
  transition: translate 500ms var(--drawer), visibility 0s;
}

.dm-layer-menu {
  z-index: 10;
}

.dm-menu-more {
  top: calc(var(--pt) * 58);
  right: calc(var(--pt) * 16);
  bottom: auto;
  left: auto;
  transform-origin: calc(100% - var(--pt) * 22) 0;
}

.dm-layer-menu.is-up .dm-menu {
  opacity: 1;
  scale: 1;
  transition: scale 360ms var(--drawer), opacity 140ms ease;
}

/* A sheet's bar, its scrolling part and the button at its foot. */
.dm-sheet-bar,
.dm-cal-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(var(--pt) * 17) calc(var(--pt) * 16) 0;
}

.dm-cal-bar {
  padding-top: calc(var(--pt) * 8);
}

.dm-sheet-bar > :last-child {
  justify-self: end;
}

.dm-sheet-bar > :first-child,
.dm-cal-bar > :first-child {
  justify-self: start;
}

.dm-sheet-title {
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}

.dm-cap {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 4);
  height: calc(var(--pt) * 44);
  padding: 0 calc(var(--pt) * 14);
  border-radius: 999px;
  background: var(--g-tint, var(--ph-fill));
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 4) calc(var(--pt) * 14) rgb(0 0 0 / 0.08);
  font-size: calc(var(--pt) * 17);
  font-weight: 500;
  white-space: nowrap;
}

.dm-cap .sf {
  font-size: calc(var(--pt) * 17);
}

.dm-cap-solid {
  background: var(--th);
  box-shadow: none;
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
  color: var(--th-on);
}

/* A button in the app's content: a solid capsule in the theme's yellow. */
.dm-solid {
  display: block;
  width: 100%;
  height: calc(var(--pt) * 50);
  border-radius: 999px;
  background: var(--th);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  text-align: center;
  color: var(--th-on);
}

.dm-sheet-scroll {
  position: absolute;
  inset: calc(var(--pt) * 72) 0 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 calc(var(--pt) * 16) calc(var(--pt) * 120);
  font-size: calc(var(--pt) * 17);
  line-height: 1.3;
}

.dm-sheet-scroll::-webkit-scrollbar,
.dm-cal-scroll::-webkit-scrollbar {
  display: none;
}

.dm-sheet-foot {
  position: absolute;
  inset: auto calc(var(--pt) * 16) calc(var(--pt) * 41);
  z-index: 2;
}

/* ---- Earn Credits: the dark-yellow card and its title, in capitals. */
.dm-earn {
  margin-top: calc(var(--pt) * 6);
  padding: calc(var(--pt) * 26) calc(var(--pt) * 20) calc(var(--pt) * 20);
  border-radius: calc(var(--pt) * 34);
  background: var(--th-card);
  color: #ffffff;
}

.dm-earn-title {
  margin: 0 -11% calc(var(--pt) * 20);
  font-size: calc(var(--pt) * 33);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--th);
  transform: scaleX(0.82);
}

/* The friends who might join, as the app's card shows them: six portraits
   in a row that runs off the card's sides. */
.dm-earn-faces {
  display: flex;
  gap: calc(var(--pt) * 17);
  margin: calc(var(--pt) * 34) calc(var(--pt) * -20) calc(var(--pt) * 32);
  overflow: clip;
}

.dm-earn-faces img {
  flex: none;
  width: calc(var(--pt) * 60);
  height: calc(var(--pt) * 60);
  border-radius: 50%;
  translate: calc(var(--pt) * -30) 0;
}

.dm-earn-row {
  display: grid;
  grid-template-columns: calc(var(--pt) * 36) 1fr;
  margin-top: calc(var(--pt) * 14);
}

.dm-earn-row > .sf {
  margin-top: calc(var(--pt) * 2);
  font-size: calc(var(--pt) * 17);
}

.dm-earn-row > span {
  display: grid;
  gap: calc(var(--pt) * 3);
}

.dm-earn-row b {
  font-weight: 600;
}

.dm-earn-row span span {
  font-size: calc(var(--pt) * 15);
  color: rgb(255 255 255 / 0.62);
}

.dm-earn-row span span b {
  color: #ffffff;
}

.dm-levels {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--pt) * 5) calc(var(--pt) * 14);
  margin-top: calc(var(--pt) * 6);
}

.dm-level {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
}

.dm-level i {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 15);
  height: calc(var(--pt) * 15);
  border-radius: 50%;
  background: #ffffff;
  font-size: calc(var(--pt) * 10.5);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: var(--th-card);
}

.dm-earn-label {
  margin-top: calc(var(--pt) * 34);
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
}

.dm-earn-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--pt) * 10);
  min-height: calc(var(--pt) * 56);
  margin-top: calc(var(--pt) * 10);
  padding: calc(var(--pt) * 10) calc(var(--pt) * 10) calc(var(--pt) * 10) calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 28);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32);
}

.dm-earn-code > span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: calc(var(--pt) * 16);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--th);
}

.dm-earn-copy {
  height: calc(var(--pt) * 34);
  padding: 0 calc(var(--pt) * 14);
  border-radius: 999px;
  background: var(--th);
  font-size: calc(var(--pt) * 15);
  font-weight: 600;
  color: var(--th-on);
}

.dm-earn-note {
  margin-top: calc(var(--pt) * 10);
  font-size: calc(var(--pt) * 13);
  color: rgb(255 255 255 / 0.62);
}

/* ---- The parts the sheets share: a box, a list of rows in one, a section's
   title, an empty state. */
.dm-box {
  border-radius: calc(var(--pt) * 26);
  background: var(--box);
}

.dm-layer:not(.dm-layer-grey) .dm-box {
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 8) calc(var(--pt) * 26) rgb(0 0 0 / 0.07);
}

.dm-sheet-large {
  margin: calc(var(--pt) * 4) calc(var(--pt) * 2) calc(var(--pt) * 14);
}

.dm-sec {
  margin: calc(var(--pt) * 26) calc(var(--pt) * 2) 0;
  font-size: calc(var(--pt) * 20);
  font-weight: 600;
}

.dm-sec-quiet {
  margin: calc(var(--pt) * 24) calc(var(--pt) * 20) calc(var(--pt) * 9);
  font-size: calc(var(--pt) * 17);
  color: var(--text-2);
}

.dm-sec-note,
.dm-foot-note {
  margin: calc(var(--pt) * 4) calc(var(--pt) * 2) calc(var(--pt) * 12);
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

.dm-foot-note {
  margin-top: calc(var(--pt) * 10);
  font-size: calc(var(--pt) * 13);
}

.dm-list {
  display: grid;
  padding: calc(var(--pt) * 4) 0;
}

.dm-row {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--pt) * 58) 1fr auto;
  align-items: center;
  width: 100%;
  min-height: calc(var(--pt) * 52);
  padding: calc(var(--pt) * 8) calc(var(--pt) * 18) calc(var(--pt) * 8) calc(var(--pt) * 6);
  font-size: calc(var(--pt) * 17);
  text-align: left;
}

.dm-row + .dm-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pt) * 18) auto calc(var(--pt) * 64);
  height: 0.5px;
  background: var(--line-2);
}

.dm-row > .sf:first-child,
.dm-ring {
  justify-self: center;
  font-size: calc(var(--pt) * 21);
}

.dm-row > .sf:last-child {
  font-size: calc(var(--pt) * 13);
  color: var(--text-3, var(--text-2));
  opacity: 0.6;
}

.dm-row-main {
  display: grid;
  gap: calc(var(--pt) * 2);
}

.dm-row-main b {
  font-weight: 400;
}

.dm-row-main span,
.dm-row-side {
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

.dm-ring {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 22);
  height: calc(var(--pt) * 22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-2) 55%, transparent);
  font-size: calc(var(--pt) * 12);
  font-style: normal;
  color: var(--text-2);
}

.dm-blank {
  display: grid;
  justify-items: center;
  gap: calc(var(--pt) * 4);
  margin: calc(var(--pt) * 26) calc(var(--pt) * 24) calc(var(--pt) * 30);
  text-align: center;
  color: var(--text-2);
}

.dm-blank b {
  font-size: calc(var(--pt) * 20);
  font-weight: 700;
  color: var(--ink);
}

.dm-blank-pic {
  width: calc(var(--pt) * 150);
  margin-bottom: calc(var(--pt) * 16);
}

.dm-blank-pic img {
  width: 100%;
  height: auto;
}

/* Track Referrals' card of numbers. */
.dm-track {
  display: grid;
  gap: calc(var(--pt) * 12);
  padding: calc(var(--pt) * 16) calc(var(--pt) * 16) calc(var(--pt) * 18);
  font-size: calc(var(--pt) * 15);
}

.dm-track-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dm-track-nums > span {
  display: grid;
  gap: calc(var(--pt) * 2);
  color: var(--text-2);
}

.dm-track-nums b {
  font-size: calc(var(--pt) * 22);
  color: var(--ink);
}

.dm-track-level {
  display: grid;
  gap: calc(var(--pt) * 10);
}

.dm-track-level i {
  height: calc(var(--pt) * 4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

/* How Referrals Work. */
.dm-how-title {
  margin: calc(var(--pt) * 14) calc(var(--pt) * 8) 0;
  font-size: calc(var(--pt) * 27);
  font-weight: 700;
  line-height: 1.15;
}

.dm-how-lead {
  margin: calc(var(--pt) * 8) calc(var(--pt) * 8) calc(var(--pt) * 8);
  color: var(--text-2);
}

.dm-how {
  display: grid;
  grid-template-columns: calc(var(--pt) * 38) 1fr;
  margin: calc(var(--pt) * 20) calc(var(--pt) * 8) 0;
}

.dm-how > .sf {
  margin-top: calc(var(--pt) * 2);
  font-size: calc(var(--pt) * 19);
}

.dm-how > span {
  display: grid;
  gap: calc(var(--pt) * 4);
}

.dm-how b {
  font-weight: 600;
}

.dm-how > span > span {
  color: var(--text-2);
}

.dm-how-more {
  margin-top: calc(var(--pt) * 8);
  grid-template-columns: 1fr;
  padding-left: calc(var(--pt) * 38);
}

.dm-how .dm-level i {
  background: var(--ink);
  color: var(--sheet);
}

.dm-how-know {
  margin-top: calc(var(--pt) * 30);
  padding-top: calc(var(--pt) * 26);
  box-shadow: 0 -0.5px 0 var(--line-2);
}

/* Settings' card: the app, its plan, Choose a Plan. */
.dm-plan {
  display: grid;
  gap: calc(var(--pt) * 14);
  margin-top: calc(var(--pt) * 22);
  padding: calc(var(--pt) * 20);
}

.dm-plan-who {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 12);
}

.dm-plan-icon {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 52);
  height: calc(var(--pt) * 52);
  border-radius: var(--icon-r);
  background: #ffffff;
  box-shadow: var(--icon-edge);
}

.dm-plan-icon img {
  width: 100%;
  height: auto;
  border-radius: var(--icon-r);
}

/* AideMemo's icon in the drawn app is the white one on a light screen and
   the dark one on a dark screen: a picture with a source for the dark
   scheme, which lays nothing out of its own. */
:is(.dm-plan-icon, .share-hub, .as-note) > picture {
  display: contents;
}

@media (prefers-color-scheme: dark) {
  .dm-plan-icon {
    background: #000000;
  }
}

.dm-plan-who > span {
  display: grid;
}

.dm-plan-who b {
  font-size: calc(var(--pt) * 20);
  font-weight: 600;
}

.dm-plan-who span span {
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

/* ---- Choose Date: the months down the page under the week's letters. */
.dm-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: calc(var(--pt) * 14);
  padding: 0 calc(var(--pt) * 12) calc(var(--pt) * 6);
  box-shadow: 0 0.5px 0 var(--line-2);
  font-size: calc(var(--pt) * 12);
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
}

.dm-cal-scroll {
  position: absolute;
  inset: calc(var(--pt) * 140) 0 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 calc(var(--pt) * 12) calc(var(--pt) * 120);
}

.dm-cal-month {
  margin: calc(var(--pt) * 34) calc(var(--pt) * 6) calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 24);
  font-weight: 700;
}

.dm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dm-day {
  height: calc(var(--pt) * 78);
  padding-top: calc(var(--pt) * 10);
  font-size: calc(var(--pt) * 17);
  text-align: center;
}

button.dm-day {
  align-self: start;
  height: calc(var(--pt) * 72);
  margin: 0 calc(var(--pt) * 1);
  border-radius: calc(var(--pt) * 14);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-weight: 700;
  color: var(--th-text);
}

.dm-cal-today {
  position: absolute;
  bottom: calc(var(--pt) * 34);
  left: calc(var(--pt) * 28);
}

@media (hover: hover) and (pointer: fine) {
  .demo[data-ready] :is(.dm-solid, .dm-cap-solid, .dm-earn-copy, .dm-gift, .dm-done):hover {
    filter: brightness(0.95);
  }

  .demo[data-ready] button.dm-row:hover {
    background-color: color-mix(in srgb, var(--ink) 5%, transparent);
  }
}

/* ---- A card's head is a button where the card opens something: the row
   as it was drawn, with nothing of a button's own. */
.demo-phone button.ph-card-row {
  width: 100%;
  text-align: left;
}

/* An event, opened where it stands: its time under its title, two small
   round buttons at its corner, and Directions, which starts at the left
   edge of the title and the text, as the app's does (owner, 15 November
   2026: "这个 direction 按钮 应该是靠左一点吧"; it stood 52pt in from there). */
.dm-event-time {
  display: none;
}

/* (Hidden, not removed: its symbols are fetched with the page, so that
   opening a card asks the network for nothing.) */
.dm-event-more {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.dm-event.is-open .dm-event-time {
  display: block;
}

.dm-event.is-open .ph-card-time {
  visibility: hidden;
}

.dm-event.is-open .dm-event-more {
  height: auto;
  overflow: visible;
  visibility: visible;
  padding: calc(var(--pt) * 14) 0 0;
}

.dm-event-tools {
  position: absolute;
  top: calc(var(--pt) * 12);
  right: calc(var(--pt) * 12);
  display: flex;
  gap: calc(var(--pt) * 8);
}

.dm-mini {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 30);
  height: calc(var(--pt) * 30);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-size: calc(var(--pt) * 13);
  color: var(--text-2);
}

.dm-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  height: calc(var(--pt) * 30);
  padding: 0 calc(var(--pt) * 12);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-size: calc(var(--pt) * 13);
  font-weight: 600;
  color: var(--text-2);
}

/* ---- A card's photos, full screen on black. */
.dm-layer-full {
  padding-top: calc(var(--pt) * 54);
  background: #000000;
  color: #ffffff;
  opacity: 0;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.dm-layer-full.is-up {
  opacity: 1;
  transition: opacity 260ms ease, visibility 0s;
}

.dm-view-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(var(--pt) * 8) calc(var(--pt) * 16) 0;
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}

.dm-view-bar > :first-child {
  justify-self: start;
}

.dm-view-bar > :last-child {
  justify-self: end;
}

.demo-phone .dm-cap-dark,
.dm-pair {
  background: rgb(255 255 255 / 0.16);
  box-shadow: none;
  color: #ffffff;
}

.dm-pair {
  display: inline-flex;
  height: calc(var(--pt) * 44);
  border-radius: 999px;
}

.dm-pair button {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 48);
  font-size: calc(var(--pt) * 18);
}

.dm-shots {
  position: absolute;
  inset: calc(var(--pt) * 120) 0 calc(var(--pt) * 60);
  display: flex;
  overflow: auto hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dm-shots::-webkit-scrollbar {
  display: none;
}

.dm-shot {
  flex: none;
  display: grid;
  place-items: center;
  width: 100%;
  scroll-snap-align: center;
}

.dm-shot img {
  width: 100%;
  height: auto;
}

/* ---- New Note, New Event, Import Audio. */
.dm-bar-pair {
  display: flex;
  gap: calc(var(--pt) * 10);
}

.demo-phone .dm-dim {
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.dm-note-blank {
  margin: calc(var(--pt) * 22) calc(var(--pt) * 27) 0;
  font-size: calc(var(--pt) * 17);
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.dm-note-blank::before {
  content: "";
  display: inline-block;
  width: calc(var(--pt) * 2);
  height: calc(var(--pt) * 21);
  margin-right: calc(var(--pt) * 1);
  vertical-align: text-bottom;
  background: var(--th-text);
}

.dm-form {
  position: relative;
  margin-top: calc(var(--pt) * 26);
  padding-left: calc(var(--pt) * 16);
  display: grid;
  gap: calc(var(--pt) * 12);
}

.dm-form::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pt) * 4);
  border-radius: 999px;
  background: var(--th);
}

.dm-field {
  height: calc(var(--pt) * 52);
  padding: 0 calc(var(--pt) * 16);
  border-radius: 999px;
  background: var(--box);
  font-size: calc(var(--pt) * 22);
  font-weight: 600;
  line-height: calc(var(--pt) * 52);
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.dm-row-form {
  grid-template-columns: 1fr auto;
  padding-left: calc(var(--pt) * 20);
}

.dm-rows-plain .dm-row + .dm-row::before {
  left: calc(var(--pt) * 20);
}

.dm-row-pair {
  display: flex;
  gap: calc(var(--pt) * 8);
}

.dm-pill {
  height: calc(var(--pt) * 34);
  padding: 0 calc(var(--pt) * 12);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: calc(var(--pt) * 17);
  white-space: nowrap;
}

.dm-switch {
  position: relative;
  width: calc(var(--pt) * 62);
  height: calc(var(--pt) * 28);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.dm-switch::after {
  content: "";
  position: absolute;
  inset: calc(var(--pt) * 2) auto calc(var(--pt) * 2) calc(var(--pt) * 2);
  width: calc(var(--pt) * 38);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 calc(var(--pt) * 1) calc(var(--pt) * 4) rgb(0 0 0 / 0.2);
}

/* Import Audio is a short sheet, at the screen's foot. */
.dm-layer-short {
  top: auto;
  height: calc(var(--pt) * 452);
}

.dm-import {
  padding: calc(var(--pt) * 40) calc(var(--pt) * 16) 0;
}

.dm-row-tall {
  min-height: calc(var(--pt) * 68);
  padding-left: calc(var(--pt) * 14);
}

.dm-row-app img {
  display: block;
  width: calc(var(--pt) * 32);
  height: calc(var(--pt) * 32);
  border-radius: calc(var(--pt) * 8);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

.dm-row-tall.dm-row + .dm-row-tall::before {
  left: calc(var(--pt) * 64);
}

/* ---- Friends: a card a friend under Shared with You; a friend's page. */
.dm-friends-list {
  position: absolute;
  inset: calc(var(--pt) * 150) 0 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: calc(var(--pt) * 12);
  padding: 0 calc(var(--pt) * 16) calc(var(--pt) * 130);
}

.dm-friends-sec {
  margin: 0 calc(var(--pt) * 2);
}

.demo-phone button.dm-friend {
  width: 100%;
  text-align: left;
}

.dm-face {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 40);
  height: calc(var(--pt) * 40);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 10%, var(--page));
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  color: var(--text-2);
}

.dm-face-big {
  width: calc(var(--pt) * 88);
  height: calc(var(--pt) * 88);
  font-size: calc(var(--pt) * 38);
}

/* A friend's portrait fills the circle (owner, 15 November 2026: "Friends
   需要带头像"); in Share Memories the one for the friend being shared with
   shows. */
.dm-face img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dm-face img[hidden] {
  display: none;
}

.dm-friend-bar {
  position: relative;
  z-index: 2;
}

.dm-friend-bar > :last-child {
  justify-self: end;
}

.dm-sides {
  width: calc(var(--pt) * 218);
}

.dm-friend-page[data-side="shared"] .dm-sides .ph-seg-thumb {
  translate: 0 0;
}

.dm-friend-scroll {
  position: absolute;
  inset: calc(var(--pt) * 112) 0 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 calc(var(--pt) * 16) calc(var(--pt) * 130);
}

.dm-friend-head {
  display: grid;
  justify-items: center;
  gap: calc(var(--pt) * 2);
  margin-top: calc(var(--pt) * 14);
  color: var(--text-2);
  font-size: calc(var(--pt) * 15);
}

.dm-friend-head b {
  margin-top: calc(var(--pt) * 12);
  font-size: calc(var(--pt) * 28);
  font-weight: 700;
  color: var(--ink);
}

.dm-friend-do {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pt) * 8);
  margin-top: calc(var(--pt) * 22);
}

.dm-friend-do .dm-cap {
  justify-content: center;
  font-weight: 600;
}

.dm-side {
  display: grid;
  gap: calc(var(--pt) * 12);
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.dm-friend-page[data-side="received"] .dm-side-received,
.dm-friend-page[data-side="shared"] .dm-side-shared {
  height: auto;
  overflow: visible;
  visibility: visible;
}

.dm-side .dm-sec-quiet {
  margin: calc(var(--pt) * 22) calc(var(--pt) * 6) 0;
}

.dm-note-card {
  display: block;
}

/* A memory that is in the page but not on it: the photo card until its
   photos are there, the note that stands in for it once they are. */
.dm-note-card[hidden] {
  display: none;
}

/* A place a friend shares: the place on Apple's map, 2:1, under the card's
   words where a photo card has its photos, its picture at the middle as
   the pin. */
.dm-place-map {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  margin-top: calc(var(--pt) * 10);
  overflow: hidden;
  border-radius: calc(var(--pt) * 12);
  background: var(--map-land);
}

.dm-place-pin {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 34);
  height: calc(var(--pt) * 34);
  border: calc(var(--pt) * 2) solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 calc(var(--pt) * 1) calc(var(--pt) * 4) rgb(0 0 0 / 0.22);
}

.dm-place-pin img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

/* Photos a friend shares: a row of them under the words, as the Journal's
   photo card has, still: a friend's memories are read, not opened. */
.dm-shared-photos .dm-thumbs {
  overflow: hidden;
}

.dm-solid-fit {
  width: auto;
  height: calc(var(--pt) * 44);
  margin-top: calc(var(--pt) * 22);
  padding: 0 calc(var(--pt) * 18);
}

.dm-item-plain {
  grid-template-columns: 1fr;
  padding-left: calc(var(--pt) * 24);
}

/* ---- Add Friends. */
.dm-with {
  position: relative;
  margin: calc(var(--pt) * 14) calc(var(--pt) * 16) 0;
}

.dm-with-field {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
  width: 100%;
  height: calc(var(--pt) * 48);
  padding: 0 calc(var(--pt) * 17);
  border-radius: 999px;
  box-shadow: 0 0 0 0.5px var(--line-2), 0 calc(var(--pt) * 3) calc(var(--pt) * 12) rgb(0 0 0 / 0.07);
  font-size: calc(var(--pt) * 17);
  color: var(--text-2);
}

.dm-with-field .dm-row-side {
  font-size: calc(var(--pt) * 17);
  opacity: 0.6;
}

.dm-with-add {
  position: absolute;
  top: calc(var(--pt) * 6);
  right: calc(var(--pt) * 6);
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 36);
  height: calc(var(--pt) * 36);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  font-size: calc(var(--pt) * 16);
}

.dm-blank-mid {
  margin-top: calc(var(--pt) * 78);
}

/* ---- Share Memories: three steps down a line. A selector's chosen item is
   a dark-yellow ground with yellow words, the others outlined. */
.dm-share-who {
  margin-bottom: calc(var(--pt) * 22);
}

.dm-share-who b {
  margin-top: calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}

.dm-step {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--pt) * 40) 1fr;
  margin-top: calc(var(--pt) * 14);
}

.dm-step > .dm-ring {
  margin-top: calc(var(--pt) * 20);
  width: calc(var(--pt) * 28);
  height: calc(var(--pt) * 28);
  font-size: calc(var(--pt) * 13);
}

.dm-step + .dm-step::before {
  content: "";
  position: absolute;
  top: calc(var(--pt) * -60);
  left: calc(var(--pt) * 13.5);
  width: 1.5px;
  height: calc(var(--pt) * 76);
  background: color-mix(in srgb, var(--text-2) 30%, transparent);
}

.dm-step-box {
  padding: calc(var(--pt) * 18) calc(var(--pt) * 14) calc(var(--pt) * 16) calc(var(--pt) * 16);
}

.dm-step-head {
  position: relative;
  display: grid;
  gap: calc(var(--pt) * 2);
  margin-bottom: calc(var(--pt) * 14);
  font-size: calc(var(--pt) * 15);
  color: var(--text-2);
}

.dm-step-head b {
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  color: var(--ink);
}

.dm-step-head span {
  font-weight: 600;
}

.dm-all {
  position: absolute;
  top: calc(var(--pt) * -4);
  right: 0;
  height: calc(var(--pt) * 28);
  padding: 0 calc(var(--pt) * 10);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--th-text) 45%, transparent);
  font-size: calc(var(--pt) * 13);
  font-weight: 600;
  color: var(--th-text);
}

.dm-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pt) * 8);
}

.dm-kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--pt) * 46);
  padding: 0 calc(var(--pt) * 12);
  border-radius: calc(var(--pt) * 14);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  font-size: calc(var(--pt) * 15);
}

.dm-kind i {
  width: calc(var(--pt) * 18);
  height: calc(var(--pt) * 18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-2) 55%, transparent);
}

.dm-opts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--pt) * 8);
}

.dm-opt {
  height: calc(var(--pt) * 36);
  padding: 0 calc(var(--pt) * 14);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  font-size: calc(var(--pt) * 15);
}

:is(.dm-kind, .dm-opt)[aria-pressed="true"] {
  background: var(--on-mark);
  box-shadow: none;
  font-weight: 600;
  color: var(--mark);
}

.dm-kind[aria-pressed="true"] i {
  background: var(--mark);
  box-shadow: inset 0 0 0 calc(var(--pt) * 4.5) var(--mark), inset 0 0 0 calc(var(--pt) * 9) var(--on-mark);
}

.dm-solid:disabled {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* Over a card's photos the status bar is white, as iOS draws it on black. */
.phone-screen:has(.dm-layer-full.is-up) .ph-status {
  color: #ffffff;
}

/* ---- Search, with something typed: the field is a real one, and the
   day's memories that hold the words stand under Memories, a capsule for
   each kind found. */
.dm-find-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  caret-color: var(--th-text);
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
}

.dm-find-input::-webkit-search-cancel-button {
  display: none;
}

.dm-find-field {
  position: relative;
  cursor: text;
}

.dm-find-field > span {
  position: absolute;
  left: calc(var(--pt) * 38);
  right: calc(var(--pt) * 12);
  pointer-events: none;
}

.dm-find-input:not(:placeholder-shown) + span {
  display: none;
}

.demo-phone .dm-find-input:focus-visible {
  outline: none;
}

.dm-find-field:focus-within {
  outline: calc(var(--pt) * 2.5) solid var(--blue);
  outline-offset: calc(var(--pt) * 2);
}

.dm-found {
  position: absolute;
  inset: calc(var(--pt) * 62) 0 calc(var(--pt) * 392);
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: calc(var(--pt) * 12);
  padding: 0 calc(var(--pt) * 16) calc(var(--pt) * 20);
  visibility: hidden;
}

.dm-search.is-finding .dm-found {
  visibility: visible;
}

.dm-search.is-finding .dm-search-empty {
  visibility: hidden;
}

.dm-found-kinds {
  margin-top: calc(var(--pt) * 6);
}

.dm-found-kinds .dm-opt {
  height: calc(var(--pt) * 40);
  padding: 0 calc(var(--pt) * 16);
  font-size: calc(var(--pt) * 17);
}

.dm-found-title {
  margin: calc(var(--pt) * 10) calc(var(--pt) * 2) 0;
  font-size: calc(var(--pt) * 24);
}

.dm-found .dm-sec-quiet {
  margin: 0 calc(var(--pt) * 6);
}

.dm-search.is-none :is(.dm-found-title, .dm-sec-quiet) {
  display: none;
}

.dm-result {
  display: block;
}

.demo-phone button.dm-result {
  width: 100%;
  text-align: left;
}

.dm-result[hidden],
.dm-found-kinds [hidden] {
  display: none;
}

/* ---- Help me write: Messages with the AideMemo keyboard, in the demo's
   phone. It takes the screen from AideMemo as another app does, at once.
   The keyboard's states are the screen's (data-write, set by demo.js):
   idle, writing, thinking, typing, done. */
.dm-app {
  z-index: 4;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.dm-app.is-up {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease, visibility 0s;
}

.dm-write .kb-write,
.dm-write .kb-placeholder {
  display: block;
}

.dm-write .kb-think {
  display: grid;
}

.dm-write .kb-x {
  position: absolute;
  right: 0;
  display: grid;
}

.demo-phone .dm-write :is(.kb-write, .kb-think, .kb-x, .kb-idle, .kb-tools, .kb-placeholder, .kb-reply, .im-send) {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s;
}

.dm-write .kb-field {
  grid-template-areas: "one";
}

.dm-write :is(.kb-placeholder, .kb-reply) {
  grid-area: one;
}

.demo-phone .dm-write:not([data-write="writing"]) .kb-write,
.demo-phone .dm-write:not([data-write="thinking"]) .kb-think,
.demo-phone .dm-write:not([data-write="writing"], [data-write="thinking"]) .kb-x,
.demo-phone .dm-write:is([data-write="writing"], [data-write="thinking"]) :is(.kb-idle, .kb-tools),
.demo-phone .dm-write:not([data-write="idle"], [data-write="writing"], [data-write="thinking"]) .kb-placeholder,
.demo-phone .dm-write:is([data-write="idle"], [data-write="writing"], [data-write="thinking"]) :is(.kb-reply, .im-send) {
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.demo-phone .dm-write .im-mic {
  opacity: 0;
}

.demo-phone .dm-write:is([data-write="idle"], [data-write="writing"], [data-write="thinking"]) .im-mic {
  opacity: 1;
}

.demo-phone .dm-write button {
  cursor: pointer;
}

/* The wave moves while the request is said, and rests once it is. */
.dm-write[data-write="writing"]:not(.is-said) .kb-circle-wave i {
  animation: dm-wave 620ms ease-in-out infinite alternate;
}

.dm-write .kb-circle-wave i:nth-child(2) { animation-delay: -180ms; }
.dm-write .kb-circle-wave i:nth-child(3) { animation-delay: -420ms; }
.dm-write .kb-circle-wave i:nth-child(4) { animation-delay: -90ms; }
.dm-write .kb-circle-wave i:nth-child(5) { animation-delay: -300ms; }

@keyframes dm-wave {
  to { transform: scaleY(1); }
}

/* What is said to it: the person's voice, not the phone's, so it stands
   under the phone, in the page's own type, where the line about the demo
   is, and gives the place back. */
.demo {
  position: relative;
}

.demo-said {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: min(100%, 26rem);
  margin: 10px 0 0;
  padding: 9px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-float);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  translate: -50% 6px;
  transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 200ms;
}

.demo-said.is-on {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  transition: opacity 260ms ease 500ms, translate 320ms var(--ease-out) 500ms, visibility 0s linear 500ms;
}

/* ---- Ideas' recorders: DJI Mic's steps, Plaud's Connect. */
.demo-phone button.dm-conn {
  width: 100%;
  text-align: left;
}

.dm-steps {
  display: grid;
  gap: calc(var(--pt) * 18);
  margin: calc(var(--pt) * 26) calc(var(--pt) * 8) calc(var(--pt) * 30);
  padding: 0;
  list-style: none;
}

.dm-steps li {
  display: grid;
  grid-template-columns: calc(var(--pt) * 40) 1fr;
  align-items: start;
}

.dm-steps .dm-ring {
  margin-top: calc(var(--pt) * 1);
  box-shadow: none;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-weight: 600;
}

.dm-solid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pt) * 8);
}

.dm-solid-icon .sf {
  font-size: calc(var(--pt) * 18);
}

.dm-plaud {
  margin-top: calc(var(--pt) * 26);
}

.dm-plaud-icon img {
  display: block;
  width: calc(var(--pt) * 88);
  height: calc(var(--pt) * 88);
  margin-bottom: calc(var(--pt) * 14);
  border-radius: calc(var(--pt) * 20);
  box-shadow: 0 0 0 0.5px var(--line-2);
}

/* ---- The map screen, which the day's map opens (owner, 15 November 2026:
   "另外，这个地图也没有做"). The card is a picture with one button laid over
   the whole of it, so the card answers as a card does: it gives under a
   press and lifts under a pointer, and Apple's Legal link stays above the
   button. In a still of the Journal the button does nothing and shows
   nothing. */
.dm-map-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.demo-phone .dm-map-hit:focus-visible {
  outline-offset: calc(var(--pt) * -3);
}

.dm-map .map-credit {
  pointer-events: none;
}

.dm-map .map-credit a {
  pointer-events: auto;
}

.demo-phone .dm-map {
  transition: scale 140ms var(--ease-out), translate 220ms var(--ease-out), box-shadow 220ms ease;
}

.demo[data-ready] .dm-map:has(.dm-map-hit:is(:active, .is-pressed)) {
  scale: 0.985;
}

.demo[data-ready] .dm-map .dm-map-hit:is(:active, .is-pressed) {
  scale: 1;
}

@media (hover: hover) and (pointer: fine) {
  .demo[data-ready] .dm-map:has(.dm-map-hit:hover) {
    translate: 0 calc(var(--pt) * -1.5);
    box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt) * 12) calc(var(--pt) * 22) rgb(0 0 0 / 0.13);
  }
}

/* The Journal is dragged by its map as by anything else: while it is, the
   card neither gives nor lifts, like every control under a drag. */
.demo[data-ready] .is-grabbing .dm-map:has(.dm-map-hit:is(:active, .is-pressed, :hover)) {
  scale: 1;
  translate: none;
}

/* The screen is the app's map screen, measured from it in points: the map
   under everything, the status bar included; Back and Share 44 across, 16
   from the sides, under the status bar; at the lower left the calendar and
   the route, 48 across, with Apple's attribution over them; at the lower
   right one capsule, 48 by 96, the map's style over the location arrow,
   which is the system's blue; and at the foot a sheet with its grabber and
   Search Places. The controls are the demo's glass (further down). */
.dm-layer-page.dm-map-page {
  padding-top: 0;
  background: var(--map-land);
}

.dm-map-full {
  position: absolute;
  inset: 0;
}

/* Under the status bar the map is washed out a little, so the time reads. */
.dm-map-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: calc(var(--pt) * 74);
  background: linear-gradient(color-mix(in srgb, var(--map-land) 82%, transparent), color-mix(in srgb, var(--map-land) 46%, transparent) 55%, transparent);
  pointer-events: none;
}

.dm-map-bar,
.dm-map-tools,
.dm-map-pair,
.dm-map-sheet,
.map-credit.dm-map-credit {
  position: absolute;
  z-index: 2;
}

.dm-map-bar {
  inset: calc(var(--pt) * 62) calc(var(--pt) * 16) auto;
  display: flex;
  justify-content: space-between;
  /* The bar is a row of two buttons; the map between them is the map's. */
  pointer-events: none;
}

.dm-map-bar .ph-round {
  font-size: calc(var(--pt) * 19);
  pointer-events: auto;
}

.dm-map-tools {
  left: calc(var(--pt) * 22);
  bottom: calc(var(--pt) * 108);
  display: grid;
  gap: calc(var(--pt) * 8);
}

.dm-map-tools .ph-round {
  width: calc(var(--pt) * 48);
  height: calc(var(--pt) * 48);
  font-size: calc(var(--pt) * 19);
}

.dm-map-pair {
  right: calc(var(--pt) * 21);
  bottom: calc(var(--pt) * 108);
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: calc(var(--pt) * 48);
  height: calc(var(--pt) * 96);
  border-radius: 999px;
  font-size: calc(var(--pt) * 19);
}

.dm-map-pair button {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.dm-map-locate {
  color: var(--blue);
}

/* Apple's attribution, where the app's map has it: over the column. */
.map-credit.dm-map-credit {
  right: auto;
  bottom: calc(var(--pt) * 229);
  left: calc(var(--pt) * 14);
  font-size: calc(var(--pt) * 11);
}

.dm-map-sheet {
  inset: auto calc(var(--pt) * 27) calc(var(--pt) * 27) calc(var(--pt) * 28);
  height: calc(var(--pt) * 65);
  padding: calc(var(--pt) * 14) calc(var(--pt) * 13.5);
  border-radius: calc(var(--pt) * 32.5);
}

.dm-map-grab {
  position: absolute;
  top: calc(var(--pt) * 5);
  left: 50%;
  width: calc(var(--pt) * 36);
  height: calc(var(--pt) * 5);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  translate: -50% 0;
}

/* The field in the sheet is a plain fill, not glass on glass. */
.demo-phone .dm-map-search {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
  width: 100%;
  height: calc(var(--pt) * 37);
  padding: 0 calc(var(--pt) * 12);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  font-size: calc(var(--pt) * 17);
  white-space: nowrap;
  /* Its words are a placeholder's, lighter than a label's. */
  color: color-mix(in srgb, var(--ink) 34%, transparent);
}

.dm-map-search .sf {
  flex: none;
  font-size: calc(var(--pt) * 16);
  color: var(--ink);
}

.dm-map-search span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The marks are buttons here, a little larger than on the card, since each
   is tapped: a photo mark is 44 points across, the app's smallest target. */
.dm-map-full .mk-photo {
  width: calc(var(--pt) * 44);
  height: calc(var(--pt) * 44);
}

.dm-map-full .mk-plan {
  width: calc(var(--pt) * 40);
  height: calc(var(--pt) * 40);
  background: var(--ph-fill);
}

.demo-phone .dm-map-full .mk:focus-visible {
  border-radius: 28%;
}

.demo-phone .dm-map-full .mk-plan:focus-visible {
  border-radius: 50%;
}

.demo[data-ready] .dm-map-full .mk:is(:active, .is-pressed) {
  scale: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .demo[data-ready] .dm-map-full .mk[data-act="go"]:hover {
    scale: 1.06;
  }

  .demo[data-ready] .dm-map-full .mk[data-act="go"]:is(:active, .is-pressed) {
    scale: 0.92;
  }

  .demo[data-ready] :is(.dm-map-pair button, .dm-map-search):hover {
    background-color: color-mix(in srgb, var(--ink) 9%, transparent);
  }
}

/* Reduce Motion: a layer fades where it stands. */
@media (prefers-reduced-motion: reduce) {
  .dm-layer-sheet,
  .dm-layer-sub,
  .dm-layer-page,
  :is(.dm-layer-sheet, .dm-layer-sub, .dm-layer-page).is-up {
    translate: 0 0;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }

  .dm-layer-sheet,
  .dm-layer-sub,
  .dm-layer-page {
    opacity: 0;
  }

  :is(.dm-layer-sheet, .dm-layer-sub, .dm-layer-page).is-up {
    opacity: 1;
    transition: opacity 200ms ease, visibility 0s;
  }

  .dm-layer-menu.is-up .dm-menu {
    transition: opacity 200ms ease;
  }

  .dm-write[data-write="writing"] .kb-circle-wave i {
    animation: none;
  }

  .demo-said,
  .demo-said.is-on {
    translate: -50% 0;
  }
}

/* ---------------------------------------------- The demo's Liquid Glass --
   In the first screen's demo the app's floating controls are glass, as the
   app's are (owner, 14 November 2026: "app 里面需要有 Apple liquid glass
   效果"): the tab bar and Search, Create and its menu, the round toolbar
   buttons, the recording's bar, the player, the Summary and Transcript
   switch, the recorder's microphone and row, and on the map screen the
   capsule of the map's style and the location arrow and the sheet at its
   foot. The phones further down
   the page stay flat ("The app's controls", above).

   Every browser gets this much from the stylesheet alone: what is behind a
   control blurred a little and its colour deepened, under a light tint; a
   glow just inside the edge and a shade along the foot; and a rim of light
   where it meets the glass at the upper left and leaves it at the lower
   right. All of it is the control's own background and shadows, so nothing
   is added to the page for it. In Chromium demo.js adds the lens: the rim
   bends what is behind it (an SVG displacement map for each shape, made in
   the page, through the backdrop filter). Safari and Firefox do not draw a
   backdrop through such a filter, and keep the blur and the rim.

   Where the visitor has asked for less transparency or more contrast the
   controls are solid, and with more contrast ringed in ink. */
.demo-phone {
  --g-tint: rgb(255 255 255 / 0.56);
  --g-solid: #fbfbfd;
  --g-rim: rgb(255 255 255 / 0.95);
  --g-rim-low: rgb(255 255 255 / 0.3);
  --g-edge: rgb(0 0 0 / 0.1);
  --g-glow: rgb(255 255 255 / 0.5);
  --g-shade: rgb(0 0 0 / 0.07);
  --g-lift: 0 calc(var(--pt) * 8) calc(var(--pt) * 22) rgb(0 0 0 / 0.13), 0 calc(var(--pt) * 1) calc(var(--pt) * 3) rgb(0 0 0 / 0.07);
  --g-pill: rgb(0 0 0 / 0.09);
  --g-blur: calc(var(--pt) * 3);
}

@media (prefers-color-scheme: dark) {
  .demo-phone {
    --g-tint: rgb(52 52 56 / 0.56);
    --g-solid: #2c2c2e;
    --g-rim: rgb(255 255 255 / 0.46);
    --g-rim-low: rgb(255 255 255 / 0.08);
    --g-edge: rgb(0 0 0 / 0.5);
    --g-glow: rgb(255 255 255 / 0.1);
    --g-shade: rgb(0 0 0 / 0.3);
    --g-lift: 0 calc(var(--pt) * 8) calc(var(--pt) * 22) rgb(0 0 0 / 0.5);
    --g-pill: rgb(255 255 255 / 0.13);
  }
}

.demo-phone :is(.ph-round, .dm-create, .ph-tabs, .ph-tab-search, .dm-menu, .dm-bar, .ph-player, .dm-seg, .hx-btn, .dm-mic, .dm-ask-field, .dm-find-field, .dm-map-pair, .dm-map-sheet) {
  background: var(--g-tint);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(1.5);
  backdrop-filter: blur(var(--g-blur)) saturate(1.5);
  box-shadow:
    inset calc(var(--pt) * 1) calc(var(--pt) * 1) 0 calc(var(--pt) * -0.4) var(--g-rim),
    inset calc(var(--pt) * -1) calc(var(--pt) * -1) 0 calc(var(--pt) * -0.4) var(--g-rim),
    inset 0 0 0 0.5px var(--g-rim-low),
    inset 0 0 calc(var(--pt) * 7) 0 var(--g-glow),
    inset 0 calc(var(--pt) * -7) calc(var(--pt) * 9) calc(var(--pt) * -8) var(--g-shade),
    0 0 0 0.5px var(--g-edge),
    var(--g-lift);
}

/* A menu is read, so its glass is thicker: more of a blur and more tint,
   and what is under it is colour, not words. */
.demo-phone .dm-menu {
  --g-tint: rgb(255 255 255 / 0.74);
  --g-blur: calc(var(--pt) * 14);
}

@media (prefers-color-scheme: dark) {
  .demo-phone .dm-menu {
    --g-tint: rgb(44 44 48 / 0.76);
  }
}

/* Small controls on the page's own ground carry less of a shadow. */
.demo-phone :is(.ph-round, .hx-btn, .dm-mic, .dm-seg, .dm-ask-field, .dm-find-field, .dm-map-pair) {
  --g-lift: 0 calc(var(--pt) * 3) calc(var(--pt) * 10) rgb(0 0 0 / 0.08);
}

.demo-phone .ph-tab.is-on,
.demo-phone .dm-seg .ph-seg-thumb {
  background: var(--g-pill);
  box-shadow: none;
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .demo-phone :is(.ph-round, .dm-create, .ph-tabs, .ph-tab-search, .dm-menu, .dm-bar, .ph-player, .dm-seg, .hx-btn, .dm-mic, .dm-ask-field, .dm-find-field, .dm-map-pair, .dm-map-sheet) {
    background: var(--g-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .demo-phone :is(.ph-round, .dm-create, .ph-tabs, .ph-tab-search, .dm-menu, .dm-bar, .ph-player, .dm-seg, .hx-btn, .dm-mic, .dm-ask-field, .dm-find-field, .dm-map-pair, .dm-map-sheet) {
    box-shadow: 0 0 0 1px var(--ink);
  }
}

/* The lenses' filters, which demo.js writes: they take no room. */
.demo-lenses {
  position: absolute;
  width: 0;
  height: 0;
}

/* ========================================================= Footnotes
   A sentence that limits a claim stands at the foot of the page, numbered,
   and the word it limits carries the number (owner, 15 November 2026:
   "这句话放网站最底部，原文位置用角标标注，Apple 就这么干的"). The mark is a link
   down to its note and the note's arrow a link back, with no script.

   The mark: raised without making its line any taller (no line height of
   its own, lifted from the baseline), in ink at the weight of the line's
   emphasis so that it reads as a link in grey text, and sized in em since
   it stands in a card's line and in small print. Its link is a few pixels
   of glyph, so an unseen box around it takes the click or the finger. */
.fn {
  position: relative;
  top: -0.5em;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
}

.fn a,
.fnotes .fn-back {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.fn a {
  padding: 0 0.1em;
  /* Followed back from the note, the mark lands with its card's title in
     view under the bar, not on the bar's edge. */
  scroll-margin-top: 7.5rem;
}

/* The mark's box stands before its numeral, not after: after it, a line
   that ended on the mark sent the box, and the link's closing edge with
   it, to the start of the next line, where the keyboard's focus and the
   arrival's chip drew a sliver of ink. */
.fn a::before,
.fn-back::after {
  content: "";
  position: absolute;
  inset: -14px;
}

@media (pointer: coarse) {
  .fn a::before,
  .fn-back::after {
    inset: -16px -18px;
  }
}

@media (hover: hover) {
  .fn a:hover,
  .fn-back:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.fn-back:focus-visible {
  outline-offset: 1px;
  border-radius: 4px;
}

/* The notes, first in the footer's small print as Apple's are, numbered
   by the list itself; the number hangs so the note's lines stand with the
   paragraphs under them. */
.fnotes {
  justify-self: start;
  margin: 0;
  padding: 0 0 0 1.25em;
  list-style: decimal outside;
}

.fnotes li {
  border-radius: 4px;
}

/* The arrow keeps to the note's last word and never starts a line alone. */
.fn-back {
  margin-left: 0.4em;
}

.fn-back::before {
  content: "\2060";
}

/* On arrival the place is shown, and not by colour alone: the note turns
   to ink on a plate no wider than its words, its number in bold; the mark
   becomes a chip, ink with the numeral cut out of it, since the page's
   ring around so small a link would lie over the letters beside it. The
   keyboard's focus shows the same chip, a ring's width larger. Nothing
   moves, so Reduce Motion asks for no change; where the system forces its
   own colours both take a ring. */
.fnotes li:target {
  color: var(--ink);
  background: var(--fill);
  box-shadow: 0 0 0 4px var(--fill), -1.25em 0 0 4px var(--fill);
}

.fnotes li:target::marker {
  font-weight: 700;
}

.fn a:target,
.fn a:focus-visible {
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  color: var(--on-ink);
}

.fn a:focus-visible {
  outline-offset: 0;
}

@media (forced-colors: active) {
  .fnotes li:target {
    outline: 2px solid Highlight;
    outline-offset: 4px;
  }

  .fn a:target {
    outline: 1px solid Highlight;
    outline-offset: 1px;
  }

  .fn a:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }
}

/* ====================================================== The lower half
   Under the first screen the page shows the product in pictures (owner,
   15 November 2026: "我们现在下半部分全是文字，不行，改一下，参考 otter.ai"):
   seven features as large round cards in two columns, Privacy's three
   promises, each shown, the connections as a strip, and Pricing. Two
   things move: the strip drifts with the scroll, and the Keyboard's card
   plays while it is in view.

   A card's picture leaves no blank space (owner, 15 November 2026: "你是不是
   不明白「不留空白」这四个字什么意思？"): a card is as tall as its words and its
   picture, never as tall as its neighbour; a drawn screen starts under the
   app's own bar with no band of empty screen, and runs on under the card's
   foot, which cuts it. Where the foot cuts is given in the iPhone's own
   points (--cut), so it falls at the same place in the drawing at every
   width.

   It stands after the demo's rules in this file because its pictures are
   the demo's screens, restated as stills. */

/* ---------------------------------------------------------- Features -- */
.features {
  padding: clamp(96px, 11vw, 160px) 0 clamp(72px, 9vw, 128px);
}

.features-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1104px;
  margin: 0 auto;
}

/* Two columns of cards of unlike heights, in the markup's order (a phone's:
   hints, the Summary, the recorders, the flight, the Keyboard, the day,
   Sharing): hints, the flight and the Keyboard at the left, the Summary,
   the recorders and the day at the right, Sharing across both. Rows cannot
   do it (a short card beside a tall one leaves the short one padded out),
   so the six are placed on five rows: the first, third and fifth are as
   tall as hints, the recorders and the Keyboard; the flight spans the three
   between, and the two rows it adds are what the Summary and the day take
   up, each running on under its foot. Nothing is reordered, so the keys and
   a reader's order are the markup's. */
@media (min-width: 901px) {
  .fgrid {
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  }

  .fcard-transcribe {
    grid-area: 1 / 1 / 2 / 2;
  }

  .fcard-voice {
    grid-area: 1 / 2 / 3 / 3;
  }

  .fcard-recorders {
    grid-area: 3 / 2 / 4 / 3;
  }

  /* (Never stretched: its day ends with the hotel. Should the recorders'
     card ever be the taller of the two, the room is left under it, not in
     it.) */
  .fcard-flight {
    grid-area: 2 / 1 / 5 / 2;
    align-self: start;
  }

  .fcard-keyboard {
    grid-area: 5 / 1 / 6 / 2;
  }

  .fcard-day {
    grid-area: 4 / 2 / 6 / 3;
  }

  .fcard-wide {
    grid-area: 6 / 1 / 7 / 3;
  }

  /* The two that take up the slack: as tall as their place, their screens
     running on under the foot. */
  :is(.fcard-voice, .fcard-day) .fcard-pic {
    flex: 1 1 0;
    min-height: 0;
  }
}

/* A card: its words at the top, on the page's quiet ground, and under
   them the picture, which runs to the card's lower edge and is cut by it. */
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  border-radius: 32px;
  background: var(--page-alt);
}

.fcard-words {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 36px 36px 28px;
  container-type: inline-size;
}

/* A card's title is one line at any width: its size follows the card's. */
.fcard-title {
  font-size: min(1.75rem, 6cqw);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.fcard-line {
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--text-2);
  text-wrap: pretty;
}

.fcard-line strong {
  color: var(--ink);
  font-weight: 600;
}

.fcard-fine {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-2);
}

.fcard-pic {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: flex-start;
  padding: 0 36px;
  container-type: inline-size;
}

/* A still of a screen wears Apple's iPhone, as the demo's does: the same
   picture of iPhone 18 Pro, upright, unaltered, nothing over its body and
   no shadow added, drawn by the rule that draws the demo's ("The iPhone",
   above). It is larger than its card has room for and the card cuts it
   (owner, 15 November 2026: "需要套Apple 的 iPhone的手机壳，可以裁切"): it runs off
   the card's foot, or off its top where the picture's point is at the
   screen's foot. The cut is the card's clip; the file is whole. Nothing in
   a still moves, and a pointer passes through it. */
.shot {
  --pw: min(86cqw, 392px);
  /* The iPhone is 920 of its points tall; --cut of them show, and the rest
     is under the card's foot. */
  margin-bottom: calc(var(--pt) * (var(--cut, 920) - 920));
  pointer-events: none;
}

/* Where each is cut: hints in the answer being given under the question
   the hint answers; the Summary and the day (in one column; in two they
   are as tall as their place) well into their cards; the flight in the
   foot of the hotel's card; the friend's page in the foot of the second
   memory. */
.shot-hints {
  --cut: 494;
}

.shot-summary {
  --cut: 610;
}

.shot-flight {
  --cut: 520;
}

.shot-day {
  --cut: 560;
}

/* (Its tab bar starts five points further down.) */
.shot-friend {
  --cut: 808;
}

.shot:not(.shot-live) *,
.shot:not(.shot-live) *::before,
.shot:not(.shot-live) *::after {
  transition: none !important;
  animation: none !important;
}

/* The Summary from its first heading: the name and the overview have gone
   up under the bar, as when it is scrolled, and what shows is its cards
   (owner: "把summary 部分去掉，直接从下面的 heading 开始，只画漫画"). */
.shot-summary .summary-head {
  display: none;
}

/* And with them the room the first heading keeps under the overview: it
   stands right under the bar (owner, 15 November 2026: "AI summaries 那边
   标题[往]上"). */
.shot-summary .sum-events {
  margin-top: 0;
}

.shot-summary .summary-pan {
  padding-top: 0;
}

/* The Journal scrolled: its week has folded away under the toolbar, as the
   app's does, and the day starts under it. */
:is(.shot-day, .shot-flight) .dm-dates {
  display: none;
}

:is(.shot-day, .shot-flight) .dm-top {
  background: var(--page);
}

.shot-day .dm-top {
  height: calc(var(--pt) * 106);
}

.shot-day .dm-scroll {
  inset: calc(var(--pt) * 106) 0 0;
}

.shot-day .dm-feed {
  padding-top: calc(var(--pt) * 10);
}

/* Under the flight's Live Activity the day starts at once: "Morning" right
   under it (owner, 15 November 2026: "flight 的 morning [往]上"). The bar is
   behind the Live Activity, as it is while one is expanded. */
.shot-flight .dm-scroll {
  inset: calc(var(--pt) * 176) 0 0;
}

.shot-flight .dm-feed {
  padding-top: 0;
}

/* The opened entry's title has the row to itself, short of the two round
   buttons at its corner (the demo keeps the time's room there, unseen), so
   that it stands on one line at every width and the cut falls where it is
   meant to. */
.shot-flight .dm-event.is-open .ph-card-time {
  display: none;
}

.shot-flight .dm-event.is-open .ph-card-top {
  padding-right: calc(var(--pt) * 68);
}

/* The recorder, at rest with its hint: the hint has its place over the
   transcript, which the demo gives it by measuring. */
.shot .dm-live {
  display: flex;
  flex-direction: column;
  gap: calc(var(--pt) * 14);
}

.shot .dm-cards {
  position: relative;
  inset: auto;
  margin: 0 calc(var(--pt) * 16);
}

.shot .dm-cards > .hx-card:not(.is-on),
.shot .dm-tx .hx-turn:not(.is-on) {
  display: none;
}

.shot .dm-tx {
  position: relative;
  inset: auto;
  flex: 1;
}

/* The Keyboard's card is the other way up: the iPhone hangs from the card's
   top, cut there, so that the reply and the keyboard at the screen's foot
   are what shows, and the words stand under it. The thread's messages sit
   on the field, as Messages has them once the keyboard is up, so no empty
   stretch lies between them. */
.fcard-keyboard {
  flex-direction: column-reverse;
}

.fcard-keyboard .fcard-words {
  padding: 28px 36px 36px;
}

.fcard-keyboard .fcard-pic {
  align-items: flex-end;
}

/* Cut at its top, over the first message: the screen's last 570 points
   show. */
.shot-keyboard {
  --cut: 570;
  margin-top: calc(var(--pt) * (var(--cut) - 920));
  margin-bottom: 0;
}

.shot-keyboard .kb-thread {
  align-content: end;
}

/* The card plays what Help me write does (owner: "应该包含说话和记忆卡片的动画"):
   the request is spoken, the memories it draws on arrive as cards, the
   reply is written. What is said and the memories lie inside the screen,
   over the thread, which dims for them; nothing crosses the bezel. home.js
   sets the beat on the screen (data-beat) and the keyboard's own state
   while the card is in view; at rest, without a script and under Reduce
   Motion, the reply stands written and neither shows. Only opacity and
   transform move. */
.shot-said,
.shot-mems {
  position: absolute;
  right: calc(var(--pt) * 14);
  left: calc(var(--pt) * 14);
  z-index: 3;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.shot-said {
  bottom: calc(var(--pt) * 402);
  display: flex;
  justify-content: center;
  transform: translateY(calc(var(--pt) * 10));
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.shot-said span {
  padding: calc(var(--pt) * 10) calc(var(--pt) * 16);
  border-radius: calc(var(--pt) * 20);
  background: var(--ink);
  color: var(--page);
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.shot-mems {
  bottom: calc(var(--pt) * 288);
  display: grid;
  gap: calc(var(--pt) * 8);
  transition: opacity 220ms ease;
}

.shot-mems .ph-card {
  transform: translateY(calc(var(--pt) * 18)) scale(0.97);
  box-shadow: 0 0 0 1px var(--line), 0 calc(var(--pt) * 10) calc(var(--pt) * 24) rgb(0 0 0 / 0.14);
  transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1);
}

.shot-mems .ph-card + .ph-card {
  transition-delay: 90ms;
}

.shot-live :is(.kb-thread, .im-bar) {
  transition: opacity 240ms ease;
}

.shot-live [data-beat="mems"] .im-bar {
  opacity: 0.18;
}

.shot-live [data-beat="said"] .shot-said {
  opacity: 1;
  transform: none;
}

.shot-live [data-beat="mems"] .shot-mems {
  opacity: 1;
}

.shot-live [data-beat="mems"] .shot-mems .ph-card {
  transform: none;
}

.shot-live :is([data-beat="said"], [data-beat="mems"]) .kb-thread {
  opacity: 0.18;
}

/* The recorders stand whole in their card, in one line, in order (owner:
   "还是直接的排列方式，缩小排成一排而不是两排"), sized by the card, and the card
   is as tall as they are: their line, the gap every card has over its
   picture, and the card's padding under them. Apple's pictures are never
   cut. (The line's order on a phone, and its break, were the Voice
   scene's: here the five stay in the markup's order.) */
.fcard-recorders .fcard-pic {
  padding-bottom: 36px;
}

.fcard-recorders .devices {
  --ww: min(86px, calc(100cqw / 5.5));
  flex-wrap: nowrap;
  row-gap: 0;
  width: 100%;
  margin: 0;
}

.fcard-recorders .devices::before {
  content: none;
}

.fcard-recorders .device {
  order: 0;
}

/* ---- A flight's Live Activity, expanded from the Dynamic Island over the
   Journal, as the Your day scene drew it: the island itself is the bezel's,
   and the Live Activity is the screen's, under it. At rest. */
.fl-island {
  --fl-blue: #0a84ff;
  --fl-grey: rgb(235 235 245 / 0.6);
  position: absolute;
  top: calc(var(--pt) * 12.33);
  left: 50%;
  z-index: 40;
  width: 0;
  color: #ffffff;
}

.fl-expanded {
  position: absolute;
  top: 0;
  left: calc(var(--pt) * -188);
  display: grid;
  gap: calc(var(--pt) * 8);
  width: calc(var(--pt) * 376);
  padding: calc(var(--pt) * 16) calc(var(--pt) * 22);
  border-radius: calc(var(--pt) * 44);
  background: #000000;
}

/* On the dark screen the black Live Activity would merge with the page
   under it and read as words on the screen (owner, 15 November 2026:
   "这里 live activity 变成黑色 没有边框了"): it keeps a hairline there. Its
   weight is judged by eye; no capture shows the island over a dark
   screen. */
@media (prefers-color-scheme: dark) {
  .fl-expanded {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
  }
}

.fl-top {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  font-size: calc(var(--pt) * 13);
  font-weight: 600;
  color: var(--fl-grey);
}

.fl-logo {
  display: grid;
  place-items: center;
  width: calc(var(--pt) * 20);
  height: calc(var(--pt) * 20);
}

.fl-logo .sf {
  font-size: calc(var(--pt) * 14);
  color: var(--fl-blue);
}

.fl-seat {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 3);
  margin-left: auto;
}

.fl-route {
  display: grid;
  gap: calc(var(--pt) * 1);
}

.fl-times {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 18);
  font-weight: 600;
  white-space: nowrap;
}

.fl-end b {
  font-weight: 700;
}

.fl-t {
  margin-left: calc(var(--pt) * 1);
  color: var(--fl-blue);
  font-variant-numeric: tabular-nums;
}

.fl-end-r .fl-t {
  margin: 0 calc(var(--pt) * 1) 0 0;
}

.fl-mid {
  display: grid;
  flex: 1;
  align-items: center;
  min-width: calc(var(--pt) * 40);
  height: calc(var(--pt) * 20);
}

.fl-bar {
  position: relative;
  height: calc(var(--pt) * 4);
  overflow: hidden;
  border-radius: 999px;
  background: rgb(120 120 128 / 0.36);
}

.fl-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fl-blue);
  transform-origin: 0 50%;
  transform: scaleX(0.42);
}

.fl-notes {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--pt) * 8);
  font-size: calc(var(--pt) * 12);
  font-weight: 500;
  color: var(--fl-grey);
  white-space: nowrap;
}

.fl-notes i,
.fl-notes em {
  font-style: normal;
}

.fl-notes em {
  color: var(--fl-blue);
}

.fl-progress {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
  margin-top: calc(var(--pt) * 4);
  font-size: calc(var(--pt) * 12);
  color: var(--fl-grey);
}

.fl-progress .fl-bar {
  flex: 1;
  height: calc(var(--pt) * 8);
}

.fl-lands {
  display: flex;
  align-items: baseline;
  gap: calc(var(--pt) * 6);
  margin: 0;
}

.fl-lands b {
  font-size: calc(var(--pt) * 17);
  font-weight: 600;
}

.fl-lands span {
  font-size: calc(var(--pt) * 11);
  font-weight: 600;
  color: var(--fl-grey);
}

/* ---- Sharing, the wide card that closes the grid: its words in one
   column, and in the other three things in a line (owner: "中间是aidememo 的
   icon，左边是Claude，chatgpt 等等在问问题的画面，右边就是朋友看到的画面"): the
   assistants asking, AideMemo between, and a friend's iPhone open on what
   is shared with them. */
.fcard-wide {
  flex-direction: row;
  grid-column: 1 / -1;
}

.fcard-wide .fcard-words {
  flex: 1;
  align-content: center;
  padding: 36px 12px 36px 44px;
}

/* As tall as the friend's iPhone down to its cut: the page's head, then a
   place on its map and photos (owner, 15 November 2026: "share with friends
   里面加上地图，以及照片"). */
.fcard-wide .fcard-pic {
  position: relative;
  flex: 0 0 58%;
  gap: 0;
  align-items: stretch;
  justify-content: flex-end;
  padding: 44px 44px 0 0;
}

.fcard-wide .shot {
  --pw: min(40cqw, 270px);
  align-self: flex-start;
}

/* The assistants' chats as a deck: the one being asked in front, the others
   a step up and to the right behind it, each step high enough for its icon
   to show. Plain dark cards, marked only by each assistant's App Store
   icon, as the Sharing scene drew them. */
.as-deck {
  /* Out of the line, so that the iPhone alone says how tall the picture
     is: the deck stands in the picture's middle (a little under it, for
     the cards behind), or at its top where its words run long, and the
     card's foot cuts it there as it cuts the iPhone. */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  /* As tall as the chat, whatever room the picture has: a row that only
     filled the room left cut a longer answer (a translation's, a phone's)
     through its last line inside the card, above the foot. */
  grid-auto-rows: max-content;
  align-content: start;
  align-content: safe center;
  width: min(40cqw, 270px);
  padding: 84px 0 44px;
  color: #ffffff;
  font-family: var(--font-ios);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.as-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-area: 1 / 1;
  align-content: start;
  overflow: hidden;
  border-radius: 20px;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 20px 44px rgb(0 0 0 / 0.14);
}

.as-back {
  z-index: 1;
  background: #141416;
  transform-origin: 50% 0;
  transform: translate(12px, -34px) scale(0.95);
}

.as-back-2 {
  z-index: 0;
  background: #101012;
  transform: translate(24px, -68px) scale(0.9);
}

.as-bar {
  display: flex;
  padding: 9px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.as-logo {
  width: 24px;
  height: 24px;
  border-radius: 5.4px;
  box-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.14);
}

.as-thread {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.as-msg,
.as-tool {
  margin: 0;
}

.as-me {
  justify-self: end;
  max-width: 88%;
  padding: 8px 13px;
  border-radius: 17px;
  background: #3a3a3c;
}

.as-tool {
  font-size: 0.75rem;
  color: #8e8e93;
}

.as-ai {
  color: #f5f5f7;
}

/* AideMemo between them: its icon on a hairline that runs to each side. */
.share-hub {
  display: flex;
  flex: 1;
  align-items: center;
  align-self: center;
  min-width: 72px;
  margin: 0 0 44px min(40cqw, 270px);
}

.share-hub i {
  flex: 1;
  height: 2px;
  background: var(--line-2);
}

.share-hub img {
  flex: none;
  width: 52px;
  height: 52px;
  margin: 0 8px;
  border-radius: var(--icon-r);
  box-shadow: var(--icon-edge), 0 7px 12px rgb(0 0 0 / 0.07);
}

/* ---- One column, from the width at which two cards no longer hold their
   words. On a phone the cards are sized for a phone (owner: "手机端：太长了，
   只留网页端一样的7个卡片"): each iPhone is cut closer, to the part of its
   screen that shows the thing. */
@media (max-width: 900px) {
  .fgrid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .fcard-wide {
    flex-direction: column;
  }

  .fcard-wide .fcard-words {
    flex: none;
    padding: 36px 36px 28px;
  }

  .fcard-wide .fcard-pic {
    flex: none;
    justify-content: center;
    padding: 44px 36px 0;
  }

  .as-deck {
    left: 36px;
  }
}

@media (max-width: 560px) {
  .features {
    padding: 72px 0 56px;
  }

  .features-head {
    margin-bottom: 28px;
  }

  .fgrid {
    gap: 12px;
  }

  .fcard {
    border-radius: 26px;
  }

  .fcard-words,
  .fcard-wide .fcard-words {
    gap: 8px;
    padding: 22px 22px 16px;
  }

  .fcard-keyboard .fcard-words {
    padding: 16px 22px 22px;
  }

  .fcard-line {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  /* A picture's box: as tall as shows the thing, and it cuts the iPhone,
     whose sides it keeps. --lift, in the iPhone's points, is how far it is
     raised behind the box's top where the thing lies lower; --cut is where
     the box's foot falls. */
  .fcard-pic {
    padding: 0 22px;
    overflow: clip;
  }

  .shot {
    --pw: min(100cqw, 330px);
    margin-top: calc(var(--pt) * var(--lift, 0) * -1);
  }

  .shot-hints {
    --cut: 312;
  }

  .shot-summary {
    --lift: 64;
    --cut: 360;
  }

  .shot-day {
    --lift: 86;
    --cut: 480;
  }

  .shot-keyboard {
    --cut: 396;
    margin-top: calc(var(--pt) * (var(--cut) - 920));
  }

  /* A phone's box shows less of the screen above the keyboard: what is
     said lies over the field, and one memory arrives, not two. */
  .shot-said {
    bottom: calc(var(--pt) * 296);
  }

  .shot-mems {
    bottom: calc(var(--pt) * 254);
  }

  .shot-mems .ph-card + .ph-card {
    display: none;
  }

  .shot-live [data-beat="said"] .im-bar {
    opacity: 0.18;
  }

  .fcard-recorders .fcard-pic {
    padding-bottom: 22px;
    overflow: visible;
  }

  .fcard-recorders .devices {
    --ww: calc(100cqw / 5.7);
  }

  /* Sharing's three stand in one line still, smaller: the deck, AideMemo,
     the friend's iPhone. */
  .fcard-wide .fcard-pic {
    padding: 18px 22px 0;
  }

  .fcard-wide .shot {
    --pw: 40cqw;
    margin-top: 0;
  }

  .as-deck {
    left: 22px;
    width: 44cqw;
    padding: 48px 0 18px;
    font-size: 0.625rem;
  }

  .as-card {
    border-radius: 13px;
  }

  .as-back {
    transform: translate(6px, -22px) scale(0.95);
  }

  .as-back-2 {
    transform: translate(12px, -44px) scale(0.9);
  }

  .as-bar {
    padding: 5px 8px;
  }

  .as-logo {
    width: 15px;
    height: 15px;
    border-radius: 3.4px;
  }

  .as-thread {
    gap: 6px;
    padding: 8px;
  }

  .as-me {
    padding: 5px 8px;
    border-radius: 11px;
  }

  .as-tool {
    font-size: 0.5625rem;
  }

  .share-hub {
    min-width: 0;
    margin: 0 0 18px 44cqw;
  }

  .share-hub img {
    width: 30px;
    height: 30px;
    margin: 0 4px;
  }
}

/* ---------------------------------------------- Privacy's pictures --
   Three promises are shown as well as stated (owner, 15 November 2026:
   "隐私页，也需要有 画面，只是一些文字卡片没有感染力"): a card whose upper part
   is a picture and whose lower part is the promise, as it was. The section
   stays black on both schemes: the title is its loudest thing, and a
   screen, the App Store's card and a Lock Screen stand out on black as
   lit things do. */
.promise-shown {
  display: flex;
  flex-direction: column;
  overflow: clip;
  border-radius: var(--r-card);
  background: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

/* A merged promise's small print is its two cards', one after the other. */
.promise-body .fine-print + .fine-print {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.promise summary p + p {
  margin-top: -4px;
}

.promise-shown .promise {
  flex: 1;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.promise-pic {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 330px;
  padding: 32px 28px 0;
  overflow: clip;
  background: #111113;
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08);
  container-type: inline-size;
}

.promise-pic .shot {
  --pw: min(100cqw, 300px);
}

/* The section's own greys are for words on black; a picture in it is a
   light or a dark thing by the scheme, and keeps the scheme's. */
.promise-pic .shot,
.promise-pic .store-label-card {
  --text-2: #6a6a6f;
  --line: rgb(0 0 0 / 0.08);
}

@media (prefers-color-scheme: dark) {
  .promise-pic .shot,
  .promise-pic .store-label-card {
    --text-2: #a1a1a6;
    --line: rgb(255 255 255 / 0.12);
  }
}

/* Settings, scrolled to its first group: the plan's card has gone up under
   the bar, as it does when the sheet is scrolled. */
.shot-settings .dm-plan {
  display: none;
}

/* The App Store's privacy label, as the privacy policy has it: its card,
   and under it the link to the store's page, where the label is. */
.promise-pic .store-label {
  align-self: center;
  width: 100%;
  padding-bottom: 28px;
}

.promise-pic .store-label-card {
  padding: 26px 20px 24px;
}

.privacy .store-label-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  color: #a1a1a6;
  text-decoration: none;
}

.privacy .store-label-source:hover {
  color: #ffffff;
}

/* The Lock Screen: a calm wallpaper, the date and the time, and in its
   list the notice of what an assistant did. */
.fl-lock {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 30% 0%, #4a5a7e 0%, transparent 60%),
    radial-gradient(110% 80% at 90% 100%, #2b3550 0%, transparent 65%),
    linear-gradient(#1f2738, #0d1119);
  color: #ffffff;
}

.shot-lock .ph-status {
  color: #ffffff;
}

.fl-date,
.fl-clock {
  margin: 0;
  text-align: center;
}

.fl-date {
  margin-top: calc(var(--pt) * 78);
  font-size: calc(var(--pt) * 21);
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.9;
}

.fl-clock {
  font-size: calc(var(--pt) * 104);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.as-note {
  position: absolute;
  top: calc(var(--pt) * 246);
  right: calc(var(--pt) * 12);
  left: calc(var(--pt) * 12);
  display: flex;
  gap: calc(var(--pt) * 10);
  padding: calc(var(--pt) * 13) calc(var(--pt) * 14);
  border-radius: calc(var(--pt) * 22);
  background: rgb(245 245 247 / 0.92);
  color: #000000;
  font-size: calc(var(--pt) * 15);
  line-height: 1.3;
}

.as-icon {
  flex: none;
  width: calc(var(--pt) * 38);
  height: calc(var(--pt) * 38);
  border-radius: var(--icon-r);
  box-shadow: var(--icon-edge);
}

.as-note-main {
  display: grid;
  gap: calc(var(--pt) * 1);
}

.as-note-top {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--pt) * 8);
}

.as-note-top span {
  color: rgb(60 60 67 / 0.6);
  font-size: calc(var(--pt) * 13);
}

@media (max-width: 900px) {
  .promise-pic {
    height: 300px;
  }
}

/* ------------------------------------------------------ Connections --
   Two rows of a mark and a name, wider than the page (owner, 15 November
   2026: "改成 otter ai 一样的 滑动驱动的左右滚动横条"). Each row is a list that
   can always be scrolled sideways by hand, so every item is reachable, and
   is a little wider than the strip; where the browser can tie an animation
   to the scroll, and the visitor has not asked for less motion, the two
   drift by that little as the section crosses the window, one each way.
   Only a transform moves, on the compositor, with no script: no scroll
   listener, nothing measured, nothing pinned.

   The second row is the first one's mirror: it is laid out from the right
   (its items still read left to right, and its order in the page is
   unchanged), so it opens on its last items and drifts right, towards its
   first. The strip is no wider than the features' grid, which both rows
   overfill, and its ends fade.

   Each row rests on its gutter when the section is in the middle of the
   window: it starts half its drift short of there and ends half past, so
   that what leads each row (the assistants; DJI Mic, Plaud and Trakt) is
   whole while the strip is being looked at. */
.conns {
  padding: var(--section) 0;
  overflow: clip;
}

.conns-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.strip {
  --drift: clamp(96px, 14vw, 160px);
  display: grid;
  gap: 0;
  max-width: 1104px;
  margin-inline: auto;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}

.strip-row {
  display: flex;
  gap: 12px;
  width: calc(100% + var(--drift));
  margin: 0;
  padding: 8px calc(var(--drift) + var(--gutter)) 20px calc(var(--drift) / 2 + var(--gutter));
  overflow: auto hidden;
  list-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.strip-row::-webkit-scrollbar {
  display: none;
}

.strip-row-b {
  direction: rtl;
  margin-left: calc(var(--drift) * -1);
  padding: 8px calc(var(--drift) / 2 + var(--gutter)) 20px calc(var(--drift) + var(--gutter));
}

.strip-row-b .strip-card {
  direction: ltr;
}

.strip-row:focus-visible {
  outline-offset: -3px;
}

/* An item is a small card, after the cards of the app's Ideas: the
   surface, a hairline and a soft shadow, a mark and a name (owner,
   15 November 2026: "胶囊型的圆角需要和里面图标的圆角弧度保持一致，我觉得可以用圆角
   矩形，带阴影的，参考我们app里面的ideas 页面的那些卡片的样式"). Its corners are
   concentric with the mark's: the mark's radius plus the padding between
   them. */
.strip-card {
  --mark: 44px;
  --pad: 10px;
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: var(--pad) calc(var(--pad) + 10px) var(--pad) var(--pad);
  border-radius: calc(var(--mark) * 0.225 + var(--pad));
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 7px 12px rgb(0 0 0 / 0.07);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.strip-mark {
  width: var(--mark);
  height: var(--mark);
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px var(--line-2);
}

@media (prefers-color-scheme: dark) {
  .strip-card {
    box-shadow: 0 0 0 1px var(--line), 0 7px 12px rgb(0 0 0 / 0.4);
  }
}

.conns-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

@media (max-width: 560px) {
  .strip-row {
    gap: 8px;
  }

  .strip-card {
    --mark: 28px;
    --pad: 7px;
    gap: 7px;
    padding-right: 12px;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .strip-row {
      animation: strip-left linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .strip-row-b {
      animation-name: strip-right;
    }

    @keyframes strip-left {
      to {
        transform: translateX(calc(var(--drift) * -1));
      }
    }

    @keyframes strip-right {
      to {
        transform: translateX(var(--drift));
      }
    }
  }
}
