/* Embark website: Apple Liquid Glass surfaces, Nothing colors. Black, white and greys carry
   everything; red means locked or not done, amber means running low, green means checked by the phone.
   The dot-matrix numerals are Doto (SIL Open Font License 1.1). */

@font-face {
  font-family: "Doto";
  src: url("/site/fonts/Doto-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  /* Every character except the period (U+002E) and the colon (U+003A): Doto's point reads like a plus
     ("3+0") and its colon like a double dagger in a big clock, so both fall back to the mono face
     (owner, Nov 4; colon Nov 11). */
  unicode-range: U+0000-002D, U+002F-0039, U+003B-FFFF;
}

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --dot: "Doto", var(--mono);

  --red: #D71921;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: 16px;
  --max: 1180px;

  /* APPLE_SPRING / NOTHING_SPRING, approximated as easing curves for CSS transitions. */
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-nothing: cubic-bezier(0.3, 1.25, 0.5, 1);
}

/* Dark (default) */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #09090B;
  --fg: #FAFAFA;
  --muted: #A1A1AA;
  --faint: #52525B;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(26, 26, 29, 0.78);
  --glass-strong: rgba(18, 18, 20, 0.92);
  --glass-in: rgba(255, 255, 255, 0.055);
  --glass-lit: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022) 42%, rgba(255, 255, 255, 0.012));
  --edge: rgba(255, 255, 255, 0.30);
  --rim: rgba(255, 255, 255, 0.05);
  --plate-rim: rgba(255, 255, 255, 0.4);
  --under: rgba(255, 255, 255, 0.055);
  --sheen: rgba(255, 255, 255, 0.12);
  --sweep: rgba(255, 255, 255, 0.09);
  --pool: rgba(255, 255, 255, 0.075);
  --shadow: rgba(0, 0, 0, 0.6);
  --dotgrid: rgba(255, 255, 255, 0.09);
  --solid-bg: #FAFAFA;
  --solid-fg: #000000;
  --red-text: #FF6961;
  --amber: #F2B24C;
  --green: #5CCB8B;
  --mark-disc: #0B0B0C;
  --mark-dot: #FFFFFF;
  --glow: rgba(255, 255, 255, 0.06);
}

/* Light: bright frosted glass with the same restraint. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F4F5;
  --bg-2: #FFFFFF;
  --fg: #09090B;
  --muted: #5B5B63;
  --faint: #A1A1AA;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --glass: rgba(252, 252, 253, 0.72);
  --glass-strong: rgba(250, 250, 251, 0.92);
  --glass-in: rgba(0, 0, 0, 0.04);
  --glass-lit: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 244, 247, 0.78));
  --edge: rgba(255, 255, 255, 1);
  --rim: rgba(0, 0, 0, 0.06);
  --plate-rim: rgba(255, 255, 255, 0.9);
  --under: rgba(20, 20, 30, 0.2);
  --sheen: rgba(255, 255, 255, 0.9);
  --sweep: rgba(255, 255, 255, 0.75);
  --pool: rgba(255, 255, 255, 0.95);
  --shadow: rgba(24, 24, 27, 0.14);
  --dotgrid: rgba(0, 0, 0, 0.08);
  --solid-bg: #09090B;
  --solid-fg: #FFFFFF;
  --red-text: #B01218;
  --amber: #7A4E00;
  --green: #146C3F;
  --mark-disc: #0B0B0C;
  --mark-dot: #FFFFFF;
  --glow: rgba(255, 255, 255, 0.9);
}

/* Auto that follows the phone, when the visitor picked it (theme.js sets data-theme too; this
   covers a page with scripts off). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-pref="dark"]) { color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-apple), color 0.5s var(--ease-apple);
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--solid-bg); color: var(--solid-fg); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.num { font-family: var(--dot); font-weight: 900; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Mark ---------- */
.m-disc { fill: var(--mark-disc); stroke: var(--line-strong); stroke-width: 0.6; }
.m-dots circle { fill: var(--mark-dot); }
.m-dots .m-red { fill: var(--red); }
.m-chev { fill: none; stroke: var(--mark-dot); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark { width: 30px; height: 30px; }

/* ---------- Glass ---------- */
/* Lit from above: a bright top edge, a soft fill that fades down, a thin rim and a little light
   underneath. Nothing is blurred behind a card (that is what made computers lag); only the nav,
   which real content scrolls under, blurs what is behind it. */
.glass {
  position: relative;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--sheen), transparent 45%),
    var(--glass-lit),
    var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 0 0 1px var(--rim),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px var(--shadow),
    0 24px 60px -20px var(--shadow),
    0 34px 70px -44px var(--under);
}
.nav-pill.glass { -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.glass-in { background: var(--glass-in); border: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin: 0 0 18px;
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.h2 { margin: 0 0 20px; font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.lede { max-width: 640px; margin: 0 0 40px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.meta { margin: 28px 0 0; font: 600 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.eyebrow .dot, .example-head .dot { position: relative; top: -1px; }
.dot-red { background: var(--red); box-shadow: 0 0 12px rgba(215, 25, 33, 0.7); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--green); }
.dot-white { background: var(--fg); }
.dot-grey { background: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-nothing), background-color 0.3s, opacity 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-solid { background: var(--solid-bg); color: var(--solid-fg); box-shadow: 0 10px 30px -10px var(--shadow); }
.btn-glass { color: var(--fg); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  width: 100%; max-width: 860px; padding: 6px 6px 6px 12px; border-radius: 999px;
  transition: transform 0.6s var(--ease-apple), max-width 0.6s var(--ease-apple);
}
.nav.small .nav-pill { max-width: 760px; }
.nav.hide .nav-pill { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; padding: 4px; }
.brand-word { font: 700 14px/1 var(--mono); letter-spacing: 0.24em; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--glass-in); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color 0.2s, transform 0.4s var(--ease-nothing); }
.theme-btn:hover { color: var(--fg); }
.theme-btn:active { transform: scale(0.9) rotate(-20deg); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn svg .fill { fill: currentColor; stroke: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center; gap: 24px;
  padding: 104px var(--gutter) 56px;
  max-width: 1320px; margin: 0 auto;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 calc(50% - 50vw); background-image: radial-gradient(var(--dotgrid) 1.2px, transparent 1.6px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); }
/* One soft light behind the phone. It follows the pointer by moving, never by repainting. */
.hero-glow {
  position: absolute; z-index: -1; left: 66%; top: 46%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
  translate: var(--gx, 0px) var(--gy, 0px);
}
/* Sized by the screen's height too, so the buttons under it stay on the first screen of a laptop. */
.hero-title { margin: 0; font-size: clamp(44px, min(6vw, 8.6vh), 88px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; }
/* Each line breaks after its natural phrase ("Embark on your / next step."), never leaving one word alone. */
.hero-title .line { display: block; }
@media (min-width: 980px) { .hero-title .line { max-width: 8em; } }
.hero-title .word { display: inline-block; }
.hero-tag { margin: 18px 0 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.hero-sub { margin: 14px 0 0; max-width: 520px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stage { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 560px; }
.stage-inner { position: relative; width: 300px; height: 600px; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -9deg)) translateZ(0) scale(var(--hs, 1)); }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 22px; font-size: 14px; white-space: nowrap;
}
.chip small { display: block; font: 600 10px/1.3 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.chip b { font-size: 22px; display: block; line-height: 1; }
/* Two chips sit on the phone's corners. Where there is room beside the phone (a tablet, a wide
   laptop) all four float around it, placed from the room there really is (--e), so a chip never
   lands on the headline or runs off the edge of the screen. */
.stage-inner { --e: 60px; }
.chip-a { left: -30px; top: -26px; transform: translateZ(120px); }
.chip-b { right: calc(-1 * var(--e)); top: 96px; transform: translateZ(180px); display: none; }
.chip-b b { font-size: 34px; }
.chip-c { right: -22px; bottom: -22px; max-width: 236px; white-space: normal; transform: translateZ(90px); flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 600; }
.chip-d { right: calc(-1 * var(--e) - 8px); bottom: 34px; transform: translateZ(150px); display: none; }
@media (min-width: 760px) and (max-width: 979px) { .stage-inner { --e: clamp(60px, calc((100vw - 420px) * 0.4), 196px); } }
@media (min-width: 1200px) { .stage-inner { --e: calc((min(100vw, 1320px) - 972px) * 0.45 + clamp(0px, (100vw - 1320px) * 0.4, 50px)); } }
@media (min-width: 760px) and (max-width: 979px), (min-width: 1200px) {
  .chip-a { left: calc(-1 * var(--e)); top: 112px; }
  .chip-b, .chip-d { display: flex; }
  .chip-c { right: auto; left: calc(6px - var(--e)); bottom: 150px; }
}
/* The chips breathe a little while the hero is on screen. */
.chip { animation: chipFloat 6s ease-in-out infinite alternate; animation-play-state: paused; }
.chip-b { animation-duration: 7.5s; animation-delay: -2s; }
.chip-c { animation-duration: 8.5s; animation-delay: -4s; }
.chip-d { animation-duration: 7s; animation-delay: -1s; }
.stage.live .chip { animation-play-state: running; }
@keyframes chipFloat { from { translate: 0 3px; } to { translate: 0 -6px; } }
.onyx-tag { font: 600 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.ring { width: 40px; height: 40px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring.full .ring-fg { stroke: var(--green); }
.ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--fg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 84)); transition: stroke-dashoffset 0.2s linear, stroke 0.4s; }

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; }
}
@media (min-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); }
}
@media (min-width: 1320px) {
  .hero { grid-template-columns: minmax(0, 660px) minmax(0, 1fr); }
}
/* A short laptop screen: everything tightens so the example and both buttons fit without scrolling. */
@media (min-width: 980px) and (max-height: 820px) {
  .hero { padding-top: 82px; padding-bottom: 28px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-title { font-size: clamp(40px, min(5.4vw, 7vh), 60px); }
  .hero-sub { margin-top: 14px; font-size: 17px; line-height: 1.45; }
  .example { margin: 12px 0 14px; padding: 12px 16px; }
  .example-head { margin-bottom: 8px; }
  .example-steps { gap: 5px; font-size: 14px; line-height: 1.4; }
  .hero-ctas { margin-top: 0; }
  .hero-ctas .btn { min-height: 46px; }
  .hero .meta { margin-top: 14px; }
}
@media (min-width: 980px) and (max-width: 1199px) { .chip-a { top: -6px; } }
/* The first screen arrives in order: the headline, then the line under it, the example, the buttons. */
.js .hero-copy > .hero-sub.reveal { transition-delay: 0.3s; }
.js .hero-copy > .example.reveal { transition-delay: 0.42s; }
.js .hero-copy > .hero-ctas.reveal { transition-delay: 0.54s; }
.js .hero-copy > .meta.reveal { transition-delay: 0.66s; }
@media (max-width: 979px) {
  .hero { padding-top: 112px; }
  .stage { min-height: 620px; }
}
@media (max-width: 560px) {
  .stage { min-height: 560px; }
  .stage-inner { --hs: 0.86; }
  .hero .eyebrow { letter-spacing: 0.12em; line-height: 1.5; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: cue 1.8s var(--ease-apple) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 979px) { .scroll-cue { display: none; } }

/* Hero words rise in, one after another. */
.hero-title .word { opacity: 0; transform: translateY(0.35em); transform-origin: 50% 100%; animation: wordIn 0.55s var(--ease-apple) forwards; }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.08s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.11s; }
.hero-title .line:nth-child(1) .word:nth-child(4) { animation-delay: 0.14s; }
.hero-title .line:nth-child(1) .word:nth-child(5) { animation-delay: 0.17s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.26s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.29s; }
.hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.32s; }
.hero-title .line:nth-child(2) .word:nth-child(4) { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) .word:nth-child(5) { animation-delay: 0.38s; }
.hero-title .line:nth-child(2) .word:nth-child(6) { animation-delay: 0.41s; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.stage { animation: stageIn 0.8s var(--ease-apple) 0.15s both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Phone mock ---------- */
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a2a2d, #0b0b0c 40%, #1b1b1d);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 50px 100px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.phone-hero { position: absolute; inset: -10px 0 0; height: 620px; transform: translateZ(0); }
/* Depth on the hero phone: a band of light across the glass that moves as it turns, and a soft shadow on the "floor". */
.phone-hero .glare { position: absolute; top: 0; bottom: 0; left: -80%; width: 260%; z-index: 30; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.09) 47%, rgba(255, 255, 255, 0.02) 53%, transparent 62%); }
.stage-inner::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -46px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, var(--shadow), transparent); filter: blur(10px); transform: translateZ(-120px) rotateX(70deg); pointer-events: none; }
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--a-bg); isolation: isolate; }

