/* 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;
}

: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(30, 30, 32, 0.52);
  --glass-strong: rgba(18, 18, 20, 0.86);
  --glass-in: rgba(255, 255, 255, 0.055);
  --edge: rgba(255, 255, 255, 0.28);
  --sheen: rgba(255, 255, 255, 0.10);
  --shadow: rgba(0, 0, 0, 0.6);
  --dotgrid: rgba(255, 255, 255, 0.07);
  --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);
  --edge: rgba(255, 255, 255, 1);
  --sheen: rgba(255, 255, 255, 0.9);
  --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 ---------- */
.glass {
  position: relative;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--sheen), transparent 45%),
    var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px var(--shadow),
    0 24px 60px -20px var(--shadow);
}
.glass-in { background: var(--glass-in); border: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; 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; }
.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: 120px var(--gutter) 64px;
  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%); }
.hero-glow {
  position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 40%), var(--glow), transparent 60%);
}
.hero-title { margin: 0; font-size: clamp(44px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; }
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }
.hero-sub { margin: 26px 0 0; max-width: 520px; font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stage { 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)); }
.orb { position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; margin: -320px 0 0 -320px; transform: translateZ(-260px); opacity: 0.9; --mark-disc: transparent; --mark-dot: var(--fg); pointer-events: none; }
.orb .m-disc { stroke: none; }
.orb .m-chev { opacity: 0; }
.orb .m-dots { transform-origin: 50px 50px; animation: spin 60s linear infinite; }
.orb .m-dots circle { opacity: 0.18; animation: blink 3.6s ease-in-out infinite; }
.orb .m-dots .m-red { opacity: 1; }
.orb .m-dots circle:nth-child(2) { animation-delay: 0.3s; }
.orb .m-dots circle:nth-child(3) { animation-delay: 0.6s; }
.orb .m-dots circle:nth-child(4) { animation-delay: 0.9s; }
.orb .m-dots circle:nth-child(5) { animation-delay: 1.2s; }
.orb .m-dots circle:nth-child(6) { animation-delay: 1.5s; }
.orb .m-dots circle:nth-child(7) { animation-delay: 1.8s; }
.orb .m-dots circle:nth-child(8) { animation-delay: 2.1s; }
.orb .m-dots circle:nth-child(9) { animation-delay: 2.4s; }
.orb .m-dots circle:nth-child(10) { animation-delay: 2.7s; }
.orb .m-dots circle:nth-child(11) { animation-delay: 3.0s; }
.orb .m-dots circle:nth-child(12) { animation-delay: 3.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 0.16; } 12% { opacity: 0.9; } 40% { opacity: 0.16; } }

.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; }
.chip-a { left: -196px; top: 112px; transform: translateZ(120px); }
.chip-b { right: -150px; top: 236px; transform: translateZ(180px); }
.chip-b b { font-size: 34px; }
.chip-c { left: -190px; bottom: 150px; transform: translateZ(90px); flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 600; }
.chip-d { right: -204px; bottom: 34px; transform: translateZ(150px); }
.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: 1.05fr 0.95fr; gap: 40px; }
}
@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; }
  /* Narrow screens: two chips, on the phone's top and bottom edges, so the screen itself stays readable. */
  .chip-a { left: -30px; top: -26px; }
  .chip-b, .chip-d { display: none; }
  .chip-c { left: auto; right: -22px; bottom: -22px; }
  .orb { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
}

.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.45em) rotateX(-40deg); filter: blur(14px); transform-origin: 50% 100%; animation: wordIn 1.1s var(--ease-apple) forwards; }
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.10s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.16s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.22s; }
.hero-title .line:nth-child(1) .word:nth-child(4) { animation-delay: 0.28s; }
.hero-title .line:nth-child(1) .word:nth-child(5) { animation-delay: 0.34s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.52s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.58s; }
.hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.64s; }
.hero-title .line:nth-child(2) .word:nth-child(4) { animation-delay: 0.70s; }
.hero-title .line:nth-child(2) .word:nth-child(5) { animation-delay: 0.76s; }
.hero-title .line:nth-child(2) .word:nth-child(6) { animation-delay: 0.82s; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.stage { animation: stageIn 1.6s var(--ease-apple) 0.3s both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(60px) scale(0.94); filter: blur(16px); } to { opacity: 1; transform: none; filter: 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 .phone-screen::after { content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.09) 47%, rgba(255, 255, 255, 0.02) 53%, transparent 62%); background-size: 260% 100%; background-position: var(--glare, 50%) 0; mix-blend-mode: screen; }
.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: 120px 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-copy { padding-top: 10vh; }
  .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
  .step:first-child { min-height: 50vh; }
}
@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: 24px; margin: 0 0 42vh; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0.5; }
  .step.on { opacity: 1; }
  .step:last-child { margin-bottom: 24vh; }
  .step-dots { display: none; }
}

