/* Kartino site styles.

   The page is neutral (warm paper, warm near-black) and takes its colour from the sample cards. Type is the app's:
   SF Pro on Apple devices, Inter elsewhere. Motion is transforms and opacity only, and the page is complete without it:
   every rule outside `.js` and `prefers-reduced-motion: no-preference` describes the finished state. The plan for
   every section is in Docs/home-plan.md. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter/inter-latin-opsz-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --ground: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #ebe9e5;
  --ink: #1c1b1a;
  --ink-2: #66625d;
  --ink-3: #726e69;
  --hairline: rgb(28 27 26 / 0.1);
  --pill: #1c1b1a;
  --pill-ink: #fff;
  --night: #0f0e0d;
  --night-surface: #1b1a18;
  --night-ink: #f3f1ee;
  --night-ink-2: #a6a19a;
  --map-ground: #f0efed;
  --location: #0a84ff;
  --marigold: #e4572e;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: 20px;
  --wrap: 1200px;
  --section: 104px;
  --radius: 28px;
  --top: 96px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Springs, sampled from damping and response (Apple's parameters). Arrival 0.86 / 0.5 s and lift 0.8 / 0.55 s for
     the hero; extract 0.85 / 0.32 s and restore 0.85 / 0.45 s are the app's deck springs (KartoDesign Motion:
     spring(duration: 0.32 / 0.45, bounce: 0.15)); drop 0.8 / 0.42 s for map pins. */
  --spring-arrive: linear(0, 0.0212, 0.0748, 0.1485, 0.233, 0.3215, 0.4093, 0.4931, 0.5708, 0.6412, 0.7038, 0.7585,
    0.8057, 0.8458, 0.8795, 0.9073, 0.9302, 0.9486, 0.9633, 0.9749, 0.9838, 0.9905, 0.9956, 0.9992, 1.0017, 1.0033,
    1.0043, 1.0049, 1.005, 1.0049, 1.0047, 1.0043, 1.0039, 1.0034, 1.003, 1.0026, 1.0022, 1.0018, 1.0015, 1.0012, 1);
  --spring-lift: linear(0, 0.02, 0.0715, 0.1434, 0.2271, 0.3161, 0.4054, 0.4917, 0.5724, 0.6461, 0.712, 0.77, 0.8199,
    0.8624, 0.8979, 0.927, 0.9505, 0.9692, 0.9836, 0.9945, 1.0025, 1.0081, 1.0118, 1.014, 1.015, 1.0151, 1.0147,
    1.0138, 1.0126, 1.0113, 1.01, 1.0086, 1.0073, 1.0061, 1.0051, 1.0041, 1.0033, 1.0025, 1.0019, 1.0014, 1);
  --spring-extract: linear(0, 0.0258, 0.0898, 0.176, 0.2728, 0.3719, 0.4677, 0.5567, 0.6369, 0.7075, 0.7683, 0.8197,
    0.8623, 0.8972, 0.9252, 0.9473, 0.9645, 0.9776, 0.9873, 0.9943, 0.9993, 1.0026, 1.0046, 1.0058, 1.0062, 1.0062,
    1.006, 1.0055, 1.0049, 1.0043, 1.0037, 1.0031, 1.0025, 1.0021, 1.0016, 1.0013, 1);
  --spring-restore: linear(0, 0.0258, 0.09, 0.1764, 0.2733, 0.3725, 0.4684, 0.5575, 0.6377, 0.7083, 0.769, 0.8203,
    0.8629, 0.8977, 0.9257, 0.9477, 0.9648, 0.9778, 0.9875, 0.9945, 0.9994, 1.0026, 1.0047, 1.0058, 1.0062, 1.0062,
    1.0059, 1.0055, 1.0049, 1.0042, 1.0036, 1.003, 1.0025, 1.002, 1.0016, 1.0013, 1);
  --spring-drop: linear(0, 0.0245, 0.0862, 0.1705, 0.2666, 0.3663, 0.4638, 0.5554, 0.6387, 0.7125, 0.7763, 0.8304,
    0.8753, 0.9118, 0.941, 0.9637, 0.9809, 0.9936, 1.0026, 1.0087, 1.0124, 1.0144, 1.0151, 1.0149, 1.0141, 1.0129,
    1.0115, 1.0099, 1.0085, 1.007, 1.0057, 1.0046, 1.0036, 1.0027, 1.002, 1.0014, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ground: #0f0e0d;
    --surface: #1b1a18;
    --surface-2: #161513;
    --ink: #f3f1ee;
    --ink-2: #a6a19a;
    --ink-3: #807b74;
    --hairline: rgb(243 241 238 / 0.1);
    --pill: #f3f1ee;
    --pill-ink: #0f0e0d;
    --night: #050505;
    --night-surface: #161513;
    --map-ground: #1d2022; } }
:root[data-theme="dark"] { --ground: #0f0e0d;
    --surface: #1b1a18;
    --surface-2: #161513;
    --ink: #f3f1ee;
    --ink-2: #a6a19a;
    --ink-3: #807b74;
    --hairline: rgb(243 241 238 / 0.1);
    --pill: #f3f1ee;
    --pill-ink: #0f0e0d;
    --night: #050505;
    --night-surface: #161513;
    --map-ground: #1d2022; }
@media (min-width: 768px) { :root { --gutter: 40px; --section: 144px; --radius: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; color: var(--ink); background: var(--ground); font: 17px/1.47 var(--font); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: 10px; z-index: 100; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-size: 15px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.dark { --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: #807b74; --surface: var(--night-surface);
  --hairline: rgb(243 241 238 / 0.1); color: var(--ink); background: var(--night); }

/* Type. Sizes from the measured references: H2 up to 60, body 17 to 21. Tracking tightens as size grows. */
.h2 { font-family: var(--font-display); font-size: clamp(34px, 8.6vw, 60px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: clamp(22px, 5.4vw, 26px); font-weight: 650; line-height: 1.15;
  letter-spacing: -0.022em; text-wrap: balance; }
.h4 { font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.016em; }
.lead { color: var(--ink-2); font-size: clamp(18px, 4.6vw, 21px); line-height: 1.45; letter-spacing: -0.016em;
  text-wrap: pretty; }
.h2 + .lead { margin-top: 18px; }

/* Header: the brand and one action. Over the page it turns to glass once the page has scrolled, and light over the
   dark sections (home.js sets .is-scrolled and .is-dark). */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--ground) 76%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 var(--hairline); }
/* Without JavaScript the header can't follow the page, so it is always glass. */
.no-js .site-header { background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%); box-shadow: 0 1px 0 var(--hairline); }
.site-header.is-dark { --ink: var(--night-ink); --pill: var(--night-ink); --pill-ink: #0f0e0d; color: var(--ink); }
.site-header.is-dark.is-scrolled { background: rgb(15 14 13 / 0.72); box-shadow: 0 1px 0 rgb(243 241 238 / 0.08); }
@media (prefers-reduced-transparency: reduce) { .site-header.is-scrolled { background: var(--ground); } .site-header.is-dark.is-scrolled { background: #0f0e0d; } }
.nav-end { display: flex; align-items: center; gap: 8px; }
.theme { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color 0.2s ease, transform 0.16s var(--ease-out); }
.theme:active { transform: scale(0.94); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; height: 60px;
  margin: 0 auto; padding: 0 var(--gutter); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px;
  background: var(--pill); color: var(--pill-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; }
.badge { display: inline-block; border-radius: 9px; line-height: 0; }
.badge img { width: auto; height: 44px; }
.pill, .badge { transition: transform 0.16s var(--ease-out), opacity 0.2s ease; }
.pill:active, .badge:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pill:hover, .badge:hover { opacity: 0.82; } }

/* ---------------------------------------------------------------------------------------------------------------
   1. Hero. The words on one side; on the other an iPhone, large, rising out of the bottom edge, its Lock Screen at
   9:41. The Live Activity comes up, the card rises out of its pocket, then lifts off the glass and stays in front.

   --phone is the frame's width. The wallpaper and the frame are real captures (tools/hero.py); the Live Activity and
   the card are drawn as the app draws them, in the frame's points (450 x 920). The hero ends 1.709 phone
   widths below the phone's top: just under the Live Activity, so the frame's lower part is cut by the edge.
   --------------------------------------------------------------------------------------------------------------- */

.hero { --phone: min(54vw, 236px); display: grid; justify-items: center; padding: 80px var(--gutter) 0; overflow: clip; }
.hero-copy { max-width: 34rem; text-align: center; }
.hero-title { font-family: var(--font-display); font-size: clamp(34px, 9.4vw, 50px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.026em; text-wrap: balance; }
.hero-title span { display: block; }
.hero-lead { margin: 14px auto 0; max-width: 31ch; color: var(--ink-2); font-size: 17px; line-height: 1.42;
  letter-spacing: -0.016em; text-wrap: pretty; }
.hero-copy .badge { margin-top: 28px; }
.hero-note { margin-top: 14px; color: var(--ink-3); font-size: 13px; line-height: 1.4; letter-spacing: -0.004em; }

/* On a phone the badge and its note come after the iPhone, so the arrival is on the first screen; the iPhone is cut
   just under its Live Activity (only below: the lifted card may rise above it). */
.phone-wrap { display: block; width: var(--phone); height: calc(var(--phone) * 1.709 + 28px); margin-top: 24px;
  clip-path: inset(-100vh -50vw 0 -50vw); }
@media (max-width: 959px) {
  .hero-copy { display: contents; }
  .hero-title { order: 1; }
  .hero-lead { order: 2; }
  .phone-wrap { order: 3; }
  .hero-copy .badge { order: 4; margin-top: 28px; }
  .hero-note { order: 5; text-align: center; }
}
.phone { position: relative; width: var(--phone); aspect-ratio: 1350 / 2760; container-type: inline-size; }

@media (min-width: 960px) {
  .hero { --phone: clamp(330px, (100svh - var(--top) - 56px) / 1.709, 540px);
    grid-template-columns: minmax(0, 1fr) calc(var(--phone) * 1.16); column-gap: 48px; align-items: center;
    height: calc(var(--top) + var(--phone) * 1.709 + 56px);
    /* Full width, so the card's glow fades out instead of being cut at a 1280 px box; the content keeps that column. */
    padding: var(--top) max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))) 0; }
  .hero-copy { align-self: center; justify-self: start; max-width: 36rem; padding-bottom: 24px; text-align: left; }
  .hero-title { font-size: clamp(50px, 4.45vw, 66px); line-height: 1.03; letter-spacing: -0.028em; }
  .hero-lead { margin: 24px 0 0; max-width: 32ch; font-size: 20px; line-height: 1.45; }
  .hero-copy .badge { margin-top: 32px; }
  .phone-wrap { align-self: start; height: auto; margin: 0; clip-path: none; }
}

/* Inside the iPhone everything is placed in the app's points: --pt is one point of the 450 pt frame. */
.phone { --pt: calc(100cqw / 450); }
.phone > * { position: absolute; }
.phone-screen img, .phone-frame img { width: 100%; height: 100%; }
.phone-screen { left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; overflow: hidden; border-radius: 13% / 6%; }
.phone-screen picture { position: absolute; inset: 0; }
.phone-frame { inset: 0; }
/* The card's own colour, glowing behind the iPhone once it has arrived. */
.hero-glow { left: -60%; right: -60%; top: 35%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(228 87 46 / 0.32), rgb(228 87 46 / 0)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-glow { background: radial-gradient(closest-side, rgb(228 87 46 / 0.26), rgb(228 87 46 / 0)); } }
:root[data-theme="dark"] .hero-glow { background: radial-gradient(closest-side, rgb(228 87 46 / 0.26), rgb(228 87 46 / 0)); }
/* iOS darkens the wallpaper under a Live Activity; these are its measured stops (tools/hero.py, DIM). */
.phone-dim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / 0) 22.88%,
  rgb(0 0 0 / 0.013) 26.7%, rgb(0 0 0 / 0.034) 30.51%, rgb(0 0 0 / 0.068) 34.33%, rgb(0 0 0 / 0.123) 38.14%,
  rgb(0 0 0 / 0.185) 41.95%, rgb(0 0 0 / 0.245) 45.77%, rgb(0 0 0 / 0.293) 49.58%, rgb(0 0 0 / 0.325) 53.39%,
  rgb(0 0 0 / 0.342) 57.21%, rgb(0 0 0 / 0.345) 100%); }