/* ---------- How it works ---------- */
.how { position: relative; padding: 96px 0 40px; }
.how-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { padding: 28px 0; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 0.5s var(--ease-apple); }
.step.on { opacity: 1; }
.step-n { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--muted); }
.step h3 { margin: 12px 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--muted); max-width: 520px; }
.how-stage { position: sticky; top: 90px; height: calc(100svh - 120px); max-height: 720px; display: grid; place-items: center; perspective: 1400px; }
.phone-how { transform: rotateY(var(--hry, 0deg)) rotateX(var(--hrx, 0deg)); transition: transform 0.9s var(--ease-apple); }
.step-dots { position: absolute; right: 0; top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.step-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.3s, transform 0.4s var(--ease-nothing); }
.step-dots span.on { background: var(--fg); transform: scale(1.5); }

@media (min-width: 980px) {
  .how-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; }
  .how-stage { position: sticky; top: 100px; }
}
@media (max-width: 979px) {
  .how-grid { grid-template-columns: 1fr; }
  /* On a phone the device stays pinned at the top and each step's card slides up underneath it,
     so the screen it explains is never covered. */
  .how-stage { order: -1; top: 60px; height: 392px; z-index: 3; place-items: start center; padding-top: 12px; margin: 0 calc(-1 * var(--gutter)); background: linear-gradient(to bottom, var(--bg) 0, var(--bg) 86%, transparent); }
  .how-stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 64px; background: var(--bg); }
  .phone-how { transform: scale(0.58); transform-origin: 50% 0; margin-bottom: -260px; }
  .how-copy { position: relative; z-index: 2; }
  .step { min-height: 0; padding: 18px 20px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--glass-strong); opacity: 0.6; }
  .step.on { opacity: 1; }
  .step:last-child { margin-bottom: 0; }
  .step-dots { display: none; }
}

.scene { position: absolute; inset: 56px 16px 16px; opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.35s var(--ease-apple), transform 0.4s var(--ease-apple), filter 0.6s var(--ease-apple); pointer-events: none; }
.scene.on { opacity: 1; transform: none; filter: none; }
.caret { width: 2px; height: 18px; background: var(--fg); animation: caret 1s steps(1) infinite; margin-left: -8px; }
@keyframes caret { 50% { opacity: 0; } }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.35s var(--ease-apple); flex: none; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.45s var(--ease-nothing); }
.switch.on, .switch[aria-checked="true"] { background: #FAFAFA; }
.switch.on span, .switch[aria-checked="true"] span { transform: translateX(20px); background: #000; }


@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px) rotate(-2deg); } 75% { transform: translateX(3px) rotate(2deg); } }

/* ---------- Sections ---------- */
section { position: relative; }
.onyx, .proof, .works, .launch, .fair, .download, .pricing, .faq { padding: 120px 0; }
.about { padding: 40px 0 120px; }

/* Try it */
@keyframes outIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.streak { display: flex; gap: 6px; margin: 4px 0; }
.streak span { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); animation: pop 0.5s var(--ease-nothing) both; }
.streak span.on { background: var(--fg); }
.streak span:nth-child(2) { animation-delay: 0.05s; }
.streak span:nth-child(3) { animation-delay: 0.1s; }
.streak span:nth-child(4) { animation-delay: 0.15s; }
.streak span:nth-child(5) { animation-delay: 0.2s; }
.streak span:nth-child(6) { animation-delay: 0.25s; }
.streak span:nth-child(7) { animation-delay: 0.3s; }
.burst { position: relative; width: 64px; height: 64px; }
.burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--fg); animation: burst 0.9s var(--ease-apple) forwards; }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-42px); opacity: 0; } }
.lock-pulse { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--red-text); }
.lock-pulse svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.lock-pulse::before, .lock-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--red); animation: pulse 2s var(--ease-apple) infinite; }
.lock-pulse::after { animation-delay: 1s; }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
@media (min-width: 900px) {
}

/* Nightly 3 */

/* ONYX */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--fg); }
.onyx-grid { display: grid; gap: 48px; align-items: center; }
.chat { border-radius: var(--radius-xl); padding: 20px; min-height: 500px; display: flex; flex-direction: column; background-image: radial-gradient(var(--dotgrid) 1px, transparent 1.4px); background-size: 18px 18px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); }
.ai-tag { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 8px; }
.msg { margin: 0; max-width: 82%; padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 1.4; }
.msg.me { align-self: flex-end; background: var(--solid-bg); color: var(--solid-fg); border-bottom-right-radius: 8px; }
.msg.onyx { align-self: flex-start; max-width: 100%; padding: 4px 2px; background: none; border: 0; font-size: 22px; line-height: 1.36; font-weight: 600; letter-spacing: -0.03em; }
.js .chat .msg { opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 0.5s var(--ease-apple), transform 0.6s var(--ease-nothing); }
.js .chat .msg.in { opacity: 1; transform: none; }
.msg.me { transform-origin: 100% 100%; }
.msg.onyx { transform-origin: 0 100%; }
.typing.on { opacity: 1; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (min-width: 900px) { .onyx-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card { border-radius: var(--radius-lg); padding: 28px; transform-style: preserve-3d; transition: transform 0.5s var(--ease-apple); }
.card h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: flex; align-items: center; gap: 8px; margin-top: 18px; font: 600 10px/1.2 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--glass-in); border: 1px solid var(--line); }
.card-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.big-mono { margin: 0; font: 900 clamp(26px, 3vw, 34px)/1.05 var(--dot); letter-spacing: 0.04em; color: var(--fg) !important; }
.passes { display: flex; gap: 10px; }
.pass { width: 46px; height: 64px; border-radius: 12px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--glass-in), transparent); position: relative; }
.pass::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--fg); }
.pass.off { opacity: 0.3; }
.pass.off::after { background: transparent; border: 1.5px solid var(--fg); }
.week { display: flex; gap: 8px; }
.week span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); }
.week .rest { color: var(--fg); border-color: var(--fg); background: var(--glass-in); }
@media (min-width: 700px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-bento { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; }
  .cards-bento .span-4 { grid-column: span 4; }
}

/* Download */
/* The launch list's sign-up (left out of the page by the server while the list is off). */
.list-form { max-width: 620px; margin: 0 0 22px; padding: 22px; border-radius: 28px; }
.list-label { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.list-row { display: flex; gap: 10px; flex-wrap: wrap; }
.list-input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font: inherit; font-size: 16px;
}
.list-input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.list-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.list-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.list-fine a { color: var(--fg); text-underline-offset: 3px; }
.stores { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.store { position: relative; display: grid; gap: 4px; padding: 24px; border-radius: var(--radius-lg); transition: transform 0.5s var(--ease-apple), border-color 0.3s; }
.store[aria-disabled="true"] { cursor: default; }
.store[href] { cursor: pointer; }
.store[href]:hover { border-color: var(--fg); }
.store-ic { width: 46px; height: 46px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 14px; background: var(--glass-in); border: 1px solid var(--line); }
.store-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.store-where { color: var(--muted); font-size: 15px; }
.store-when { margin-top: 14px; font: 600 11px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.store[href] .store-when { color: var(--fg); }
.store-yours { position: absolute; top: 18px; right: 18px; padding: 5px 9px; border-radius: 999px; font: 600 9px/1 var(--mono); letter-spacing: 0.14em; border: 1px solid var(--fg); opacity: 0; }
.store.yours .store-yours { opacity: 1; }
.store.yours { border-color: var(--line-strong); }
@media (min-width: 1000px) { .stores { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .store { padding: 18px; } .store-name { font-size: 19px; } .store-yours { top: 12px; right: 12px; } }

/* Price */
.price { max-width: 640px; margin: 0 auto; padding: 36px 28px; border-radius: var(--radius-xl); text-align: center; display: grid; justify-items: center; gap: 0; }
.price-name { margin: 0 0 20px; font: 700 13px/1 var(--mono); letter-spacing: 0.24em; }
.price-big { margin: 28px 0 6px; display: flex; align-items: baseline; gap: 10px; }
.price-big .num { font-size: clamp(64px, 10vw, 96px); line-height: 1; }
.price-big .per { color: var(--muted); font-size: 18px; }
.price-terms { margin: 4px 0 26px; max-width: 480px; font-size: 14px; color: var(--muted); }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 4px 0 18px; }
.price-opt { padding: 18px 12px 16px; border-radius: 24px; background: var(--glass-in); border: 1px solid var(--line); display: grid; justify-items: center; }
.price-kind { margin: 0; font: 700 11px/1 var(--mono); letter-spacing: 0.2em; color: var(--muted); }
.price-pair .price-big { margin: 12px 0 0; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.price-pair .price-num { font-size: clamp(30px, 7vw, 52px); }
.price-pair .per { font-size: 15px; }
.price-note { margin: 0 0 14px; max-width: 480px; text-align: left; font-size: 14px; color: var(--muted); }
.price-note b { color: var(--fg); font-weight: 600; }
.price-note + .btn { margin-top: 14px; }
.price .ticks { text-align: left; margin-bottom: 28px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
details { border-radius: var(--radius-md); padding: 0 22px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.4s var(--ease-nothing); }
details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details p { margin: 0 0 20px; color: var(--muted); }
details[open] p { animation: outIn 0.5s var(--ease-apple); }

/* Final */
.final { padding: 160px var(--gutter) 140px; text-align: center; overflow: hidden; display: grid; justify-items: center; }
.final .h2 { font-size: clamp(40px, 7vw, 88px); margin-bottom: 36px; }
.final-ring { position: relative; width: clamp(180px, 22vw, 260px); aspect-ratio: 1; margin-bottom: 48px; }
.final-orb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; --mark-disc: transparent; --mark-dot: var(--fg); }
.final-orb .m-disc { stroke: none; }
.final-orb .m-chev { opacity: 1; stroke: var(--fg); }
/* The ring of dots turns slowly while this part is on screen; the chevron stays still. */
.final-orb.dots .m-chev, .final-orb.chev .m-dots { display: none; }
.final-orb.dots { animation: spin 60s linear infinite; animation-play-state: paused; }
.final.live .final-orb.dots { animation-play-state: running; }
.final-orb .m-dots circle { opacity: 0.5; }
.final-orb .m-dots .m-red { opacity: 1; }

/* Footer */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; }
.foot-brand p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
.foot-fine { margin-top: 32px; font-size: 13px; color: var(--muted); }
.foot-h { margin: 0 0 12px; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-col .foot-links { flex-direction: column; gap: 10px; }
.foot-col .foot-social { flex-direction: row; flex-wrap: wrap; gap: 4px; margin-left: -8px; }
.foot-social a { display: inline-flex; padding: 11px 8px; }
.foot-social svg { display: block; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start; } }
@media (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (only when scripts run) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease-apple), transform 0.5s var(--ease-apple); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tilt.in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: opacity 0.9s var(--ease-apple), transform 0.25s var(--ease-apple), filter 0.9s var(--ease-apple); }

/* ---------- Reduce motion: every state shows, nothing moves. ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .hero-title .word { opacity: 1; transform: none; filter: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .stage-inner { transform: rotateX(4deg) rotateY(-10deg); }
}

/* ---------- Intro: the ONYX mark draws itself in under a second, then the page arrives through it.
   Shown once per visit (theme.js marks a visit that has seen it). ---------- */
.intro { display: none; }
.js .intro { display: grid; animation: introOut 0.5s var(--ease-apple) 2.2s forwards; }
.js.seen .intro { display: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro { position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--bg); transition: opacity 0.45s var(--ease-apple), visibility 0.45s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro svg { width: clamp(120px, 14vw, 168px); height: clamp(120px, 14vw, 168px); --mark-dot: var(--fg); transition: scale 0.6s var(--ease-apple); }
.intro.done svg { scale: 1.4; }
.intro .m-dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: introDot 0.32s var(--ease-nothing) forwards; }
.intro .m-chev { stroke: var(--fg); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.42s var(--ease-apple) 0.22s forwards; }
.intro .m-dots circle:nth-child(2) { animation-delay: 0.02s; } .intro .m-dots circle:nth-child(3) { animation-delay: 0.04s; }
.intro .m-dots circle:nth-child(4) { animation-delay: 0.06s; } .intro .m-dots circle:nth-child(5) { animation-delay: 0.08s; }
.intro .m-dots circle:nth-child(6) { animation-delay: 0.1s; } .intro .m-dots circle:nth-child(7) { animation-delay: 0.12s; }
.intro .m-dots circle:nth-child(8) { animation-delay: 0.14s; } .intro .m-dots circle:nth-child(9) { animation-delay: 0.16s; }
.intro .m-dots circle:nth-child(10) { animation-delay: 0.18s; } .intro .m-dots circle:nth-child(11) { animation-delay: 0.2s; }
.intro .m-dots circle:nth-child(12) { animation-delay: 0.22s; } .intro .m-dots .m-red { animation-delay: 0.3s; }
@keyframes introDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Icons draw their own lines when they arrive. */
.js .reveal .card-ic svg, .js .reveal .store-ic svg { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease-apple) 0.2s; }
.js .reveal.in .card-ic svg, .js .reveal.in .store-ic svg { stroke-dashoffset: 0; }