.scene { position: absolute; inset: 56px 16px 16px; opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(10px); transition: opacity 0.6s var(--ease-apple), transform 0.7s 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; }
.try, .nightly, .onyx, .proof, .fair, .download, .pricing, .faq { padding: 120px 0; }

/* Try it */
.sim { display: grid; gap: 0; border-radius: var(--radius-xl); overflow: hidden; }
.sim-form { padding: 28px; display: grid; gap: 22px; border-bottom: 1px solid var(--line); }
.sim-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-label { display: block; padding: 0; margin: 0 0 10px; font: 600 12px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sim input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 16px;
  font: 600 18px var(--sans); color: var(--fg);
  background: var(--glass-in); border: 1px solid var(--line-strong);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.sim input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px var(--glass-in); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass-in); font-weight: 600; font-size: 15px; transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-nothing), border-color 0.25s; }
.pick:hover { border-color: var(--fg); }
.pick:active { transform: scale(0.95); }
.pick[aria-pressed="true"] { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.pick[disabled] { opacity: 0.35; cursor: not-allowed; }
.switch-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-q .q-label { margin: 0; }
.switch.big { background: var(--line-strong); }
.switch.big[aria-checked="true"] { background: var(--solid-bg); }
.switch.big[aria-checked="true"] span { background: var(--solid-fg); }
.switch.big[disabled] { opacity: 0.35; cursor: not-allowed; }
.sim-sentence { margin: -8px 0 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.sim-sentence:empty { display: none; }
.sim-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sim-result { padding: 28px; display: grid; gap: 22px; align-content: start; background: linear-gradient(180deg, transparent, var(--glass-in)); }
.sim-clock .num { font-size: clamp(44px, 7vw, 64px); line-height: 1; transition: color 0.3s; }
.sim-clock .num.mid { color: var(--red-text); }
.sim-bar { position: relative; height: 6px; margin: 18px 0 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sim-bar span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--t, 0)); background: var(--fg); border-radius: 3px; }
.sim-ticks { display: flex; justify-content: space-between; font: 600 10px/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); }
.sim-out { min-height: 260px; display: grid; align-content: center; justify-items: start; gap: 10px; }
.sim-out > * { animation: outIn 0.7s var(--ease-apple) both; }
.sim-out > *:nth-child(2) { animation-delay: 0.08s; }
.sim-out > *:nth-child(3) { animation-delay: 0.16s; }
.sim-out > *:nth-child(4) { animation-delay: 0.24s; }
.sim-out > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes outIn { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.sim-orb { width: 64px; height: 64px; }
.sim-out-title { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.sim-out-text { margin: 0; color: var(--muted); max-width: 460px; }
.sim-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sim-tag.red { color: var(--red-text); }
.sim-tag.green { color: var(--green); }
.sim-tag.amber { color: var(--amber); }
.sim-apps { display: flex; gap: 10px; margin: 6px 0; }
.sim-apps .a-app-ic { width: 46px; height: 46px; border-radius: 13px; }
.sim-apps .a-app-ic svg { width: 22px; height: 22px; }
.sim-apps.locked .a-app-ic i { opacity: 1; transform: none; }
.sim-apps.locked .a-app-ic { filter: saturate(0); }


.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.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) {
  .sim { grid-template-columns: 1fr 1fr; }
  .sim-form { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px; }
  .sim-result { padding: 36px; }
}

/* Nightly 3 */
.nightly-grid { display: grid; gap: 40px; align-items: center; }
.note { border-radius: var(--radius-xl); padding: 28px; transform: rotate(-2deg); transition: transform 0.8s var(--ease-apple); }
.note:hover { transform: rotate(0deg) scale(1.01); }
.note-lines { list-style: none; margin: 0; padding: 0; }
.note-lines .n { font: 900 22px/1 var(--dot); color: var(--muted); width: 22px; }
.note-lines .w::after { content: ""; display: inline-block; width: 2px; height: 0.9em; margin-left: 3px; vertical-align: -0.1em; background: var(--fg); opacity: 0; }
.note-lines .w.typing::after { opacity: 1; animation: caret 1s steps(1) infinite; }
@media (min-width: 900px) { .nightly-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }

/* 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; }
.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; background: var(--glass-in); border: 1px solid var(--line); border-bottom-left-radius: 8px; }
.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; }
.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; }
}

/* Download */
.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: 560px; 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-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--glass-in); border: 1px solid var(--line); }
.price-toggle button { position: relative; z-index: 1; min-width: 116px; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.3s; }
.price-toggle button[aria-checked="true"] { color: var(--solid-fg); }
.price-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--solid-bg); transition: transform 0.5s var(--ease-nothing); }
.price-toggle.month .price-thumb { transform: translateX(100%); }
.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: 420px; font-size: 14px; color: var(--muted); }
.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); }
.final-orb .m-dots { transform-origin: 50px 50px; transform: rotate(var(--fr, 0deg)); }
.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); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Reveal on scroll (only when scripts run) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity 0.9s var(--ease-apple), transform 1s var(--ease-apple), filter 0.9s var(--ease-apple); }
.js .reveal.in { opacity: 1; transform: none; filter: 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; }
  .orb .m-dots circle { opacity: 0.3; }
  .stage-inner { transform: rotateX(4deg) rotateY(-10deg); }
  .cursor { display: none; }
}

