/* The home page below the hero: sections 2 to 9 (Docs/home-plan.md). The page is complete without JavaScript and with
   Reduce Motion: every rule outside `.js` and `prefers-reduced-motion: no-preference` is the finished state.

   Springs are the app's (KartoDesign Motion), sampled as CSS linear() curves and run for their settle time:
   extract 0.32 s / bounce 0.15 for 0.445 s, restore 0.45 s / 0.15 for 0.627 s, plateArrival 0.30 s / 0 for 0.44 s,
   pressFeedback 0.25 s / 0 for 0.367 s. */

:root {
  --spring-crit: linear(0, 0.057, 0.18, 0.321, 0.455, 0.573, 0.671, 0.75, 0.812, 0.86, 0.896, 0.924, 0.944, 0.96,
    0.971, 0.979, 0.985, 0.989, 0.992, 0.994, 0.996, 0.997, 0.998, 0.999, 1);
  --panel: var(--surface);
  --app-ink: #000;
  --app-ink-2: #3A3F45;
  --app-leaf: #fff;
  --app-sep: rgb(0 0 0 / 0.08);
  --app-ground: linear-gradient(to bottom right, rgb(246 243 239), rgb(239 241 240) 50%, rgb(236 238 241));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --app-ink: #fff; --app-ink-2: #A8ADB4; --app-leaf: #1C1C1E; --app-sep: rgb(255 255 255 / 0.08);
    --app-ground: #121214; } }
:root[data-theme="dark"] { --app-ink: #fff; --app-ink-2: #A8ADB4; --app-leaf: #1C1C1E; --app-sep: rgb(255 255 255 / 0.08);
    --app-ground: #121214; }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.h2-quiet { color: var(--ink-3); }
/* A section's number and name above its heading (Superlist's eyebrows), quiet, in the app's own type. */
.eyebrow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; color: var(--ink-2); font-size: 14px;
  font-weight: 600; letter-spacing: -0.005em; }
.eyebrow span { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 500; }
/* Panels that take their colour from a sample card (--tint): a pale wash of it in light, a deep one in dark. */
.tile.tinted { --tile-bg: color-mix(in oklab, var(--tint) 13%, var(--surface)); background: var(--tile-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.tinted { --tile-bg: color-mix(in oklab, var(--tint) 34%, #141312); } }
:root[data-theme="dark"] .tile.tinted { --tile-bg: color-mix(in oklab, var(--tint) 34%, #141312); }
@media (min-width: 900px) { .h2 { font-size: clamp(52px, 4.6vw, 66px); } .lead { font-size: 21px; } }

/* ---------------------------------------------------------------------------------------------------------------
   An iPhone (iPhone 18 Pro, its frame from tools/hero.py) whose screen is drawn in the app's own points: 402 x 874,
   scaled as a whole to the frame's width --pw (in CSS px, unitless). The frame is 450 x 920 pt, the screen sits at
   (24, 23) inside it with a 52 pt corner.
   --------------------------------------------------------------------------------------------------------------- */

.iphone { --pw: 360; position: relative; display: block; width: calc(var(--pw) * 1px); aspect-ratio: 450 / 920; flex: none; }
.iphone-frame { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.iphone-frame img { width: 100%; height: 100%; }
.screen { position: absolute; left: 0; top: 0; width: 402px; height: 874px; overflow: hidden; border-radius: 52px;
  transform-origin: 0 0; transform: translate(calc(var(--pw) * 24px / 450), calc(var(--pw) * 23px / 450)) scale(calc(var(--pw) / 450));
  color: var(--app-ink); font-family: var(--font); letter-spacing: -0.01em; isolation: isolate; }
.status { position: absolute; inset: 0 0 auto; z-index: 15; height: 54px; pointer-events: none; }
.status-time { position: absolute; left: 51px; top: 20px; width: 60px; text-align: center; font-size: 17px; font-weight: 600;
  line-height: 22px; letter-spacing: -0.02em; }
.status-icons { position: absolute; right: 30px; top: 24px; width: 84px; height: 14px; fill: currentColor; color: inherit; }

/* ---------------------------------------------------------------------------------------------------------------
   2. The walk. A real Apple Maps snapshot of Copenhagen at 1:1 of its 2x pixels (2400 x 1200 CSS px), never scaled,
   inside a rounded panel no larger than the map, so its edges never show. The section is tall; its stage stays put
   while you scroll, and the scroll walks the dot along the real 1,431 m route while the map pans to keep it in view
   (home.js, on the browser's scroll timeline). At the door a ring goes out and the location's pin, a miniature card
   as the app draws it (CardFacePin), grows into the card itself, standing over the location the way the app's place
   marker stands on its stem. The finished state is the default: the dot at the door, the card up.
   --------------------------------------------------------------------------------------------------------------- */

.walk { --fx: 50%; --fy: 76%; --cw: 220px; position: relative; height: 190vh; }
.walk-stage { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100svh;
  padding: 84px 0 var(--gutter); }
.walk-head { flex: none; margin-bottom: 20px; }
.walk-head .lead { margin-top: 10px; font-size: 17px; }
.walk-body { display: flex; flex: 1; min-height: 0; }
.walk-panel { position: relative; flex: 1; overflow: hidden; border-radius: var(--radius); background: var(--map-ground);
  isolation: isolate; box-shadow: inset 0 0 0 1px var(--hairline); }
.walk-map { position: absolute; width: 2400px; height: 1200px;
  left: clamp(min(0px, 100% - 2400px), var(--fx) - 1594px, 0px); top: clamp(min(0px, 100% - 1200px), var(--fy) - 960px, 0px); }
.walk-map-img, .walk-map-img img { position: absolute; inset: 0; width: 2400px; max-width: none; height: 1200px; }
.walk-route { position: absolute; inset: 0; width: 2400px; height: 1200px; }
.walk-route path { fill: none; stroke: var(--location); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 0.1 12; opacity: 0.85; }
.walk-dot { position: absolute; left: -11px; top: -11px; z-index: 3; width: 22px; height: 22px; border-radius: 50%;
  background: var(--location); box-shadow: 0 0 0 3.5px #fff, 0 2px 8px 2px rgb(0 0 0 / 0.28);
  transform: translate(1569.3px, 964.2px); will-change: transform; }
.walk-dot::before { content: ""; position: absolute; inset: -20px; border-radius: 50%; background: rgb(10 132 255 / 0.16); }
/* The heading beam, as Apple Maps draws it: a soft wedge ahead of the dot, turning with the street. */
.walk-dot::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 76px; height: 64px; margin-left: -38px;
  background: radial-gradient(64px 64px at 50% 100%, rgb(10 132 255 / 0.42), rgb(10 132 255 / 0) 100%);
  clip-path: polygon(50% 100%, 6% 0, 94% 0); pointer-events: none; z-index: -1; }
/* The location's arrival zone, the region the iPhone watches for it: quiet while you walk, lit once you are in it. */
.walk-zone { position: absolute; left: 1594px; top: 960px; width: 230px; height: 230px; margin: -115px 0 0 -115px;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(228 87 46 / 0.2), rgb(228 87 46 / 0.08) 85%, rgb(228 87 46 / 0));
  box-shadow: inset 0 0 0 1.5px rgb(228 87 46 / 0.55); opacity: 0.5; transform: scale(0.96); }
.walk.is-near .walk-zone, .walk.is-arrived .walk-zone { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .walk-zone { transition: opacity 0.4s var(--ease-out), transform 0.6s var(--spring-drop); } }
/* Other cards' locations, at the small pin size the app's maps use (16 pt face): known, but not where you are going. */
.walk .pin { left: var(--x); top: var(--y); z-index: 2; }
.pin-small .pin-head { left: -14.19px; top: -26px; width: 28.38px; height: 19px; border-radius: 4.5px; }
.pin-small .pin-head::before { inset: 1.5px; border-radius: 3px; }
.pin-small .pin-stem { left: -1px; top: -7px; width: 2px; height: 7px; }
.walk .pin-small { opacity: 0.9; }
.walk-ring { position: absolute; left: 1594px; top: 960px; width: 160px; height: 160px; margin: -80px 0 0 -80px;
  border-radius: 50%; border: 2px solid var(--marigold); opacity: 0; }

/* The location's pin: CardFacePin at the 24 pt face (38.06 x 24, a 2.25 pt white mat, a 3 x 10.5 stem, black in light,
   white in dark), its stem's tip on the door. */
.walk-place { position: absolute; left: 1594px; top: 960px; z-index: 4; width: 0; height: 0; }
.pin-head { position: absolute; left: -21.28px; top: -39px; width: 42.56px; height: 28.5px; border-radius: 6.75px;
  background: #fff; filter: drop-shadow(0 1.5px 2.25px rgb(0 0 0 / 0.18)); }
.pin-head::before { content: ""; position: absolute; inset: 2.25px; border-radius: 4.5px;
  background: radial-gradient(circle 32.35px at 22% 0%, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0)), var(--c); }
.walk-stem { position: absolute; left: -1.5px; top: -28px; width: 3px; height: 28px; border-radius: 1.5px;
  background: #1c1b1a; transform-origin: 50% 100%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .walk-stem { background: #f3f1ee; } }
:root[data-theme="dark"] .walk-stem { background: #f3f1ee; }
.walk-contact { position: absolute; left: -16px; top: -5px; width: 32px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.34), rgb(0 0 0 / 0)); }
.walk-card { position: absolute; left: calc(var(--cw) / -2); bottom: 28px; width: var(--cw); transform-origin: 50% 100%; }
.walk-card .kcard-face { box-shadow: 0 14px 32px rgb(0 0 0 / 0.2), 0 2px 6px rgb(0 0 0 / 0.12); }
.walk-place .pin-head { opacity: 0; }

/* How far is left, on a glass chip in the panel's corner. */
.walk-chip { position: absolute; left: 14px; top: 14px; z-index: 5; display: grid; gap: 2px; padding: 12px 18px 13px;
  border-radius: 20px; background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 0 0 0.5px var(--hairline), 0 8px 24px rgb(0 0 0 / 0.1); }
.walk-metres { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.walk-to { color: var(--ink-2); font-size: 13px; line-height: 1.3; }
@media (prefers-reduced-transparency: reduce) { .walk-chip { background: var(--surface); } }

@media (min-width: 900px) {
  .walk { --fx: 62%; --fy: 72%; --cw: 300px; height: 220vh; }
  .walk-stage { padding-top: 92px; }
  .walk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end;
    margin-bottom: 28px; }
  .walk-head .lead { margin: 0 0 6px; max-width: 34ch; justify-self: end; font-size: 19px; }
  .walk-chip { left: 20px; top: 20px; padding: 16px 22px 17px; border-radius: 22px; }
  .walk-metres { font-size: 40px; }
  .walk-to { font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .walk:not(.is-arrived) .walk-card { opacity: 0; transform: translateY(17.5px) scale(0.1269); }
  .js .walk:not(.is-arrived) .walk-stem { transform: scaleY(0.375); }
  .js .walk:not(.is-arrived) .walk-place .pin-head { opacity: 1; }
  .js .walk:not(.is-arrived) .walk-contact { transform: scale(0.7); }
  .js .walk-card { transition: transform 0.742s var(--spring-lift), opacity 0.12s linear; }
  .js .walk-stem, .js .walk-contact { transition: transform 0.5s var(--ease-out); }
  .js .walk-place .pin-head { transition: opacity 0.12s linear 0.04s; }
  .js .walk:not(.is-arrived) .walk-card { transition: transform 0.36s var(--ease-out), opacity 0.16s linear 0.2s; }
  .walk.is-arrived .walk-ring { animation: ring 1.8s var(--ease-out) 0.1s 2 both; }
}
@keyframes ring { from { transform: scale(0.25); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
/* Where the scroll can't drive it (and with JS off, or Reduce Motion) the walk is one screen, not a long scroll. */
.walk.is-timed, .no-js .walk { height: auto; }
.walk.is-timed .walk-stage, .no-js .walk-stage { position: relative; height: min(100svh, 920px); }
@media (prefers-reduced-motion: reduce) { .walk { height: auto; } .walk-stage { position: relative; height: min(100svh, 920px); } }

/* ---------------------------------------------------------------------------------------------------------------
   3. The wallet. The app's wallet screen, drawn from its code (WalletStackGeometry): every card laid out at the
   screen's width less 32, each band showing 56 pt; the front card is the same face scaled to the width less 48, with
   its plate and shadow; its own slot stays empty in the deck; the deck sits on the pocket, which takes the last
   cards as 6 pt slivers. Tap a band and it comes to the front on extract while the old front card goes home on
   restore; the z-order switches at once. In dark the ground glows in the front card's colour (BrandGround). The
   same phone also shows the till and Cards Found, chosen from the list beside it.
   --------------------------------------------------------------------------------------------------------------- */

.wallet { padding: var(--section) 0; }
.wallet-grid { display: grid; gap: 40px; }
/* The three things the phone can show, as a list that is also the switch (Raycast, Screen Studio): the one playing is
   lit and a hairline fills under it while it plays; tap any to show it. */
.modes { display: grid; gap: 4px; margin: 32px 0 0; padding: 0; list-style: none; }
.mode { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); width: 100%; padding: 16px 18px 18px 14px;
  border: 0; border-radius: 18px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 0.25s ease, transform 0.16s var(--ease-out); }
.mode:active { transform: scale(0.985); }
.mode.is-on { background: color-mix(in oklab, var(--glow, #E4572E) 9%, var(--panel)); }
.mode-num { padding-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mode-title { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.016em; }
.mode-body { display: block; max-height: 0; overflow: hidden; color: var(--ink-2); font-size: 16px; line-height: 1.45; opacity: 0;
  transition: opacity 0.3s ease, max-height 0.4s var(--ease-out); }
.mode.is-on .mode-body { max-height: 6em; margin-top: 4px; opacity: 1; }
.mode-bar { position: absolute; left: 48px; right: 18px; bottom: 9px; height: 2px; overflow: hidden; border-radius: 1px;
  background: var(--hairline); opacity: 0; transition: opacity 0.2s ease; }
.mode-bar i { position: absolute; inset: 0; background: var(--ink-2); transform: scaleX(0); transform-origin: 0 0; }
.modes.is-auto .mode.is-on .mode-bar { opacity: 1; }
.modes.is-auto .mode.is-on .mode-bar i { animation: mode-fill var(--mode-time, 6s) linear both; }
@keyframes mode-fill { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .mode:not(.is-on):hover { background: color-mix(in oklab, var(--ink) 4%, transparent); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mode.is-on { background: color-mix(in oklab, var(--glow, #E4572E) 16%, #141312); } }
:root[data-theme="dark"] .mode.is-on { background: color-mix(in oklab, var(--glow, #E4572E) 16%, #141312); }

.wallet-stage { --pw: 320; position: relative; display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
  height: calc(48px + var(--pw) * 820px / 450); padding-top: 48px; border-radius: var(--radius);
  background-color: color-mix(in oklab, var(--glow, #E4572E) 14%, var(--surface)); transition: background-color 0.35s cubic-bezier(0.42, 0, 0.58, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wallet-stage { background-color: color-mix(in oklab, var(--glow, #E4572E) 32%, #141312); } }
:root[data-theme="dark"] .wallet-stage { background-color: color-mix(in oklab, var(--glow, #E4572E) 32%, #141312); }
.wallet-stage.is-add { background-color: var(--panel); }
.stage-glow { position: absolute; inset: 0; background-color: var(--glow, #E4572E); opacity: 0.14;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 42%, #000, transparent);
  transition: background-color 0.35s cubic-bezier(0.42, 0, 0.58, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-glow { opacity: 0.2; } }
:root[data-theme="dark"] .stage-glow { opacity: 0.2; }
.wallet-phone { --pw: inherit; }

.ws-ground { position: absolute; inset: 0; background: var(--app-ground); }
.ws-glow { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-glow { display: block; position: absolute; inset: 0; background-color: var(--glow, #E4572E); opacity: 0.2;
    -webkit-mask-image: radial-gradient(circle 400px at 50% 15%, #000 10px, transparent 400px);
    mask-image: radial-gradient(circle 400px at 50% 15%, #000 10px, transparent 400px);
    transition: background-color 0.35s cubic-bezier(0.42, 0, 0.58, 1); } }
:root[data-theme="dark"] .ws-glow { display: block; position: absolute; inset: 0; background-color: var(--glow, #E4572E); opacity: 0.2;
    -webkit-mask-image: radial-gradient(circle 400px at 50% 15%, #000 10px, transparent 400px);
    mask-image: radial-gradient(circle 400px at 50% 15%, #000 10px, transparent 400px);
    transition: background-color 0.35s cubic-bezier(0.42, 0, 0.58, 1); }
.ws-bar { position: absolute; left: 16px; right: 18px; top: 61px; display: flex; justify-content: space-between; }
.ws-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgb(255 255 255 / 0.78); box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.07), 0 2px 10px rgb(0 0 0 / 0.06); }
.ws-btn svg { width: 24px; height: 24px; }
.ws-search { position: absolute; left: 16px; right: 18px; top: 115px; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 22px; background: rgb(255 255 255 / 0.62);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.07), 0 2px 10px rgb(0 0 0 / 0.04); color: rgb(60 60 67 / 0.6); font-size: 17px; }
.ws-search svg { width: 19px; height: 19px; color: rgb(60 60 67 / 0.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-btn { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14); } :root:not([data-theme="light"]) .ws-search { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12); color: rgb(235 235 245 / 0.6); } :root:not([data-theme="light"]) .ws-search svg { color: rgb(235 235 245 / 0.75); } }
:root[data-theme="dark"] .ws-btn { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14); }
:root[data-theme="dark"] .ws-search { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12); color: rgb(235 235 245 / 0.6); }
:root[data-theme="dark"] .ws-search svg { color: rgb(235 235 245 / 0.75); }

.ws-deck { position: absolute; inset: 0; }
.wcard { position: absolute; left: 0; top: 0; width: 370px; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
  transform-origin: 185px 0; transform: translate(16px, var(--y)); z-index: var(--z); }
.wcard[data-slot="0"] { --y: 453px; --z: 0; }
.wcard[data-slot="1"] { --y: 509px; --z: 1; }
.wcard[data-slot="2"] { --y: 565px; --z: 2; }
.wcard[data-slot="3"] { --y: 621px; --z: 3; }
.wcard[data-slot="4"] { --y: 677px; --z: 4; }
.wcard[data-slot="5"] { --y: 733px; --z: 5; cursor: default; }
.wcard[data-slot="6"] { --y: 739px; --z: 6; cursor: default; }
.wcard[data-slot="7"] { --y: 745px; --z: 7; cursor: default; }
.wcard.is-hero { z-index: 8; transform: translate(16px, 170px) scale(0.95676); cursor: default; }
.wcard:focus-visible { outline: none; }
.wcard:focus-visible .kcard-face { outline: 3px solid var(--location); outline-offset: 2px; }
.wcard-press { position: relative; display: block; transition: transform 0.367s var(--spring-crit); }
.wcard:not(.is-hero):not([data-slot="5"]):not([data-slot="6"]):not([data-slot="7"]):active .wcard-press { transform: scale(0.98); }
.wcard-shadow { position: absolute; inset: 0; border-radius: 16.65px; box-shadow: 0 12px 28px rgb(0 0 0 / 0.14);
  opacity: 0; transition: opacity 0.44s var(--ease-out); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wcard-shadow { box-shadow: 0 12px 28px rgb(0 0 0 / 0.28); } }
:root[data-theme="dark"] .wcard-shadow { box-shadow: 0 12px 28px rgb(0 0 0 / 0.28); }
.wcard.is-hero .wcard-shadow { opacity: 1; }
.wcard .kcard-plate { opacity: 0; transition: opacity 0.3s var(--ease-out); }
.wcard.is-hero .kcard-plate { opacity: 1; transition-delay: 0.06s; }
.wcard.is-extract { transition: transform 0.445s var(--spring-extract); }
.wcard.is-restore { transition: transform 0.627s var(--spring-restore); }

/* The pocket's mouth: the cards going into it darken (PocketDepthShade, black 22% over the last 40 pt), then the
   pocket itself, the free look's deep glass, its notch 120 wide and 18 deep. */
.ws-shade { position: absolute; left: 16px; right: 16px; top: 723px; z-index: 9; height: 44px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.22)); filter: blur(4px); }
.ws-pocket { position: absolute; left: 8px; top: 765px; z-index: 10; width: 386px; height: 109px;
  clip-path: path("M0 109V24Q0 0 24 0H133C163 0 163 18 193 18C223 18 223 0 253 0H362Q386 0 386 24V109Z");
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0) 1.5px),
    linear-gradient(to bottom, rgb(78 90 88 / 0.94), rgb(58 66 66 / 0.98)); }
.home-bar { position: absolute; left: 50%; bottom: 8px; z-index: 11; width: 140px; height: 5px; margin-left: -70px;
  border-radius: 3px; background: rgb(255 255 255 / 0.75); }

/* At the till: the checkout zooms out of the front card's plate, as the system's zoom transition does: the whole
   screen, scaled down to the plate's width and centred on it, cropped to the plate's height with its 12 pt corner,
   grows to fill the phone while the plate's picture gives way to the screen's; the wallet behind shrinks a little
   and dims. --from-t and --from-c are set from the plate (home.js), for a full-width code or a centred square. */
.ws-till { --from-t: translateY(-97px) scale(0.8); --from-c: inset(390.75px 0 390.75px 0 round 15px); transform-origin: 50% 50%; }
.ws:not(.is-till) .ws-till { transform: var(--from-t); clip-path: var(--from-c); opacity: 0; pointer-events: none; }
.ws:not(.is-till) .ws-till > * { opacity: 0; }
.ws-till { transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), clip-path 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.1s linear 0.32s; }
.ws.is-till .ws-till { transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), clip-path 0.55s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.06s linear; }
.ws-till > * { transition: opacity 0.16s linear; }
.ws.is-till .ws-till > * { transition-delay: 0.06s; }
.ws-till .cs-code img { width: 354px; height: 414px; }
.ws-till .cs-code.is-matrix img { width: 300px; height: 300px; }
.ws-deck, .ws-bar, .ws-search { transform-origin: 50% 40%; }
.ws.is-till .ws-deck, .ws.is-till .ws-bar, .ws.is-till .ws-search { transform: scale(0.94); }
.ws::after { content: ""; position: absolute; inset: 0; z-index: 11; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.ws.is-till::after { opacity: 0.3; }
/* Adding: Cards Found pushes in from the right, as a pushed screen does, and the wallet moves back under it. */
.ws-add { position: absolute; inset: 0; z-index: 13; display: block; padding-top: 54px; background: var(--app-ground);
  transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -10px 0 30px rgb(0 0 0 / 0.12); }
.ws.is-add .ws-add { transform: none; }
.ws-deck, .ws-bar, .ws-search { transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.ws-pocket, .ws-shade, .home-bar { transition: opacity 0.3s ease; }
.ws.is-add .ws-deck, .ws.is-add .ws-bar, .ws.is-add .ws-search { transform: translateX(-30%); }
@media (prefers-reduced-motion: reduce) {
  .ws-till, .ws.is-till .ws-till, .ws:not(.is-till) .ws-till { clip-path: none !important; transform: none !important; transition: opacity 0.22s ease-out; }
  .ws.is-till .ws-deck, .ws.is-till .ws-bar, .ws.is-till .ws-search { transform: none; }
  .ws-add { transform: none; opacity: 0; transition: opacity 0.22s ease-out; }
  .ws.is-add .ws-add { opacity: 1; }
  .ws-deck, .ws-bar, .ws-search, .ws.is-add .ws-deck, .ws.is-add .ws-bar, .ws.is-add .ws-search { transform: none; }
}

@media (min-width: 900px) {
  .wallet-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 72px; }
  .wallet-stage { --pw: 390; padding-top: 64px; height: calc(64px + var(--pw) * 820px / 450); }
}
@media (min-width: 1500px) { .wallet-stage { --pw: 420; } }

/* ---------------------------------------------------------------------------------------------------------------
   4. The details: two tiles, each in its card's colour: where each card works, and the app in every language.
   The checkout and the import are no longer tiles: they play in the wallet's phone (section 3).
   --------------------------------------------------------------------------------------------------------------- */

.details { padding: 0 0 var(--section); }
.bento { display: grid; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 520px; padding: 28px;
  border-radius: var(--radius); background: var(--panel); }
.tile-text { position: relative; z-index: 2; max-width: 34ch; }
.tile-text p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 36px; min-height: 560px; }
}

/* The checkout screen (CheckoutView): the card's slab with its name, then white with the code turned on its side,
   its digits, and the line for the cashier. Shown in the wallet's phone at the till. */
.cs-checkout { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: #fff; color: #000;
  clip-path: inset(0 round 52px); }
/* Spacing measured against the app's capture: name 18.6 pt below the close button, programme 27.4 pt below the name,
   the header ending at 186 pt. */
.cs-slab { position: relative; display: block; padding: 118px 24px 19px; color: var(--on, #fff); border-radius: 0 0 17.7px 17.7px;
  background: radial-gradient(circle 361px at 18% -15%, rgb(255 255 255 / 0.1) 10px, rgb(255 255 255 / 0)),
    linear-gradient(to bottom, rgb(255 255 255 / 0.02), rgb(255 255 255 / 0) 50%, rgb(0 0 0 / 0.02)), var(--c);
  transition: background-color 0.2s linear; }
.cs-slab .status { color: #000; } /* the clock follows the phone's appearance (light), not the card */
.cs-close { position: absolute; left: 16px; top: 62px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: color-mix(in srgb, var(--c), #fff 8%);
  /* iOS 26's close button: glass that takes the card's colour, a touch lighter, with a lit rim at the top
     left and a dark hairline at the bottom right (measured from the app's own capture, assets-src/app/screens/checkout.png). */
  filter: brightness(1.065);
  box-shadow: inset 0.75px 0.75px 0 rgb(255 255 255 / 0.3), inset -0.5px -0.5px 0 rgb(0 0 0 / 0.28), 0 0 0 0.5px rgb(0 0 0 / 0.16); }
.cs-close svg { width: 17px; height: 17px; }
.cs-name { display: block; font-size: 22px; font-weight: 700; line-height: 28px; letter-spacing: -0.02em; }
.cs-program { display: block; margin-top: 0.5px; font-size: 15px; line-height: 20px; opacity: 0.75; }
.cs-code { display: grid; place-items: center; flex: 1; min-height: 0; padding: 24px 24px 35.6px; } /* 11.6 pt more below keeps the code's centre at 463 pt, where the zoom from the card expects it, since the header grew */
.cs-code img { max-width: none; }
.cs-digits { display: block; text-align: center; font: 600 22px/28px ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 1.62px; color: rgb(0 0 0 / 0.86); }
.cs-note { display: block; padding: 16px 24px 58px; text-align: center; font-size: 15px; line-height: 20px; color: rgb(0 0 0 / 0.55); }

/* Cards Found (BatchReviewView): one leaf of rows (radius 20), each a 72 pt card thumbnail, its name, its status and the
   system switch; the Add button below. The rows arrive one by one as the photos are checked. */
.found { display: block; padding: 8px 16px 24px; color: var(--app-ink); font-family: var(--font); letter-spacing: -0.01em; }
.found-title { display: grid; text-align: center; font-size: 17px; font-weight: 600; line-height: 22px; }
.found-title span { color: var(--app-ink-2); font-size: 12px; font-weight: 400; line-height: 16px; }
.found-head { display: flex; justify-content: space-between; align-items: baseline; padding: 26px 20px 12px; }
.found-head span:first-child { font-size: 17px; font-weight: 600; font-stretch: 125%; letter-spacing: 0; }
.found-count { color: var(--app-ink-2); font-size: 17px; font-variant-numeric: tabular-nums; }
.found-leaf { display: block; border-radius: 20px; background: var(--app-leaf); }
.found-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.found-row + .found-row::before { content: ""; position: absolute; left: 104px; right: 0; top: 0; height: 1px;
  background: var(--app-sep); transform: scaleY(0.5); transform-origin: 0 0; }
.kthumb { position: relative; display: block; flex: none; width: 72px; height: 45.4px; overflow: hidden; padding: 5px; border-radius: 3.24px;
  background: radial-gradient(circle 64.8px at 18% -15%, rgb(255 255 255 / var(--sheen)) 2px, rgb(255 255 255 / 0)), var(--c);
  color: var(--on); font-size: 9px; font-weight: 800; line-height: 1.18; letter-spacing: 0.315px; white-space: nowrap; }
.kthumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--on) calc(var(--key) * 100%), transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.kthumb span { display: block; overflow: hidden; }
.found-info { display: grid; gap: 4px; flex: 1; min-width: 0; }
.found-name { font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found-status { color: var(--app-ink-2); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: #34C759; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / 0.15), 0 1px 1px rgb(0 0 0 / 0.16); transform: translateX(20px); }
.found-button { display: grid; place-items: center; height: 50px; margin-top: 20px; border-radius: 25px;
  background: var(--app-ink); color: #fff; font-size: 17px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .found-button { color: #000; } }
:root[data-theme="dark"] .found-button { color: #000; }
@media (prefers-reduced-motion: no-preference) {
  .js .ws:not(.is-found) .found-row { opacity: 0; transform: translateY(12px); }
  .js .ws:not(.is-found) .switch { background: rgb(120 120 128 / 0.2); }
  .js .ws:not(.is-found) .switch::after { transform: none; }
  .js .ws.is-found .found-row { transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
    transition-delay: calc(0.35s + var(--n) * 0.28s); }
  .js .ws.is-found .switch { transition: background-color 0.25s ease; transition-delay: calc(0.6s + var(--n) * 0.28s); }
  .js .ws.is-found .switch::after { transition: transform 0.367s var(--spring-crit); transition-delay: calc(0.6s + var(--n) * 0.28s); }
}

/* c. Places: Marigold's locations on the map, each a CardFacePin (24 pt face), dropped one by one. */
.tile-places { justify-content: flex-end; }
.places-map { position: absolute; inset: 0; }
.places-map picture, .places-map img { width: 100%; height: 100%; object-fit: cover; }
.places-map::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--tile-bg) 18%, color-mix(in srgb, var(--tile-bg) 70%, transparent) 36%, transparent 62%); }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 1; width: 0; height: 0; }
.pin .pin-head { top: -39px; }
.pin-stem { position: absolute; left: -1.5px; top: -10.5px; width: 3px; height: 10.5px; border-radius: 1.5px; background: #1c1b1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pin-stem { background: #f3f1ee; } }
:root[data-theme="dark"] .pin-stem { background: #f3f1ee; }
@media (prefers-reduced-motion: no-preference) {
  .js .tile-places:not(.is-in) .pin { opacity: 0; transform: translateY(-36px); }
  .js .tile-places .pin { transition: transform 0.567s var(--spring-drop), opacity 0.2s var(--ease-out);
    transition-delay: calc(0.2s + var(--n) * 0.16s); }
}

/* d. Languages: "Nearby" as the app says it, on the picker drum iOS uses, turning one language at a time. */
.tile-languages { justify-content: space-between; }
.drum-wrap { position: relative; align-self: center; width: min(100%, 520px); margin: 24px 0 8px; }
.drum { position: relative; width: 100%; height: 300px; perspective: 900px;
  -webkit-mask-image: linear-gradient(transparent 10%, #000 38%, #000 62%, transparent 90%); mask-image: linear-gradient(transparent 10%, #000 38%, #000 62%, transparent 90%); }
.drum-band { position: absolute; left: 0; right: 0; top: 50%; height: 60px; margin-top: -30px; border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); }
.drum-wheel { position: absolute; inset: 0; transform-style: preserve-3d; }
.drum-wheel p { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: center;
  gap: 12px; height: 60px; margin-top: -30px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px);
  font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateX(calc(var(--k) * -20deg)) translateZ(170px); }
.drum-wheel svg { width: 0.62em; height: 0.62em; fill: var(--marigold); }
.drum-lang { position: absolute; right: 16px; top: 50%; z-index: 1; margin-top: -10px; color: var(--ink-3); font-size: 13px;
  font-weight: 500; line-height: 20px; }
@media (max-width: 520px) { .drum-lang { position: static; display: block; margin: 4px 0 0; text-align: center; } .drum-wheel p { font-size: 26px; } }

/* ---------------------------------------------------------------------------------------------------------------
   5. The catalogue: every programme the app recognises, one card each in its own colour, its top edge catching the
   light so black brands read on black (home.js draws them from /data/swatches.json). One country's programmes stay
   bright: the visitor's, told from their time zone, or any of the 63 chosen from the list.
   --------------------------------------------------------------------------------------------------------------- */

.catalogue { padding: var(--section) 0; }
.catalogue-head { max-width: 42rem; }
.field { position: relative; margin-top: 56px; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-fallback img { width: 100%; }
.field.is-drawn .field-fallback { visibility: hidden; }
.field-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.field-note { color: var(--ink-2); font-size: 17px; }
.field-note strong { color: var(--ink); font-weight: 600; }
.country { position: relative; display: inline-flex; align-items: center; }
.country[hidden] { display: none; }
.country select { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 38px 0 16px; border: 0; border-radius: 20px;
  background: rgb(255 255 255 / 0.1); color: var(--ink); font: 500 15px var(--font); cursor: pointer;
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14); }
.country select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.country select option { color: #000; }
.country svg { position: absolute; right: 14px; width: 12px; height: 12px; pointer-events: none; color: var(--ink-2); }
.field .field-mine { transition: opacity 0.35s var(--ease-out); }
.field.is-switching .field-mine { opacity: 0; transition-duration: 0.15s; }
@media (prefers-reduced-motion: no-preference) { .field .field-rest { transition: opacity 1.2s var(--ease-out) 0.3s; } }
.field.is-lit .field-rest { opacity: 0.26; }

/* ---------------------------------------------------------------------------------------------------------------
   6. The watch: Apple Watch Ultra at the full size of its captures (211 CSS px of screen), on a dark panel that
   cuts its band. Its screen moves the way watchOS does: from All Cards into a card, then down the vertical pager
   to the next one, and back.
   --------------------------------------------------------------------------------------------------------------- */

.wrist { padding: 0 0 var(--section); }
.wrist-panel { --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: #8f8a83; --hairline: rgb(243 241 238 / 0.1);
  position: relative; display: grid; justify-items: center; overflow: hidden; padding: 40px 24px 0;
  border-radius: var(--radius); background: radial-gradient(60% 55% at 50% 62%, #262321, #0d0c0b 75%); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.wrist-copy { justify-self: stretch; }
.wrist-facts { justify-self: stretch; margin-top: 28px; border-top: 1px solid var(--hairline); }
.wrist-facts li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.wrist-facts li:last-child { border-bottom: 0; }
.wrist-facts p { margin-top: 3px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.watch { position: relative; order: 3; width: 300px; height: 480px; margin: 24px 0 -100px; }
.watch-screen { position: absolute; left: 14.8333%; top: 23.2292%; width: 70.3333%; height: 53.5417%; overflow: hidden;
  border-radius: 22.7% / 18.7%; background: #000; }
.watch-list, .watch-pager { position: absolute; inset: 0; }
.watch-pager { height: 200%; transform: translateX(100%); }
.watch-pager picture { height: 50%; }
.watch-screen img { width: 100%; height: 100%; }
.watch-frame { position: absolute; inset: 0; }
.watch.is-card0 .watch-list, .watch.is-card1 .watch-list { transform: translateX(-28%); opacity: 0.4; }
.watch.is-card0 .watch-pager { transform: none; }
.watch.is-card1 .watch-pager { transform: translateY(-50%); }
.watch-list { transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.5s ease; }
.watch-pager { transition: transform 0.627s var(--spring-restore); }
.watch.is-push .watch-pager { transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
@media (min-width: 960px) {
  .wrist-panel { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); align-items: center; column-gap: 56px;
    height: 460px; padding: 0 56px; }
  .watch { order: 0; margin: 0; }
  .wrist-copy .h2 { font-size: clamp(40px, 3.6vw, 52px); }
  .wrist-facts { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .watch-list, .watch-pager { transition: none; } }

/* ---------------------------------------------------------------------------------------------------------------
   7. Privacy: a closed loop. One ring joins your iPhone, your Apple Watch and your iCloud; a card travels round it,
   stopping at each; your location stays inside the iPhone. Nothing leaves the ring.
   --------------------------------------------------------------------------------------------------------------- */

.privacy { padding: 0 0 var(--section); overflow-x: clip; }
.privacy-grid { display: grid; gap: 48px; }
.facts { display: grid; gap: 24px 32px; margin-top: 36px; }
.facts p { margin-top: 4px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .privacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 72px; }
}
.loop { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 56px auto 0; }
.loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-ring circle { fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 1.5; }
.loop-orbit { position: absolute; inset: 12.5%; }
.loop-card { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.loop-card-face { position: absolute; left: -19px; top: -12px; width: 38px; height: 24px; border-radius: 4px;
  background: radial-gradient(circle 32px at 22% 0%, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0)), var(--marigold);
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgb(0 0 0 / 0.22); }
.loop-node { position: absolute; z-index: 1; width: 0; height: 0; }
.loop-phone { left: 50%; top: 12.5%; }
.loop-watch { left: 17.52%; top: 68.75%; }
.loop-cloud { left: 82.48%; top: 68.75%; }
.loop-disc { position: absolute; left: -44px; top: -44px; display: grid; place-items: center; width: 88px; height: 88px;
  border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 1px var(--hairline), 0 10px 30px rgb(0 0 0 / 0.08); }
.loop-disc svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.loop-disc svg .fill { fill: var(--ink); stroke: none; }
.loop-place { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--location); box-shadow: 0 0 0 3px var(--panel); }
.loop-place::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--location); opacity: 0; }
.loop-place svg { position: relative; width: 14px; height: 14px; fill: #fff; stroke: none; }
.loop-label { position: absolute; left: 0; top: 54px; display: grid; justify-items: center; width: 150px; margin-left: -75px;
  text-align: center; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.loop-label small { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.loop-phone .loop-label { top: auto; bottom: 54px; }
/* The trail: an arc of light on the ring behind the travelling card, turning with it. */
.loop-trail { position: absolute; inset: -1px; border-radius: 50%; opacity: 0.9;
  background: conic-gradient(from -70deg, transparent, var(--lap, #E4572E) 70deg, transparent 70.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px), #000 100%, transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px), #000 100%, transparent 100%); }
.loop-card-face { background: radial-gradient(circle 32px at 22% 0%, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0)), var(--lap, #E4572E); }
/* What each device holds: its copies of the cards, a small stack under its glyph, one more each time the card comes by. */
.loop-stack { position: absolute; left: 0; top: 36px; z-index: 2; display: flex; width: 0; justify-content: center; }
.loop-stack i { flex: none; width: 22px; height: 14px; margin: 0 -5px; border-radius: 2.5px; background: var(--c);
  box-shadow: 0 0 0 1.5px var(--panel), 0 2px 4px rgb(0 0 0 / 0.18); }
.loop-label { top: 66px; }
@media (prefers-reduced-motion: no-preference) {
  .js .loop .loop-place::before { animation: ping 2.4s var(--ease-out) infinite; }
  .js .loop.is-paused .loop-place::before { animation-play-state: paused; }
  .loop-stack i { animation: stack-in 0.5s var(--spring-drop) both; }
  .loop-stack.is-clearing i { opacity: 0; transform: translateY(6px) scale(0.9); transition: opacity 0.3s ease, transform 0.3s ease; animation: none; }
}
@keyframes stack-in { from { opacity: 0; transform: translateY(-14px) scale(0.8); } }
@keyframes arrive { 0% { transform: none; } 30% { transform: scale(1.07); } 100% { transform: none; } }
@keyframes ping { from { transform: scale(1); opacity: 0.45; } to { transform: scale(2.1); opacity: 0; } }

/* ---------------------------------------------------------------------------------------------------------------
   8. Price. Two plans, two cards. Gold is the app's own Gold card (GoldMemberCard, rendered by the app); Free is
   drawn with that card's layout exactly (its word in SF Pro Heavy Expanded at 0.11 of the width, tracked 0.016,
   centred 0.126 down and set in 0.081), on the face a new card wears before it belongs to a brand (#1C1C1E).
   --------------------------------------------------------------------------------------------------------------- */

.price { padding: 0 0 var(--section); }
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px 28px 32px;
  border-radius: var(--radius); background: var(--panel); }
.plan-gold { --ink: #f6efe0; --ink-2: #c2b59b; --ink-3: #8f836c; --hairline: rgb(246 239 224 / 0.12); color: var(--ink);
  background: radial-gradient(90% 60% at 50% 0%, #3b2d15, #17120b 70%); }
/* A face's own corner can't be in cqw (that would measure its parent), so it is 4.5% of the width over the
   height's share of it. Both cards sit in the same box: the Gold render's (1080 x 769, its card 843 wide at 118, 118). */
.plan-card { position: relative; width: min(100%, 440px); aspect-ratio: 1741 / 1239; margin: 0 auto 8px; }
.plan-card picture, .plan-card img { width: 100%; height: 100%; }
.free-card, .gold-sheen { position: absolute; left: 10.926%; top: 15.345%; width: 78.056%; aspect-ratio: 1.586; container-type: inline-size; }
.free-card { overflow: hidden; border-radius: 4.5% / 7.137%; color: #fff;
  background: radial-gradient(circle 90cqw at 18% -15%, rgb(255 255 255 / 0.1) 2.5cqw, rgb(255 255 255 / 0) 90cqw),
    linear-gradient(to bottom, rgb(255 255 255 / 0.02), rgb(255 255 255 / 0) 50%, rgb(0 0 0 / 0.02)), #1C1C1E;
  box-shadow: 0 9px 14px rgb(0 0 0 / 0.3); }
.free-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.39), rgb(255 255 255 / 0.07) 25%, transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.free-word { position: absolute; left: 8.1cqw; top: 12.6cqw; transform: translateY(-50%); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", system-ui, sans-serif;
  font-size: 11cqw; font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: 1.6cqw; text-transform: uppercase;
  color: rgb(255 255 255 / 0.9); text-shadow: 0 -0.8px 0 rgb(0 0 0 / 0.55); }
.free-sheen, .gold-sheen-band { position: absolute; pointer-events: none; opacity: 0; }
.free-sheen { left: 50%; top: 50%; width: 100cqw; height: 153.7cqw; margin: -76.85cqw 0 0 -50cqw; transform: rotate(32.24deg) translateX(-109.1cqw);
  background: linear-gradient(to right, transparent, rgb(255 255 255 / 0.063) 20%, rgb(255 255 255 / 0.156) 34%, rgb(255 255 255 / 0.33) 43%,
    rgb(255 255 255 / 0.55) 50%, rgb(255 255 255 / 0.33) 57%, rgb(255 255 255 / 0.156) 66%, rgb(255 255 255 / 0.063) 80%, transparent); }
/* GoldSheen: a band 0.42 of the width, 2.4 heights tall, at 22 degrees, brass and white, added to the light. */
.gold-sheen { overflow: hidden; border-radius: 4.5% / 7.137%; }
.gold-sheen::before { content: ""; position: absolute; left: -50.4cqw; top: -44.1cqw; width: 42cqw; height: 151.3cqw; opacity: 0;
  transform: rotate(22deg); mix-blend-mode: plus-lighter;
  background: linear-gradient(to right, transparent, rgb(242 209 143 / 0.3) 30%, rgb(255 255 255 / 0.36) 50%, rgb(242 209 143 / 0.3) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .plan.is-sheen .free-sheen { animation: free-sheen 1.4s cubic-bezier(0.3, 0, 0.2, 1) both; }
  .plan.is-sheen .gold-sheen::before { animation: gold-sheen 1s cubic-bezier(0.42, 0, 0.58, 1) both; }
}
@keyframes free-sheen { from { opacity: 1; transform: rotate(32.24deg) translateX(-109.1cqw); } to { opacity: 1; transform: rotate(32.24deg) translateX(109.1cqw); } }
@keyframes gold-sheen { from { opacity: 1; transform: translateX(0) rotate(22deg); } to { opacity: 1; transform: translateX(200.8cqw) rotate(22deg); } }

.plan-body { display: flex; flex: 1; flex-direction: column; }
.plan-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.plan-gold .plan-name { color: #ecd49a; }
.plan-lead { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.plan-list { margin: 20px 0 28px; border-top: 1px solid var(--hairline); }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.plan-list li::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.6 4.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.6 4.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-gold .plan-list li::before { background: #ecd49a; opacity: 1; }
.plan-price { margin-top: auto; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price span { display: block; margin-top: 2px; color: var(--ink-2); font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.plan-small { margin-top: 14px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
@media (min-width: 900px) { .plan { padding: 36px 40px 40px; } }

/* ---------------------------------------------------------------------------------------------------------------
   9. The end: the icon, one line, the badge, among the sample cards floating at different depths (Cosmos): the nearer
   a card, the larger, sharper and quicker it moves with the pointer and the scroll (home.js).
   --------------------------------------------------------------------------------------------------------------- */

.end { position: relative; overflow: hidden; padding: clamp(120px, 13vw, 190px) 0 clamp(120px, 13vw, 190px); }
.floats { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; left: calc(50% + var(--x) * 1%); top: calc(50% + var(--y) * 1%); width: var(--w);
  margin: calc(var(--w) / -3.172) 0 0 calc(var(--w) / -2); rotate: var(--r); scale: var(--z);
  opacity: calc(0.25 + var(--z) * 0.75); filter: blur(calc((1 - var(--z)) * 2.4px)); }
.float .kcard-face { box-shadow: 0 calc(var(--z) * 22px) calc(var(--z) * 40px) rgb(0 0 0 / 0.16), 0 2px 6px rgb(0 0 0 / 0.08); }
@media (max-width: 760px) {
  .float { width: calc(var(--w) * 0.62); margin: calc(var(--w) * -0.1955) 0 0 calc(var(--w) * -0.31); }
  .float:nth-child(3), .float:nth-child(4), .float:nth-child(7), .float:nth-child(8) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .end:not(.is-in) .float { opacity: 0; translate: 0 40px; }
  .js .end .float { transition: opacity 0.8s var(--ease-out), translate 1.1s var(--ease-out); }
  .js .end.is-in .float { transition-delay: calc(var(--i, 0) * 70ms); }
  .js .end.is-live .float { transition: none; }
}
.end-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
/* The shadow is not a filter on the image: Safari could paint a filtered image's shadow as a square box when the page
   reloaded with the icon already in view. */
.end-icon { position: relative; isolation: isolate; width: 112px; height: 112px; }
/* Cast from a shape 2 px inside the icon's edge, so the shadow starts under the icon: a box shadow paints only outside
   its box, and a box the icon's full size leaves an unshaded rim where its corners differ from the icon's own. */
.end-icon::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 22%;
  box-shadow: 0 18px 30px rgb(0 0 0 / 0.16), 0 2px 4px rgb(0 0 0 / 0.08); }
.end-icon img { display: block; width: 112px; height: 112px; }
.end .h2 { margin-top: 32px; max-width: 14ch; }
.end .badge { margin-top: 32px; }

/* ---------------------------------------------------------------------------------------------------------------
   Phone order: on a narrow screen the picture comes right after the words that introduce it, so whatever plays is
   in view when it plays: the wallet's phone before its list, the watch before its facts, the loop before its facts.
   --------------------------------------------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .wallet-grid { display: flex; flex-direction: column; gap: 0; }
  .wallet-copy { display: contents; }
  .wallet-copy .eyebrow { order: 1; }
  .wallet-copy .h2 { order: 2; }
  .wallet-copy .lead { order: 3; }
  .wallet-stage { order: 4; margin-top: 28px; }
  .modes { order: 5; margin-top: 16px; }
  .tile-languages { min-height: 0; justify-content: flex-start; }
  .drum-wrap { margin: 20px 0 0; }
  .drum { height: 320px; }
}
@media (max-width: 959px) {
  .wrist-panel { padding-bottom: 32px; }
  .watch { order: 2; margin: 28px 0 8px; }
  .wrist-facts { order: 3; }
  .privacy-grid { display: flex; flex-direction: column; gap: 0; }
  .privacy-copy { display: contents; }
  .privacy-copy .eyebrow { order: 1; }
  .privacy-copy .h2 { order: 2; }
  .privacy-copy .lead { order: 3; }
  .loop { order: 4; margin-top: 64px; }
  .facts { order: 5; margin-top: 48px; }
}
@media (max-width: 959px) {
  /* Whole on a phone, so the band fades out at both ends instead of stopping at the picture's edge. */
  .watch { -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
}

/* ---------------------------------------------------------------------------------------------------------------
   Round 5. Sections as sheets: each lies over the one before with rounded top corners, as cards lie in the
   wallet, the grounds alternating so each reads as its own chapter. Section labels are a small chip with the
   section's glyph in its card's colour, not a number.
   --------------------------------------------------------------------------------------------------------------- */
:root { --sheet-alt: #fbfaf8; --sheet-r: 36px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sheet-alt: #171614; } }
:root[data-theme="dark"] { --sheet-alt: #171614; }
.sheet { position: relative; margin-top: calc(var(--sheet-r) * -1); padding: calc(clamp(80px, 9vw, 128px) + var(--sheet-r)) 0 clamp(88px, 10vw, 140px);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0; background: var(--ground);
  box-shadow: 0 -1px 0 var(--hairline), 0 -24px 48px rgb(0 0 0 / 0.04); }
.sheet-alt { background: var(--sheet-alt); }
.dark.sheet { background: var(--night); box-shadow: 0 -1px 0 rgb(255 255 255 / 0.06); }
.walk.sheet { padding: 0; }
.walk.sheet .walk-stage { padding-top: calc(84px + 8px); }
.end.sheet { padding: clamp(120px, 13vw, 190px) 0; }
.site-footer { position: relative; }
@media (max-width: 767px) { :root { --sheet-r: 28px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 5px 13px 5px 5px; border-radius: 999px;
  background: color-mix(in oklab, var(--tint) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tint) 22%, transparent);
  color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.eyebrow-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: #fff; }
.eyebrow-icon svg { width: 13px; height: 13px; }
.eyebrow span:not(.eyebrow-icon) { display: none; }
.dark .eyebrow, .wrist-panel .eyebrow { color: var(--ink); }

/* The walk: a legend for the map, and how far along the walk is, as a line under the chip. */
.walk-side { display: grid; gap: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend-you { width: 10px; height: 10px; border-radius: 50%; background: var(--location); box-shadow: 0 0 0 2.5px #fff, 0 0 0 6px rgb(10 132 255 / 0.18); }
.legend-zone { width: 14px; height: 14px; border-radius: 50%; background: rgb(228 87 46 / 0.18); box-shadow: inset 0 0 0 1.5px rgb(228 87 46 / 0.7); }
.legend-pin { width: 16px; height: 11px; border-radius: 3px; background: #2B6B70; box-shadow: 0 0 0 1.5px #fff; }
@media (max-width: 899px) { .legend { display: none; } }
@media (min-width: 900px) { .walk-side { justify-self: end; max-width: 34ch; margin-bottom: 6px; } .walk-head .walk-side .lead { margin: 0; } }
.walk-progress { position: relative; display: block; height: 3px; margin-top: 10px; overflow: hidden; border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 10%, transparent); }
.walk-progress i { position: absolute; inset: 0; border-radius: inherit; background: var(--location); transform-origin: 0 0; }
.walk.is-arrived .walk-progress i { background: var(--marigold); }
.walk-panel::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 120px rgb(0 0 0 / 0.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .walk-panel::after { box-shadow: inset 0 0 140px rgb(0 0 0 / 0.45); } }
:root[data-theme="dark"] .walk-panel::after { box-shadow: inset 0 0 140px rgb(0 0 0 / 0.45); }

/* Privacy: the four promises as tiles, each with its glyph. */
.facts { gap: 12px; }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 18px; border-radius: 20px;
  background: var(--panel); box-shadow: 0 0 0 1px var(--hairline); }
.facts .h4, .facts p { grid-column: 2; }
.facts p { margin-top: 2px; font-size: 15px; }
.fact-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in oklab, #2F5D46 16%, var(--panel)); color: #2F5D46; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact-icon { color: #8fd1ae; background: color-mix(in oklab, #2F5D46 40%, var(--panel)); } }
:root[data-theme="dark"] .fact-icon { color: #8fd1ae; background: color-mix(in oklab, #2F5D46 40%, var(--panel)); }
.fact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The plans' last row: the price, and for Free the download itself. */
.plan-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; }
.plan-foot .plan-price { margin: 0; }
.plan-foot .badge img { height: 44px; }

/* The language's own name over its name in English. */
.drum-lang { display: grid; justify-items: end; gap: 1px; margin-top: -17px; line-height: 1.2; }
.drum-lang [data-native] { color: var(--ink); font-size: 14px; font-weight: 600; }
.drum-lang [data-english] { color: var(--ink-3); font-size: 12px; font-weight: 500; }
@media (max-width: 520px) { .drum-lang { justify-items: center; margin-top: 6px; } }

/* Places: you on the map, Marigold Market's locations, and their list nearest first; pointing at a row lifts its pin. */
.tile-places { justify-content: space-between; gap: 20px; }
.tile-places .tile-text { z-index: 3; }
.tile-places .places-map::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--tile-bg) 8%, color-mix(in srgb, var(--tile-bg) 55%, transparent) 30%, transparent 48%, transparent 62%, color-mix(in srgb, var(--tile-bg) 70%, transparent) 80%); }
.tile-places .places-map::after { display: none; }
.places-here { position: absolute; left: 47%; top: 66%; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--location); box-shadow: 0 0 0 3px #fff, 0 0 0 14px rgb(10 132 255 / 0.16), 0 2px 6px rgb(0 0 0 / 0.3); }
.tile-places .pin { z-index: 2; transition: transform 0.367s var(--spring-crit); }
.tile-places .pin.is-lit { transform: translateY(-8px) scale(1.12); }
.places-list { position: relative; z-index: 3; display: grid; padding: 6px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px rgb(0 0 0 / 0.12); }
.places-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 16px; font-size: 15px; cursor: default; transition: background-color 0.2s ease; }
.places-list li.is-lit { background: color-mix(in oklab, #E4572E 12%, transparent); }
.row-pin { width: 25px; height: 16px; border-radius: 3px; background: #E4572E; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgb(0 0 0 / 0.2); }
.row-name { font-weight: 600; }
.row-dist { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js .tile-places:not(.is-in) .places-list li { opacity: 0; transform: translateY(8px); }
  .js .tile-places .places-list li { transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.2s ease;
    transition-delay: calc(0.3s + var(--n) * 0.16s), calc(0.3s + var(--n) * 0.16s), 0s; }
  .js .tile-places.is-in .places-list li { transition-delay: 0s; }
}

/* The loop: each device's screen takes the colour of the card it last received. */
.loop-stack { display: none; }
.loop-disc svg .dev-screen { stroke: none; fill: transparent; transition: fill 0.45s var(--ease-out); }
.loop-label { top: 54px; }

/* The catalogue: pointing at a lit card lifts it out of the wall with its kind of shop beside it. */
.field-lift { position: absolute; z-index: 3; display: none; pointer-events: none; }
.field-lift.is-on { display: block; }
.field-lift i { display: block; width: 100%; height: 100%; border-radius: 6%/9.5%; background: var(--c);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.9), 0 10px 24px rgb(0 0 0 / 0.5); transform: scale(3); transform-origin: 50% 100%;
  animation: lift-up 0.3s var(--ease-out) both; }
.field-lift span { position: absolute; left: 50%; bottom: calc(100% * 3 + 12px); transform: translateX(-50%); white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.12); color: var(--night-ink); font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fade-in 0.25s ease 0.08s both; }
@keyframes lift-up { from { transform: scale(1); opacity: 0.6; } }
.field.is-pointing canvas { cursor: pointer; }

/* Hover, for every button. The pill reveals its arrow; badges lift; quiet buttons brighten. */
.badge { transition: transform 0.25s var(--ease-out), filter 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .badge:hover { opacity: 1; transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.22)); }
  .country select:hover { background: rgb(255 255 255 / 0.16); }
  .places-list li:hover { background: color-mix(in oklab, #E4572E 10%, transparent); }
}


.mode-num { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; padding: 0; border-radius: 7px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); transition: background-color 0.25s ease, color 0.25s ease; }
.mode-num svg { width: 15px; height: 15px; }
.mode.is-on .mode-num { background: var(--glow, #E4572E); color: #fff; }
.eyebrow { align-self: flex-start; justify-self: start; width: max-content; }
@media (max-width: 520px) { .plan-foot { flex-wrap: wrap; } .plan-foot .plan-price span { white-space: nowrap; } }

/* ---------------------------------------------------------------------------------------------------------------
   Round 6.
   --------------------------------------------------------------------------------------------------------------- */
/* Section chips: a solid chip that reads on any ground, the glyph on its card's colour in an ink that holds 3:1. */
.eyebrow { gap: 8px; padding: 4px 14px 4px 4px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgb(0 0 0 / 0.06); font-size: 13.5px; font-weight: 600; }
.eyebrow .eyebrow-icon { width: 24px; height: 24px; background: var(--tint); color: var(--glyph, #fff); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12); }
.eyebrow .eyebrow-icon svg { width: 14px; height: 14px; }
.dark .eyebrow, .wrist-panel .eyebrow { background: rgb(255 255 255 / 0.1); color: #f3f1ee; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); }

/* The walk's key: one column of marks, one of words. */
.legend { display: grid; grid-template-columns: max-content; gap: 9px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2); }
.legend li { display: grid; grid-template-columns: 22px auto; align-items: center; gap: 10px; }
.legend-mark { display: grid; place-items: center; width: 22px; height: 22px; }
.legend-you { width: 10px; height: 10px; border-radius: 50%; background: var(--location); box-shadow: 0 0 0 2.5px #fff, 0 0 0 7px rgb(10 132 255 / 0.2); }
.legend-zone { width: 18px; height: 18px; border-radius: 50%; background: rgb(228 87 46 / 0.2); box-shadow: inset 0 0 0 1.5px rgb(228 87 46 / 0.8); }
.legend-pin { position: relative; width: 17px; height: 11px; margin-top: -5px; border-radius: 2.5px; background: #2B6B70; box-shadow: 0 0 0 1.5px #fff; }
.legend-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 5px; margin: 1.5px 0 0 -0.75px; border-radius: 1px; background: var(--ink); }
/* The map keeps clear of the next sheet's rounded edge. */
.walk.sheet .walk-stage { padding-bottom: calc(var(--sheet-r) + 28px); }

/* The lifted catalogue card is drawn at its lifted size, so its edge stays a hairline. */
.field-lift i { transform: none; border-radius: 6% / 9.5%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.55), 0 12px 28px rgb(0 0 0 / 0.55);
  transform-origin: 50% 100%; animation: lift-up 0.32s var(--spring-crit) both; }
.field-lift span { bottom: calc(100% + 10px); }
@keyframes lift-up { from { transform: scale(0.34) translateY(0); opacity: 0.6; } }

/* App Store badges: they lift toward the pointer and a band of light crosses them. */
.badge { position: relative; overflow: hidden; border-radius: 9px; }
.badge::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.32) 45%, rgb(255 255 255 / 0.45) 50%, rgb(255 255 255 / 0.32) 55%, transparent); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .badge:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 10px 16px rgb(0 0 0 / 0.25)); }
  .badge:hover::after { transform: translateX(120%) skewX(-18deg); transition: transform 0.7s cubic-bezier(0.3, 0, 0.2, 1); }
}
.badge:active { transform: scale(0.97); }



/* ---------------------------------------------------------------------------------------------------------------
   Round 7.
   --------------------------------------------------------------------------------------------------------------- */
/* Every sheet keeps the same room above and below its content, measured from edge to edge: the next sheet's rounded
   top overlaps this one by its radius, so the bottom carries that radius on top of the same room. */
:root { --sheet-pad: clamp(96px, 10vw, 140px); }
.sheet { padding: var(--sheet-pad) 0 calc(var(--sheet-pad) + var(--sheet-r)); }
.end.sheet { padding: calc(var(--sheet-pad) + 24px) 0; }

/* Section chips: a larger glyph, drawn on a 20-unit grid around its centre, always white. */
.eyebrow { padding: 4px 14px 4px 4px; }
.eyebrow .eyebrow-icon { width: 26px; height: 26px; color: #fff; }
.eyebrow .eyebrow-icon svg { display: block; width: 16px; height: 16px; }

/* App Store badges: on hover three cards rise from behind the badge and fan out, the way a card comes up in the app. */
.badge { position: relative; isolation: isolate; overflow: visible; }
.badge::after { content: none; }
.badge-deck { position: absolute; z-index: -1; left: 50%; top: 5px; width: 0; height: 0; pointer-events: none; }
.badge-deck i { position: absolute; left: -22px; top: 0; width: 44px; height: 28px; border-radius: 3.5px;
  background: linear-gradient(rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.75)) 5px 5px / 16px 2.5px no-repeat, var(--c);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.25), 0 2px 6px rgb(0 0 0 / 0.2);
  transform: translate(var(--x), 0) rotate(0deg); transition: transform 0.28s var(--ease-out); }
.badge-deck i:nth-child(1) { --c: #2B6B70; --x: -30px; --y: -20px; --r: -13deg; }
.badge-deck i:nth-child(2) { --c: #E4572E; --x: 0px; --y: -27px; --r: 0deg; z-index: 1; }
.badge-deck i:nth-child(3) { --c: #A3800F; --x: 30px; --y: -20px; --r: 13deg; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .badge:hover { transform: none; filter: none; }
  .badge:hover .badge-deck i { transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 0.55s var(--spring-lift); }
  .badge:hover .badge-deck i:nth-child(2) { transition-delay: 40ms; }
  .badge:hover:active .badge-deck i { transform: translate(var(--x), 0) rotate(0deg); transition: transform 0.16s var(--ease-out); }
}



/* The drum: words sit on their optical centre (their weight is mostly below the cap height's middle), and the
   language's names stay centred on the band whether one line shows or two. */
.drum-wheel p { padding-bottom: 0.1em; }
.drum-wheel svg { position: relative; top: 0.05em; }
.drum-lang { margin-top: 0; translate: 0 -50%; }
@media (max-width: 520px) { .drum-lang { margin-top: 6px; translate: none; } }

/* Section chips: the disc and its glyph are one drawing, so the browser can never place them half a pixel apart. */
.eyebrow .eyebrow-icon { display: block; width: 26px; height: 26px; background: none; box-shadow: none; color: #fff; }
.eyebrow .eyebrow-icon svg { display: block; width: 26px; height: 26px; }
.eyebrow-disc { fill: var(--tint); }

/* The cloud's fill keeps the same one-point gap inside its outline as the phone's and the watch's screens. */
.loop-disc svg .dev-gap { stroke: var(--panel); stroke-width: 3.6; }

/* On a phone the hero's last lines (badge and note) keep clear of the next sheet's rounded top. */
@media (max-width: 959px) { .hero { padding-bottom: calc(var(--sheet-r) + 56px); } }

/* The zoom to the till starts from the front card's plate as it is and lands back on it: a copy of the card rides
   on the zooming screen (home.js places it), only its plate drawn, and crossfades with the checkout as it grows. */
.till-ghost { position: absolute; z-index: 3; pointer-events: none; }
.till-ghost .kcard-face { background: none; overflow: visible; }
.till-ghost .kcard-face::before, .till-ghost .kcard-face::after { content: none; }
.till-ghost .kcard-band, .till-ghost .kcard-sheen { display: none; }
.till-ghost .kcard-plate { box-shadow: none; }
/* The card's colour at the top is never faded: the crop that grows from the plate reveals it and hides it again.
   The rest of the checkout and the plate swap places in one crossfade, each way. */
.ws:not(.is-till) .ws-till > .cs-slab { opacity: 1; }
.ws.is-till .ws-till > .till-ghost { opacity: 0; transition: opacity 0.24s linear 0.1s; }
.ws.is-till .ws-till > *:not(.till-ghost) { transition: opacity 0.24s linear 0.1s; }
.ws:not(.is-till) .ws-till > .till-ghost { opacity: 1; transition: opacity 0.2s linear 0.04s; }
.ws:not(.is-till) .ws-till > *:not(.till-ghost) { transition: opacity 0.2s linear 0.04s; }
@media (prefers-reduced-motion: reduce) { .till-ghost { display: none; } }

/* The small pins on the walk keep their stems: the head sits on the stem's top (the larger pins' rule moved it up). */
.pin.pin-small .pin-head { top: -26px; }

/* The walk: the next sheet's rounded top overlaps the walk by its radius, so the walk keeps that radius below its
   pinned stage, plus the room every sheet keeps below its content less the stage's own 28 pt. The stage lets go
   before the next sheet comes into view, so the sheet never rises toward a map that is still pinned. */
.walk.sheet { padding-bottom: calc(var(--sheet-pad) - 28px + var(--sheet-r)); }
.walk.sheet .walk-stage { padding-top: max(92px, var(--sheet-pad)); padding-bottom: 28px; }
/* On a short window the pinned map needs the height more than the heading needs the room above it. */
@media (max-height: 800px) { .walk.sheet .walk-stage { padding-top: 92px; } }

/* The language's English name keeps its line even when it is the same as its own (English), so the label never jumps. */
.drum-lang [data-english] { min-height: 1.2em; }

/* The walk on phones. The map's key stays off (a later rule had brought it back), so the map gets the height; the door
   sits lower, so the card rising from its pin clears the distance chip. On a panel still too short for both, the chip
   steps aside once you arrive: the card is the arrival. */
@media (max-width: 899px) {
  .walk .legend { display: none; }
  .walk { --fy: 84%; }
  .walk-panel { container-type: size; }
}
@container (max-height: 330px) {
  .walk.is-arrived .walk-chip { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) { .walk-chip { transition: opacity 0.2s var(--ease-out); } }
/* A very short panel (a small phone) also takes the pin and card down a size, around the door, so the card stays in. */
@container (max-height: 240px) { .walk-place { scale: 0.8; } }
@container (max-height: 200px) { .walk-place { scale: 0.7; } }

/* Narrow phones (320 to 360 wide): the watch shrinks with its panel instead of pushing the copy past the panel's edge,
   and the closing section's small floating cards set their names in proportion, so a name never stops mid-word. */
@media (max-width: 899px) {
  .wrist-panel { grid-template-columns: minmax(0, 1fr); }
  .watch { width: min(300px, 100%); height: auto; aspect-ratio: 300 / 480; }
}
.float .kcard-name { font-size: 4.3257cqw; }
/* The drum's longest word (Italian, "Nelle vicinanze") fits a 320-wide phone: the type follows the width below 360. */
@media (max-width: 520px) { .drum-wheel p { font-size: min(26px, 7.2vw); } }

/* Quiet text on a tinted tile keeps 4.5:1 against the tile, which is darker than the page in light and lighter in dark. */
.tile.tinted { --ink-3: #615d59; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.tinted { --ink-3: #9f9b95; } }
:root[data-theme="dark"] .tile.tinted { --ink-3: #9f9b95; }

/* The closing cards' depth as the page scrolls: each card drifts against the scroll, the nearer ones more (their float's
   scale carries the depth). A scroll timeline runs on the browser's scrolling thread, so it never lags the page. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .end { view-timeline: --end block; }
    .float > .kcard { animation: float-depth linear both; animation-timeline: --end; }
  }
}
@keyframes float-depth { from { translate: 0 60px; } to { translate: 0 -60px; } }