@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
  .js .reveal .card-ic svg, .js .reveal .store-ic svg { stroke-dashoffset: 0; }
}
.js:not(.ready) .hero-title .word, .js:not(.ready) .stage { animation-play-state: paused; }

/* =====================================================================
   The app, drawn the way it really is. Every screen is laid out at the
   app's own size (390 wide, its own type sizes, colors, icons and words)
   and scaled into its frame, so nothing is a guess. Light mode is the
   app's light mode.
   ===================================================================== */
:root, :root[data-theme="dark"] {
  --a-bg: #000000; --a-text: #FFFFFF; --a-sub: #9A9AA0; --a-ink: #FFFFFF; --a-onink: #000000;
  --a-glass: rgba(30, 30, 32, 0.52); --a-edge: rgba(255, 255, 255, 0.10); --a-top: rgba(255, 255, 255, 0.28);
  --a-chrome: rgba(18, 18, 20, 0.9); --a-dockfill: rgba(30, 30, 32, 0.34); --a-well: rgba(255, 255, 255, 0.06);
  --a-track: rgba(255, 255, 255, 0.12); --a-hair: rgba(255, 255, 255, 0.14); --a-outline: rgba(255, 255, 255, 0.5);
  --a-dot: rgba(255, 255, 255, 0.15); --a-light: rgba(255, 255, 255, 0.07); --a-inactive: #8E8E93; --a-activepill: rgba(255, 255, 255, 0.11);
  --a-red: #D71921; --a-redt: #FF6961; --a-amber: #F2B24C; --a-green: #5CCB8B; --a-shadow: rgba(0, 0, 0, 0);
  --a-tile1: linear-gradient(145deg, #3b3b40, #1d1d20); --a-tile2: linear-gradient(145deg, #2b2b2f, #0f0f11);
}
:root[data-theme="light"] {
  --a-bg: #DCDCE0; --a-text: #000000; --a-sub: #57575E; --a-ink: #111111; --a-onink: #FFFFFF;
  --a-glass: rgba(252, 252, 253, 0.8); --a-edge: rgba(0, 0, 0, 0.10); --a-top: #FFFFFF;
  --a-chrome: rgba(250, 250, 252, 0.92); --a-dockfill: rgba(252, 252, 253, 0.62); --a-well: rgba(0, 0, 0, 0.045);
  --a-track: rgba(0, 0, 0, 0.08); --a-hair: rgba(0, 0, 0, 0.12); --a-outline: rgba(0, 0, 0, 0.35);
  --a-dot: rgba(0, 0, 0, 0.13); --a-light: rgba(255, 255, 255, 0.6); --a-inactive: #8E8E93; --a-activepill: rgba(0, 0, 0, 0.055);
  --a-redt: #B01218; --a-amber: #7A4E00; --a-green: #146C3F; --a-shadow: rgba(30, 30, 40, 0.10);
  --a-tile1: linear-gradient(145deg, #FFFFFF, #E9E9EE); --a-tile2: linear-gradient(145deg, #F4F4F7, #D9D9DF);
}

svg.li { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ax {
  position: absolute; left: 0; top: 0; width: 390px; height: var(--ah, 839px);
  transform: scale(var(--k, 0.7128)); transform-origin: 0 0; transform-style: preserve-3d;
  color: var(--a-text); font-family: var(--sans); font-size: 14px; line-height: 1.3; letter-spacing: 0; text-align: left;
}
.ax p { margin: 0; }
.ax-mini { --k: 0.5897; --ah: 807px; overflow: hidden; border-radius: 64px; background: var(--a-bg); }
.ax-how { overflow: hidden; background: var(--a-bg); }
.a-backdrop { position: absolute; inset: 0; border-radius: inherit; background-color: var(--a-bg); background-image: radial-gradient(var(--a-dot) 1px, transparent 1.4px), radial-gradient(120% 45% at 50% 0%, var(--a-light), transparent 70%); background-size: 18px 18px, 100% 100%; }
.a-glass { background: var(--a-glass-solid); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top), 0 1px 2px var(--a-shadow), 0 10px 24px -10px var(--a-shadow); }
.a-mono { font: 700 11px/1.25 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--a-sub); display: flex; align-items: center; gap: 7px; }
.a-mono.red { color: var(--a-redt); }
.a-reddot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-red); box-shadow: 0 0 10px rgba(215, 25, 33, 0.7); flex: none; display: inline-block; }
.a-doto { font-family: var(--dot); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.a-fine { font-size: 13px; line-height: 18px; color: var(--a-sub); }
.a-pad { position: relative; padding: 0 16px; display: grid; gap: 12px; }
.a-label { margin: 8px 4px -2px !important; }
.a-center { justify-content: center; text-align: center; }

/* Status bar, header, week strip */
.a-status { position: relative; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px; font: 600 17px/1 var(--sans); }
.a-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.a-batt { width: 27px; height: 13px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.9; padding: 1.5px; }
.a-batt i { display: block; width: 100%; height: 100%; border-radius: 2px; background: currentColor; }
.a-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 20px 0; }
.a-title { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.12; }
.a-sub { margin-top: 4px !important; font: 700 11px/1.2 var(--mono); letter-spacing: 1.2px; color: var(--a-sub); }
.a-head-btns { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.a-circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--a-glass); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top); }
.a-circle svg { width: 18px; height: 18px; }
.a-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--a-well); border: 1px solid var(--a-edge); font: 700 14px/1 var(--sans); }
.a-week { display: flex; gap: 6px; padding: 16px 20px 0; white-space: nowrap; }
.a-week span { flex: none; width: 48px; height: 64px; border-radius: 16px; display: grid; justify-items: center; align-content: center; gap: 3px; background: var(--a-glass); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top); }
.a-week small { font-size: 11px; font-weight: 600; color: var(--a-sub); }
.a-week b { font: 900 20px/1 var(--dot); }
.a-week i { width: 6px; height: 6px; border-radius: 50%; }
.a-week .sel { background: var(--a-ink); color: var(--a-onink); border-color: var(--a-ink); }
.a-week .sel small { color: var(--a-onink); opacity: 0.7; }
.a-week .w-ok { background: var(--a-green); }
.a-week .w-done { background: var(--a-ink); }
.a-week .w-rest { border: 1.5px solid var(--a-outline); opacity: 0.6; }
.a-week .w-open { border: 1.5px solid var(--a-ink); }
.a-week .sel .w-open { border-color: var(--a-onink); }

/* Home rows */
.ax-home .ly { position: absolute; left: 0; right: 0; }
.ax-home .a-backdrop { border-radius: 0; }
.a-top { top: 0; }
.a-mid { top: 214px; padding: 0 16px; display: grid; gap: 10px; }
.a-lockrow { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 16px; border-radius: 20px; font-size: 15px; font-weight: 600; }
.a-lockrow svg { width: 15px; height: 15px; color: var(--a-sub); }
.a-lockrow span { flex: 1; }
.a-lockrow em { font-style: normal; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--a-hair); }
.a-next { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 24px; }
.a-next > div { flex: 1; display: grid; gap: 3px; }
.a-next svg { width: 18px; height: 18px; color: var(--a-sub); }
.a-next-t { font-size: 16px; font-weight: 700; }
.a-next-s { font-size: 13px; color: var(--a-sub); }
.a-day { top: 372px; padding: 0 16px; }
.a-sentence { display: flex; gap: 7px; margin: 8px 0 12px !important; font-size: 13px; font-weight: 600; line-height: 18px; }
.a-sentence svg { width: 13px; height: 13px; margin-top: 2px; }
.a-row { display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); align-items: stretch; margin-bottom: 10px; }
.a-time { padding-top: 16px; font: 700 11px/1.35 var(--mono); letter-spacing: 0.4px; text-align: right; color: var(--a-sub); }
.a-rail { position: relative; }
.a-rail::before { content: ""; position: absolute; left: 10px; top: -10px; bottom: -10px; width: 1.5px; background: var(--a-hair); }
.a-rail i { position: absolute; left: 5.5px; top: 19px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--a-outline); background: var(--a-bg); }
.a-row.done .a-rail i { background: var(--a-ink); border-color: var(--a-ink); }
.a-task { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 24px; }
.a-task > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.a-task-t { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.a-meta { font: 700 11px/1.2 var(--mono); letter-spacing: 1px; color: var(--a-sub); }
.a-lockline { display: flex; align-items: center; gap: 6px; font: 700 10px/1.2 var(--mono); letter-spacing: 1px; }
.a-lockline svg { width: 12px; height: 12px; }
.a-lockline.ok { color: var(--a-green); }
.a-lockline.ok svg { stroke-width: 3; }
.a-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--a-outline); display: grid; place-items: center; flex: none; transition: background-color 0.4s, border-color 0.4s; }
.a-check svg { width: 13px; height: 13px; stroke-width: 3; color: var(--a-onink); opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.45s var(--ease-nothing); }
.a-check.on { background: var(--a-ink); border-color: var(--a-ink); }
.a-check.on svg { opacity: 1; transform: none; }
.a-row.done .a-task { opacity: 0.55; }
.a-row.done .a-task-t { text-decoration: line-through; color: var(--a-sub); }
.a-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px 80px !important; font: 700 11px/1 var(--mono); letter-spacing: 1.2px; color: var(--a-sub); }
.a-divider::after { content: ""; flex: 1; height: 1px; background: var(--a-hair); }
.a-bottom { bottom: 0; height: 190px; }
.a-fab { position: absolute; right: 20px; top: 0; height: 56px; padding: 0 22px 0 18px; display: flex; align-items: center; gap: 8px; border-radius: 28px; background: var(--a-ink); color: var(--a-onink); font-size: 16px; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
.a-fab svg { width: 20px; height: 20px; stroke-width: 2.4; }
.a-dock { position: absolute; left: 16px; right: 16px; bottom: 28px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; background: var(--a-chrome); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top), inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -12px rgba(0, 0, 0, 0.7); }
.a-tab { width: 56px; height: 56px; display: grid; place-items: center; color: var(--a-inactive); position: relative; }
.a-tab svg { width: 22px; height: 22px; stroke-width: 1.9; position: relative; }
.a-tab.on { color: var(--a-text); }
.a-tab.on svg { stroke-width: 2.4; }
.a-tab.on::before { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--a-activepill); }
.a-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--a-ink); box-shadow: 0 0 0 4px var(--a-track), 0 10px 26px -6px rgba(0, 0, 0, 0.6); }
.a-orb .a-mark { width: 34px; height: 34px; --mark-disc: transparent; --mark-dot: var(--a-onink); }
.a-mark { --mark-disc: transparent; --mark-dot: var(--a-text); }
.a-mark .m-disc { stroke: none; }

