/* The home page. The other pages (privacy, support, get) keep /style.css.
 *
 * Colours are the app's own (lib/theme/app_theme.dart, the "Warm" DNA: amber, amber-deep, rose
 * clay, gain green, the night canvas and card) plus the icon's burnt orange, suit navy and gold.
 * Type is Fraunces for display and Nunito for text, subset per script and served from /fonts — no
 * font CDN, so the page makes no third-party request at all. */

/* Latin is all the English page loads; the other subsets load only when a translation uses them
 * (Turkish, Russian). Fraunces has no Cyrillic, so Russian headlines fall back to Georgia. */
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(/fonts/fraunces-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Fraunces; font-weight: 700; font-style: italic; font-display: swap; src: url(/fonts/fraunces-latin-700-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Fraunces; font-weight: 900; font-display: swap; src: url(/fonts/fraunces-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Fraunces; font-weight: 900; font-style: italic; font-display: swap; src: url(/fonts/fraunces-latin-900-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(/fonts/fraunces-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Fraunces; font-weight: 700; font-style: italic; font-display: swap; src: url(/fonts/fraunces-latin-ext-700-italic.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Fraunces; font-weight: 900; font-display: swap; src: url(/fonts/fraunces-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Fraunces; font-weight: 900; font-style: italic; font-display: swap; src: url(/fonts/fraunces-latin-ext-900-italic.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/nunito-cyrillic-ext-400-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-cyrillic-ext-600-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/nunito-cyrillic-ext-700-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-cyrillic-ext-800-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  --bg: #120d0a;
  --bg-2: #18110d;
  --tile: #1d1612;
  --canvas: #1c1613;      /* the app's night canvas */
  --card: #251d19;        /* the app's night card */
  --hairline: #362b25;    /* the app's dark hairline */
  --sunken: #15100d;
  --line: rgba(255, 232, 214, .08);
  --line-2: rgba(255, 232, 214, .14);
  --ink: #f3e9e1;
  --muted: #b3a196;
  --faint: #94837a;       /* 5.3:1 on --bg */
  --amber: #e8894a;
  --amber-deep: #cf6f31;
  --amber-hi: #f2a66e;
  --gold: #f5c46a;
  --clay: #c9695e;
  --clay-hi: #e08a7f;
  --gain: #6e9b5b;
  --gain-hi: #8db879;
  --navy: #2b3d73;
  --peri: #a3b4f5;
  --peri-hi: #d3dbff;
  --wash: #2d221c;        /* amber at 12% on the card, as the app's tonal buttons */
  --burnt: #b9501e;
  --burnt-deep: #93391a;

  --display: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 16px;
  --max: 1160px;

  /* The icon's night sky: sparkles, a crescent moon and a milk drop, faint, tiled. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cmask id='m'%3E%3Crect width='132' height='132' fill='white'/%3E%3Ccircle cx='107.5' cy='25.5' r='7.6'/%3E%3C/mask%3E%3Cg fill='white'%3E%3Cpath d='M30 13c1.4 9.6 4.4 12.6 14 14-9.6 1.4-12.6 4.4-14 14-1.4-9.6-4.4-12.6-14-14 9.6-1.4 12.6-4.4 14-14z'/%3E%3Cpath d='M40 95c.7 4.8 2.2 6.3 7 7-4.8.7-6.3 2.2-7 7-.7-4.8-2.2-6.3-7-7 4.8-.7 6.3-2.2 7-7z'/%3E%3Cpath d='M99 72c5 6.6 10 12 10 17.6a10 10 0 0 1-20 0C89 84 94 78.6 99 72z'/%3E%3Ccircle cx='102' cy='31' r='9' mask='url(%23m)'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--amber-hi); }
b, strong { font-weight: 800; color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--amber); color: #1c1613; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #111; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }

/* Line icons share one style. */
.btn svg, .no-icon svg, .dr-icon svg, .round-btn svg, .toggle svg, .wchip svg, .float svg, .relay-lock svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 800 1.02rem/1.1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2.3; }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--burnt-deep); box-shadow: 0 14px 34px -12px rgba(70, 20, 0, .55); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(70, 20, 0, .6); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-accent { background: var(--amber); color: #fff; }
.btn-accent:hover { background: #ee9659; }
.btn-accent:disabled { background: var(--hairline); color: var(--muted); cursor: default; transform: none; }
.btn-tonal { background: var(--wash); color: var(--amber-hi); }
.btn-tonal:hover { background: #3a2b22; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(18, 13, 10, .74);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 900 1.25rem/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .26); }
.nav-links { display: none; margin-inline-start: auto; gap: 4px; }
.nav-links a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-nav { margin-inline-start: auto; min-height: 42px; padding: 0 18px; font-size: .92rem; background: #fff; color: var(--burnt-deep); }
.nav.scrolled .btn-nav { background: var(--amber); color: #fff; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .btn-nav { margin-inline-start: 8px; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: clip; padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 0; isolation: isolate; }
.hero-bg {
  --cut: 150px;
  position: absolute; inset: 0 0 var(--cut); z-index: -1; overflow: hidden;
  background:
    radial-gradient(55% 45% at 86% 14%, rgba(255, 200, 120, .55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(110, 30, 10, .65), transparent 70%),
    linear-gradient(172deg, #d0622a, var(--burnt) 52%, #a54419);
  border-radius: 0 0 clamp(28px, 6vw, 72px) clamp(28px, 6vw, 72px);
}
/* The icon's sparkles, moon and drops, drifting very slowly. */
.hero-bg::before {
  content: ""; position: absolute; inset: -132px; opacity: .085;
  background: var(--pattern) 0 0 / 132px 132px;
  animation: drift 60s linear infinite;
}
/* Film grain, so the big flat orange has some tooth. */
.hero-bg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .2; mix-blend-mode: overlay; background-image: var(--grain); }
.hero-moon {
  position: absolute; right: 7%; top: 92px; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset -14px 6px 0 0 #fff3dc; transform: rotate(-20deg); opacity: .9;
  filter: drop-shadow(0 0 24px rgba(255, 240, 210, .55));
}
.hero-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; }
.hero-copy { position: relative; z-index: 4; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  width: clamp(112px, 28vw, 150px); height: auto; border-radius: 24%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 22px 40px -12px rgba(80, 20, 0, .6);
  animation: bob 6s ease-in-out infinite;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  color: #fff; font-weight: 800; font-size: .88rem; letter-spacing: .01em;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #a8e08f; color: rgba(168, 224, 143, .7); animation: ping 2.4s infinite; }
h1 {
  margin: 18px 0 0; color: #fff;
  font: 900 clamp(3.2rem, 14.5vw, 7.6rem)/.9 var(--display); letter-spacing: -.045em;
  text-shadow: 0 10px 40px rgba(90, 25, 0, .3);
}
h1 em { font-style: italic; font-weight: 700; color: #ffe3bd; letter-spacing: -.035em; }
.hero-sub { margin: 22px 0 0; max-width: 31em; color: rgba(255, 255, 255, .93); font-size: clamp(1.05rem, 2.6vw, 1.22rem); line-height: 1.55; }
.hero-sub strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; padding: 0; margin: 26px 0 0; color: #fff; font-weight: 800; font-size: .95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9501e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat;
}

.hero-art { position: relative; height: 560px; margin: 0 auto; width: 100%; max-width: 520px; }
.hero-art .phone { position: absolute; left: 50%; top: 0; }
.hero-art .phone-front { --pw: 248px; transform: translateX(-66%); z-index: 2; animation: rise 1.1s var(--ease) both; }
.hero-art .phone-back { --pw: 222px; transform: translateX(-2%) translateY(48px) rotate(7deg); z-index: 1; opacity: .94; animation: rise-back 1.3s var(--ease) both; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px; color: var(--ink);
  background: rgba(28, 22, 19, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 214, .14), 0 18px 40px -14px rgba(0, 0, 0, .6);
  font-size: .85rem; line-height: 1.25; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.float b { display: block; font-weight: 800; }
.float small { display: block; color: var(--muted); font-size: .78rem; }
.float-a { left: -1%; top: 430px; animation-delay: -1s; }
.float-b { right: -1%; top: 36px; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.float-b b { color: var(--gain-hi); font: 900 1.35rem/1.1 var(--display); letter-spacing: -.02em; }
.float-c { right: 0; top: 300px; animation-delay: -5s; }
.fa-clock, .fc-sync { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fa-clock { background: var(--wash); color: var(--amber-hi); }
.fc-sync { background: rgba(110, 155, 91, .2); color: var(--gain-hi); }
.fa-clock svg, .fc-sync svg { width: 18px; height: 18px; }

@media (min-width: 1000px) {
  .hero { padding-top: calc(120px + env(safe-area-inset-top)); }
  .hero-bg { --cut: 130px; }
  .hero-in { grid-template-columns: 1.08fr 1fr; align-items: center; gap: 24px; }
  .hero-copy { text-align: start; align-items: flex-start; padding-bottom: 150px; }
  .cta-row { justify-content: flex-start; }
  .ticks { justify-content: flex-start; }
  .hero-badge { width: 112px; }
  .kicker { margin-top: 20px; }
  h1 { font-size: clamp(4.4rem, 6.4vw, 6.3rem); }
  .hero-art { height: 760px; max-width: none; }
  .hero-art .phone-front { --pw: 336px; transform: translateX(-72%); }
  .hero-art .phone-back { --pw: 296px; transform: translateX(-2%) translateY(70px) rotate(7deg); }
  .float { font-size: .92rem; padding: 12px 16px; }
  .float-a { left: -6%; top: 470px; }
  .float-b { right: -2%; top: 40px; }
  .float-c { right: -3%; top: 590px; }
  .hero-moon { right: auto; left: 47%; top: 120px; }
}
@media (max-width: 420px) {
  .float-c small { display: none; }
  .float-a { left: -2%; }
}

/* ------------------------------------------------------------------ phone frame */
.phone {
  --pw: 260px;
  width: var(--pw); padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(150deg, #57493f 0%, #1b1512 22%, #0e0a08 60%, #33281f 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 232, 214, .16),
    inset 0 0 0 4px #060403,
    0 60px 100px -40px rgba(0, 0, 0, .8),
    0 30px 60px -30px rgba(90, 30, 5, .55);
}
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .135); background: var(--canvas); }
.phone-screen img { display: block; width: 100%; height: auto; }
.statusbar {
  position: relative; height: calc(var(--pw) * .1); padding: 0 calc(var(--pw) * .085);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); font: 800 calc(var(--pw) * .046)/1 var(--sans);
}
.light .phone-screen { background: #fdf7f1; }
.light .statusbar { color: #2e211a; }
.cam { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * .038); height: calc(var(--pw) * .038); transform: translate(-50%, -50%); border-radius: 50%; background: #000; box-shadow: 0 0 0 calc(var(--pw) * .008) #1e1815; }
.sb-icons { display: flex; align-items: center; gap: calc(var(--pw) * .018); }
.sb-icons::before {
  content: ""; width: calc(var(--pw) * .055); height: calc(var(--pw) * .036);
  background: linear-gradient(to right, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.sb-icons::after { content: ""; width: calc(var(--pw) * .07); height: calc(var(--pw) * .034); border-radius: calc(var(--pw) * .01); background: linear-gradient(to right, currentColor 62%, rgba(150, 130, 120, .4) 62%); }

/* ------------------------------------------------------------------ marquee */
.marquee { position: relative; overflow: clip; padding: 40px 0 28px; }
.marquee-band {
  overflow: hidden; margin: 0 -4vw; padding: 16px 0; transform: rotate(-2deg);
  background: var(--amber); color: #2a160b; box-shadow: 0 20px 50px -20px rgba(232, 137, 74, .5);
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 900 clamp(1.6rem, 4.6vw, 2.6rem)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.marquee span.o { font-style: italic; font-weight: 700; text-transform: none; letter-spacing: -.02em; }
.marquee i {
  width: 1.2em; height: 1.2em; font-size: clamp(1.1rem, 3vw, 1.6rem); flex: none; background: #2a160b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c1 7.5 3.5 10 11 11-7.5 1-10 3.5-11 11-1-7.5-3.5-10-11-11 7.5-1 10-3.5 11-11z'/%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 24 24'%3E%3Cpath d='M12 1c1 7.5 3.5 10 11 11-7.5 1-10 3.5-11 11-1-7.5-3.5-10-11-11 7.5-1 10-3.5 11-11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.marquee i.drop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3.6 4.8 7.2 8.6 7.2 12.6a7.2 7.2 0 0 1-14.4 0C4.8 10.6 8.4 6.8 12 2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3.6 4.8 7.2 8.6 7.2 12.6a7.2 7.2 0 0 1-14.4 0C4.8 10.6 8.4 6.8 12 2z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ feature sections */
.feature { position: relative; overflow-x: clip; padding: clamp(84px, 12vw, 150px) var(--gutter); }
.feature-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) {
  .feature-in { grid-template-columns: 1fr 1fr; gap: 80px; }
  .flip .feature-copy { order: 2; }
  .wide .feature-in { grid-template-columns: 1fr; gap: 56px; }
}
.feature-copy.center, .center { text-align: center; margin-inline: auto; }
.feature-copy.center .lede { margin-inline: auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--muted); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; color: var(--amber-hi); box-shadow: inset 0 0 0 1.5px rgba(232, 137, 74, .55); letter-spacing: .04em; }
h2 { margin: 0; font: 900 clamp(2.6rem, 7.4vw, 4.9rem)/.95 var(--display); letter-spacing: -.04em; text-wrap: balance; }
h2 em {
  font-style: italic; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(92deg, var(--amber) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .06em .08em 0;
}
#pump h2 em { background-image: linear-gradient(92deg, var(--clay-hi), var(--amber-hi) 70%); }
#weight h2 em { background-image: linear-gradient(92deg, var(--gain-hi), #cfe8a6 80%); }
#together h2 em { background-image: linear-gradient(92deg, var(--peri), var(--peri-hi) 80%); }
#patterns h2 em { background-image: linear-gradient(92deg, var(--gold), #ffe7c2 60%, var(--amber-hi)); }
.lede { margin: 22px 0 0; max-width: 32em; color: var(--muted); font-size: clamp(1.06rem, 1.7vw, 1.2rem); line-height: 1.6; }
.lede b { color: var(--ink); }
.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; max-width: 33em; }
.points li { position: relative; padding-inline-start: 34px; color: var(--muted); }
.points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--wash)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a66e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.fine { margin: 18px 0 0; max-width: 36em; color: var(--faint); font-size: .92rem; }
.fine a { color: var(--muted); }

/* A demo is a little piece of the app, sitting in a glow. */
.demo { position: relative; width: 100%; min-width: 0; max-width: 460px; margin: 0 auto; }
.demo::before {
  content: ""; position: absolute; inset: 8% -6% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 137, 74, .2), transparent);
  filter: blur(30px);
}
#pump .demo::before { background: radial-gradient(closest-side, rgba(201, 105, 94, .2), transparent); }
#weight .demo { max-width: 980px; }
#weight .demo::before { background: radial-gradient(closest-side, rgba(110, 155, 91, .18), transparent); }
.demo-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; color: var(--faint); font-size: .9rem; text-align: center; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); color: rgba(232, 137, 74, .6); animation: ping 2s infinite; flex: none; }

.app-card {
  position: relative; overflow: hidden; background: var(--canvas); border-radius: 32px; padding: 20px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
}

/* The app's in-card pieces: hero number, trend pill, kind toggle, snackbar. */
/* The app's pictograms (lib/widgets/glyphs.dart), defined once at the top of the page. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The app's hero cards (Warm.hero): a label in amber, the big answer, a footer line under a rule. */
.hero-card { padding: 18px 18px 14px 20px; border-radius: 24px; background: linear-gradient(160deg, #3b2619, #2a1f1a); box-shadow: inset 0 0 0 1px rgba(232, 137, 74, .22); }
.hc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hc-main { flex: 1 1 150px; min-width: 0; }
.hc-label { margin: 0; color: var(--amber-deep); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.hc-big { margin: 8px 0 0; color: var(--amber-deep); line-height: 1.05; }
.hc-big .du { white-space: nowrap; }
.hc-big b { color: inherit; font: 900 3.1rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hc-big small { font: 800 1.35rem/1 var(--sans); opacity: .75; white-space: pre; }
.hc-big.now { font: 900 clamp(1.7rem, 7vw, 2.3rem)/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.hc-sub { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.hc-foot { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(232, 137, 74, .2); color: var(--ink); font-weight: 700; font-size: .86rem; }
.hc-foot svg { width: 17px; height: 17px; color: var(--amber-deep); flex: none; }
.hc-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 137, 74, .16); color: var(--amber-deep); flex: none; }
.hc-badge svg { width: 30px; height: 30px; }
.hero-card .f-total { margin: 8px 0 0; }
.hero-card .f-total span { font-size: 2.7rem; }
.hero-card .f-trend { margin: 10px 0 0; }
.hero-card + .f-total { margin-top: 18px; }

/* The ring that fills through the usual gap between feeds; amber however long it has been. */
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring > svg { width: 100%; height: 100%; overflow: visible; }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: rgba(232, 137, 74, .18); }
.ring-fill { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: var(--p, 0) 100; transform: rotate(-90deg); transform-origin: 36px 36px; transition: stroke-dasharray 1s var(--ease); }
.ring-dot { fill: #fff2e6 !important; stroke: var(--amber) !important; stroke-width: 2.4 !important; transition: cx 1s var(--ease), cy 1s var(--ease); }
.ring-ic { position: absolute; inset: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 137, 74, .16); color: var(--amber-deep); }
.ring-ic svg { width: 26px; height: 26px; }
.f-split { margin: 8px 4px 0; color: var(--muted); font-size: .82rem; }

/* The pump hero's last seven days, today's bar in full amber. */
.week { display: flex; align-items: flex-end; gap: 5px; height: 70px; flex: none; }
.week span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.week i { display: block; width: 10px; height: calc(48px * var(--f, .5)); border-radius: 5px; background: rgba(232, 137, 74, .42); transition: height .6s var(--ease); }
.week span.today i { background: var(--amber); }
.week small { color: var(--muted); font-weight: 800; font-size: .62rem; line-height: 1; }
.week span.today small { color: var(--amber-deep); }
.f-total { margin: 4px 4px 0; display: flex; align-items: baseline; gap: 8px; }
.f-total span { font: 900 3.1rem/1 var(--display); letter-spacing: -.04em; color: var(--amber-deep); font-variant-numeric: tabular-nums; display: inline-block; }
.f-total small { color: var(--muted); font-weight: 800; font-size: 1rem; }
.f-total span.bump { animation: bump .42s var(--ease); }
.f-trend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 4px 0; color: var(--muted); font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: .84rem; font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.pill::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--pm) center/contain no-repeat; mask: var(--pm) center/contain no-repeat; }
.pill.up { color: var(--gain-hi); background: rgba(110, 155, 91, .16); --pm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E"); }
.pill.down { color: var(--clay-hi); background: rgba(201, 105, 94, .16); --pm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 6 6 4-4 8 8M15 17h6v-6'/%3E%3C/svg%3E"); }
.pill.none { color: var(--muted); background: var(--hairline); --pm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--hairline); }
.toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 14px; background: none; color: var(--muted); font-weight: 800; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.toggle button svg { width: 18px; height: 18px; color: var(--muted); transition: color .25s; }
.toggle button.on { background: var(--canvas); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.toggle button.on svg { color: var(--amber); }

.toast {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: #3a2e27; color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6);
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s; pointer-events: none;
}
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast span { flex: 1; }
.toast button { border: 0; background: none; color: var(--amber-hi); font-weight: 800; cursor: pointer; padding: 6px 4px; }

/* ---------------------------------------------------- Feed demo */
.goal {
  margin-top: 18px; padding: 14px 16px 16px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .4s var(--ease);
}
.goal.reached { box-shadow: inset 0 0 0 1px rgba(110, 155, 91, .55); }
.goal-top { display: flex; align-items: center; justify-content: space-between; }
.goal-label { color: var(--muted); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.wchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--hairline); font-weight: 800; font-size: .82rem; }
.wchip svg { width: 15px; height: 15px; color: var(--amber-deep); }
.goal-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.goal-head p { margin: 0; color: var(--muted); font-weight: 800; }
.goal-head b { font: 900 2.2rem/1 var(--display); letter-spacing: -.04em; color: var(--amber-deep); font-variant-numeric: tabular-nums; transition: color .3s; }
.goal.reached .goal-head b { color: var(--gain); }
.g-pct { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.goal.reached .g-pct { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(110, 155, 91, .16); color: var(--gain-hi); font-size: .9rem; animation: pop .45s var(--spring); }
.goal.reached .g-pct::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--gain) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1613' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/11px no-repeat; }
.gbar { position: relative; height: 20px; margin-top: 12px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.gbar-tick { position: absolute; top: 50%; left: calc(var(--at) * var(--goal, 100%)); width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(169, 150, 138, .35); transition: left .9s var(--ease); }
.gbar-fill {
  --g: 100%;
  position: absolute; inset: 0 auto 0 0; width: 0; min-width: 20px; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-hi), var(--amber-deep) var(--g), var(--gain-hi) var(--g), var(--gain));
  background-size: var(--bs, 100%) 100%;
  box-shadow: 0 2px 6px rgba(232, 137, 74, .35);
  transition: width .9s var(--ease);
}
.gbar-fill::after { content: ""; position: absolute; left: 5px; right: 5px; top: 2px; height: 32%; border-radius: 999px 999px 4px 4px; background: rgba(255, 255, 255, .22); }
.gbar-notch { position: absolute; top: 0; bottom: 0; left: var(--goal, 100%); width: 3px; margin-left: -1.5px; background: var(--card); opacity: 0; transition: left .9s var(--ease), opacity .3s; }
.goal.reached .gbar-notch { opacity: 1; }
.gbar-flag { margin: 4px 0 0; color: var(--muted); font-weight: 800; font-size: .7rem; letter-spacing: .02em; transform: translateX(-50%); width: max-content; position: relative; left: var(--goal, 100%); transition: left .9s var(--ease); }
.gbar-flag::before { content: "⚑ "; }
.goal-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.goal-foot b { font-variant-numeric: tabular-nums; font-size: .82rem; }

.entry { margin-top: 14px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.digits { margin: 0; height: 62px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.digits span { font: 900 3.3rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.digits span.empty { color: var(--hairline); }
.digits span.pop { animation: digit .18s var(--ease); }
.digits small { color: var(--muted); font-weight: 800; font-size: 1rem; }
.too-high { margin: 0 0 8px; text-align: center; color: var(--clay-hi); font-weight: 700; font-size: .9rem; }
.entry .toggle { margin-top: 8px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick button { min-height: 42px; border: 0; border-radius: 999px; background: var(--wash); color: var(--amber-deep); font-weight: 800; font-size: .98rem; cursor: pointer; transition: transform .15s, background .2s; }
.quick button:hover { background: #3a2b22; }
.quick button:active { transform: scale(.94); }
.quick .repeat { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--amber); color: #fff; }
.quick .repeat:hover { background: #ee9659; }
.quick .repeat svg { width: 15px; height: 15px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 12px; }
.pad button { min-height: 52px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); font: 700 1.5rem/1 var(--sans); cursor: pointer; transition: background .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.pad button:hover { background: #2e241f; }
.pad button:active, .pad button.press { background: #3a2e27; transform: scale(.95); }
.pad button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.feed .btn-accent { min-height: 56px; border-radius: 18px; font-size: 1.06rem; }

/* ---------------------------------------------------- Pump and Log demos */
.pump #p-log { margin-top: 14px; min-height: 54px; border-radius: 18px; }
.sess-head { display: flex; justify-content: space-between; margin: 20px 4px 10px; }
.sess-head span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Today on a timeline, as the app draws it: time, a node on the line, what it was, and the gap
 * to the one before written under it. Swipe a row left to delete it. */
.timeline { --tc: 4.6em; list-style: none; margin: 0; padding: 6px 0; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; min-height: 70px; }
.tl { position: relative; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), opacity .3s; background: rgba(201, 105, 94, .85); }
.tl.gone { grid-template-rows: 0fr; opacity: 0; }
.tl.enter { animation: grow .45s var(--ease); }
.tl-clip { min-height: 0; overflow: hidden; }
.tl-bin { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat; }
.tl-in {
  position: relative; display: grid; grid-template-columns: var(--tc) 36px 1fr; align-items: center; column-gap: 14px; padding: 8px 16px; background: var(--card);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.tl-in::before { content: ""; position: absolute; inset-inline-start: calc(16px + var(--tc) + 14px + 17px); top: 0; bottom: 0; width: 2px; background: var(--hairline); }
.tl:first-child .tl-in::before { top: 26px; }
.tl:last-child .tl-in::before { bottom: auto; height: 26px; }
.tl:only-child .tl-in::before { display: none; }
.tl-in.snap { transition: transform .35s var(--spring); }
.tl-in:active { cursor: grabbing; }
.tl-time { text-align: end; color: var(--muted); font-weight: 800; font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-node { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #33241b; color: var(--amber-deep); }
.tl-node svg { width: 19px; height: 19px; }
.tl:first-child .tl-node { background: var(--amber); color: #2a1a10; box-shadow: 0 0 0 5px rgba(232, 137, 74, .16); }
.tl:first-child .tl-time { color: var(--ink); }
.tl-body b { display: block; font-size: 1.02rem; }
.tl-body small { display: block; color: var(--muted); font-size: .84rem; }
.tl-gap { grid-column: 3; margin: 8px 0 2px; color: var(--muted); font-weight: 800; font-size: .78rem; }
.tl-new .tl-in { animation: flash 1.4s var(--ease); }

.log-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px; border: 0; border-radius: 22px; background: #35241a; color: var(--amber-hi); font: 800 .98rem/1.2 var(--sans); cursor: pointer; transition: transform .15s, background .2s; }
.act svg { width: 30px; height: 30px; }
.act:hover { background: #3f2a1e; }
.act:active { transform: scale(.96); }
.act.main { background: var(--amber); color: #fff; }
.act.main:hover { background: #ee9659; }
.act[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--amber); }
.dose-sheet { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); animation: grow .35s var(--ease); }
.ds-title { margin: 0 0 12px; font-weight: 800; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chips .chip { min-height: 36px; background: var(--wash); color: var(--amber-hi); }
.ds-label { display: block; margin: 14px 4px 6px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.ds-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--canvas); color: var(--ink); font: 600 1rem var(--sans); }
.ds-input::placeholder { color: var(--faint); }
.ds-input:focus { outline: none; border-color: var(--amber); }
#ds-log { margin-top: 16px; min-height: 52px; border-radius: 16px; }

/* ---------------------------------------------------- Weight demo */
.chart-card { padding: clamp(18px, 3vw, 30px); }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--card); color: var(--muted); font-weight: 800; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--gain); color: #13100d; }
.chart-when { margin: 0; color: var(--muted); font-weight: 700; }
.chart-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; }
.big-num { margin: 0; font: 900 clamp(3.6rem, 10vw, 6rem)/.9 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--amber-deep); }
.big-num small { font: 800 .3em/1 var(--sans); letter-spacing: 0; color: var(--muted); margin-inline-start: .2em; }
.delta { margin: 0 0 .5em; display: grid; gap: 2px; }
.delta b { color: var(--gain-hi); font: 900 clamp(1.3rem, 3vw, 1.7rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.delta b.neg { color: var(--clay-hi); }
.delta span { color: var(--muted); }
.chart-cap { margin: 8px 0 0; color: var(--muted); font-size: .95rem; min-height: 1.6em; }
.chart-wrap { position: relative; margin-top: 18px; height: clamp(230px, 34vw, 340px); border-radius: 22px; background: var(--card); padding: 14px 10px 0 0; touch-action: pan-y; cursor: crosshair; }
#w-chart { display: block; width: 100%; height: 100%; overflow: visible; }
#w-chart .grid line { stroke: var(--hairline); stroke-width: 1; }
#w-chart text { fill: #9b8a80; font: 700 11.5px var(--sans); }
#w-chart .line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
#w-chart .area { fill: url(#wg); }
#w-chart .dot { fill: var(--canvas); stroke: var(--amber); stroke-width: 2.5; }
#w-chart .dot.last { fill: var(--amber); }
#w-chart .bar { fill: var(--gain); transition: opacity .2s; }
#w-chart .bar.neg { fill: var(--clay); }
#w-chart .bar.dim { opacity: .45; }
#w-chart .avg { stroke: var(--ink); stroke-opacity: .5; stroke-dasharray: 5 5; stroke-width: 1.5; }
#w-chart .scrub line { stroke: var(--ink); stroke-opacity: .35; stroke-dasharray: 3 4; }
#w-chart .scrub circle { fill: var(--canvas); stroke: var(--gold); stroke-width: 3; }
html.js #w-chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
html.js .in #w-chart .draw, html.js #w-chart.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.chart-foot { margin: 14px 4px 0; color: var(--faint); font-size: .85rem; }
.weight-facts { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .weight-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .weight-facts { grid-template-columns: repeat(4, 1fr); } }
.wf { padding: 18px 20px; border-radius: 22px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.wf b { display: block; font: 900 1.9rem/1.1 var(--display); letter-spacing: -.03em; color: var(--gain-hi); font-variant-numeric: tabular-nums; }
.wf b small { font: 800 .5em/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.wf span { display: block; margin-top: 6px; color: var(--muted); }

/* ---------------------------------------------------- Together */
.together { position: relative; padding: clamp(100px, 13vw, 170px) var(--gutter); overflow: clip; isolation: isolate; }
.together::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 38% at 50% 32%, rgba(43, 61, 115, .5), transparent 72%),
    radial-gradient(45% 30% at 50% 70%, rgba(43, 61, 115, .22), transparent 70%),
    linear-gradient(180deg, var(--bg), #11121c 30% 70%, var(--bg));
}
.together::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .035; background: var(--pattern) 0 0 / 132px 132px; -webkit-mask: radial-gradient(60% 50% at 50% 40%, #000, transparent); mask: radial-gradient(60% 50% at 50% 40%, #000, transparent); }
.together-in { max-width: var(--max); margin: 0 auto; }
.together .eyebrow span { color: var(--peri); box-shadow: inset 0 0 0 1.5px rgba(163, 180, 245, .5); }

.sync-demo { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 980px; margin: clamp(44px, 6vw, 70px) auto 0; }
@media (min-width: 820px) { .sync-demo { grid-template-columns: 1fr 230px 1fr; gap: 0; align-items: center; } }
.mini-app {
  position: relative; overflow: hidden; padding: 18px; border-radius: 30px; background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.ma-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma-name { font: 900 1.25rem/1.1 var(--display); letter-spacing: -.02em; }
.ma-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.ma-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gain); }
.ma-status.busy::before { background: var(--gold); animation: blink .8s infinite; }
.ma-status.off::before { background: var(--clay); }
.ma-total { margin: 10px 0 0; color: var(--muted); font-weight: 800; }
.ma-total b { font: 900 2.4rem/1 var(--display); color: var(--amber-deep); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-inline-end: 4px; display: inline-block; }
.ma-total b.bump { animation: bump .42s var(--ease); }
.ma-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.ma-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: .92rem; }
.ma-list li.new { animation: arrive .9s var(--ease); }
.ma-list li i { width: 26px; height: 26px; border-radius: 8px; background: var(--wash); flex: none; display: grid; place-items: center; }
.ma-list li i::after { content: ""; width: 13px; height: 13px; background: var(--amber-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3.6 4.8 7.2 8.6 7.2 12.6a7.2 7.2 0 0 1-14.4 0C4.8 10.6 8.4 6.8 12 2z'/%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 24 24'%3E%3Cpath d='M12 2c3.6 4.8 7.2 8.6 7.2 12.6a7.2 7.2 0 0 1-14.4 0C4.8 10.6 8.4 6.8 12 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ma-list li b { font-weight: 800; white-space: nowrap; }
.ma-list li span { color: var(--muted); }
.ma-list li em { margin-inline-start: auto; font-style: normal; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--peri); }
.ma-toast { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; padding: 11px 14px; border-radius: 12px; background: #3a2e27; color: #fff; font-weight: 700; font-size: .88rem; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); transform: translateY(-160%); transition: transform .45s var(--spring); }
.ma-toast.show { transform: none; }
.mini-app[data-side="b"] { padding-bottom: 68px; }
.mini-app[data-side="b"] .power { position: absolute; left: 18px; right: 18px; bottom: 16px; min-height: 40px; border: 0; border-radius: 12px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-weight: 800; font-size: .9rem; cursor: pointer; z-index: 4; }
.mini-app[data-side="b"] .power[aria-pressed="true"] { color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(245, 196, 106, .6); }
.ma-off { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px 24px 80px; background: rgba(8, 6, 5, .86); color: var(--muted); font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.mini-app.off .ma-off { opacity: 1; pointer-events: auto; }

.relay { position: relative; display: grid; place-items: center; min-height: 150px; }
.lane { position: absolute; inset: 0; display: grid; place-items: center; }
.lane-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
@media (min-width: 820px) { .lane-line { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); } }
.relay-box { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; width: 190px; padding: 14px 12px; border-radius: 22px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; }
.relay-lock { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(43, 61, 115, .5); color: var(--peri); margin-bottom: 4px; }
.relay-lock svg { width: 20px; height: 20px; }
.relay-box b { font-size: .95rem; }
.relay-box small { color: var(--muted); font-size: .78rem; }
.relay-box code { display: block; max-width: 100%; overflow: hidden; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: var(--sunken); color: var(--peri); font: 600 .74rem/1.4 var(--mono); white-space: nowrap; text-overflow: clip; }
.relay-wait { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(245, 196, 106, .16); color: var(--gold); font-weight: 800; font-size: .78rem; animation: pop .4s var(--spring); }
.packet {
  position: absolute; z-index: 6; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px;
  background: var(--peri); color: #141a33; font: 700 .72rem/1 var(--mono); white-space: nowrap; pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(163, 180, 245, .7);
}
.packet::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%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 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.together .demo-hint { margin-top: 22px; }
.together .pulse { background: var(--peri); color: rgba(163, 180, 245, .6); }

.pairing { display: grid; gap: 14px; max-width: 980px; margin: clamp(56px, 8vw, 90px) auto 0; }
@media (min-width: 820px) { .pairing { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 26px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.step-n { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(163, 180, 245, .5); color: var(--peri); font-weight: 800; font-size: .9rem; }
.step h3 { margin: 18px 0 6px; font: 900 1.4rem/1.1 var(--display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); }
.qr { width: 96px; height: 96px; padding: 8px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: repeat(13, 1fr); gap: 0; }
.qr i { background: #1c1613; border-radius: 1px; }
.qr i.o { background: transparent; }
.scan { position: relative; width: 96px; height: 96px; border-radius: 14px; background: var(--sunken); overflow: hidden; }
.scan::before {
  content: ""; position: absolute; inset: 14px; --c: var(--peri);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 18px 3px, linear-gradient(var(--c), var(--c)) 0 0 / 3px 18px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 18px 3px, linear-gradient(var(--c), var(--c)) 100% 0 / 3px 18px,
    linear-gradient(var(--c), var(--c)) 0 100% / 18px 3px, linear-gradient(var(--c), var(--c)) 0 100% / 3px 18px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 18px 3px, linear-gradient(var(--c), var(--c)) 100% 100% / 3px 18px;
  background-repeat: no-repeat;
}
.scan span { position: absolute; left: 18px; right: 18px; height: 2px; top: 20%; background: var(--peri); box-shadow: 0 0 12px 2px rgba(163, 180, 245, .7); animation: scan 2.2s ease-in-out infinite; }
.sas { display: flex; gap: 6px; padding: 12px 16px; border-radius: 18px; background: rgba(232, 137, 74, .1); font-size: 2.1rem; line-height: 1.1; letter-spacing: .04em; }
.sas.roll { animation: roll .5s var(--ease); }
.step-code .btn { margin-top: 16px; }
.step-code.matched { box-shadow: inset 0 0 0 1.5px rgba(110, 155, 91, .6); }
.crypto { max-width: 820px; margin: 40px auto 0; padding: 22px 26px; border-radius: 24px; background: rgba(43, 61, 115, .18); box-shadow: inset 0 0 0 1px rgba(163, 180, 245, .18); }
.crypto p { margin: 0; color: var(--muted); font-size: .98rem; }
.crypto b { color: var(--peri-hi); }

/* ---------------------------------------------------- Patterns (stats) */
.dawn { isolation: isolate; }
.dawn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 55% at 50% 100%, rgba(232, 137, 74, .2), transparent 70%), radial-gradient(40% 30% at 50% 100%, rgba(245, 196, 106, .14), transparent 70%);
}
.stats-card { padding: 18px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--hairline); }
.seg2 button { min-height: 44px; border: 0; border-radius: 14px; background: none; color: var(--muted); font-weight: 800; cursor: pointer; transition: background .25s, color .25s; }
.seg2 button.on { background: var(--canvas); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.clock-wrap { position: relative; width: min(100%, 320px); margin: 18px auto 0; aspect-ratio: 1; }
#clock { width: 100%; height: 100%; display: block; overflow: visible; }
#clock .face { fill: var(--card); }
#clock .ring { fill: none; stroke: var(--hairline); stroke-width: 1; }
#clock .tick { stroke: var(--hairline); stroke-width: 2; stroke-linecap: round; }
#clock .tick.major { stroke: #4b3c33; stroke-width: 3; }
#clock text { fill: #9b8a80; font: 800 11px var(--sans); text-anchor: middle; dominant-baseline: middle; }
#clock .night { fill: rgba(43, 61, 115, .32); }
#clock .peak { fill: rgba(245, 196, 106, .2); stroke: rgba(245, 196, 106, .55); stroke-width: 1.5; }
#clock .fd { fill: var(--amber); fill-opacity: .82; transition: transform .6s var(--spring), opacity .4s; transform-box: fill-box; transform-origin: center; }
#clock .fd.f { fill: var(--gold); }
html.js #clock .fd { transform: scale(0); opacity: 0; }
html.js #clock.in .fd { transform: none; opacity: 1; }
.clock-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.clock-mid b { font: 900 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--amber-deep); font-variant-numeric: tabular-nums; }
.clock-mid span { color: var(--muted); font-weight: 700; font-size: .85rem; max-width: 8em; }
.clock-cap { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.facts { margin-top: 16px; padding: 4px 16px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.fact { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.fact + .fact { border-top: 1px solid var(--hairline); }
.fact span { flex: 1; color: var(--muted); }
.fact b { font-variant-numeric: tabular-nums; }
.fact.split { display: block; }
.fact.split div { display: flex; justify-content: space-between; }
.split-track { height: 10px; margin-top: 10px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.split-track i { display: block; height: 100%; width: var(--a); border-radius: inherit; background: linear-gradient(90deg, var(--amber-hi), var(--amber-deep)); transition: width .8s var(--spring); }
.fact.split small { display: block; margin-top: 8px; color: var(--muted); font-size: .82rem; }

/* ------------------------------------------------------------------ privacy manifesto */
.manifesto { position: relative; padding: clamp(100px, 14vw, 180px) var(--gutter); overflow: clip; isolation: isolate; }
.manifesto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(185, 80, 30, .32), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg));
}
.manifesto-in { max-width: var(--max); margin: 0 auto; text-align: center; }
.mega { font-size: clamp(2.6rem, 7.4vw, 6.2rem); line-height: .98; letter-spacing: -.045em; }
.mega em { background-image: linear-gradient(92deg, var(--amber-hi), #fff2e2 70%); }
.nos { display: grid; gap: 14px; margin-top: clamp(48px, 7vw, 80px); text-align: start; }
@media (min-width: 640px) { .nos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .nos { grid-template-columns: repeat(4, 1fr); } }
.no { position: relative; padding: 26px 24px; border-radius: 26px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.no:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.no-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--wash); color: var(--amber-hi); }
.no-icon svg { width: 26px; height: 26px; }
.no-icon::after { content: ""; position: absolute; width: 38px; height: 3px; border-radius: 3px; background: var(--clay-hi); transform: rotate(-45deg); box-shadow: 0 0 0 2.5px var(--wash); }
.no h3 { margin: 20px 0 6px; font: 900 1.5rem/1.1 var(--display); letter-spacing: -.03em; }
.no p { margin: 0; color: var(--muted); }

.airplane { display: inline-flex; align-items: center; gap: 16px; margin-top: 44px; padding: 16px 24px 16px 18px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); text-align: start; }
.switch { position: relative; width: 58px; height: 34px; border-radius: 999px; border: 0; background: #3e332d; cursor: pointer; flex: none; transition: background .3s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .35s var(--spring); }
.switch-knob::after { content: ""; position: absolute; inset: 6px; background: #3e332d; transition: background .3s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%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 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.switch[aria-checked="true"] { background: var(--amber); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(24px); }
.switch[aria-checked="true"] .switch-knob::after { background: var(--amber); }
.ap-title { margin: 0; font-weight: 800; }
.ap-status { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.ap-status.ok { color: var(--gain-hi); }
.manifesto .fine { margin: 34px auto 0; }

/* ------------------------------------------------------------------ data */
.transfer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px; border-radius: 28px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.mini-phone { position: relative; width: 84px; height: 150px; border-radius: 20px; background: var(--canvas); box-shadow: inset 0 0 0 3px #2e241f, 0 20px 30px -16px rgba(0, 0, 0, .8); flex: none; display: grid; place-items: end center; padding-bottom: 12px; }
.mini-phone::before { content: ""; position: absolute; top: 18px; left: 14px; right: 14px; height: 58px; border-radius: 10px; background: linear-gradient(var(--amber-deep), var(--amber-deep)) 0 8px / 70% 10px no-repeat, linear-gradient(var(--hairline), var(--hairline)) 0 30px / 100% 8px no-repeat, linear-gradient(90deg, var(--amber-hi) 64%, var(--hairline) 64%) 0 48px / 100% 8px no-repeat; }
.mini-phone.new::before { animation: fill-in 4s var(--ease) infinite; }
.mini-phone span { font-size: .72rem; font-weight: 800; color: var(--muted); }
.wire { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.file { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 12px; background: var(--amber); color: #2a160b; font: 800 .8rem/1 var(--mono); box-shadow: 0 10px 24px -8px rgba(232, 137, 74, .7); animation: travel 4s var(--ease) infinite; }
.data-rows { display: grid; gap: 10px; margin-top: 14px; }
.data-row { display: flex; gap: 16px; padding: 18px 20px; border-radius: 22px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.data-row b { font-size: 1.06rem; }
.data-row p { margin: 2px 0 0; color: var(--muted); }
.dr-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--wash); color: var(--amber-hi); display: grid; place-items: center; flex: none; }
.dr-icon svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ details bento */
.details { padding: clamp(84px, 12vw, 150px) var(--gutter); }
.details-in { max-width: var(--max); margin: 0 auto; }
.details h2 { text-align: center; }
.bento { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "last buzz" "theme theme" "thumb undo" "split split"; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "last buzz theme" "thumb undo theme" "split split split"; }
}
.t-last { grid-area: last; } .t-buzz { grid-area: buzz; } .t-theme { grid-area: theme; }
.t-thumb { grid-area: thumb; } .t-undo { grid-area: undo; } .t-split { grid-area: split; }
@media (max-width: 699px) { .bento > * { grid-area: auto; } }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 24px; border-radius: 28px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(232, 137, 74, .12), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile-label { margin: 0; color: var(--muted); font-weight: 800; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.tile-big { margin: 0; font: 900 3rem/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tile-big small { font: 800 .4em/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.tile-big.mono { color: var(--amber-deep); }
.tile-note { margin: auto 0 0; color: var(--muted); font-size: .95rem; }
.seg { display: flex; gap: 6px; width: 100%; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: var(--card); color: var(--muted); font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--amber); color: #fff; }
.buzz-phone { position: relative; width: 58px; height: 100px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 3px #2e241f; }
.buzz-phone span { position: absolute; left: 10px; right: 10px; top: 40px; height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--amber-hi) 70%, var(--gain) 70%); }
.buzz-phone.go { animation: buzz .5s linear; }
.buzz-phone.go::before, .buzz-phone.go::after { content: ""; position: absolute; top: 30px; width: 10px; height: 40px; border: solid var(--gold); border-width: 0 3px 0 0; border-radius: 50%; animation: fade .6s ease-out forwards; }
.buzz-phone.go::before { left: -18px; transform: scaleX(-1); }
.buzz-phone.go::after { right: -18px; }
.mini-ui { --mb: var(--canvas); --mc: var(--card); --mi: var(--ink); --mt: var(--hairline);
  display: grid; gap: 14px; width: 100%; padding: 22px; border-radius: 22px; background: var(--mb); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s; }
.mini-ui .mu-num { font: 900 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--amber-deep); }
.mini-ui .mu-num small { font: 800 .38em/1 var(--sans); color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
.mini-ui .mu-bar { height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--amber-hi), var(--amber-deep) 64%, var(--mt) 64%); transition: background .4s; }
.t-theme.light .mini-ui { --mb: #fdf7f1; --mt: #f6ebe1; }
.t-theme.light .mini-ui .mu-num small { color: #7a675c; }
.t-theme { justify-content: space-between; }
.thumb-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.thumb-keys span { display: grid; place-items: center; height: 56px; border-radius: 16px; background: var(--card); font: 700 1.4rem/1 var(--sans); }
.thumb-keys span.hl { background: none; box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber-hi); font: 900 1.2rem/1 var(--display); position: relative; }
.thumb-keys span.hl::after { content: "pt"; font: 800 .6rem/1 var(--sans); margin-inline-start: 2px; }
.t-undo .tile-big small { font: 900 .6em/1 var(--display); color: var(--gain-hi); letter-spacing: -.02em; font-style: italic; }
.split-bar { width: 100%; height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #e0b45c); overflow: hidden; }
.split-bar span { display: block; height: 100%; width: var(--a); border-radius: inherit; background: linear-gradient(90deg, var(--amber-hi), var(--amber-deep)); box-shadow: 3px 0 0 var(--tile); }
html.js .split-bar span { width: 0; transition: width 1.4s var(--spring) .2s; }
html.js .in .split-bar span { width: var(--a); }

/* ------------------------------------------------------------------ free */
.free { padding: clamp(84px, 12vw, 150px) var(--gutter); }
.free-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 56px; align-items: center; }
@media (min-width: 920px) { .free-in { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.free h2 em { background-image: linear-gradient(92deg, var(--gain-hi), #d6efc3); }
.receipt {
  position: relative; width: 100%; max-width: 400px; margin: 0 auto; padding: 30px 28px 46px;
  background: #fbf3e8; color: #2a1d16; font-family: var(--mono); font-size: .95rem;
  rotate: 2.2deg; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
  /* The torn bottom edge: each 18px tile keeps an upward 90° cone from its bottom centre. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  transition: opacity .9s var(--ease), transform .9s var(--ease), rotate .5s var(--spring), scale .5s var(--spring);
}
.receipt:hover { rotate: 0deg; scale: 1.02; }
.receipt b { color: inherit; }
.r-head { margin: 0; text-align: center; font: 900 1.7rem/1 var(--display); letter-spacing: -.03em; }
.r-sub { margin: 8px 0 22px; text-align: center; color: #6e5f55; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.receipt ul { list-style: none; margin: 0; padding: 18px 0; border-block: 2px dashed rgba(0, 0, 0, .22); display: grid; gap: 10px; }
.receipt li { display: flex; align-items: baseline; }
.receipt li span { flex: 1; display: flex; align-items: baseline; }
.receipt li span::after { content: ""; flex: 1; margin: 0 10px; border-bottom: 2px dotted rgba(0, 0, 0, .25); transform: translateY(-4px); }
.receipt li.dim { color: #6e5f55; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 0; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.r-total b { font: 900 2.2rem/1 var(--display); letter-spacing: -.03em; }
.r-bottle { display: block; width: 40px; height: 70px; margin: 22px auto 0; background: #2a1d16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 36'%3E%3Cpath d='M8 0h4l1 5h1.5a1 1 0 0 1 1 1v2H4.5V6a1 1 0 0 1 1-1H7zM4 10h12l2 4v19a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V14zm2 8v2h4v-2zm0 5v2h4v-2zm0 5v2h4v-2z'/%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 20 36'%3E%3Cpath d='M8 0h4l1 5h1.5a1 1 0 0 1 1 1v2H4.5V6a1 1 0 0 1 1-1H7zM4 10h12l2 4v19a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V14zm2 8v2h4v-2zm0 5v2h4v-2zm0 5v2h4v-2z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ------------------------------------------------------------------ tour */
.tour { padding: clamp(60px, 10vw, 120px) 0; }
.tour-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tour-nav { display: none; gap: 10px; }
@media (min-width: 720px) { .tour-nav { display: flex; } }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .15s; }
.round-btn:hover { background: var(--card); }
.round-btn:active { transform: scale(.92); }
.round-btn svg { width: 22px; height: 22px; }
.tour-track {
  --pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: clamp(18px, 3vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 48px var(--pad) 30px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-track figure { margin: 0; scroll-snap-align: start; flex: none; }
.tour-track .phone { --pw: clamp(220px, 60vw, 270px); transition: transform .4s var(--ease); }
.tour-track figure:hover .phone { transform: translateY(-8px); }
.tour-track figcaption { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.tour-track figcaption b { display: block; color: var(--ink); font: 900 1.3rem/1.2 var(--display); letter-spacing: -.02em; }

/* ------------------------------------------------------------------ faq */
.faq { padding: clamp(84px, 12vw, 150px) var(--gutter); }
.faq-in { max-width: 860px; margin: 0 auto; }
.faq h2 { text-align: center; }
.qs { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-2); }
.qs details { border-bottom: 1px solid var(--line-2); }
.qs summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; cursor: pointer; list-style: none;
  font: 900 clamp(1.15rem, 2.6vw, 1.45rem)/1.25 var(--display); letter-spacing: -.015em;
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a66e' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .35s var(--spring), background-color .2s; }
.qs details[open] summary::after { transform: rotate(135deg); background-color: var(--wash); }
.qs details p { margin: -6px 4px 26px; max-width: 40em; color: var(--muted); font-size: 1.05rem; animation: fade-up .4s var(--ease); }

/* ------------------------------------------------------------------ final */
.final {
  position: relative; overflow: hidden; isolation: isolate; margin: 40px var(--gutter) 0; padding: clamp(70px, 10vw, 120px) 24px;
  border-radius: clamp(32px, 5vw, 56px); text-align: center; color: #fff;
  background: radial-gradient(60% 60% at 50% 0%, #e07a3a, transparent 70%), linear-gradient(180deg, var(--burnt), var(--burnt-deep));
}
.final::before { content: ""; position: absolute; inset: -132px; z-index: -1; opacity: .08; background: var(--pattern) 0 0 / 132px 132px; animation: drift 60s linear infinite; }
.final-glow { position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; background-image: var(--grain); }
.final-badge { width: clamp(120px, 24vw, 170px); height: auto; border-radius: 24%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 24px 40px -14px rgba(60, 15, 0, .6); rotate: -4deg; }
.final h2 { margin-top: 26px; font-size: clamp(3rem, 10vw, 7.2rem); letter-spacing: -.05em; }
.final > p { margin: 18px auto 0; max-width: 30em; color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.cta-row.center { justify-content: center; margin-top: 34px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.foot-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; color: var(--muted); font-size: .92rem; }
.foot-in .brand { font-size: 1.1rem; }
.foot-in .brand img { border-radius: 8px; }
.foot-tag { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-inline-start: auto; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { margin: 0; width: 100%; color: var(--faint); }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ------------------------------------------------------------------ language dropdown (i18n.py) */
.nav-drop { position: relative; margin-inline-start: auto; }
.nav-drop + .btn-nav { margin-inline-start: 8px; }
.lang-drop .lang-code { display: none; }
@media (max-width: 600px) {
  /* The language menu and the store button need the row: phones get the code, not the name. */
  .lang-drop .lang-name { display: none; }
  .lang-drop .lang-code { display: inline; }
  .nav-in { gap: 12px; }
}
/* The narrowest phones keep the icon; it still links home. */
@media (max-width: 380px) { .nav .brand span { display: none; } }
@media (min-width: 960px) { .nav-drop { margin-inline-start: 0; } }
.nav-drop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .86); font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.nav-drop[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop summary:hover, .nav-drop[open] summary { background: rgba(255, 255, 255, .12); color: #fff; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(240px, calc(100vw - 32px));
  display: grid; padding: 8px; border-radius: 18px;
  background: rgba(28, 22, 19, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -20px rgba(0, 0, 0, .7);
  animation: fade-up .25s var(--ease);
}
@media (max-width: 959px) { .drop-menu { position: fixed; top: calc(76px + env(safe-area-inset-top)); right: 16px; } }
.drop-menu a { padding: 11px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.35; text-decoration: none; }
.drop-menu a:hover, .drop-menu a:focus-visible, .drop-menu a[aria-current] { background: var(--wash); color: #fff; }

/* ------------------------------------------------------------------ reveal + motion */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .receipt.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), rotate .5s var(--spring), scale .5s var(--spring); }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift { to { translate: 132px 132px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes rise { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-back { from { opacity: 0; translate: 40px 120px; } to { opacity: .94; translate: 0 0; } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes bump { 40% { transform: scale(1.1); } }
@keyframes digit { from { transform: translateY(6px); opacity: .4; } }
@keyframes grow { from { opacity: 0; transform: translateY(-8px); } }
@keyframes flash { 0% { background: #3a2b22; } 100% { background: var(--card); } }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-10px) scale(.96); box-shadow: inset 0 0 0 2px var(--peri); } 30% { opacity: 1; transform: none; } 100% { box-shadow: inset 0 0 0 2px transparent; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes scan { 0%, 100% { top: 22%; } 50% { top: 76%; } }
@keyframes roll { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-10px); opacity: 0; } 55% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-2deg); } 20%, 40%, 60%, 80% { transform: translateX(4px) rotate(2deg); } }
@keyframes fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes travel {
  0% { left: 0; opacity: 0; } 12% { opacity: 1; } 70% { left: 100%; opacity: 1; } 82%, 100% { left: 100%; opacity: 0; }
}
@keyframes fill-in { 0%, 55% { opacity: .15; } 75%, 100% { opacity: 1; } }

/* ---------- Scripts the two fonts don't cover ---------- */
/* Latin letters and digits stay in Fraunces and Nunito, and the rest falls through to each
 * platform's own sans for the script. Those fonts have no italic and dislike the display face's
 * tight tracking and line height, so the headlines open up a little. */
:lang(ja) { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo; }
:lang(ko) { --cjk: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic"; }
:lang(zh) { --cjk: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei"; }
:lang(ar) { --cjk: "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma; }
:is(:lang(ja), :lang(ko), :lang(zh), :lang(ar)) {
  --display: Fraunces, var(--cjk), sans-serif;
  --sans: Nunito, var(--cjk), sans-serif;
}
:is(:lang(ja), :lang(ko), :lang(zh), :lang(ar)) :is(h1, h2, h3, .mega) { letter-spacing: 0; line-height: 1.12; }
:is(:lang(ja), :lang(ko), :lang(zh), :lang(ar)) :is(h1, h2, .mega) em { font-style: normal; letter-spacing: 0; }
/* Full-width glyphs: smaller headlines, broken between phrases (Japanese) or words (Korean), never
 * inside one. */
:is(:lang(ja), :lang(ko), :lang(zh)) h1 { font-size: clamp(2.4rem, 11vw, 4.4rem); }
:is(:lang(ja), :lang(ko), :lang(zh)) :is(h2, .mega) { font-size: clamp(2.1rem, 8.4vw, 4rem); }
:lang(ja) :is(h1, h2, h3, .mega) { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
/* Russian headlines fall back to Georgia, which needs looser tracking than Fraunces. */
:lang(ru) :is(h1, h2, h3, .mega) { letter-spacing: -.015em; }
:lang(ru) :is(h1, h2, .mega) em { letter-spacing: -.01em; }
/* Tracking pulls Arabic's joined letters apart. */
:lang(ar) * { letter-spacing: 0 !important; }
/* The keypad's +10 / +25 / +50 read left to right on the Arabic page too. */
[dir="rtl"] [data-q] { direction: ltr; unicode-bidi: isolate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .file { left: 50%; opacity: 1; }
}

/* "What is Milkies?" — plain-language definition, first H2 on the page */
.what { padding: clamp(48px, 8vw, 96px) 20px; }
.what-in { max-width: 760px; margin: 0 auto; }
.what h2 { margin: 0 0 18px; }
.what .lede + .lede { margin-top: 14px; }
.foot-date { opacity: .7; font-size: .9em; }