/* ---------- The 3D field: thousands of dots that become the ONYX mark, a clock, the day, ONYX's orb
   and a lock as you scroll. Behind everything; glass panes blur it. ---------- */
.field3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease-apple); }
.gl .field3d { opacity: 1; }
.gl .orb, .gl .final-orb { display: none; }

/* A soft ring that follows the pointer on desktop and grows over anything you can press. */
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--fg); pointer-events: none; opacity: 0; transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1)); transition: opacity 0.3s, border-color 0.3s, background-color 0.3s; mix-blend-mode: difference; }
:root[data-theme="light"] .cursor { mix-blend-mode: normal; }
.cursor.on { opacity: 0.55; }
.cursor.press { background: rgba(255, 255, 255, 0.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Showcase: the layers of a screen fly apart, snap together, then the device becomes a
   computer and a watch. Driven by scroll (main.js sets --e, --f, --m1, --m2 and sizes). ---------- */
.show { height: 520vh; padding: 0; }
.show-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; padding: 96px var(--gutter) 28px; }
.show-caps { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; min-height: 150px; }
.cap { position: absolute; inset: 0 auto auto 0; max-width: 560px; opacity: 0; transform: translateY(24px); filter: blur(10px); transition: opacity 0.6s var(--ease-apple), transform 0.7s var(--ease-apple), filter 0.6s var(--ease-apple); pointer-events: none; }
.cap.on { opacity: 1; transform: none; filter: none; }
.cap .h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 10px; }
.cap .lede { margin: 0; font-size: clamp(16px, 1.6vw, 19px); }
.show-stage { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; perspective: 1800px; transform: scale(var(--ss, 1)); }
.show-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 18px; font: 600 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--faint); }
.show-steps li { position: relative; padding-top: 10px; transition: color 0.4s; }
.show-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 1px; background: var(--line-strong); }
.show-steps li.on { color: var(--fg); }
.show-steps li.on::before { background: var(--fg); }
@media (min-width: 980px) {
  .show-sticky { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; padding-top: 80px; max-width: 1320px; margin: 0 auto; }
  .show-caps { grid-row: 1; min-height: 260px; z-index: 3; }
  .cap { max-width: 440px; }
  .show-stage { grid-row: 1; }
  .show-steps { grid-column: 1 / -1; }
}