/* Generic app pieces */
.a-solid { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 27px; background: var(--a-ink); color: var(--a-onink); font-size: 16px; font-weight: 700; }
.a-solid svg { width: 18px; height: 18px; stroke-width: 2.4; }
.a-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 18px; background: var(--a-glass); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top); font-size: 15px; font-weight: 600; }
.a-ghost svg { width: 17px; height: 17px; }
.a-solid.sm, .a-ghost.sm { min-height: 46px; font-size: 14px; padding: 0 16px; }
.a-btns { display: flex; gap: 8px; margin-top: 14px; }
.a-btns > * { flex: 1; }
.a-status-card { padding: 18px; border-radius: 24px; }
.a-sc-top { display: flex; justify-content: space-between; align-items: center; }
.a-sc-t { margin-top: 10px !important; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.a-sc-b { margin-top: 6px !important; font-size: 14px; line-height: 20px; color: var(--a-sub); }
.a-stack { display: flex; }
.a-stack i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--a-tile1); border: 1px solid var(--a-edge); color: var(--a-text); }
.a-stack i + i { margin-left: -7px; }
.a-stack svg { width: 15px; height: 15px; }
.a-setrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px; font-size: 16px; }
.a-setrow b { flex: 1; font-weight: 600; }
.a-setrow em { font-style: normal; color: var(--a-sub); font-weight: 600; }
.a-tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--a-well); border: 1px solid var(--a-edge); }
.a-tile svg { width: 17px; height: 17px; }
.a-lockcard2 { padding: 16px; border-radius: 22px; display: grid; gap: 6px; }
.a-tag { margin-top: 6px !important; color: var(--a-text); }
.a-when-t { font-size: 16px; font-weight: 700; line-height: 21px; }

/* Progress */
.a-rings { padding: 18px; border-radius: 28px; }
.a-rings-top { display: flex; align-items: center; gap: 20px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--a-hair); }
.a-rings-top .a-doto { font-size: 40px; margin-top: 6px !important; }
.a-ringsvg { width: 116px; height: 116px; transform: rotate(-90deg); }
.a-ringsvg circle { fill: none; stroke-width: 11; }
.a-ringsvg .rt { stroke: var(--a-track); }
.a-ringsvg .rf { stroke: var(--a-ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.a-ringsvg .rf.green { stroke: var(--a-green); }
.a-ringsvg .rf.p60 { stroke-dashoffset: 40; }
.a-ringsvg .rf.p20 { stroke-dashoffset: 80; }
.a-legend { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; font-weight: 600; }
.a-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-ink); flex: none; }
.a-legend i.green { background: var(--a-green); }
.a-legend span { flex: 1; }
.a-legend em { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: 1px; color: var(--a-sub); }
.a-legend em.ok { color: var(--a-green); }
.a-streak { padding: 20px; border-radius: 28px; }
.a-streak-top { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--a-hair); }
.a-doto.big { font-size: 56px; line-height: 1; }
.a-photo { padding: 20px; border-radius: 28px; display: grid; gap: 12px; }

/* ONYX */
.a-chat-head { display: flex; align-items: center; gap: 9px; padding: 4px 20px 14px; border-bottom: 1px solid var(--a-hair); }
.a-chat-head .a-mark { width: 26px; height: 26px; }
.a-chat-head .a-doto { font-size: 22px; letter-spacing: 2px; }
.a-chat-head em { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: 1px; padding: 5px 8px; border: 1px solid var(--a-hair); border-radius: 999px; color: var(--a-sub); }
.a-close { width: 22px; height: 22px; margin-left: auto; color: var(--a-sub); }
.ax-chat .a-pad { padding-top: 16px; gap: 10px; }
.a-notice { font-size: 13px; text-align: center; color: var(--a-sub); margin-bottom: 4px !important; }
.a-stamp { font: 700 10px/1 var(--mono); letter-spacing: 1px; color: var(--a-sub); margin-bottom: -4px !important; }
.a-bub { max-width: 84%; padding: 12px 14px; font-size: 16px; line-height: 23px; font-weight: 500; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--a-hair); }
:root[data-theme="light"] .a-bub { background: rgba(0, 0, 0, 0.045); }
.a-bub.me { justify-self: end; border-radius: 20px 20px 6px 20px; background: #FFFFFF; color: #111111; border: 0; font-weight: 500; line-height: 22px; }
:root[data-theme="light"] .a-bub.me { background: #111111; color: #FFFFFF; }
.a-qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.a-qchips em { font-style: normal; height: 40px; display: grid; place-items: center; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 600; border: 1px solid var(--a-hair); background: var(--a-well); }
.a-input { position: absolute; left: 12px; right: 12px; bottom: 30px; display: flex; gap: 8px; align-items: center; }
.a-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--a-glass); border: 1px solid var(--a-edge); }
.a-round svg { width: 20px; height: 20px; }
.a-field { flex: 1; height: 44px; border-radius: 22px; display: flex; align-items: center; padding: 0 16px; font-size: 16px; color: var(--a-sub); background: var(--a-well); border: 1px solid var(--a-hair); }

/* Android lock screen */
.ax-locked { background: var(--a-bg); }
.ax-locked .a-pad { padding-top: 70px; gap: 12px; }
.a-lockedcard { padding: 24px; border-radius: 28px; border-color: rgba(215, 25, 33, 0.65); display: grid; gap: 8px; margin-bottom: 8px; }
.a-locked-t { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; margin-top: 6px !important; }
.a-locked-k { font-size: 14px; font-weight: 700; color: var(--a-sub); }
.a-locked-r { font-size: 16px; font-weight: 600; }
.a-locked-e { font-size: 16px; font-weight: 700; }
.a-locked-u { font-size: 15px; color: var(--a-sub); line-height: 21px; }
.ax-locked .a-ghost b { color: var(--a-text); }
.a-link { text-align: center; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: var(--a-sub); margin-top: 4px !important; }
.a-foot { display: flex; gap: 8px; font-size: 13px; line-height: 18px; color: var(--a-sub); margin-top: 8px !important; }
.a-foot svg { width: 15px; height: 15px; margin-top: 2px; }

/* The task sheet (How it works, step 1) */
.ax-how .scene { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; padding: 0 16px; display: grid; align-content: start; gap: 12px; opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.35s var(--ease-apple), transform 0.4s var(--ease-apple); pointer-events: none; }
.ax-how .scene.on { opacity: 1; transform: none; filter: none; }
.a-sheethead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; font-size: 16px; }
.a-sheethead span:first-child { color: var(--a-sub); }
.a-sheethead b { font-size: 17px; }
.a-card { padding: 16px; border-radius: 28px; }
.a-bigin { margin-top: 8px !important; min-height: 34px; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; }
.caret { display: inline-block; width: 2px; height: 28px; margin-left: 2px; background: var(--a-text); animation: caret 1s steps(1) infinite; }
.a-lockcard { border-radius: 20px; display: grid; gap: 10px; }
.a-lc-top { display: flex; align-items: center; gap: 10px; }
.a-lc-top svg { width: 18px; height: 18px; }
.a-lc-top b { flex: 1; font-size: 16px; }
.a-lc-s { font-size: 14px; line-height: 20px; color: var(--a-sub); }
.a-lockcard .a-lc-s.on, .a-lockcard.on .a-lc-s.off { display: none; }
.a-lockcard.on .a-lc-s.on { display: block; color: var(--a-text); font-weight: 600; }
.a-lc-more { display: grid; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease-apple), opacity 0.5s; }
.a-lockcard.on .a-lc-more { max-height: 260px; opacity: 1; }
.a-apps { display: flex; gap: 14px; }
.a-lockfor { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.a-lockfor span { flex: 1; }
.a-lockfor em, .a-chips em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 600; border: 1px solid var(--a-hair); background: var(--a-well); white-space: nowrap; }
.a-lockfor em.sel, .a-chips em.sel { background: var(--a-ink); color: var(--a-onink); border-color: var(--a-ink); }
.a-chips { display: flex; gap: 8px; overflow: hidden; }
.a-chips svg { width: 14px; height: 14px; }
.a-whenrow { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; font-size: 16px; }
.a-add { margin-top: 4px; }
.switch { position: relative; width: 51px; height: 31px; border-radius: 999px; background: var(--a-track); transition: background-color 0.35s var(--ease-apple); flex: none; }
.switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.45s var(--ease-nothing), background-color 0.3s; }
.switch.on, .switch[aria-checked="true"] { background: var(--a-ink); }
.switch.on span, .switch[aria-checked="true"] span { transform: translateX(20px); background: var(--a-onink); }

/* App tiles (generic, no brand marks) */
.a-app { display: grid; justify-items: center; gap: 6px; }
.a-app small { font-size: 11px; font-weight: 600; color: var(--a-sub); }
.a-app-ic { position: relative; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--a-tile1); border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top); color: var(--a-text); transition: filter 0.5s, transform 0.5s var(--ease-nothing); }
.a-app-ic svg { width: 28px; height: 28px; stroke-width: 1.8; }
.a-app-ic.g2, .a-app-ic.g4 { background: var(--a-tile2); }
.a-app-ic i { position: absolute; inset: -1px; border-radius: inherit; display: grid; place-items: center; background: rgba(0, 0, 0, 0.66); opacity: 0; transform: scale(1.3); transition: opacity 0.4s, transform 0.5s var(--ease-nothing); }
.a-app-ic i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--a-red); box-shadow: 0 0 16px rgba(215, 25, 33, 0.9); }

/* Phone checks it (step 2): the Task widget's ring of 24 dots */
.a-dotring { position: relative; width: 250px; height: 250px; margin: 22px auto 8px; }
.a-dr-dots i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--a-track); transform: rotate(calc(var(--i) * 15deg)) translateY(-112px); transition: background-color 0.25s, box-shadow 0.25s; }
.a-dr-dots i.on { background: var(--a-ink); }
.a-dotring.full .a-dr-dots i { background: var(--a-green); box-shadow: 0 0 10px rgba(92, 203, 139, 0.5); }
.a-dr-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.a-dr-num b { font-size: 64px; line-height: 1; }
.a-dr-num small { margin-top: 10px; font: 700 11px/1 var(--mono); letter-spacing: 1.2px; color: var(--a-sub); }
#howTask .after, #howTask.done .before { display: none; }
#howTask.done .after { display: flex; }
#howTask.done .a-check { background: var(--a-ink); border-color: var(--a-ink); }
#howTask.done .a-check svg { opacity: 1; transform: none; }
.verdict { text-align: center; font-size: 14px; color: var(--a-sub); opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease-nothing); }
.verdict.on { opacity: 1; transform: none; }

/* Midnight (step 3) */
.clock { margin-top: 30px; text-align: center; font-size: 72px; line-height: 1; transition: color 0.4s; }
.clock.mid { color: var(--a-redt); }
.clock-sub { margin: 12px 0 18px !important; text-align: center; font: 700 11px/1.3 var(--mono); letter-spacing: 1.2px; color: var(--a-sub); }
.app-grid { display: grid; grid-template-columns: repeat(4, 64px); gap: 20px 18px; justify-content: center; }
/* No grey filter here: it turned the red lock dot grey too. The dark cover and the red dot say locked. */
.app-grid.locked .lk .a-app-ic { animation: shake 0.5s var(--ease-nothing); }
.app-grid.locked .lk .a-app-ic i { opacity: 1; transform: none; }
.app-grid.locked .lk:nth-child(2) i { transition-delay: 0.08s; }
.app-grid.locked .lk:nth-child(3) i { transition-delay: 0.16s; }
.app-grid.locked .lk:nth-child(4) i { transition-delay: 0.24s; }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px !important; font-size: 16px; font-weight: 700; color: var(--a-redt); opacity: 0; transition: opacity 0.4s 0.3s; }
.lock-note.on { opacity: 1; }
.lock-keep { margin-top: 8px !important; text-align: center; font: 700 11px/1 var(--mono); letter-spacing: 1.2px; color: var(--a-sub); }

