/* tervaya.app: the app's ink and teal on white, or in dark, as the visitor's
   phone or computer is, the iPhone's dark steps on true black as the app's.
   Teal is for data, the one filled button and today's halo; everything else
   is ink, quiet ink and the tile grey. Every part stands on the one page,
   parted only by the day chain's thread, and by day the page ends on the
   ink with the bird in mint, as the icon has it; by night the end stays the
   most lifted dark step. */
@font-face { font-family: "Open Sans Text"; src: url("/fonts/opensans-text.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Headings never swap their face once drawn: a late swap moves every line under them. */
@font-face { font-family: "Open Sans Head"; src: url("/fonts/opensans-head.woff2") format("woff2"); font-weight: 800; font-display: optional; }

:root {
  --page: #FFFFFF; --tile: #EEF2F5; --ink: #0F1720; --quiet: #55646F; --hair: #DDE5EA;
  --teal: #0D9488; --button: #0F766E; --on-button: #FFFFFF; --mint: #CCFBF1; --rim: #0B0B0B; --bad: #B91C1C;
  --plate: #FFFFFF;
  --glass: rgba(255, 255, 255, .7); --glass-rim: rgba(15, 23, 32, .08); --glass-hi: rgba(255, 255, 255, .9);
  /* A picture cut at its edge fades out there, short by day, long by night,
     where white on black would end on a grey seam. The end's ink by day. */
  --art-fade: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
  --art-fade-x: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  --end: #0F1720; --end-ink: #FFFFFF; --end-quiet: #A7B4BE; --end-hair: rgba(255, 255, 255, .12);
  --end-lit: rgba(255, 255, 255, .07);
  --bird: #7FE6D6;
  /* The day chain's line as the app draws it (iOS's own grey). */
  --chain-line: #D3D2D7;
  /* The ground of the app's screens in the film, under the hero's chain. */
  --screen: #F2F1F6;
  --text: "Open Sans Text", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Open Sans Head", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* The page reaches under the iPhone's camera held sideways
     (viewport-fit=cover), so the text keeps clear of it. */
  --gutter: 20px; --side: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gap: 72px; --ease: cubic-bezier(.22, 1, .36, 1);
  /* What comes in on its own, the name, the hero's phone and its bead and
     the parts: a gentle start and a long settle, never a jump. */
  --soft: cubic-bezier(.3, .55, .15, 1);
  color-scheme: light;
}
/* Dark as the device is, unless the visitor chose light on the page, or
   dark by hand. A QR code keeps its light plate, or no camera reads it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000000; --tile: #1C1C1E; --ink: #FFFFFF; --quiet: #A4A4AB; --hair: #38383A;
    --teal: #0FA896; --button: #0FA896; --on-button: #04120F; --mint: #134E4A; --rim: #3A3A3C; --bad: #F87171;
    --glass: rgba(28, 28, 30, .62); --glass-rim: rgba(255, 255, 255, .1); --glass-hi: rgba(255, 255, 255, .16);
    --art-fade: linear-gradient(to bottom, #000 40%, transparent); --art-fade-x: linear-gradient(to right, #000 65%, transparent);
    --chain-line: #3C3C3C; --screen: #000000;
    --end: #1C1C1E; --end-quiet: #A4A4AB; --end-hair: #38383A; --end-lit: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #000000; --tile: #1C1C1E; --ink: #FFFFFF; --quiet: #A4A4AB; --hair: #38383A;
  --teal: #0FA896; --button: #0FA896; --on-button: #04120F; --mint: #134E4A; --rim: #3A3A3C; --bad: #F87171;
  --glass: rgba(28, 28, 30, .62); --glass-rim: rgba(255, 255, 255, .1); --glass-hi: rgba(255, 255, 255, .16);
  --art-fade: linear-gradient(to bottom, #000 40%, transparent); --art-fade-x: linear-gradient(to right, #000 65%, transparent);
  --chain-line: #3C3C3C; --screen: #000000;
  --end: #1C1C1E; --end-quiet: #A4A4AB; --end-hair: #38383A; --end-lit: transparent;
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --gutter: 48px; --gap: 120px; } }

* { box-sizing: border-box; }
/* Hidden means hidden, whatever display a class gives. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--text); }
@media (min-width: 960px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; height: auto; }
/* What the browser draws carries the palette too: a selection in the
   bird's mint, the app's teal for the caret and the slider. */
:root { accent-color: var(--teal); caret-color: var(--teal); }
::selection { background: var(--mint); color: var(--ink); }
a { color: inherit; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
h1, h2, .h2 { font-family: var(--head); font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 3.2vw + 24px, 84px); line-height: 1.02; }
h2, .h2 { font-size: clamp(30px, 2.2vw + 20px, 54px); line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.3; margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(18px, .4vw + 16px, 21px); color: var(--quiet); text-wrap: pretty; }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding-inline: var(--side); }

.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; background: var(--ink); color: var(--page); border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--button); color: var(--on-button); font-weight: 700; text-decoration: none;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}
.button.slim { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.go { font-weight: 700; text-decoration: none; }
.go:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .button:hover, .badge:hover, .qr-button:hover { transform: translateY(-2px); }
}
/* The press shows on a finger too, which has no hover; with it the
   browser's own grey flash would only cover it. */
.button:active, .badge:active, .qr-button:active { transform: scale(.98); filter: brightness(.94); }
.button, .badge, .qr-button, .guide-card { -webkit-tap-highlight-color: transparent; }

/* The bar: full width at the top; once the page scrolls it narrows into a
   floating pill of glass, as the iPhone's own bars float over its lists,
   the page passing under it blurred. */