.device {
  position: relative; z-index: 2;
  width: var(--dw, 300px); height: var(--dh, 620px); border-radius: var(--dr, 52px); padding: var(--dp, 11px);
  background: linear-gradient(145deg, #2a2a2d, #0b0b0c 40%, #1b1b1d);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, calc(0.14 * var(--frame, 1))), 0 60px 120px -40px rgba(0, 0, 0, calc(0.8 * var(--frame, 1)));
  transform-style: preserve-3d;
  transform: rotateX(var(--drx, 0deg)) rotateZ(var(--drz, 0deg)) rotateY(var(--dry, 0deg));
}
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; opacity: var(--frame, 1); }
.device { background: transparent; }
.device::before { background: linear-gradient(145deg, #2a2a2d, #0b0b0c 40%, #1b1b1d); }
.scr { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; }
.scr-desk, .scr-watch { overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #19191b, #000 65%); opacity: 0; }
.scr-desk { opacity: var(--o-desk, 0); }
.scr-phone { opacity: var(--o-phone, 1); }

/* The phone's layers. Each sits at its own depth when exploded (--e from 1 to 0). */

/* Shared bits for the mini screens. */

.fan { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; pointer-events: none; }

/* Computer screen. */

/* Watch screen. */

.laptop-base { position: absolute; z-index: 1; left: 50%; top: calc(50% + var(--dh, 620px) / 2 - 2px); width: calc(var(--dw, 300px) * 1.16); height: 18px; margin-left: calc(var(--dw, 300px) * -0.58); border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #3a3a3e, #121214); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); opacity: var(--o-base, 0); transform: scaleX(calc(0.6 + var(--o-base, 0) * 0.4)); }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 90px; height: 6px; margin-left: -45px; border-radius: 0 0 8px 8px; background: rgba(0, 0, 0, 0.4); }
.watch-band { position: absolute; z-index: 1; left: 50%; width: calc(var(--dw, 300px) * 0.74); height: 150px; margin-left: calc(var(--dw, 300px) * -0.37); background: linear-gradient(90deg, #141416, #26262a 50%, #141416); opacity: var(--o-watch, 0); }
.watch-band.top { bottom: calc(50% + var(--dh, 620px) / 2 - 20px); border-radius: 30px 30px 8px 8px; transform-origin: 50% 100%; transform: scaleY(var(--o-watch, 0)); }
.watch-band.bottom { top: calc(50% + var(--dh, 620px) / 2 - 20px); border-radius: 8px 8px 30px 30px; transform-origin: 50% 0; transform: scaleY(var(--o-watch, 0)); }
.watch-crown { position: absolute; z-index: 1; left: calc(50% + var(--dw, 300px) / 2 - 3px); top: calc(50% - 46px); width: 12px; height: 40px; border-radius: 4px; background: linear-gradient(90deg, #2a2a2e, #444449); opacity: var(--o-watch, 0); }

@media (max-width: 979px) {
  .show { height: 460vh; }
  .show-sticky { padding-top: 84px; }
  .show-caps { min-height: 168px; }
  .ly-note { display: none; }
}

/* ---------- Liquid Glass: real refraction at the edges where the browser can do it (Chromium).
   Everywhere else the frosted blur above stays. ---------- */
.lg-on .nav-pill.lg { -webkit-backdrop-filter: url(#lg-nav) blur(6px) saturate(180%); backdrop-filter: url(#lg-nav) blur(6px) saturate(180%); }
.lens { position: fixed; z-index: 60; left: 0; top: 0; width: 132px; height: 132px; border-radius: 50%; pointer-events: auto; cursor: grab; touch-action: none; transform: translate3d(var(--lx, -400px), var(--ly, -400px), 0); border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -10px 24px rgba(255, 255, 255, 0.08), 0 20px 50px -10px rgba(0, 0, 0, 0.5); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 40%); -webkit-backdrop-filter: blur(1.5px) saturate(160%); backdrop-filter: blur(1.5px) saturate(160%); opacity: 0; transition: opacity 0.6s var(--ease-apple); }
.lg-on .lens { backdrop-filter: url(#lg-lens) saturate(160%) brightness(1.08); }
.lens.on { opacity: 1; }
.lens:active { cursor: grabbing; }
.lens-hint { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font: 600 9px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); transition: opacity 0.4s; }
.lens.moved .lens-hint { opacity: 0; }
@media (hover: none), (pointer: coarse), (max-width: 979px) { .lens { display: none; } }

/* ---------- Intro: the ONYX mark draws itself, then the page arrives. ---------- */
.intro { display: none; }
.js .intro { display: grid; animation: introOut 0.6s var(--ease-apple) 2.4s forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro { position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--bg); transition: opacity 0.7s var(--ease-apple), visibility 0.7s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro svg { width: 120px; height: 120px; --mark-disc: transparent; --mark-dot: var(--fg); }
.intro .m-disc { stroke: none; }
.intro .m-dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: introDot 0.4s var(--ease-nothing) forwards; }
.intro .m-chev { stroke: var(--fg); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s var(--ease-apple) 0.65s forwards; }
.intro .m-dots circle:nth-child(2) { animation-delay: 0.04s; } .intro .m-dots circle:nth-child(3) { animation-delay: 0.08s; }
.intro .m-dots circle:nth-child(4) { animation-delay: 0.12s; } .intro .m-dots circle:nth-child(5) { animation-delay: 0.16s; }
.intro .m-dots circle:nth-child(6) { animation-delay: 0.2s; } .intro .m-dots circle:nth-child(7) { animation-delay: 0.24s; }
.intro .m-dots circle:nth-child(8) { animation-delay: 0.28s; } .intro .m-dots circle:nth-child(9) { animation-delay: 0.32s; }
.intro .m-dots circle:nth-child(10) { animation-delay: 0.36s; } .intro .m-dots circle:nth-child(11) { animation-delay: 0.4s; }
.intro .m-dots circle:nth-child(12) { animation-delay: 0.44s; } .intro .m-dots .m-red { animation-delay: 0.55s; }
@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) {
  .intro { display: none; }
  .lens { 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); 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); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.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-dockfill); 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); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.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; }
.lg-on .show .a-dock.lg { backdrop-filter: url(#lg-dock) blur(4px) saturate(180%); }

/* 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); filter: blur(12px); transition: opacity 0.6s var(--ease-apple), transform 0.7s var(--ease-apple), filter 0.6s 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.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); 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; }
.app-grid.locked .lk .a-app-ic { filter: saturate(0); 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); }

/* Showcase: the phone's layers sit at their own depth when exploded (--e from 1 to 0). */
.dv-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--dr, 52px) - var(--dp, 11px)); transform-style: preserve-3d; }
.scr-phone .ax { --k: 0.7128; }
.scr-phone .ly { transform: translateZ(calc(var(--e, 0) * var(--z, 0) * 1px)); }
.scr-phone .a-backdrop { border-radius: 60px; box-shadow: 0 0 0 calc(var(--e, 0) * 2px) var(--a-outline); }
.ly-note { position: absolute; right: calc(100% + 24px); margin: 0; text-align: right; white-space: nowrap; font: 600 10px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); opacity: calc(var(--e, 0) * 1.2 - 0.2); transform: translateZ(calc(var(--e, 0) * var(--z, 0) * 1px)); }
.ly-note::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; }
.ly-note.n0 { top: 92%; }
.ly-note.n1 { top: 118px; }
.ly-note.n2 { top: 176px; }
.ly-note.n3 { top: 300px; }
.ly-note.n4 { top: 570px; }

.mini {
  position: absolute; width: 230px; height: 476px; border-radius: 38px; overflow: hidden;
  border: 1px solid var(--a-edge); box-shadow: inset 0 1px 0 var(--a-top), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  background: var(--a-bg);
  opacity: 0; transform: translate3d(var(--fx, 0), 0, var(--fz, -200px)) rotateY(var(--fry, 0deg)) scale(var(--fs, 0.8));
}

/* The computer: EMBARK's own small window, and the one that pops when a locked app closes. */
.scr-desk, .scr-watch { overflow: hidden; opacity: 0; }
.scr-desk { opacity: var(--o-desk, 0); color: #FFFFFF; }
.scr-watch { opacity: var(--o-watch, 0); }
.scr-phone { opacity: var(--o-phone, 1); }
.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; }
.dk-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px 10px; border-radius: 14px; background: rgba(40, 40, 46, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dk-bar span { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.18); }
.dk-bar span.on { background: #FFFFFF; }

/* The watch: one scrolling list, the same words as the app. */
.scr-watch { background: #000; color: #FFFFFF; padding: 9px 9px; display: grid; align-content: start; gap: 4px; text-align: center; }
.scr-watch p { margin: 0; }
.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; }
.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 */
.note-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; font: 600 12px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.note-head .num { font-size: 14px; color: var(--fg); letter-spacing: 0.04em; }
.note-lines li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); min-height: 84px; }
.nl { display: grid; gap: 6px; }
.nl .w { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; min-height: 1.2em; }
.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; }