/* The computer: EMBARK's own small window, and the one that pops when a locked app closes. */
.dk-wall { position: absolute; inset: 0; background: radial-gradient(90% 80% at 20% 10%, #2a2a30, transparent 60%), radial-gradient(80% 90% at 90% 100%, #1d1d22, transparent 60%), #0b0b0d; }
:root[data-theme="light"] .dk-wall { background: radial-gradient(90% 80% at 20% 10%, #f4f4f8, transparent 60%), radial-gradient(80% 90% at 90% 100%, #cfcfd6, transparent 60%), #e3e3e8; }
.dk-win { position: absolute; border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); padding: 16px; font-size: 12px; line-height: 1.4; }
.dk-win p { margin: 0; }
.dk-win .a-mono { color: rgba(255, 255, 255, 0.62); font-size: 9.5px; }
.dk-win .a-mono.red { color: #ff4d4d; }
.dk-status { left: 40px; top: 34px; width: 300px; display: grid; gap: 10px; }
.dk-brand { display: flex; align-items: center; gap: 8px; font: 700 10px/1 var(--mono); letter-spacing: 0.2em; }
.dk-brand .a-mark { width: 18px; height: 18px; --mark-dot: #FFFFFF; }
.dk-card { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 5px; }
.dk-h { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.dk-h.big { font-size: 22px; }
.dk-p { color: #FFFFFF; }
.dk-p.dim { color: rgba(255, 255, 255, 0.62); }
.dk-out { color: #ff4d4d; font-size: 11px; }
.dk-pop { right: 46px; top: 70px; width: 270px; display: grid; justify-items: center; gap: 7px; text-align: center; padding: 20px 18px; animation: none; transform: scale(calc(0.9 + var(--o-desk, 0) * 0.1)); }
.dk-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #3b3b40, #1d1d20); color: #fff; margin-bottom: 4px; }
.dk-icon svg { width: 24px; height: 24px; }
.dk-ok { margin-top: 6px; padding: 8px 34px; border-radius: 999px; background: #FFFFFF; color: #111111; font-weight: 700; }

/* The watch: one scrolling list, the same words as the app. */
.wt-h { font-size: 15px; font-weight: 700; }
.wt-count { font: 700 8px/1 var(--mono); letter-spacing: 0.12em; color: #A1A1AA; margin-bottom: 2px !important; }
.wt-chip { padding: 6px 9px; border-radius: 14px; background: #1C1C1E; font-size: 10.5px; font-weight: 600; text-align: left; display: flex; align-items: center; gap: 6px; }
.wt-task div { flex: 1; display: grid; gap: 2px; }
.wt-task b { font-size: 11px; }
.wt-task small { font-size: 8.5px; color: #A1A1AA; }
.wt-task small.ok { color: #5CCB8B; }
.wt-task i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #A1A1AA; flex: none; }
.wt-task i.on { background: #5CCB8B; border-color: #5CCB8B; }
.wt-pass { margin-top: 3px !important; font: 700 7.5px/1 var(--mono); letter-spacing: 0.1em; color: #A1A1AA; }

/* ONYX chat on the page, in the app's own shape. */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.chat-mark { width: 30px; height: 30px; --mark-disc: transparent; --mark-dot: var(--fg); }
.chat-mark .m-disc { stroke: none; }
.chat-name { font-size: 24px; letter-spacing: 0.08em; }
.ai-tag { margin-top: 0; }
.chat-close { width: 22px; height: 22px; margin-left: auto; color: var(--muted); }
.chat-notice { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.msg-stamp { display: block; margin-bottom: 6px; font: 700 10px/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.typing { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font: 700 10px/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.typing.on { opacity: 1; }
.typing-mark { width: 22px; height: 22px; --mark-disc: transparent; --mark-dot: var(--fg); animation: spin 1.6s linear infinite; animation-play-state: paused; }
.typing.on .typing-mark { animation-play-state: running; }
.typing-mark .m-disc { stroke: none; }
.chat-input { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; }
.ci-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-in); border: 1px solid var(--line); flex: none; }
.ci-round svg { width: 18px; height: 18px; }
.ci-field { flex: 1; height: 40px; border-radius: 20px; display: flex; align-items: center; padding: 0 16px; color: var(--muted); background: var(--glass-in); border: 1px solid var(--line); }

/* Tomorrow's 3 */
.nm { font: 600 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }

.chip-flame { width: 18px; height: 18px; color: var(--fg); }
.a-setrow em.ok { color: var(--a-green); }
.ax-how .a-setrow { font-size: 15px; padding: 10px 14px 10px 10px; }
.ax-how .a-setrow em { font: 700 10px/1 var(--mono); letter-spacing: 1px; }
.a-tomorrow { display: grid; gap: 10px; margin-top: 18px; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-apple) 0.9s, transform 0.7s var(--ease-apple) 0.9s; }
.a-tomorrow.on { opacity: 1; transform: none; }
.a-tomorrow .a-lockedcard { padding: 18px 20px; margin: 0; gap: 6px; }
.a-tomorrow .a-locked-t { font-size: 24px; }

/* ---------- Nov 4: what the app is, in one example ---------- */
.example { margin: 18px 0 22px; padding: 16px 18px; border-radius: var(--radius-md); max-width: 520px; }
.example-head { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--mono); letter-spacing: 0.18em; color: var(--muted); }
.example-steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.example-steps li::marker { font: 700 12px var(--mono); color: var(--muted); }
.example-steps q { font-weight: 600; }

/* ---------- Try the app: buttons pick the device; screens can be tapped ---------- */
.app { padding: 110px 0 60px; }
.app .lede { max-width: 620px; }
.dev-tabs { --ti: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(420px, 100%); margin: 26px 0 30px; padding: 5px; border-radius: 999px; }
.dev-tab { position: relative; z-index: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.3s var(--ease-apple); }
.dev-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dev-tab[aria-selected="true"] { color: var(--solid-fg); }
.dev-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--solid-bg); transform: translateX(calc(var(--ti) * 100%)); transition: transform 0.45s var(--ease-nothing); box-shadow: 0 6px 18px -6px var(--shadow); }
.dev-stage { position: relative; isolation: isolate; display: grid; justify-items: center; min-height: 700px; }
.dev-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; width: min(1000px, 160vw); height: 780px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--pool), transparent 72%); pointer-events: none; }
.dev { display: grid; justify-items: center; align-content: start; gap: 30px; width: 100%; perspective: 1600px; }
.dev[hidden] { display: none; }
.dev.on { animation: devIn 0.5s var(--ease-apple); }
@keyframes devIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.dev-note { margin: 0; min-height: 3em; max-width: 520px; text-align: center; color: var(--muted); font-size: 15px; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.phone-try { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px -30px var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.phone-try .ax { --k: 0.7128; --ah: 839px; border-radius: 0; }
.phone-try .ax-home > div { position: absolute; left: 0; right: 0; }
.pscr { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: scale(0.985); transition: opacity 0.28s var(--ease-apple), transform 0.4s var(--ease-apple); }
.pscr.on { opacity: 1; pointer-events: auto; transform: none; }
.ax-dockbar { pointer-events: none; z-index: 5; }
.ax-dockbar .a-bottom { position: absolute; left: 0; right: 0; }
.ax-dockbar .a-dock { pointer-events: auto; }
.ax-dockbar .a-tab, .ax-dockbar .a-orb { cursor: pointer; }
.ax-dockbar .a-orb:active, .ax-dockbar .a-tab:active { transform: scale(0.92); }
#tryScreens .ax-dockbar { transition: opacity 0.25s; }
#tryScreens.no-dock .ax-dockbar { opacity: 0; }
#tryScreens.no-dock .ax-dockbar .a-dock { pointer-events: none; }
.phone-try [role="button"] { cursor: pointer; }
.phone-try .a-row[data-tick] .a-task { transition: transform 0.3s var(--ease-nothing); }
.phone-try .a-row[data-tick]:active .a-task { transform: scale(0.97); }
.phone-try .a-row.done .a-task-t { text-decoration: line-through; opacity: 0.6; }
.phone-try .a-act { cursor: pointer; }
.a-closebtn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -10px -10px -10px auto; }
.phone-try .a-tile { font: 700 12px/1 var(--mono); }

.laptop { width: min(760px, 100%); display: grid; justify-items: center; }
.laptop-screen { position: relative; width: 100%; aspect-ratio: 720 / 450; border-radius: 16px; padding: 10px; background: linear-gradient(145deg, #2a2a2d, #0b0b0c 40%, #1b1b1d); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px -30px var(--shadow); overflow: hidden; }
.laptop-foot { width: 112%; max-width: calc(100vw - 16px); height: 14px; margin-top: -1px; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #3a3a3e, #19191b); }
.desk { position: absolute; left: 10px; top: 10px; width: 720px; height: 430px; transform: scale(var(--ds, 1)); transform-origin: 0 0; border-radius: 8px; overflow: hidden; color: #FFFFFF; }
.desk .dk-pop { opacity: 0; transform: scale(0.92); pointer-events: none; transition: opacity 0.25s var(--ease-apple), transform 0.4s var(--ease-nothing); }
.desk .dk-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.desk .dk-ok { cursor: pointer; font: inherit; font-weight: 700; }
.desk .dk-card .a-mono:not(.red) { color: rgba(255, 255, 255, 0.62); }

.watch { display: grid; justify-items: center; }
.watch-strap { width: 132px; height: 120px; background: linear-gradient(90deg, #141416, #26262a 50%, #141416); }
.watch-strap.top { border-radius: 26px 26px 8px 8px; margin-bottom: -14px; }
.watch-strap.bottom { border-radius: 8px 8px 26px 26px; margin-top: -14px; }
.watch-body { position: relative; z-index: 1; width: 196px; height: 236px; border-radius: 58px; padding: 12px; background: linear-gradient(145deg, #2a2a2d, #0b0b0c 40%, #1b1b1d); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 30px 60px -24px var(--shadow); }
.watch-screen { width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: #000; color: #FFFFFF; padding: 16px 12px; display: grid; align-content: start; gap: 5px; text-align: center; }
.watch-screen p { margin: 0; }
.watch-screen [role="button"] { cursor: pointer; }
.watch-knob { position: absolute; right: -8px; top: 64px; width: 10px; height: 38px; border-radius: 4px; background: linear-gradient(90deg, #2a2a2e, #444449); }

/* On a computer the device stands beside the words, so "Tap around" and the thing to tap are on
   the same screen (it used to sit below the fold). */
@media (min-width: 1100px) {
  .app { padding-top: 84px; }
  .app > .wrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 44px; }
  .app > .wrap > * { grid-column: 1; }
  .app > .wrap > .eyebrow { justify-self: start; margin-top: 96px; }
  .app > .wrap > .dev-stage { grid-column: 2; grid-row: 1 / span 5; }
  .app .h2 { font-size: clamp(38px, 3.5vw, 50px); line-height: 1.05; }
  .app .lede { margin-bottom: 0; font-size: 19px; }
  .app .dev-tabs { margin-bottom: 0; }
}
/* A short laptop screen: the phone shrinks so its dock stays on screen. */
@media (min-width: 1100px) and (max-height: 800px) {
  .app > .wrap > .eyebrow { margin-top: 56px; }
  .dev-stage { min-height: 600px; }
  .phone-try { transform: scale(0.86); transform-origin: 50% 0; margin-bottom: -86px; }
}
@media (max-width: 560px) {
  .app { padding-top: 80px; }
  .dev-stage { min-height: 0; }
  .phone-try { transform: scale(0.92); transform-origin: 50% 0; margin-bottom: -48px; }
}

/* The price in the system face: the dot-matrix point read like a plus. */
.price-num { font: 800 clamp(56px, 9vw, 88px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ---------- Light mode: real depth, not a flat white form ---------- */
:root[data-theme="light"] .glass {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, 0.95), transparent 45%), linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 244, 247, 0.78));
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(20, 20, 30, 0.05), 0 18px 40px -18px rgba(20, 20, 30, 0.22), 0 40px 80px -40px rgba(20, 20, 30, 0.2);
}
:root[data-theme="light"] .dev-thumb { box-shadow: 0 8px 20px -6px rgba(20, 20, 30, 0.45); }
:root[data-theme="light"] .phone-try, :root[data-theme="light"] .laptop-screen, :root[data-theme="light"] .watch-body { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 50px 90px -30px rgba(20, 20, 30, 0.45), 0 14px 24px -12px rgba(20, 20, 30, 0.3); }

/* ---------- Speed on phones: blur behind every card is what made scrolling lag ---------- */
@media (max-width: 700px), (pointer: coarse) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-lit), var(--glass-strong); }
  .nav-pill.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="light"] .glass { background: linear-gradient(180deg, #FFFFFF, #F4F4F7); }
}

/* Try the app: a device arrives quietly, and switching device is one calm fade. Nothing bursts here
   (owner, Nov 12: only the first phone, at the top of the page, comes apart). */
.js .dev-stage:not(.seen) .dev { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .dev.on { animation: none !important; }
  .pscr, .dev-thumb, .desk .dk-pop { transition: none; }
}

/* How it works: steps are buttons now. */
.step { cursor: pointer; border-radius: var(--radius-md); padding: 16px 14px; transition: opacity 0.3s var(--ease-apple), background-color 0.3s; }
/* Only the step being shown is open, so all three and the phone fit on one screen (Nov 11: step 3
   and Next step sat below a laptop's screen). The closed ones stay readable to screen readers. */
.step h3 { margin: 10px 0 0; font-size: clamp(22px, 2.3vw, 28px); }
.js .step p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s var(--ease-apple), opacity 0.3s var(--ease-apple), margin-top 0.45s var(--ease-apple); }
.js .step.on p { max-height: 170px; opacity: 1; margin-top: 8px; }
.step:not(.on) { opacity: 0.55; }
.step:not(.on):hover { opacity: 0.85; }
.step.on { background: var(--glass-in); }
.how-hint { margin-top: -6px; }
.how-stage { display: grid; justify-items: center; align-content: start; gap: 16px; }
/* A short laptop screen: the phone shrinks so Next step stays on screen. */
@media (min-width: 980px) and (max-height: 800px) {
  .phone-how { scale: 0.84; transform-origin: 50% 0; margin-bottom: -99px; }
}
.how-next { margin-top: 4px; }
@media (max-width: 979px) {
  /* On a phone the phone sits above the steps and Next step plays them in turn: no scrolling between them. */
  .how-stage { position: relative; top: 0; height: auto; z-index: 1; padding-top: 0; background: none; margin: 0 0 18px; }
  .how-stage::before { display: none; }
  .phone-how { margin-bottom: -256px; }
}

@media (max-width: 979px) {
  /* Heading first, then the phone, then the steps it plays: you read what this is before you see it. */
  .how-grid { gap: 0; }
  .how-copy { display: contents; }
  .how-copy > .eyebrow { order: 1; justify-self: start; }
  .how-copy > .h2 { order: 2; }
  .how-copy > .lede { order: 3; margin-bottom: 22px; }
  .how-stage { order: 4; scroll-margin-top: 76px; }
  .how-copy > .steps { order: 5; }
}

.step-btn { all: unset; cursor: pointer; display: inline; }
.step-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 8px; }
.desk:not(.locked) #deskTag .a-reddot { display: none; }
.desk.locked #deskTag { color: #ff4d4d; }

/* A task you tick yourself: white, never the green of a phone check. */
.wt-task i.you { background: #FAFAFA; border-color: #FAFAFA; }

/* =====================================================================
   Nov 8 pass. Depth behind the page, the hero's example playing on the
   phone, and the Try the app screens: every one can be tapped.
   Everything that moves animates transform or opacity only, so it runs
   on the graphics chip and never stutters the page.
   ===================================================================== */

/* ---------- Depth. Nothing here moves on its own: the page scrolling over a still layer of light is
   what gives the depth, so a resting page costs nothing (Nov 11: the old drifting glows and running
   floor redrew the whole screen 60 times a second and made computers lag). ---------- */
:root, :root[data-theme="dark"] {
  --depth-a: rgba(255, 255, 255, 0.10); --depth-b: rgba(255, 255, 255, 0.06); --depth-dot: rgba(255, 255, 255, 0.22);
  --a-glass-solid: rgba(24, 24, 27, 0.94); --chip-solid: rgba(20, 20, 22, 0.94); --contact: rgba(255, 255, 255, 0.13);
}
:root[data-theme="light"] {
  --depth-a: rgba(255, 255, 255, 1); --depth-b: rgba(160, 160, 176, 0.22); --depth-dot: rgba(0, 0, 0, 0.2);
  --a-glass-solid: rgba(253, 253, 254, 0.97); --chip-solid: rgba(255, 255, 255, 0.96); --contact: rgba(20, 20, 30, 0.3);
}
main { overflow-x: clip; }
.depth { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.depth-glow { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--depth-a), transparent); }
.depth-glow.g1 { left: -26vmax; top: -32vmax; }
.depth-glow.g2 { right: -32vmax; bottom: -38vmax; background: radial-gradient(closest-side, var(--depth-b), transparent); }
/* Light mode's soft shading moves off the body (a fixed body background repaints on every scroll). */
:root[data-theme="light"] .depth { background: radial-gradient(1200px 700px at 80% -10%, #FFFFFF, transparent 60%), radial-gradient(900px 600px at 0% 40%, #E9E9EF, transparent 60%); }

/* Light pooled behind each part's main object, so glass has something to sit in front of. */
.app, .onyx, .works, .pricing, .final { isolation: isolate; }
.onyx::before, .works::before, .pricing::before, .final::before {
  content: ""; position: absolute; z-index: -1; width: min(860px, 130vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--pool), transparent 72%); pointer-events: none;
}
.onyx::before { right: -14%; top: 2%; }
.pricing::before { left: 50%; top: 6%; translate: -50% 0; }
.works::before { left: -14%; top: 8%; }
.final::before { left: 50%; top: -4%; translate: -50% 0; width: min(720px, 130vw); }

/* A floor: dots in perspective fading into the distance, and the light a device throws on it. */
.stage::before, .phone-try::after, .laptop::after, .watch::after, .final-ring::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(100% - 8px); width: min(640px, 150vw); height: 180px; margin-left: calc(min(640px, 150vw) / -2);
  background-image: radial-gradient(var(--depth-dot) 1.2px, transparent 1.8px); background-size: 30px 30px; background-position: 50% 0;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 50% 100% at 50% 0, #000 10%, transparent 72%);
  pointer-events: none;
}
.stage::before { top: calc(50% + 296px); }
@media (max-width: 560px) { .stage::before { top: calc(50% + 258px); } }
.phone-try::before, .laptop::before, .watch::before {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; top: calc(100% - 16px); height: 44px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--contact), transparent); pointer-events: none;
}
.laptop, .watch { position: relative; perspective: 1500px; }
.final-ring::after { top: calc(100% + 6px); }

/* One band of light crosses each glass panel as it arrives. */
.card, .store, .price, .chat, .works-card, .example { overflow: hidden; }
.card::after, .store::after, .price::after, .chat::after, .works-card::after, .example::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, var(--sweep) 50%, transparent 60%);
  translate: -110% 0; opacity: 0;
}
.js .reveal.in.card::after, .js .reveal.in.store::after, .js .reveal.in.price::after, .js .reveal.in.chat::after, .js .reveal.in.works-card::after, .js .reveal.in.example::after { animation: sweep 1.25s var(--ease-apple) 0.25s both; }
@keyframes sweep { from { translate: -110% 0; opacity: 1; } to { translate: 110% 0; opacity: 1; } }

/* ---------- Hero: the example plays on the phone ---------- */
.stage .glass { background: var(--glass-lit), var(--chip-solid); }
:root[data-theme="light"] .stage .glass { background: var(--chip-solid); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px -16px rgba(20, 20, 30, 0.3); }
#heroOnyx { display: block; min-height: 2.6em; transition: opacity 0.3s; }
#heroScreen .hx-sheet, #heroScreen .hx-night { background: var(--a-bg); overflow: hidden; pointer-events: none; }
/* The task sheet is a sheet: it rises over the Home screen from below the status bar and drops back
   out of sight, so the phone never shows two status bars. */
#heroScreen .hx-sheet { --ah: 785px; top: 38px; border-radius: 34px 34px 0 0; box-shadow: inset 0 1px 0 var(--a-top); translate: 0 640px; transition: translate 0.65s var(--ease-apple); }
#heroScreen .hx-sheet .a-backdrop { border-radius: 0; }
#heroScreen .hx-sheet .a-pad { padding-top: 10px; }
#heroScreen .hx-night { opacity: 0; translate: 0 18px; transition: translate 0.6s var(--ease-apple), opacity 0.45s var(--ease-apple); }
#heroScreen[data-beat="0"] .hx-sheet { translate: 0 0; }
#heroScreen[data-beat="2"] .hx-night { translate: 0 0; opacity: 1; }
#heroScreen .ax-home { transition: opacity 0.45s var(--ease-apple); }
#heroScreen[data-beat="0"] .ax-home { opacity: 0.4; }
#heroScreen[data-beat="2"] .ax-home { opacity: 0; }
/* The opening, once (owner, Nov 12: "explode the first one like a neural network of all the ui
   elements and then bring it back together"; only this first phone does it). Every part of the real
   Home screen leaves the glass as its own piece and hangs at its own depth in the space around the
   phone. Lines grow between the pieces, signals run along them to ONYX in the middle, and the whole
   net turns with the phone. Then the lines let go, every piece flies home, a band of light crosses
   the glass as it locks, the chips arrive and the example starts.
   The script only works out where things go ("The opening" in main.js): each piece and each line
   gets one transform, and the moves below run without it. Only transform and opacity move.
   .x3d lets the pieces leave the glass (nothing looks different yet), .apart is the open network,
   .landed is the finished phone. With no script, or Reduce Motion, the phone is simply whole. */
.stage.x3d .phone-hero, .stage.x3d .phone-screen, .stage.x3d .ax-home .ly, .stage.x3d .ax-home .net,
.stage.x3d .ax-home .a-status, .stage.x3d .ax-home .a-head, .stage.x3d .ax-home .a-head-btns, .stage.x3d .ax-home .a-week, .stage.x3d .ax-home .a-row, .stage.x3d .ax-home .a-dock { transform-style: preserve-3d; }
.stage.x3d .phone-screen { overflow: visible; isolation: auto; }
.stage.x3d .glare, .stage.x3d .hx-sheet, .stage.x3d .hx-night { visibility: hidden; }
.stage.x3d #heroScreen .ax-home .a-backdrop { border-radius: 59px; }
/* The phone turns slowly to one side while the net is open, then back to face you as it closes. */
.stage.x3d .stage-inner { transition: transform 0.6s var(--ease-apple); }
.stage.apart .stage-inner { transition: transform 1.7s linear; }
/* Home: quick off the mark, soft on the glass. Out: a burst that overshoots a touch and settles. */
.stage.x3d #heroScreen .nn { will-change: transform; transition: transform 0.6s var(--ease-apple); }
.stage.apart #heroScreen .nn { transition: transform 0.6s var(--ease-nothing); }
/* The lines: each grows from the piece farther from ONYX to the one nearer, and lets go faster. */
#heroScreen .net { position: absolute; left: 0; top: 0; pointer-events: none; }
#heroScreen .net i { position: absolute; left: 0; top: -1px; height: 2px; transform-origin: 0 50%; background: var(--a-text); opacity: 0.3; transition: transform 0.2s var(--ease-apple); }
.stage.apart #heroScreen .net i { transition: transform 0.4s var(--ease-apple); }
/* A signal: one dot runs the length of its line, once. */
#heroScreen .net b { position: absolute; left: 0; top: 50%; width: 100%; height: 0; opacity: 0; }
#heroScreen .net b::after { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--a-text); }
.stage.apart #heroScreen .net b { animation: netSignal 0.75s linear both; }
@keyframes netSignal { from { translate: 0 0; opacity: 0; } 20%, 80% { opacity: 1; } to { translate: 100% 0; opacity: 0; } }
/* What holds the pieces in the app lets go of them while they are out: the dock's pill and the
   timeline's rail. */
#heroScreen .a-dock { transition: background-color 0.3s var(--ease-apple), border-color 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple); }
#heroScreen .a-rail { transition: opacity 0.3s var(--ease-apple); }
.stage.apart #heroScreen .a-dock { background-color: transparent; border-color: transparent; box-shadow: none; }
.stage.apart #heroScreen .a-rail { opacity: 0; }
/* Locked: one band of light, one echo of the phone's edge, and the chips arrive. */
.js .stage:not(.landed) .chip { opacity: 0; scale: 0.86; }
.stage.landed .chip { transition: opacity 0.45s var(--ease-apple), scale 0.5s var(--ease-nothing); }
.stage.landed .chip-b { transition-delay: 70ms; } .stage.landed .chip-c { transition-delay: 140ms; } .stage.landed .chip-d { transition-delay: 210ms; }
.phone-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1.5px var(--plate-rim); opacity: 0; pointer-events: none; }
.stage.landed .phone-hero::after { animation: heroEcho 0.9s var(--ease-apple); }
@keyframes heroEcho { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 1.1; } }
.stage.landed .phone-screen::before { content: ""; position: absolute; inset: 0; z-index: 31; pointer-events: none; background: linear-gradient(105deg, transparent 38%, var(--sweep) 50%, transparent 62%); translate: -110% 0; animation: sweep 1.1s var(--ease-apple) both; }
#heroScreen .hx-sheet .a-sheethead span:first-child { color: var(--a-sub); }
.hx-addbtn.press { animation: hxPress 0.5s var(--ease-nothing); }
@keyframes hxPress { 40% { transform: scale(0.93); } 100% { transform: none; } }
.hx-run .a-task { transition: box-shadow 0.4s; }
#heroScreen[data-beat="1"] .hx-run .a-task { box-shadow: inset 0 0 0 1.5px var(--a-ink); }
.hx-night { padding: 0 16px; }
.hx-night > * { position: relative; }
.hx-night .hx-day { padding-top: 150px; }
.hx-night .clock { margin-top: 18px; transition: color 0.3s; }
.hx-night:has(.app-grid.locked) .clock { color: var(--a-redt); }
.hx-night .lock-note { opacity: 0; }
.hx-night .app-grid.locked ~ .lock-note { opacity: 1; }
.js .example-steps li { opacity: 0.55; transition: opacity 0.4s var(--ease-apple); }
.js .example-steps li.on { opacity: 1; }
.example-steps li.on::marker { color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  #heroScreen .hx-sheet, #heroScreen .hx-night, #heroScreen .ax-home, .js .example-steps li { transition: none; }
  .chip, .final-orb.dots { animation: none; }
}

/* ---------- Try the app: the phone ---------- */
.phone-try .a-scroll, .phone-try .ax-sheet > .a-pad { scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.phone-try .a-scroll::-webkit-scrollbar, .phone-try .ax-sheet > .a-pad::-webkit-scrollbar, .a-chatlog::-webkit-scrollbar, .a-chips-dock::-webkit-scrollbar, .watch-screen::-webkit-scrollbar { display: none; }
.phone-try .ax-home .a-day { top: 284px; bottom: 0; overflow-y: auto; padding-bottom: 210px; }
.phone-try .ax-mini > .a-scroll { position: absolute; left: 0; right: 0; top: 128px; bottom: 0; overflow-y: auto; padding: 6px 16px 130px; align-content: start; }
.phone-try .ax-sheet > .a-pad { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; overflow-y: auto; padding: 0 16px 40px; align-content: start; }
.phone-try .a-lockline { letter-spacing: 0.5px; }
/* Clip, not hidden: focus and taps can never scroll a screen out of its frame. */
.phone-try .phone-screen, .phone-try .ax, .phone-try .pscr { overflow: clip; }
.dk-traymenu[hidden], .desk .dk-win[hidden] { display: none; }
.a-lockrow.on svg { color: var(--a-redt); }
.a-lockrow.on { box-shadow: inset 0 0 0 1px rgba(215, 25, 33, 0.55); }
.phone-try .a-act, .phone-try .a-row[data-tick] { transition: transform 0.35s var(--ease-nothing); }
.phone-try .a-act:active { transform: scale(0.96); }
.phone-try .a-row.new { animation: rowIn 0.55s var(--ease-apple); }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The task sheet */
.a-wrapchips { flex-wrap: wrap; overflow: visible; }
.a-wrapchips em { transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-nothing); }
.a-checksay { min-height: 40px; padding: 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.a-pick { justify-content: space-between; }
.a-pick .a-app-ic { transition: opacity 0.3s, filter 0.3s; }
.a-pick .a-app:not(.on) .a-app-ic { opacity: 0.4; filter: saturate(0); }
.a-pick .a-app.on .a-app-ic::after { content: ""; position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--a-ink); box-shadow: 0 0 0 2px var(--a-bg); }
.a-lockcard:not(.on) .a-pick { display: none; }
.switch { cursor: pointer; }

/* Progress */
.a-trings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px 8px; border-radius: 28px; }
.a-tring { display: grid; justify-items: center; gap: 6px; }
.a-tring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.a-tring circle { fill: none; stroke-width: 5; }
.a-tring .rt { stroke: var(--a-track); }
.a-tring .rf { stroke: var(--a-ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset 0.9s var(--ease-apple), stroke 0.4s; }
.a-tring .rf.green { stroke: var(--a-green); }
.a-tring small { font: 700 9.5px/1.2 var(--mono); letter-spacing: 0.5px; text-transform: uppercase; color: var(--a-sub); text-align: center; }
.a-cal { padding: 18px; border-radius: 28px; display: grid; gap: 12px; }
.a-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; text-align: center; }
.a-calh { font: 700 11px/1 var(--mono); color: var(--a-sub); padding-bottom: 2px; }
.a-cald { position: relative; height: 38px; display: grid; place-items: center; border-radius: 12px; font: 900 15px/1 var(--dot); transition: background-color 0.2s, color 0.2s; }
.a-cald.later { color: var(--a-sub); opacity: 0.5; }
.a-cald.today { box-shadow: inset 0 0 0 1.5px var(--a-ink); }
.a-cald.sel { background: var(--a-ink); color: var(--a-onink); }
.a-cald.c-phone::after, .a-cald.c-you::after, .a-cald.c-miss::after, .a-cald.c-prot::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; }
.a-cald.c-phone::after, .a-callegend .c-phone { background: var(--a-green); }
.a-cald.c-you::after, .a-callegend .c-you { background: var(--a-ink); }
.a-cald.c-miss::after, .a-callegend .c-miss { background: var(--a-red); }
.a-cald.c-prot::after, .a-callegend .c-prot { box-shadow: inset 0 0 0 1.5px var(--a-outline); }
.a-cald.sel.c-you::after { background: var(--a-onink); }
.a-callegend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--a-sub); }
.a-callegend span { display: flex; align-items: center; gap: 6px; }
.a-callegend i { width: 8px; height: 8px; border-radius: 50%; }
#tryCalSay { min-height: 40px; color: var(--a-text); font-weight: 600; }

/* Friends */
.a-me { padding: 16px; border-radius: 24px; display: grid; gap: 10px; }
.a-fr-top { display: flex; align-items: center; gap: 12px; }
.a-fr-top > div { flex: 1; display: grid; gap: 4px; min-width: 0; }
.a-fr-top b { font-size: 16px; }
.a-fr-streak { display: flex; align-items: center; gap: 4px; }
.a-fr-streak svg { width: 18px; height: 18px; }
.a-fr-streak b { font-size: 24px; }
.a-right { justify-content: flex-end; font-size: 10px; }
.a-labelrow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.a-labelrow .a-label { margin: 0 4px !important; }
.a-seg2 { display: flex; padding: 3px; border-radius: 999px; background: var(--a-well); border: 1px solid var(--a-hair); }
.a-seg2 em { font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--a-sub); transition: background-color 0.25s, color 0.25s; }
.a-seg2 em.on { background: var(--a-ink); color: var(--a-onink); }
.a-board { padding: 4px 14px; border-radius: 22px; }
.a-brow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--a-hair); }
.a-brow:last-child { border-bottom: 0; }
.a-rank { width: 46px; font: 900 16px/1 var(--dot); }
.a-avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.a-bname { flex: 1; font-size: 15px; font-weight: 600; }
.a-brow.me .a-bname { font-weight: 800; }
.a-brow em { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: 1px; color: var(--a-sub); }
.a-friend { padding: 12px 14px; border-radius: 22px; }
.a-signal { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-hair); background: var(--a-well); font-size: 13px; font-weight: 700; transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-nothing); }
.a-signal svg { width: 14px; height: 14px; }
.a-signal.sent { background: var(--a-ink); color: var(--a-onink); border-color: var(--a-ink); }
.a-setrow b.a-wrap { font-size: 15px; line-height: 20px; }
.a-fine.a-center { text-align: center; }
.a-toast { position: absolute; left: 50%; top: 44px; z-index: 8; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--a-ink); color: var(--a-onink); font: 700 10px/1 var(--mono); letter-spacing: 1.2px; opacity: 0; transform: translate(-50%, -8px); transition: opacity 0.25s, transform 0.4s var(--ease-nothing); pointer-events: none; }
.a-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ONYX */
.ax-chat .a-chatlog { position: absolute; left: 0; right: 0; top: 104px; bottom: 148px; overflow-y: auto; padding: 16px 16px 10px; align-content: start; gap: 10px; scrollbar-width: none; }
.ax-chat .a-chatlog .a-bub { animation: rowIn 0.45s var(--ease-apple); }
.a-chips-dock { position: absolute; left: 12px; right: 12px; bottom: 88px; margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.a-chips-dock em { flex: none; }
.a-closebtn { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; }
.a-closebtn .a-close { margin: 0; }

/* ---------- Try the app: the computer (EMBARK sits in the menu bar) ---------- */
:root, :root[data-theme="dark"] { --dk-bar: rgba(20, 20, 24, 0.55); --dk-bar-fg: #FFFFFF; --dk-dock: rgba(40, 40, 46, 0.55); }
:root[data-theme="light"] { --dk-bar: rgba(255, 255, 255, 0.62); --dk-bar-fg: #111111; --dk-dock: rgba(255, 255, 255, 0.55); }
.dk-menubar { position: absolute; left: 0; right: 0; top: 0; height: 24px; z-index: 6; display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--dk-bar); color: var(--dk-bar-fg); font-size: 11.5px; font-weight: 500; }
.dk-menubar b { font-weight: 700; }
.dk-menubar i { flex: 1; }
.dk-tray { position: relative; display: grid; place-items: center; width: 26px; height: 20px; border-radius: 5px; cursor: pointer; color: inherit; }
.dk-tray:hover, .dk-tray:focus-visible { background: rgba(127, 127, 127, 0.25); }
.dk-tray .a-mark { width: 15px; height: 15px; --mark-dot: var(--dk-bar-fg); }
.dk-traydot { position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--a-red); opacity: 0; transition: opacity 0.3s; }
.desk.locked .dk-traydot { opacity: 1; }
.dk-clock { font-variant-numeric: tabular-nums; }
.dk-traymenu { position: absolute; z-index: 7; right: 54px; top: 28px; width: 190px; padding: 6px; border-radius: 10px; background: rgba(30, 30, 34, 0.96); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); display: grid; gap: 2px; font-size: 12px; }
.dk-traymenu button { text-align: left; padding: 6px 10px; border-radius: 6px; color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.dk-traymenu button:hover, .dk-traymenu button:focus-visible { background: rgba(255, 255, 255, 0.12); }
.dk-traymenu p { margin: 0; padding: 6px 10px 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.62); }
.desk .dk-win { padding: 0; overflow: hidden; }
.dk-titlebar { position: relative; height: 30px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.dk-lights { position: absolute; left: 11px; top: 10px; display: flex; gap: 7px; }
.dk-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.dk-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.desk .dk-status { left: 36px; top: 46px; width: 310px; gap: 0; z-index: 2; }
.desk .dk-appwin { left: 300px; top: 70px; width: 380px; height: 250px; z-index: 2; }
.desk .dk-win.front { z-index: 3; }
.dk-appwin .dk-body { height: calc(100% - 30px); align-content: center; justify-items: center; color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.dk-appwin:not([hidden]) { animation: winIn 0.35s var(--ease-apple); }
@keyframes winIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.dk-limit { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.dk-bar2 { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.dk-bar2 i { display: block; height: 100%; width: 100%; background: #FFFFFF; }
.dk-limit em { font-style: normal; color: rgba(255, 255, 255, 0.62); font-size: 11px; }
.desk .dk-pop { z-index: 5; padding: 22px 18px 18px; left: 50%; right: auto; top: 76px; margin-left: -140px; width: 280px; }
.dk-dock { position: absolute; left: 50%; bottom: 8px; z-index: 4; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 4px; border-radius: 18px; background: var(--dk-dock); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 30px -12px rgba(0, 0, 0, 0.55); }
.dk-dock button { display: grid; justify-items: center; gap: 2px; cursor: pointer; color: inherit; font: inherit; padding: 0; transition: transform 0.35s var(--ease-nothing); }
.dk-dock button:hover { transform: translateY(-5px) scale(1.08); }
.dk-dock button:active { transform: scale(0.94); }
.dk-dock small { font-size: 9px; font-weight: 600; color: var(--dk-bar-fg); opacity: 0.8; }
.dk-ic { position: relative; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #3b3b40, #1d1d20); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); color: #FFFFFF; }
.dk-ic.g3, .dk-ic.g4 { background: linear-gradient(145deg, #2b2b2f, #0f0f11); }
.dk-ic svg { width: 21px; height: 21px; stroke-width: 1.8; }
.dk-ic-embark { background: #000000; }
.dk-ic-embark .a-mark { width: 30px; height: 30px; --mark-dot: #FFFFFF; }
.dk-sep { width: 1px; height: 40px; margin: 0 2px 10px; background: rgba(127, 127, 127, 0.35); }
.desk.locked [data-locks] .dk-ic::after, .dk-dock [data-limit] .dk-ic::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--a-red); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); }
.dk-dock [data-limit] .dk-ic::after { background: var(--a-amber); }
.desk.locked [data-locks][data-limit] .dk-ic::after { background: var(--a-red); }
:root[data-theme="light"] .dk-menubar, :root[data-theme="light"] .dk-dock { border-color: rgba(0, 0, 0, 0.08); }

/* ---------- Try the app: the watch ---------- */
.watch-strap { width: 150px; height: 110px; }
.watch-body { width: 236px; height: 282px; border-radius: 66px; padding: 13px; background: linear-gradient(150deg, #3a3a3e, #0d0d0e 38%, #1e1e21 72%, #3a3a3e); }
.watch-body::before { content: ""; position: absolute; inset: 3px; border-radius: 63px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.08); pointer-events: none; }
.watch-screen { position: relative; border-radius: 54px; padding: 14px 14px 40px; gap: 6px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; scroll-behavior: smooth; }
.watch-knob { right: -9px; top: 70px; width: 11px; height: 44px; cursor: pointer; border-radius: 5px; background: repeating-linear-gradient(180deg, #4a4a4f 0 2px, #2a2a2e 2px 4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.watch-knob:active { transform: translateX(1px); }
.watch-body::after { content: ""; position: absolute; right: -6px; top: 136px; width: 7px; height: 30px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2e, #444449); }
.wt-top { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 10px 0; }
.wt-time { font: 700 12px/1 var(--sans); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.wt-h { font-size: 17px; }
.wt-count { font-size: 9px; text-align: left; padding: 0 10px; }
.wt-chip { padding: 9px 11px; border-radius: 20px; background: #1C1C1E; font-size: 12px; gap: 8px; transition: transform 0.35s var(--ease-nothing), background-color 0.3s; }
.wt-chip:active { transform: scale(0.96); }
.wt-chip > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.wt-chip b { font-size: 12.5px; }
.wt-chip small { font-size: 9.5px; color: #A1A1AA; line-height: 1.25; }
.wt-chip small.wt-sub { color: #D4D4D8; }
.wt-lock { background: #26262A; }
.wt-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #A1A1AA; }
.wt-dot.red { background: var(--a-red); box-shadow: 0 0 8px rgba(215, 25, 33, 0.8); }
.wt-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2C2C2E; flex: none; color: #FFFFFF; transition: background-color 0.3s; }
.wt-ic svg { width: 13px; height: 13px; }
.wt-ic.ok { background: #5CCB8B; color: #000000; }
.wt-task.done b { text-decoration: line-through; color: #A1A1AA; }
.wt-task.saving i { border-style: dashed; animation: spin 1s linear infinite; }
.wt-task small.ok { color: #5CCB8B; }
.wt-more { font: 700 8.5px/1.2 var(--mono); letter-spacing: 0.1em; color: #A1A1AA; padding-top: 2px; }
.wt-pass { font-size: 8.5px; }
.wt-open { margin: 4px auto 0; padding: 9px 14px; border-radius: 999px; background: #FFFFFF; color: #000000; font: 700 11.5px/1 var(--sans); cursor: pointer; }
:root[data-theme="light"] .watch-strap { background: linear-gradient(90deg, #2a2a2e, #45454b 50%, #2a2a2e); }
@media (prefers-reduced-motion: reduce) {
  .wt-task.saving i { animation: none; }
  .dk-appwin:not([hidden]), .phone-try .a-row.new, .ax-chat .a-chatlog .a-bub { animation: none; }
  .watch-screen { scroll-behavior: auto; }
}

/* Works with: the apps Embark connects to, by name */
.works-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .works-grid { grid-template-columns: repeat(4, 1fr); } .works-grid .span-4 { grid-column: span 4; } }
.works-card { position: relative; overflow: hidden; display: grid; align-content: start; gap: 18px; padding: 26px; border-radius: var(--radius-lg); }
.works-head { display: flex; gap: 16px; align-items: flex-start; }
.works-head .card-ic { flex: none; }
.works-head h3 { margin: 2px 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.works-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 560px; }
.works-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.works-chips li { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; background: var(--glass-in); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--rim); }
.works-card .tag { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 10px/1.2 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.works-fine { max-width: 720px; margin: 26px 0 0; color: var(--faint); font-size: 14px; }
.works-fine a, .about-contact a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.works-fine a:hover, .about-contact a:hover { color: var(--fg); }

/* What's ready when: one plain table, the status on the right (stacked under the name on phones). */
.launch-card { padding: 8px 24px; border-radius: var(--radius-xl); }
.launch-table { width: 100%; border-collapse: collapse; text-align: left; }
.launch-table thead th { padding: 16px 0 12px; font: 700 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.launch-table thead th:last-child, .launch-table td { text-align: right; }
.launch-table tbody th { padding: 14px 16px 14px 0; font-weight: 500; font-size: 16px; }
.launch-table td { padding: 14px 0; white-space: nowrap; font: 700 11px/1.3 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.launch-table td .dot { margin-right: 8px; }
.launch-table tbody tr { border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .launch-card { padding: 4px 18px; }
  .launch-table thead { display: none; }
  .launch-table tbody tr { display: grid; padding: 12px 0; gap: 6px; }
  .launch-table tbody tr:first-child { border-top: 0; }
  .launch-table tbody th, .launch-table td { padding: 0; text-align: left; white-space: normal; }
}
.about .h2 { font-size: clamp(30px, 4.4vw, 52px); }
.about .lede { margin-bottom: 18px; }
.about-contact { margin: 0; color: var(--muted); }

@media (min-width: 900px) { .works-wide { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 28px; } }
/* The names drop in one after another as their card arrives. */
.js .reveal .works-chips li { opacity: 0; translate: 0 10px; scale: 0.92; }
.js .reveal.in .works-chips li { opacity: 1; translate: 0 0; scale: 1; transition: opacity 0.4s var(--ease-apple), translate 0.5s var(--ease-nothing), scale 0.5s var(--ease-nothing); transition-delay: calc(0.18s + var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) { .js .reveal .works-chips li { opacity: 1; translate: none; scale: none; transition: none; } }


/* Proof cards: tap one to watch how it is checked (transform and opacity only) */
.proof-try { margin-top: 16px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-in); color: var(--fg); font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: transform 0.3s var(--ease-apple), opacity 0.3s; }
.proof-try:hover { transform: translateY(-1px); }
.proof-apps { margin: 0 0 24px; }
.proof-apps .proof-try { display: inline-block; margin-top: 0; text-decoration: none; }
.proof-try:active { transform: scale(0.96); }
.proof-try:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.proof-out { margin-top: 0; opacity: 0; transition: opacity 0.4s var(--ease-apple); }
.proof-out.on { opacity: 1; margin-top: 14px; min-height: 58px; }
.po-row { display: flex; justify-content: space-between; gap: 10px; font: 600 11px/1.3 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.po-row b { color: var(--fg); font-weight: 700; }
.po-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 99px; background: var(--glass-in); border: 1px solid var(--line); overflow: hidden; }
.po-bar i { position: absolute; inset: 0; border-radius: 99px; background: var(--fg); transform-origin: left center; transform: scaleX(0); transition: transform 1.6s var(--ease-apple); }
.po-bar.green i { background: var(--green); }
.po-bar.go i { transform: scaleX(var(--lvl, 1)); }
.po-scan { position: relative; height: 46px; margin-top: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-in); overflow: hidden; }
.po-scan i { position: absolute; left: 0; top: 0; bottom: 0; width: 28%; background: linear-gradient(90deg, transparent, var(--fg), transparent); opacity: 0.35; transform: translateX(-100%); }
.po-scan.go i { animation: poScan 1.4s var(--ease-apple) 1 forwards; }
@keyframes poScan { to { transform: translateX(360%); } }
.po-say { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--fg); opacity: 0; transition: opacity 0.4s; }
.po-say.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .po-bar i, .po-scan.go i { transition: none; animation: none; } .po-scan.go i { transform: translateX(120%); } }


/* ONYX chat: tap a question and watch the answer arrive */
.chat-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 12px; }
.chat-try-lab { font: 600 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); margin-right: 4px; }
.chat-q { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-in); color: var(--fg); font: 500 13px/1.1 var(--sans, inherit); cursor: pointer; transition: transform 0.3s var(--ease-apple), opacity 0.3s; }
.chat-q:hover { transform: translateY(-1px); }
.chat-q:active { transform: scale(0.96); }
.chat-q:disabled { opacity: 0.45; cursor: default; }
.chat-q:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Try the app: a task you finish pops its dot, and the day's count nudges */
.phone-try .a-row.pop .a-rail i { animation: tickPop 0.8s var(--ease-apple) 1; }
@keyframes tickPop { 35% { transform: scale(1.9); } 100% { transform: scale(1); } }
#tryMe.bump { animation: meBump 0.6s var(--ease-nothing) 1; }
@keyframes meBump { 40% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }

/* Connected apps wall: a tilted band of app names drifting past in rows. Plain text only, no logos. Runs only while on screen. */
.works { overflow-x: clip; }
.app-wall { position: relative; margin: 34px 0 40px; margin-left: calc(50% - 50vw); width: 100vw; height: 460px; overflow: hidden; background-image: radial-gradient(var(--dotgrid) 1.2px, transparent 1.6px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.app-wall-in { position: absolute; left: -30%; right: -30%; top: 50%; display: grid; gap: 14px; rotate: -7deg; translate: 0 -50%; }
.app-row { display: flex; gap: 12px; width: max-content; will-change: translate; }
.app-tile { flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.app-tile img { display: block; width: 46px; height: 46px; }
:root[data-theme="dark"] .app-tile img.dk { filter: brightness(0) invert(1); }
.app-tile.letter { background: var(--glass-in); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--rim); color: var(--fg); font: 700 24px/1 var(--mono); }
.app-wall.on .app-row { animation: app-drift var(--d, 70s) linear infinite; }
.app-wall.on .app-row.rev { animation-direction: reverse; }
@keyframes app-drift { from { translate: 0 0; } to { translate: -50% 0; } }
@media (max-width: 640px) { .app-wall { height: 340px; } .app-tile { width: 52px; height: 52px; } .app-tile img { width: 38px; height: 38px; } .app-tile.letter { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .app-wall.on .app-row { animation: none; } }

/* ONYX chat on the page: the app's dot grid behind the conversation. */
.chat { position: relative; isolation: isolate; }
.chat::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background-image: radial-gradient(var(--dotgrid) 1px, transparent 1.4px); background-size: 18px 18px; }

/* The chat on a phone: shorter, type sized for a small screen, no empty gap above the suggestions. */
@media (max-width: 640px) {
  .chat { min-height: 0; }
  .msg.onyx { font-size: 18px; line-height: 1.35; }
  .msg { font-size: 15px; padding: 10px 14px; }
  .chat-body { gap: 8px; padding-top: 12px; }
}

/* Page-wide dot grid, like the app's screens: a fixed field of dots with a soft light from above, and a second, larger layer that drifts slower than the page so the grid has depth. */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; }
body::before { background-image: radial-gradient(var(--dotgrid) 1px, transparent 1.4px); background-size: 18px 18px; background-position: 0 calc(var(--sy, 0) * -0.35px); -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, rgba(0,0,0,0.45) 100%); mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, rgba(0,0,0,0.45) 100%); }
body::after { background-image: radial-gradient(var(--dotgrid) 1.8px, transparent 2.3px); background-size: 54px 54px; background-position: 9px calc(var(--sy, 0) * -0.7px); opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { body::before, body::after { background-position: 0 0; } }

/* Visitor-count choice (only when Google Analytics is on; see site/analytics.js). */
.foot-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.foot-btn:hover { color: var(--fg); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-inline: auto; padding: 16px 18px; border-radius: 22px; display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--fg); }
.consent a { text-decoration: underline; }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