.bar { position: sticky; top: 0; z-index: 20; padding-top: 0; transition: padding-top 280ms var(--ease); }
.bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px;
  background: var(--page); border: 1px solid transparent; border-radius: 0;
  transition: max-width 280ms var(--ease), min-height 280ms var(--ease), border-radius 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease), padding 280ms var(--ease), background-color 280ms var(--ease);
}
.bar.scrolled { padding-top: 10px; }
.bar.scrolled .bar-in {
  max-width: 1080px; min-height: 58px; border-radius: 999px; border-color: var(--glass-rim);
  padding-inline: 12px 8px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 32px -18px rgba(15, 23, 32, .35);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
@media (max-width: 1140px) { .bar.scrolled .bar-in { max-width: calc(100% - 2 * var(--side) + 24px); } }
/* Over the ink at the page's end the bar and its menus take the night's
   glass and the bird its mint, as the iPhone's bars turn dark over dark
   content; by night they are that already. */
html.on-ink .bar, html.on-ink .site-menu, html.on-ink .lang-menu {
  --page: #000000; --tile: #1C1C1E; --ink: #FFFFFF; --quiet: #A4A4AB; --hair: #38383A;
  --glass: rgba(28, 28, 30, .62); --glass-rim: rgba(255, 255, 255, .1); --glass-hi: rgba(255, 255, 255, .16);
  color: var(--ink); color-scheme: dark;
}
/* The bird drawn through its own shape, so it can stand in mint on the ink. */
.foot .brand picture, html.on-ink .bar .brand picture {
  background: var(--bird); -webkit-mask: url("/mark.svg") center / contain no-repeat; mask: url("/mark.svg") center / contain no-repeat;
}
.foot .brand picture img, html.on-ink .bar .brand picture img { visibility: hidden; }
@media (forced-colors: active) {
  .foot .brand picture, html.on-ink .bar .brand picture { background: none; -webkit-mask: none; mask: none; }
  .foot .brand picture img, html.on-ink .bar .brand picture img { visibility: visible; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; border: 0; background: none; font: 700 18px/1.15 var(--text); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
/* The name in the bar is the front page's name, made small: one face, so
   the one hands over to the other unseen. */
.brand-name { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; }
.bar.undocked .brand-name, .bar.undocked .brand-chev { opacity: 0; }
.brand-words { display: grid; min-width: 0; }
.brand-words > span:first-child { white-space: nowrap; }
/* The page's title under the name, as the app's bar takes a large title
   that has scrolled away: one line, cut with an ellipsis. */
.brand-line { max-width: min(40vw, 360px); height: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 400; color: var(--quiet); opacity: 0; transition: height 200ms var(--ease), opacity 200ms var(--ease); }
.bar.titled .brand-line { height: 1.25em; opacity: 1; }
/* A phone reaches the places through the name, as the app's trip name opens
   its list; where a browser has no popover the name simply goes home. */
.brand-menu { display: none; }
@supports selector(:popover-open) {
  @media (max-width: 899px) { .brand-home { display: none; } .brand-menu { display: inline-flex; } }
}
/* The places and the other languages float on glass under the bar. Where a
   browser has no popover neither can open, so neither stands in the page:
   the name goes home, and the foot names the languages. */
@supports not selector(:popover-open) { [popover], .bar .lang { display: none; } }
.site-menu, .lang-menu {
  position: fixed; inset: auto; top: 70px; left: max(8px, calc(var(--side) - 12px)); margin: 0; padding: 8px; width: min(280px, calc(100% - 16px));
  border: 1px solid var(--glass-rim); border-radius: 24px; background: var(--glass); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 48px -24px rgba(15, 23, 32, .4);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
/* The rows packed at the top: Safari on iOS 26 measures a popover's grid
   with its rows stretched over the whole window, so the three languages
   stood apart down to the screen's foot. */
.site-menu:popover-open, .lang-menu:popover-open { display: grid; gap: 2px; align-content: start; }
.site-menu a, .lang-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: 17px; }
.site-menu a[aria-current] { background: var(--tile); font-weight: 700; }
.site-menu a.quiet { color: var(--quiet); font-size: 15px; }
.site-menu hr { width: calc(100% - 32px); margin: 6px auto; border: 0; border-top: 1px solid var(--hair); }
/* The languages hang under their pill at the bar's right end: placed by
   the pill where a browser anchors, else by the bar's own measure. */
.lang-menu { left: auto; right: calc(max(0px, (100% - 1296px) / 2) + var(--side)); width: min(200px, calc(100% - 16px)); }
.lang-menu a:hover { background: var(--tile); }
@supports (anchor-name: --lang) {
  .bar .lang { anchor-name: --lang; }
  .lang-menu { position-anchor: --lang; right: anchor(right); }
}
@media (prefers-reduced-motion: no-preference) {
  .site-menu, .lang-menu { transform-origin: top left; transition: opacity 180ms var(--ease), transform 220ms var(--ease); }
  .lang-menu { transform-origin: top right; }
  @starting-style { .site-menu:popover-open, .lang-menu:popover-open { opacity: 0; transform: scale(.96); } }
}
.bar-nav { display: flex; align-items: center; gap: 18px; justify-content: flex-end; font-size: 15px; }

.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--hair); background: none; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer;
}
.lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* Said to a screen reader, never shown: the pill names the page's language
   and reads as the language switch it is. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* On a phone the page's language is its code, so the bar holds light or dark
   too; the full name stays for screen readers. */
.lang-short { display: none; text-transform: uppercase; }
@media (max-width: 519px) {
  .lang-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-short { display: inline; }
  .lang { gap: 5px; }
}
.lang:hover { border-color: var(--quiet); }
/* Light or dark by hand, in the bar at every width: the moon while light,
   the sun while dark. */
.theme { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--hair); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.theme::after { content: ""; position: absolute; inset: -4px; }
.theme:hover { border-color: var(--quiet); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme-toggle][aria-pressed="true"] .moon, [data-theme-toggle][aria-pressed="false"] .sun { display: none; }
.button.slim, .lang { white-space: nowrap; }
/* Every target meets the site's 48 px, the app's HIT_MIN; the pill and the
   slim button are drawn at 40 inside theirs. */
.lang, .button.slim { position: relative; }
.lang::after, .button.slim::after { content: ""; position: absolute; inset: -4px 0; }
p > a.go { display: inline-flex; align-items: center; min-height: 48px; }
@media (max-width: 519px) { .bar-nav { gap: 8px; } .lang { padding: 0 10px; } .button.slim { padding: 0 14px; } .brand { gap: 8px; } }
/* The smallest phones: the language as the globe alone, every gap a little
   closer, so name, light or dark, language and the store stand in one row. */
@media (max-width: 389px) {
  :root { --gutter: 16px; }
  .bar-nav { gap: 6px; }
  .brand { gap: 6px; }
  .brand { font-size: 16px; }
  .brand img { width: 24px; height: 24px; }
  .lang, .theme { width: 36px; height: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .lang::after, .theme::after { inset: -6px; }
  .lang-short { display: none; }
  .button.slim { padding: 0 11px; font-size: 14px; }
  .button.slim::after { inset: -6px 0; }
  .button.slim { min-height: 36px; }
}
@media (max-width: 339px) { .brand img { display: none; } .bar-nav { gap: 4px; } .button.slim { padding: 0 9px; } }
/* On a computer the places stand in a capsule; the page being read is
   filled in the tile grey, as the drawer marks the open trip, and the front
   page fills nothing, since the name is home. Floating, the bar's outline
   is the only one. */
.seg { display: none; }
@media (min-width: 900px) {
  .seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: 999px; transition: border-color 280ms var(--ease); }
  .bar.scrolled .seg { border-color: transparent; }
  .seg a { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; text-decoration: none; }
  .seg a::after { content: ""; position: absolute; inset: -7px 0; }
  .seg a:hover { background: var(--tile); }
  .seg a[aria-current] { background: var(--tile); font-weight: 700; }
}

/* Every phone in the store pictures' anonymous casing, as the promo film
   draws it: a metal edge catching light from the top left with a fine light
   line inside it, side keys any phone has, a black border under the glass,
   no notch and nothing of one maker's phone. Measured on the screen's own
   width (cqw), as the film measures it, so it is as thin as theirs at any
   size; the keys and the body lie behind the screen. */
:is(.device, .tour-device, .stop-shot picture, .phone) { position: relative; isolation: isolate; container-type: inline-size; }
:is(.device, .tour-device, .stop-shot picture, .phone)::before {
  content: ""; position: absolute; z-index: -2; inset: -3cqw -3.72cqw; pointer-events: none;
  background:
    linear-gradient(#4A515B, #4A515B) 0 24.7% / .8cqw 7% no-repeat,
    linear-gradient(#4A515B, #4A515B) 0 35.5% / .8cqw 7% no-repeat,
    linear-gradient(#2A3037, #2A3037) 100% 32.6% / .8cqw 11% no-repeat;
}
:is(.device, .tour-device, .stop-shot picture, .phone)::after {
  content: ""; position: absolute; z-index: -1; inset: -3cqw; pointer-events: none;
  border: 1.3cqw solid transparent; border-radius: 18cqw;
  background: linear-gradient(#0B0B0B, #0B0B0B) padding-box, linear-gradient(to bottom right, #5B636E, #22272E 45%, #3B424B) border-box;
  outline: .29cqw solid rgba(255, 255, 255, .28); outline-offset: -.55cqw;
  box-shadow: 0 5cqw 10cqw -3cqw rgba(15, 23, 32, .35);
}
.phone { margin: 0; }
.phone img { position: relative; width: 100%; border-radius: 15cqw; }

/* The arrangement the stores' pictures, the site and the films share
   (DESIGN §4): the screen's key piece lifted off it, larger, over the spot
   it was cut from, and beside the phone one of the film's objects or one of
   the app's papers. A piece's place is its rectangle on the screen (--l,
   --t, --w, --h, in parts of the screen, from .local/store/site9.py) grown
   by --k round its middle (or round its foot, --ay: 1); the screen's own place in what holds it is --sx,
   --sy and --sw, in that holder's width (cqw). Nothing lifted can be
   tapped. */
.lift {
  --sh: calc(var(--sw) * 1434 / 660);
  position: absolute; z-index: 3; height: auto; max-width: none; pointer-events: none;
  left: calc(var(--sx) + (var(--l) + var(--w) * (1 - var(--k)) / 2) * var(--sw));
  top: calc(var(--sy) + (var(--t) + var(--h) * (1 - var(--k)) * var(--ay, .5)) * var(--sh));
  width: calc(var(--w) * var(--k) * var(--sw));
  border-radius: calc(var(--sw) * .0364 * var(--k));
  box-shadow: 0 0 0 1px var(--lift-rim, var(--glass-rim)), 0 3cqw 7cqw -2.5cqw rgba(15, 23, 32, .5);
}
/* By night a lifted piece has only its rim to stand out from the screen. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lift { --lift-rim: rgba(255, 255, 255, .2); } }
:root[data-theme="dark"] .lift { --lift-rim: rgba(255, 255, 255, .2); }
/* The film's sheet stands on the bar's foot, which is alike in every
   language, while a reading may add a line above it. */
.l-sheet { --l: .0394; --t: .7273; --w: .9212; --h: .1771; --k: 1.216; top: auto; bottom: calc(var(--sh) * (1 - var(--t) - var(--h)) - var(--sy)); }
/* Every piece is a band as wide as the screen, grown to 1.12 of its width,
   so each reaches over both edges of the phone by the same amount. The
   waiting payments grow down from their rows, so their head stays free. */
.l-receipt { --l: .0303; --t: .6667; --w: .947; --h: .0523; --k: 1.183; }
.l-wait { --l: .0371; --t: .4878; --w: .9258; --h: .1757; --k: 1.21; --ay: 0; }
.l-share { --l: .0152; --t: .136; --w: .9697; --h: .1255; --k: 1.155; }
.l-pass { --l: .0152; --t: .1464; --w: .9697; --h: .1552; --k: 1.155; }
/* An object keeps its shadow in its file, so it reads on white, on black
   and on the end's ink alike; a paper is the app's own PDF, white by day
   and a little dimmed by night. Both lean, the phone stands. */
.thing { position: absolute; height: auto; pointer-events: none; }
/* The statement is a whole page; the receipt lies turned inside its picture,
   so its shadow follows the paper's own edge, not the picture's box. */
.t-statement { box-shadow: 0 18px 40px -18px rgba(15, 23, 32, .5); }
.t-receipt { filter: drop-shadow(0 14px 16px rgba(15, 23, 32, .22)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.t-statement, .t-receipt) { filter: brightness(.85); } }
:root[data-theme="dark"] :is(.t-statement, .t-receipt) { filter: brightness(.85); }
/* The headline's one phrase in the button's teal. */
:is(.hero h1, .stop h3) em { font-style: normal; color: var(--button); }

.badge { display: inline-block; transition: transform 180ms var(--ease); }
.badge img { height: 56px; width: auto; }
.get-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Both stores side by side on a phone, still above Apple's 40 px. */
@media (max-width: 440px) { .badge img { height: 48px; } }
/* A phone sees only its own store's badge, a computer both and the QR. */
html[data-platform="ios"] .badge.play, html[data-platform="android"] .badge.apple { display: none; }
.qr-button {
  display: none; place-items: center; width: 56px; height: 56px; border-radius: 16px; cursor: pointer;
  background: var(--page); border: 1.5px solid var(--hair); transition: transform 180ms var(--ease), border-color 180ms;
}
.qr-button svg { width: 24px; height: 24px; fill: var(--ink); }
.qr-button:hover { border-color: var(--quiet); }
html[data-platform="desktop"] .qr-button { display: inline-grid; }
/* Until a store lists Tervaya, the stores' place says it is coming. */
.soon { margin: 0; font-weight: 700; }
/* Before a store lists Tervaya the closing says so as a line under its
   head, and the stores' row stays away. */
.closing .get-row:not(:has(*)) { display: none; }
.facts { font-size: 15px; color: var(--quiet); }
.later { font-size: 15px; color: var(--quiet); }

.qr-dialog { border: 0; border-radius: 28px; padding: 28px; width: min(360px, calc(100% - 40px)); text-align: center; color: var(--ink); background: var(--tile); box-shadow: 0 40px 80px -30px rgba(15, 23, 32, .5); }
.qr-dialog::backdrop { background: rgba(15, 23, 32, .45); }
.qr-dialog img { width: 200px; height: 200px; margin: 0 auto 18px; padding: 14px; border-radius: 16px; background: var(--plate); border: 1px solid var(--hair); }
.qr-title { font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.qr-text { color: var(--quiet); font-size: 15px; margin-bottom: 20px; }
.close { width: 100%; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--page); font-weight: 700; cursor: pointer; }
.close:hover { border-color: var(--quiet); }

/* The hero fills the window under the bar (68 px and its rim), so the rest
   comes only with the scroll: the claim, and a phone playing what one
   sentence becomes. It opens as the app's welcome does: the day chain draws
   itself up close, each bead springing in as the line reaches it and
   today's landing with its halo, the days ahead growing in grey; then the
   view steps back, the phone's rim closes round the chain, and the trip's
   own screen comes up over it, every bead where the chain lies on it. Only
   then come the words, the name rising out of its line, and once they
   stand the film plays on from that very frame (`--intro`, read by site.js
   too). Without motion the screen and the words simply stand. A generic phone, upright:
   Apple's own iPhone may not be tilted, moved or overlaid. What the
   sentence becomes floats beside the phone in step with the film, and
   stands there with the still where no film plays. On a phone the claim
   comes first, the scene fills the rest of the first screen, and the words
   and the stores follow under it. */
.hero { --intro: 3.6s; padding-block: 24px var(--gap); overflow: hidden; }
.hero-in { display: grid; gap: 22px; }
/* Rows as written, never stretched: WebKit 26 spreads a grid's free height
   over its auto rows. */
.hero-first { display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 22px; min-height: calc(100svh - 70px - 24px); }
.hero-head, .hero-rest { display: grid; gap: 22px; max-width: 620px; }
.hero-head { container-type: inline-size; }
.scene { position: relative; display: grid; place-items: center; min-height: 300px; margin: 0 calc(-1 * var(--side)); }
/* On a phone in a tall window the bead can be wider than the column: it
   overflows the scene, cut by the hero, and never widens the page. */
@media (max-width: 959px) { .scene { grid-template-columns: minmax(0, 1fr); } }
.scene > * { grid-area: 1 / 1; }
.bead { position: relative; height: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--tile); }
/* Today's halo, once, as the expense lands on the day. */
.bead::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 16px var(--mint); opacity: 0; }
.tilt { position: relative; height: 90%; aspect-ratio: 660 / 1434; container-type: inline-size; --sx: 0cqw; --sy: 0cqw; --sw: 100cqw; }
/* On a phone it leaves the film's button and note their room either side. */
@media (max-width: 599px) { .tilt { height: min(90%, (100vw - 2 * var(--side) - 152px) * 1434 / 660); } }
/* The device is the container its rim, corners and chain are measured on,
   so they are drawn by what lies inside it; it steps back from the chain's
   middle. The rim is a ring: while it comes in, nothing dark lies under the
   chain. */
.device { width: 100%; height: 100%; transform-origin: 50% 37.83%; }
.device img, .device video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 15cqw; }
/* The trip's day chain as its screen draws it, in hundredths of the
   phone's width (cqw), measured on the still of Japan's day 5, light and
   dark alike: the line from 24 to 635 px of 660 at 542.5 of 1434, the four
   days lived at 62, 138, 215 and 291.5, 47, 31, 51 and 34 px wide, today at
   367.5 and 32 with its halo, the three days ahead 12 px at 444 to 597.
   Under the screen, so it shows only while the screen comes up. */
.chain { position: absolute; inset: 0; border-radius: 15cqw; }
.chain i { position: absolute; top: 82.2cqw; }
.c-line { left: 3.64cqw; width: 92.6cqw; height: .6cqw; translate: 0 -50%; border-radius: .3cqw; background: var(--chain-line); transform-origin: left; }
.c-day, .c-dot { translate: -50% -50%; border-radius: 50%; }
.c-day { background: var(--teal); }
.c-1 { left: 9.39cqw; width: 7.12cqw; height: 7.12cqw; }
.c-2 { left: 20.91cqw; width: 4.7cqw; height: 4.7cqw; }
.c-3 { left: 32.58cqw; width: 7.73cqw; height: 7.73cqw; }
.c-4 { left: 44.17cqw; width: 5.15cqw; height: 5.15cqw; }
.c-5 { left: 55.68cqw; width: 4.85cqw; height: 4.85cqw; box-shadow: 0 0 0 1.45cqw var(--mint); }
.c-dot { width: 1.8cqw; height: 1.8cqw; background: var(--chain-line); }
.c-6 { left: 67.27cqw; } .c-7 { left: 78.94cqw; } .c-8 { left: 90.45cqw; }
.film { opacity: 0; }
.scene.playing .film { opacity: 1; }
.scene.filmed:not(.playing) :is(.said, .l-sheet) { opacity: 0; }
.said { position: absolute; z-index: 2; margin: 0; font-size: 14px; }
.said {
  background: var(--page); color: var(--ink); border: 1px solid var(--glass-rim);
  box-shadow: 0 16px 36px -18px rgba(15, 23, 32, .45);
}
.said { left: var(--side); top: 4%; display: flex; align-items: center; gap: 8px; max-width: min(58%, 290px); padding: 10px 14px; border-radius: 20px 20px 20px 6px; line-height: 1.35; text-wrap: pretty; }
.said svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--quiet); stroke-width: 1.6; stroke-linecap: round; }
/* What is said floats off the chain and the day's figure: on a phone over
   the trip's name, where the scene is wider down beside the voice sheet.
   What it becomes is the film's own sheet, lifted off the screen. */