/* The Live Activity, drawn from the app's ArrivalLockScreen: 375 x 160 pt; its ground (#121214 with the card's colour
   glowing at 20%); the card 335 pt wide, 20 pt in from the top and sides; the pocket's mouth at 92 pt (#232323, its
   notch 120 wide and 18 deep, a shade on the cards above it and a lit edge); the place line and Show on the pocket. */
.la { left: 8.3333%; top: 66.1594%; width: 83.3333%; height: 17.3913%; }
.la > * { position: absolute; }
.la-back, .la-front { inset: 0; border-radius: calc(24.7 * var(--pt)); overflow: hidden; }
.la-back { z-index: 1; background: #121214; }
.la-glow { position: absolute; inset: 0; background: #E4572E; opacity: 0.2;
  -webkit-mask-image: radial-gradient(circle calc(400 * var(--pt)) at 50% 15%, #000 calc(10 * var(--pt)), transparent);
  mask-image: radial-gradient(circle calc(400 * var(--pt)) at 50% 15%, #000 calc(10 * var(--pt)), transparent); }
.la-front { z-index: 3; pointer-events: none; }
.la-pocket-shape { position: absolute; left: 0; top: calc(68 * var(--pt)); width: 100%; height: calc(92 * var(--pt)); overflow: visible; }
.la-shade { fill: rgb(0 0 0 / 0.22); }
.la-fill { fill: #232323; }
.la-edge { fill: none; stroke-width: 1; }
.la-caption { position: absolute; left: 0; right: 0; top: calc(92 * var(--pt)); height: calc(68 * var(--pt)); display: flex;
  align-items: center; justify-content: space-between; gap: calc(12 * var(--pt)); padding: calc(18 * var(--pt)) calc(20 * var(--pt)) 0;
  font: 600 calc(13 * var(--pt)) / 1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", system-ui, sans-serif;
  letter-spacing: -0.005em; white-space: nowrap; }
.la-place { display: flex; align-items: center; gap: calc(4 * var(--pt)); color: #e4e4e4;
  text-shadow: 0 calc(-0.75 * var(--pt)) 0 rgb(0 0 0 / 0.85), 0 calc(0.75 * var(--pt)) 0 rgb(255 255 255 / 0.14); }
.la-place svg { width: calc(11 * var(--pt)); height: calc(11 * var(--pt)); fill: currentColor; }
.la-show { display: flex; align-items: center; gap: calc(5 * var(--pt)); padding: calc(8 * var(--pt)) calc(12 * var(--pt));
  border-radius: 999px; background: #fff; color: #232323; font-weight: 700; }
.la-show svg { width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); }

/* The card in its pocket: 335 pt wide at (20, 20) of the Live Activity. While it is in the pocket it is cut at the
   Live Activity's lower edge (33.7% of its own height hangs below), 2 px inside it so its anti-aliased edge never
   shows under the Live Activity's own; once it has risen clear it moves above the
   pocket's front and is no longer cut. Its code plate comes up once it has lifted off the glass. */
.la-pocket { left: 5.3333%; top: 12.5%; width: 89.3333%; height: 132%; z-index: 4; }
.card-rise, .card-lift { position: absolute; inset: 0; }
.la .card { position: absolute; inset: 0; width: auto; }
.card-rise { transform: translateY(-78%); }
.card-lift { transform: translateY(-61.9%) scale(1.6); }
.card-shadow { position: absolute; inset: 0; border-radius: 4.5% / 7.137%;
  box-shadow: 0 calc(var(--phone) * 0.05) calc(var(--phone) * 0.1) rgb(20 12 8 / 0.34),
    0 calc(var(--phone) * 0.012) calc(var(--phone) * 0.024) rgb(20 12 8 / 0.22); }
.la .kcard-face { will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
  .js .phone:not(.is-playing) .phone-dim,
  .js .phone:not(.is-playing) .hero-glow,
  .js .phone:not(.is-playing) .card-shadow,
  .js .phone:not(.is-playing) .la .kcard-plate { opacity: 0; }
  .js .phone:not(.is-playing) .la { opacity: 0; transform: translateY(36%) scale(0.92); }
  .js .phone:not(.is-playing) .la-pocket { z-index: 2; clip-path: inset(-300% -40% calc(33.7% + 2px) -40%); }
  .js .phone:not(.is-playing) .card-rise,
  .js .phone:not(.is-playing) .card-lift { transform: none; }

  /* 0.6 s: the Live Activity arrives and the wallpaper dims. 1.6 s: the card rises out of the pocket. 2.3 s: clear of
     the pocket, it comes above the front. 2.34 s: it lifts off the glass, its code comes up, the glow spreads. */
  .phone.is-playing .phone-dim { animation: fade-in 0.6s var(--ease-out) 0.6s both; }
  .phone.is-playing .la { animation: la-move 0.7s var(--spring-arrive) 0.6s both, fade-in 0.26s var(--ease-out) 0.6s both; }
  .phone.is-playing .card-rise { animation: rise 0.7s var(--ease-in-out) 1.6s both; }
  .phone.is-playing .la-pocket { animation: unpocket 0s linear 2.3s both; }
  .phone.is-playing .card-lift { animation: lift 0.742s var(--spring-lift) 2.34s both; }
  .phone.is-playing .card-shadow { animation: fade-in 0.5s var(--ease-out) 2.34s both; }
  .phone.is-playing .la .kcard-plate { animation: fade-in 0.44s var(--ease-out) 2.75s both; }
  .phone.is-playing .hero-glow { animation: fade-in 1.4s var(--ease-out) 2.4s both; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes la-move { from { transform: translateY(36%) scale(0.92); } }
@keyframes rise { from { transform: none; } }
@keyframes unpocket { from { z-index: 2; clip-path: inset(-300% -40% calc(33.7% + 2px) -40%); } }
@keyframes lift { from { transform: none; } }

/* ---------------------------------------------------------------------------------------------------------------
   Footer, shared by every page: the brand and one line, the legal and help links, and the name once more, very
   large and very quiet, cut by the bottom of the page.
   --------------------------------------------------------------------------------------------------------------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); padding-top: 44px;
  color: var(--ink-2); font-size: 15px; }
.footer-inner { display: grid; gap: 24px; }
.footer-name { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 600;
  letter-spacing: -0.02em; }
.footer-name img { width: 24px; height: 24px; }
.footer-line { margin-top: 8px; max-width: 36ch; color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; transition: color 0.2s ease; }
.footer-copy { color: var(--ink-3); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--ink); } }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand links" "brand copy"; row-gap: 12px; }
  .footer-brand { grid-area: brand; }
  .footer-links { grid-area: links; justify-content: flex-end; }
  .footer-copy { grid-area: copy; text-align: right; }
}
/* The name, cut by the page's end: only its top four fifths show. It is drawn in a solid tone, tracked so its letters
   never overlap, and deals itself in the sample cards' colours, one letter after another (site.js). */
.wordmark { margin: clamp(40px, 6vw, 72px) 0 -0.2em; cursor: default; text-align: center; font-family: var(--font-display);
  font-size: clamp(96px, 25vw, 400px); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--ink) 8%, var(--ground)); -webkit-user-select: none; user-select: none; }
.wordmark span { display: inline-block; transition: color 0.45s var(--ease-out), transform 0.6s var(--spring-lift); transition-delay: calc(var(--i) * 45ms); }
.wordmark.is-dealt span { color: var(--c); transform: translateY(-0.04em); }
@media (prefers-reduced-motion: reduce) { .wordmark span { transition: color 0.3s ease; transition-delay: 0s; } .wordmark.is-dealt span { transform: none; } }
/* The lifted card is shown 1.6 times its size in the Live Activity, so it keeps the lines a face that large carries. */
.la .kcard-program { display: block; }
.la .kcard-band { padding-top: 2.7794cqw; }
.la .kcard-digits { display: block; }
.la .kcard-name { font-size: 4.3257cqw; }
.la .kcard-program { font-size: 3.0534cqw; }
/* The appearance the visitor chose in the header, over the system's (home.js stores it). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* The header's controls on every page. The pill reveals its arrow on hover; without JavaScript the appearance switch
   can't work, so it isn't shown. */
.pill { gap: 0; }
.pill svg { width: 0; height: 12px; opacity: 0; transition: width 0.25s var(--ease-out), opacity 0.2s ease, margin 0.25s var(--ease-out); }
.no-js [data-theme-toggle] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { opacity: 1; background: color-mix(in srgb, var(--pill) 86%, var(--location)); }
  .pill:hover svg { width: 12px; margin-left: 6px; opacity: 1; }
  .theme:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .footer-links a { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: color 0.2s ease, background-size 0.3s var(--ease-out); }
  .footer-links a:hover { background-size: 100% 1px; }
}
/* The appearance switch: the sun's rays fold in and it turns into the moon. */
.theme svg { transition: transform 0.5s var(--spring-lift), opacity 0.25s ease; }
.theme-moon, .theme.is-dark .theme-sun { display: block; position: absolute; }
.theme { position: relative; }
.theme-sun { opacity: 1; transform: none; }
.theme-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme.is-dark .theme-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme.is-dark .theme-moon { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Switching appearance: the new one comes in behind a soft horizon, from the top for night and the bottom for day. */
:root[data-theme-to]::view-transition-new(root) { -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
:root[data-theme-to="dark"]::view-transition-new(root) { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 55%); mask-image: linear-gradient(to bottom, #000 45%, transparent 55%); mask-position: 0 100%; }
:root[data-theme-to="light"]::view-transition-new(root) { -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 55%); mask-image: linear-gradient(to top, #000 45%, transparent 55%); mask-position: 0 0; }

/* ---------------------------------------------------------------------------------------------------------------
   Document pages: privacy, terms and support. One reading column at about 68 characters; on a wide screen the
   page's contents stand beside it and stay in view. Plain type, no motion: these pages are read, not watched.
   --------------------------------------------------------------------------------------------------------------- */

.doc { padding: calc(var(--top) + 32px) 0 var(--section); }
.doc-head { max-width: 760px; }
.doc-title { font-family: var(--font-display); font-size: clamp(44px, 11vw, 76px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.04em; text-wrap: balance; }
.doc-lead { margin-top: 20px; max-width: 34em; color: var(--ink-2); font-size: clamp(19px, 4.6vw, 22px); line-height: 1.45;
  letter-spacing: -0.016em; text-wrap: pretty; }
.doc-date { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.doc-grid { margin-top: clamp(40px, 7vw, 72px); }
.doc-toc { display: none; }
.doc-body { max-width: 680px; color: var(--ink-2); font-size: 17px; line-height: 1.62; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--hairline); scroll-margin-top: 88px;
  color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 5.4vw, 28px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.024em; }
.doc-body h3 { margin: 32px 0 0; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -0.016em; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 14px 0 0; }
.doc-body h2 + p, .doc-body h3 + p { margin-top: 10px; }
.doc-body ul { padding-left: 1.25em; list-style: disc; }
.doc-body ol { padding-left: 1.25em; list-style: decimal; }
.doc-body li + li { margin-top: 8px; }
.doc-body li::marker { color: var(--ink-3); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a, .doc-lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); transition: text-decoration-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .doc-body a:hover, .doc-lead a:hover { text-decoration-color: currentColor; } }
.doc-body address { font-style: normal; }

/* The short version, on a leaf of its own before the long one. */
.doc-summary { margin: 0; padding: 26px 26px 24px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline); }
.doc-body .doc-summary-title { margin: 0; }
.doc-summary-title { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.doc-summary ul { margin: 14px 0 0; padding: 0; list-style: none; }
.doc-summary li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.doc-summary li + li { margin-top: 12px; }
.doc-summary li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent); }
.doc-summary li::after { content: ""; position: absolute; left: 6px; top: calc(0.2em + 4.5px); width: 4px; height: 7px;
  border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* Questions on the support page: native disclosure, so they open without JavaScript. */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { margin-top: 0; }
.faq { border-bottom: 1px solid var(--hairline); }
.faq summary { position: relative; display: block; padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.016em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--ink-3); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.faq[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq-answer { padding: 0 0 22px; }
.faq-answer > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* The way to write to us, at the top of the support page. */
.contact { display: grid; gap: 18px; margin: 0 0 56px; padding: 26px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline); }
.contact-address { color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 6vw, 28px); font-weight: 700;
  letter-spacing: -0.024em; overflow-wrap: anywhere; }
.contact p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.contact .doc-summary-title { color: var(--ink); }
.contact .contact-address { color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 6vw, 28px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.024em; }
.doc-body .pill { color: var(--pill-ink); text-decoration: none; }
.contact .pill { justify-self: start; height: 44px; padding: 0 20px; font-size: 16px; }

@media (min-width: 1024px) {
  .doc-grid { display: grid; grid-template-columns: 220px minmax(0, 680px); column-gap: clamp(56px, 7vw, 112px); }
  .doc-toc { display: block; }
  .doc-toc nav { position: sticky; top: 104px; }
  .doc-toc p { color: var(--ink-3); font-size: 13px; font-weight: 600; }
  .doc-toc ol { margin: 12px 0 0; padding: 0; list-style: none; }
  .doc-toc li + li { margin-top: 2px; }
  .doc-toc a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; text-decoration: none;
    transition: color 0.2s ease; }
  .doc-toc a:hover { color: var(--ink); }
}

/* The wordmark's tight tracking lets the K's arm meet the a and the r's arm run into the t's crossbar at this weight.
   Those two pairs are opened to the spacing of the word's other close pairs (about 0.04em of ink between letters). */
.wordmark span:nth-child(2) { margin-left: 0.04em; }
.wordmark span:nth-child(4) { margin-left: 0.045em; }