.film-toggle {
  position: absolute; z-index: 3; left: var(--side); bottom: 2%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--glass-rim); border-radius: 50%; background: var(--glass); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.film-toggle::after { content: ""; position: absolute; inset: -2px; }
/* The film cuts the waits out, and says so while it plays. */
.cut { position: absolute; z-index: 2; right: var(--side); bottom: calc(2% + 6px); max-width: 76px; margin: 0; font-size: 12px; line-height: 1.3; text-align: right; color: var(--quiet); visibility: hidden; }
.scene.playing .cut { visibility: visible; }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film-toggle .play, .film-toggle.held .pause { display: none; }
.film-toggle.held .play { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .device { animation: back 800ms cubic-bezier(.4, 0, .2, 1) 1.2s both; }
  .device::before, .device::after { animation: show 500ms ease 1.5s both; }
  /* The screen's own ground fills in with the rim. */
  .chain { background: var(--screen); animation: show-ground 500ms ease 1.5s both; }
  .device img { animation: show 400ms ease 2s both; }
  .c-line { animation: draw 500ms var(--soft) both; }
  .c-day { animation: spring 500ms cubic-bezier(.2, .9, .3, 1.25) 50ms both; }
  .c-2 { animation-delay: 140ms; } .c-3 { animation-delay: 230ms; } .c-4 { animation-delay: 320ms; }
  .c-5 { animation: spring 500ms cubic-bezier(.2, .9, .3, 1.25) 410ms both, halo-in 400ms var(--ease) 660ms both; }
  .c-dot { animation: grow 300ms var(--soft) 500ms both; }
  .c-7 { animation-delay: 560ms; } .c-8 { animation-delay: 620ms; }
  .bead { animation: bead-in 1200ms var(--soft) 2.3s both; }
  /* What floats beside the phone, its button and its note come with the
     screen; from there the film's beats move them, as nothing holds them. */
  .said, .l-sheet, .film-toggle, .cut { animation: show 400ms ease var(--intro) backwards; }
  .film { transition: opacity 400ms var(--ease); }
  .said, .l-sheet { transition: opacity 320ms var(--ease), transform 480ms var(--ease); }
  .scene.playing:not([data-beat="say"]) .said { opacity: 0; transform: translateY(12px) scale(.94); }
  .scene.playing:not([data-beat="read"]) .l-sheet { opacity: 0; transform: translateY(4%) scale(.94); }
  .scene.playing[data-beat="saved"] .bead::after { animation: halo 1400ms var(--ease) both; }
}
@keyframes back { from { scale: 1.8; } }
@keyframes show { from { opacity: 0; } }
@keyframes show-ground { from { background-color: transparent; } }
@keyframes draw { from { scale: 0 1; } }
@keyframes spring { from { scale: 0; } }
@keyframes grow { from { scale: 0; } }
@keyframes halo-in { from { box-shadow: 0 0 0 0 var(--mint); } }
@keyframes bead-in { from { opacity: 0; transform: scale(.55); } }
@keyframes halo { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.1); } }
@media (min-width: 600px) { .said { font-size: 15px; left: 6%; top: 74%; } .cut { bottom: 2%; max-width: none; line-height: 44px; } }
/* On a computer the phone sinks into the page as the hero leaves, a little
   slower than the words, and fades out at the hero's edge as a cut picture
   does, never cut by a line. The film's button and note go with it. */
@media screen and (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero { position: relative; }
  .hero::after { content: ""; position: absolute; z-index: 0; inset: auto 0 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--page)); pointer-events: none; }
}
@supports (animation-timeline: view()) {
  @media screen and (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero; }
    .scene { animation: lag linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
}
@keyframes lag { to { translate: 0 7rem; } }
/* The front page's name rises once in one piece, as the phone stands;
   scrolled, it rides up with the page and shrinks into the bar, whose own
   name takes over as it arrives, as the app's large title goes into its
   bar. Above the bar while it travels; cut only below the y. */
.masthead {
  position: relative; z-index: 21; margin: 0 0 -10px; padding-bottom: .14em; overflow: hidden;
  font: 800 min(128px, 22cqw)/1 var(--head); letter-spacing: -.045em; transform-origin: 0 50%;
}
.masthead span { display: inline-block; }
/* Under the name the claim speaks as a line, not a second name. */
.hero h1 { font: 700 clamp(28px, 1.4vw + 22px, 44px)/1.15 var(--text); letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .masthead span { animation: rise-in 1900ms var(--soft) 2.4s both; }
  .hero h1 { animation: rise 600ms ease 2.6s both; }
}
@keyframes rise-in { from { transform: translateY(105%); opacity: 0; } }
@media (min-width: 960px) {
  .hero { padding-block: 24px 48px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head scene" "rest scene"; grid-template-rows: auto auto; column-gap: 56px; align-content: center; min-height: calc(100svh - 70px - 72px); }
  .hero-first { display: contents; }
  .hero-head { grid-area: head; align-self: end; }
  .hero-rest { grid-area: rest; align-self: start; }
  .scene { grid-area: scene; height: clamp(480px, 100svh - 70px - 72px, 680px); margin: 0; }
  .said { left: 0; }
  .film-toggle { left: 6%; }
  .cut { right: 0; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero-rest { animation: rise 600ms ease 2.75s both; }
}
/* Where the phone stands close to the note, the note goes under its rim. */
@media (min-width: 960px) and (max-width: 1279px) { .cut { bottom: -14px; } }

/* Sections: a centred head, then their content, all on the one page with
   nothing in a block: pictures lie on it with their own shadow, rows are
   parted by hairlines, and a screen cut by its part's edge fades out there,
   never in a tile. */
.head { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto 48px; }
/* The thread: each part's head hangs on the day chain, a line coming down
   out of the part above to a bead, so the page reads as one trip, stop by
   stop, never as parts laid side by side. The line and the bead as the
   app draws its chain. */
.head::before, .head::after { content: ""; position: absolute; left: 50%; pointer-events: none; }
.head::before { bottom: calc(100% + 30px); width: 2px; height: calc(var(--gap) + 10px); margin-left: -1px; border-radius: 1px; background: linear-gradient(to bottom, transparent, var(--chain-line) 40px); }
/* The closing hangs on no thread: it rises as a sheet of its own over the
   page's end, with the foot under it. */
.head::after { bottom: calc(100% + 16px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--teal); }

/* The tour: the questions a trip asks, each a bubble in the hero's shape
   above its answer, and the app's own screen answering it. On a phone each
   question stands with its screen, cut where its answer lies and faded at
   the cut; on a computer the words stand left and the whole screen right,
   and where the scroll can drive it one phone stays while the questions
   pass, each screen fading in over the last as its question reaches the
   window's middle, the page's one moment after the opening. */
.tour, .faq-part, .letter-part { padding-block: var(--gap); }
/* What leans out beside a stop's phone never widens the page; clip, not
   hidden, so the computer's phone still stays. */
.tour { overflow-x: clip; }
.stops { display: grid; gap: 80px; margin: 0; padding: 0; list-style: none; }
.stop { display: grid; gap: 14px; justify-items: start; align-content: center; }
.bubble {
  max-width: min(100%, 44ch); padding: 10px 16px; border-radius: 20px 20px 20px 6px; text-wrap: pretty;
  background: var(--page); border: 1px solid var(--glass-rim); box-shadow: 0 16px 36px -18px rgba(15, 23, 32, .45);
  font-weight: 600; line-height: 1.35;
}
.stop h3 { margin-top: 6px; font: 800 clamp(26px, 1.2vw + 20px, 38px)/1.12 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.stop p:not(.bubble) { color: var(--quiet); max-width: 42ch; text-wrap: pretty; }
/* Each answer is the stores' arrangement: the screen, the piece it lifts,
   and an object or a paper at a lower corner, outside the fade. The screen
   stands 5 % in from the figure's sides; cut at its foot it starts higher. */
.stop-art { position: relative; justify-self: center; width: min(100%, 340px); margin: 12px 0 0; container-type: inline-size; --sx: 5cqw; --sw: 90cqw; --sy: 5cqw; }
.stop-art:has(.keep-foot) { --sy: -64.18cqw; }
.stop-art:has(.keep-band) { --sy: -81.82cqw; }
.stop-shot { padding: 0 5%; aspect-ratio: 660 / 900; overflow: hidden; }
.stop-shot picture, .tour-device picture { display: block; }
.stop-shot img { width: 100%; border-radius: 15cqw; }
.stop-shot.keep-top { padding-top: 5%; -webkit-mask-image: linear-gradient(to top, transparent, #000 14%); mask-image: linear-gradient(to top, transparent, #000 14%); }
.stop-shot.keep-foot { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 5%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%); mask-image: linear-gradient(to bottom, transparent, #000 14%); }
/* A screen that answers near its top ends sooner, under its big line
   before a list that belongs to the help; a computer shows it whole. */
.stop-shot:where(.crop-head) { aspect-ratio: 660 / 530; }
/* Payments waiting under the trip's days: a band from the chain to just
   under their rows, faded at both ends, so it neither repeats the top of the
   first stop nor sinks among the rows below. */
.stop-shot:where(.keep-band) { aspect-ratio: 660 / 540; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
@media (max-width: 959.98px) { .stop-shot.keep-band picture { translate: 0 -41.84%; } }
/* On a phone an object lies only where the screen shows no word and no
   lifted piece: over its faded edge, at the frame's corner. The card
   payments' band has no such place and shows none. */
.stop-art .thing { z-index: 2; }
.stop-art .t-suitcase { left: -9cqw; top: 118cqw; width: 32cqw; rotate: -6deg; }
.stop-art .t-receipt { right: -7cqw; top: -4cqw; width: 25cqw; rotate: 6deg; }
.stop-art .t-terminal { display: none; }
.stop-art .t-statement { right: -8cqw; top: 92cqw; width: 46cqw; rotate: 4deg; }
.tour-phone { display: none; }
@media (min-width: 960px) {
  .stop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
  .stop > :not(.stop-art) { grid-column: 1; }
  .stop-art { grid-column: 2; grid-row: 1 / span 4; align-self: center; --sy: 5cqw; }
  .stop-art:is(:has(.keep-foot), :has(.keep-band)) { --sy: 5cqw; }
  .stop-shot { aspect-ratio: auto; padding: 5%; -webkit-mask-image: none; mask-image: none; }
  .stop-art .t-suitcase { left: -14cqw; top: 138cqw; width: 40cqw; }
  .stop-art .t-receipt { right: auto; left: -14cqw; top: 36cqw; width: 34cqw; rotate: -6deg; }
  .stop-art .t-terminal { display: block; left: -14cqw; top: 64cqw; width: 40cqw; rotate: -8deg; }
  .stop-art .t-statement { right: -30cqw; top: 90cqw; width: 72cqw; }
  @media (max-width: 1199.98px) { .stop-art .t-statement { right: -18cqw; } }
}
/* Where the scroll can drive it, one phone stays: each screen, and with it
   its piece over the phone and its object behind it (the statement lies
   over it), fades in over the last as its question reaches the window's
   middle. */
@supports (timeline-scope: --s) and (animation-timeline: view()) {
  @media screen and (min-width: 960px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
    .tour-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; timeline-scope: --s2, --s3, --s4, --s5; }
    .stops { gap: 0; }
    .stop { grid-template-columns: minmax(0, 1fr); min-height: 75vh; }
    .stop:nth-child(2) { view-timeline: --s2; }
    .stop:nth-child(3) { view-timeline: --s3; }
    .stop:nth-child(4) { view-timeline: --s4; }
    .stop:nth-child(5) { view-timeline: --s5; }
    /* Each question keeps its screen for a screen reader; the phone that
       stays is drawn for the eye alone. */
    .stop-art { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .tour-phone { display: block; position: sticky; top: calc(50vh - min(38vh, 380px)); height: min(76vh, 760px); align-self: start; }
    .tour-device { z-index: 1; height: 100%; aspect-ratio: 660 / 1434; margin: 0 auto; }
    .tour-back, .tour-art { position: absolute; top: 0; left: 50%; translate: -50% 0; height: 100%; aspect-ratio: 660 / 1434; container-type: inline-size; --sx: 0cqw; --sy: 0cqw; --sw: 100cqw; }
    .tour-back { z-index: 0; }
    .tour-art { z-index: 2; }
    .art-step { position: absolute; inset: 0; }
    .tour-back .t-suitcase { left: -62cqw; top: 104cqw; width: 84cqw; rotate: -6deg; }
    .tour-back .t-receipt { left: 80cqw; top: 8cqw; width: 70cqw; rotate: 6deg; }
    .tour-back .t-terminal { left: -60cqw; top: 60cqw; width: 80cqw; rotate: -8deg; }
    /* The statement is the answer itself: nearly a phone's width, lying over
       the screen's lower half, which says the same, its title in sight. */
    .tour-art .t-statement { left: 54cqw; top: 92cqw; width: 92cqw; rotate: 4deg; }
    @media (max-width: 1199.98px) { .tour-art .t-statement { left: 44cqw; width: 88cqw; } }
    .tour-device > picture, .tour-device > img { position: absolute; inset: 0; }
    .tour-device img { width: 100%; height: 100%; border-radius: 15cqw; }
    .tour-device > :nth-child(n + 2) { animation: screen-in linear both; }
    .tour-device > :nth-child(2) { animation-timeline: --s2; }
    .tour-device > :nth-child(3) { animation-timeline: --s3; }
    .tour-device > :nth-child(4) { animation-timeline: --s4; }
    .tour-device > :nth-child(5) { animation-timeline: --s5; }
    .tour-device > :nth-child(n + 2) { animation-range: cover 47vh cover 53vh; }
    /* A piece goes in the first half of the screens' cross-fade and the
       next comes in the second, so two never stand at once. */
    .art-step:nth-child(1) { animation: art-out linear both; animation-timeline: --s2; }
    .art-step:nth-child(2) { animation: art-in linear both, art-out linear both; animation-timeline: --s2, --s3; }
    .art-step:nth-child(3) { animation: art-in linear both, art-out linear both; animation-timeline: --s3, --s4; }
    .art-step:nth-child(4) { animation: art-in linear both, art-out linear both; animation-timeline: --s4, --s5; }
    .art-step:nth-child(5) { animation: art-in linear both; animation-timeline: --s5; }
    .tour-phone .art-step { animation-range: cover 50vh cover 53vh, cover 47vh cover 50vh; }
    .tour-phone .art-step:first-child { animation-range: cover 47vh cover 50vh; }
  }
}
@keyframes screen-in { from { opacity: 0; } }
@keyframes art-in { from { opacity: 0; } }
@keyframes art-out { to { opacity: 0; } }

/* A screen cut by its tile, as the guides show theirs. */
.shot-tile { position: relative; margin: 0; aspect-ratio: 1 / 1.08; border-radius: 28px; background: var(--tile); overflow: hidden; container-type: inline-size; }
.shot-tile img {
  position: absolute; left: 12%; width: 76%;
  box-shadow: 0 0 0 1.4cqw var(--rim), 0 28px 60px -26px rgba(15, 23, 32, .42);
}
.shot-tile.keep-top img { bottom: 0; border-radius: 9.4cqw 9.4cqw 0 0; }
.shot-tile.keep-foot img { top: 0; border-radius: 0 0 9.4cqw 9.4cqw; }
/* Questions and titles break evenly, so no word stands alone on a last
   line in any language. */
.qa h3, .guide-title { text-wrap: pretty; }

/* Guides: each a tile in the features' look, its screen hanging from the
   tile's top edge, its words under it; the whole tile is the one link. */
.guide-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 12px; }
.guide-card { display: grid; border-radius: 28px; background: var(--tile); text-decoration: none; overflow: hidden; transition: transform 180ms var(--ease); }
.guide-shot { position: relative; display: block; aspect-ratio: 1 / .78; overflow: hidden; container-type: inline-size; }
.guide-shot img { position: absolute; bottom: 2.5cqw; left: 12%; width: 76%; border-radius: 0 0 9.4cqw 9.4cqw; box-shadow: 0 0 0 1.4cqw var(--rim); }
.guide-text { display: grid; gap: 8px; padding: 24px 28px 28px; }
.guide-line { color: var(--quiet); }
@media (hover: hover) { .guide-card:hover { transform: translateY(-2px); } }
.guide-card:active { transform: scale(.98); }
/* Card payments wait at the top of the trip screen, so that card shows the
   screen's top. */
.guide-shot.from-top img { top: 0; bottom: auto; border-radius: 0; }
.guide-kicker { font-size: 14px; color: var(--quiet); }
.guide-title { font: 800 26px/1.15 var(--head); }

/* The letter, word for word as About says it, open on the page as a
   letter is, not in a card. */
.letter-in { display: grid; gap: 36px; }
.letter { display: grid; gap: 14px; max-width: 62ch; }
@media (max-width: 599px) { .letter { padding-inline: 12px; } }
.letter .hi { font-weight: 700; font-size: 20px; }
.letter .sign { font-weight: 700; }
.letter-side { display: grid; align-content: start; }
.letter-side .photo { border-radius: 28px; }
/* On a phone the page gives a taste at a glance: the letter's middle folds
   behind a line (`site.js` folds it there), and the letter's photo lies
   across. On a wider screen everything stands open. */
.letter-more > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--teal); }
.letter-more > summary::-webkit-details-marker { display: none; }
.letter-more > summary::after { content: " ›"; }
.letter-more[open] > summary { display: none; }
.letter-more > p + p, .letter-more > summary + p { margin-top: 14px; }
@media (min-width: 600px) { .letter-more > summary { display: none; } }
@media (max-width: 599px) {
  .letter-side .photo { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; }
}
@media (min-width: 960px) {
  .letter-in { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
  .letter-side { order: 2; }
}

/* The questions before the closing, in the help's own words and look, one
   open at a time. */
.faq { max-width: 760px; margin: 0 auto; }

/* The closing rises over the page like one of the app's sheets, by day the
   ink the page ends on, by night its most lifted dark step; the foot stands
   on the same sheet. What lies on it casts the end's own shadow. */
.closing, .foot { --ink: var(--end-ink); --quiet: var(--end-quiet); --hair: var(--end-hair); background: var(--end); color: var(--ink); }
.closing { position: relative; z-index: 1; margin-top: 24px; padding-block: 88px 96px; border-radius: 28px 28px 0 0; box-shadow: inset 0 1px 0 var(--end-lit); }
.closing-in { display: grid; gap: 22px; justify-items: center; text-align: center; }
.closing .get-row { justify-content: center; }
.closing .qr-button { background: transparent; border-color: var(--hair); }
/* Three screens fanned, the closed trip in front, the places and Insight
   leaning out behind it, cut by the sheet's edge; a suitcase at its side. */
.closing { overflow: hidden; padding-bottom: 0; }
.closing-fan { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: start; width: min(720px, calc(100% - 2 * var(--side))); height: clamp(250px, 44vw, 430px); margin: 48px auto 0; container-type: inline-size; }
.closing-fan .phone { position: relative; z-index: 1; }
.closing-fan .tilt-left { transform: rotate(-6deg) translate(18%, 10%); }
.closing-fan .front { z-index: 2; }
.closing-fan .tilt-right { transform: rotate(6deg) translate(-18%, 10%); }
.foot { position: relative; z-index: 1; font-size: 15px; overflow: hidden; }
.foot-in { display: grid; gap: 36px; padding-block: 40px; border-top: 1px solid var(--hair); }
.foot-brand { display: grid; gap: 12px; max-width: 42ch; }
.foot-brand p, .foot .fine { color: var(--quiet); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin-bottom: 4px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .fine { font-size: 13px; }
@media (pointer: coarse) { .foot-cols div { gap: 0; } .foot-cols a { display: flex; align-items: center; min-height: 48px; } }
@media (min-width: 960px) { .foot-in { grid-template-columns: 1fr 1.4fr; } .foot .fine { grid-column: 1 / -1; } }

/* Pages for reading: legal, help, guides, the invitation, /get and the 404. */
.legal, .help, .guide { max-width: 784px; padding-block: 40px 96px; }
.legal h1, .help h1 { font-size: clamp(36px, 2vw + 26px, 52px); margin-bottom: 8px; }
.legal-nav { font-size: 15px; color: var(--quiet); margin-bottom: 28px; }
.legal-nav [aria-current] { color: var(--ink); font-weight: 700; }
.legal .as-of { color: var(--quiet); font-size: 15px; }
.legal h2 { font: 700 22px/1.3 var(--text); margin: 36px 0 6px; letter-spacing: 0; }
.legal h3 { font-size: 18px; margin: 18px 0 4px; }
.legal p { margin: 6px 0; }
.draft { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--tile); font-size: 15px; }

.guide { display: grid; gap: 18px; }
.guide h3 { font-size: 19px; margin-top: 10px; }
.guide-part { display: grid; gap: 18px; }
/* An article's screen: the features' tile, one at a time, readable. */
.article-shot { display: grid; gap: 10px; justify-items: center; margin: 10px 0; }
.article-shot .shot-tile { width: min(100%, 560px); }
.article-shot figcaption { font-size: 14px; color: var(--quiet); }
.mistake { color: var(--quiet); }
.guide h1 { font-size: clamp(36px, 2vw + 26px, 52px); }
.guide .byline { color: var(--quiet); font-size: 15px; }
.guide h2 { font: 700 24px/1.3 var(--text); letter-spacing: 0; margin-top: 18px; }
.guide-end { display: grid; gap: 16px; margin-top: 24px; padding: 28px; border-radius: 28px; background: var(--tile); }

.topic { margin-top: 48px; }
.topic > h2 { font: 700 24px/1.3 var(--text); letter-spacing: 0; margin-bottom: 8px; }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--quiet); border-bottom: 2px solid var(--quiet); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa h3 { font-size: 18px; font-weight: 600; }
.answer { display: grid; gap: 12px; padding: 0 0 24px; color: var(--ink); }
.path { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.pro-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-rows li { padding: 12px 16px; border-radius: 16px; background: var(--tile); font-weight: 600; }
.pro-rows span { display: block; font-weight: 400; color: var(--quiet); font-size: 15px; }
.shot { margin: 4px 0; }
.shot img { border-radius: 16px; border: 1px solid var(--hair); }
.shot figcaption { font-size: 14px; color: var(--quiet); margin-top: 8px; }
.reads { display: grid; gap: 10px; padding: 20px; border-radius: 24px; background: var(--tile); }
.reads h4 { margin: 0; font-size: 17px; }
.contact { display: grid; gap: 10px; }
.small { font-size: 14px; color: var(--quiet); }

.join, .get, .missing { max-width: 520px; padding-block: 48px 96px; display: grid; gap: 16px; }
.get, .missing { justify-items: center; text-align: center; }
.get .icon { width: 96px; height: 96px; border-radius: 22px; }
.join h1 { font-size: clamp(36px, 2vw + 28px, 52px); overflow-wrap: anywhere; }
.join .lead { color: var(--ink); }
.seats { display: flex; gap: 14px; margin: 4px 0 8px; }
.seats span { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.disc { background: var(--tile); color: var(--quiet); font-size: 28px; font-weight: 700; }
.seat { border: 3px dashed var(--button); }
.note { font-size: 15px; color: var(--quiet); }
.bad { color: var(--bad); }
.qr svg { width: 200px; height: 200px; background: var(--plate); padding: 12px; border-radius: 16px; border: 1px solid var(--hair); }
.missing .links { display: flex; gap: 24px; }
/* The invitation shows the phone's own store, a computer the QR instead;
   without a script both badges stand. */
html[data-platform="ios"] .join-badges .play, html[data-platform="android"] .join-badges .apple, html[data-platform="desktop"] .join-badges { display: none; }

/* Glass only where the browser blurs and the visitor wants it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar.scrolled .bar-in, .site-menu, .lang-menu { background: var(--page); }
}
@media (prefers-reduced-transparency: reduce) {
  .bar.scrolled .bar-in, .site-menu, .lang-menu { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Below the hero, the chain goes on with the scroll, in CSS alone: a head's
   thread comes down out of the part above and its bead grows at the end, as
   the chain's beads grow. The words and pictures stand where they are, the
   tour's screen being the page's moment. The closing's sheet rises over the
   page's end and its phones come up out of its edge. Where a browser cannot
   tie an animation to the scroll, with less motion or on paper, everything
   simply stands. */
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .head { view-timeline: --head; }
    .head::before { transform-origin: top; animation: draw-down linear both; animation-timeline: --head; animation-range: cover 0% cover 15%; }
    .head::after { animation: grow ease-out both; animation-timeline: --head; animation-range: cover 12% cover 22%; }
    .closing { animation: sheet ease-out both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* The objects and papers float as the page is scrolled: a slow sway
       driven by the reader's hand, never moving on their own. */
    .thing { animation: float linear both; animation-timeline: scroll(root); }
    .tour-back .t-receipt, .stop-art .t-statement { animation-direction: reverse; }
  }
  /* The phone and its cases rise only where a computer gives them room. */
  @media screen and (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .closing-fan .phone { animation: up ease-out both; animation-timeline: view(); animation-range: entry 0% entry calc(100% + 120px); }
    .closing-fan .front { --from: 150px; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes draw-down { from { scale: 1 0; } }
@keyframes sheet { from { translate: 0 72px; } }
@keyframes up { from { translate: 0 var(--from, 80px); } }
@keyframes float {
  0%, 20%, 40%, 60%, 80%, 100% { transform: none; }
  10%, 50%, 90% { transform: translateY(-0.5rem) rotate(-3deg); }
  30%, 70% { transform: translateY(0.4rem) rotate(3deg); }
}

@media print, (prefers-reduced-motion: reduce) {
  .brand-line, .seg { transition: none; }
  .bar-in { transition: none; }
}
/* With less motion a button only darkens under the finger, as in the app. */
@media (prefers-reduced-motion: reduce) {
  .button:hover, .badge:hover, .qr-button:hover, .guide-card:hover,
  .button:active, .badge:active, .qr-button:active, .guide-card:active { transform: none; }
}
/* On paper the bar does not float and the name stands where it was set,
   whatever the scroll left them. */
@media print {
  .bar { position: static; }
  .masthead { visibility: visible !important; transform: none !important; }
}
