/* Rimila website. Soft mist clay lit by the visitor's pointer, with the product shown as graphite objects
   pressed into it. One family (Geologica, the app's face) whose sharpness axis echoes the logo's cut corner. */

@font-face {
  font-family: "Geologica";
  src: url("/assets/fonts/geologica.woff2") format("woff2-variations"), url("/assets/fonts/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2-variations"), url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --shrp { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Light falls from (lx, ly): a unit-ish vector toward the light. site.js steers it with the pointer. */
  --lx: -0.6;
  --ly: -0.8;
  --hx: calc(var(--lx) * 1px);
  --hy: calc(var(--ly) * 1px);

  --page: #e2e5e9;
  --face: linear-gradient(145deg, #e9ecef, #dde0e5);
  --face-press: linear-gradient(145deg, #d9dce1, #e5e8ec);
  --hi: rgba(255, 255, 255, .92);
  --lo: rgba(150, 158, 171, .58);
  --lo-soft: rgba(150, 158, 171, .32);
  --ink: #15171b;
  --ink-2: #3c4048;
  --mute: #585e68;
  --line: rgba(21, 23, 27, .09);
  --signal: #2c50e0;
  --signal-soft: rgba(44, 80, 224, .12);
  --focus: #2c50e0;

  /* Graphite: the product. Matches the desktop app's clay. */
  --obj: #1c1f24;
  --obj-face: linear-gradient(150deg, #23272d, #1a1d21);
  --obj-2: #262a30;
  --obj-3: #31353c;
  --obj-ink: #eceef1;
  --obj-ink-2: #c3c7ce;
  --obj-mute: #959ba5;
  --obj-line: rgba(255, 255, 255, .075);
  --obj-signal: #8ea4ff;
  --obj-hi: rgba(255, 255, 255, .06);
  --obj-lo: rgba(0, 0, 0, .45);

  --raise-1: calc(var(--hx) * 3) calc(var(--hy) * 3) 6px var(--hi), calc(var(--hx) * -3) calc(var(--hy) * -3) 7px var(--lo);
  --raise-2: calc(var(--hx) * 7) calc(var(--hy) * 7) 16px var(--hi), calc(var(--hx) * -8) calc(var(--hy) * -8) 18px var(--lo);
  --raise-3: calc(var(--hx) * 14) calc(var(--hy) * 14) 30px var(--hi), calc(var(--hx) * -18) calc(var(--hy) * -18) 40px var(--lo);
  --sink-1: inset calc(var(--hx) * -2) calc(var(--hy) * -2) 4px var(--lo), inset calc(var(--hx) * 2) calc(var(--hy) * 2) 4px var(--hi);
  --sink-2: inset calc(var(--hx) * -6) calc(var(--hy) * -6) 12px var(--lo), inset calc(var(--hx) * 6) calc(var(--hy) * 6) 12px var(--hi);
  --obj-shadow: calc(var(--hx) * -22) calc(var(--hy) * -26) 50px -10px rgba(40, 46, 56, .45), calc(var(--hx) * 8) calc(var(--hy) * 8) 18px var(--hi);
  --obj-rim: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .3);

  --f: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 36px;
  --cut: 22px;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.05, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(72px, 13vw, 184px);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --page: #1b1e22;
  --face: linear-gradient(145deg, #202328, #191c20);
  --face-press: linear-gradient(145deg, #17191d, #1f2226);
  --hi: rgba(255, 255, 255, .055);
  --lo: rgba(0, 0, 0, .55);
  --lo-soft: rgba(0, 0, 0, .35);
  --ink: #eceef1;
  --ink-2: #c6cad1;
  --mute: #9ea4ae;
  --line: rgba(255, 255, 255, .08);
  --signal: #8ea4ff;
  --signal-soft: rgba(142, 164, 255, .14);
  --focus: #8ea4ff;
  --obj: #131518;
  --obj-face: linear-gradient(150deg, #181a1e, #111316);
  --obj-2: #1d2024;
  --obj-3: #272a30;
  --obj-shadow: calc(var(--hx) * -18) calc(var(--hy) * -22) 44px -8px rgba(0, 0, 0, .7), calc(var(--hx) * 6) calc(var(--hy) * 6) 14px rgba(255, 255, 255, .04);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #1b1e22;
    --face: linear-gradient(145deg, #202328, #191c20);
    --face-press: linear-gradient(145deg, #17191d, #1f2226);
    --hi: rgba(255, 255, 255, .055);
    --lo: rgba(0, 0, 0, .55);
    --lo-soft: rgba(0, 0, 0, .35);
    --ink: #eceef1;
    --ink-2: #c6cad1;
    --mute: #9ea4ae;
    --line: rgba(255, 255, 255, .08);
    --signal: #8ea4ff;
    --signal-soft: rgba(142, 164, 255, .14);
    --focus: #8ea4ff;
    --obj: #131518;
    --obj-face: linear-gradient(150deg, #181a1e, #111316);
    --obj-2: #1d2024;
    --obj-3: #272a30;
    --obj-shadow: calc(var(--hx) * -18) calc(var(--hy) * -22) 44px -8px rgba(0, 0, 0, .7), calc(var(--hx) * 6) calc(var(--hy) * 6) 14px rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; }
.handover header svg.i { width: 15px; height: 15px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--page); text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section) 0; }

/* Type. Display sizes follow a 1.333 scale from 17px; the sharpness axis is the brand's accent. */
.display, .h2, .h3 { font-weight: 560; font-variation-settings: "SHRP" var(--shrp); text-wrap: balance; }
.display {
  font-size: clamp(2.875rem, 1.1rem + 6.6vw, 6.75rem);
  line-height: .94;
  letter-spacing: -.048em;
  transition: --shrp 1.4s var(--ease);
}
.h2 { font-size: clamp(2.125rem, 1.25rem + 3.3vw, 4rem); line-height: 1.02; letter-spacing: -.038em; }
.h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.016em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.fine { font-size: .875rem; color: var(--mute); }
.mono { font-family: var(--mono); font-size: .8125em; letter-spacing: -.01em; }
[data-sharpen].is-sharp { --shrp: 100; }

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { max-width: 34em; }
@media (max-width: 560px) { .section-head { gap: 14px; margin-bottom: 28px; } }

/* ── Material ───────────────────────────────────────────────────────────── */
.raised { background: var(--face); box-shadow: var(--raise-2); }
.well { background: var(--page); box-shadow: var(--sink-2); }
.well-1 { background: var(--page); box-shadow: var(--sink-1); }

/* Graphite object with the logo's chamfer on its bottom-right corner. */
.obj {
  position: relative;
  background: var(--obj-face);
  color: var(--obj-ink);
  border-radius: var(--r-l);
  box-shadow: var(--obj-shadow), var(--obj-rim);
}
.obj-cut { box-shadow: var(--obj-rim); border-radius: var(--r-l) var(--r-l) 0 var(--r-l); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.obj-frame { filter: drop-shadow(calc(var(--hx) * -14) calc(var(--hy) * -18) 24px rgba(40, 46, 56, .38)); }
:root[data-theme="dark"] .obj-frame { filter: drop-shadow(calc(var(--hx) * -14) calc(var(--hy) * -18) 24px rgba(0, 0, 0, .65)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .obj-frame { filter: drop-shadow(calc(var(--hx) * -14) calc(var(--hy) * -18) 24px rgba(0, 0, 0, .65)); } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 520;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
/* The key: a graphite keycap. Pressing sinks it. */
.btn-key {
  background: var(--obj-face);
  color: var(--obj-ink);
  box-shadow: var(--obj-rim), calc(var(--hx) * -6) calc(var(--hy) * -7) 16px -2px rgba(30, 34, 42, .42), calc(var(--hx) * 4) calc(var(--hy) * 4) 10px var(--hi);
}
.btn-key:hover { transform: translateY(-1px); box-shadow: var(--obj-rim), calc(var(--hx) * -9) calc(var(--hy) * -10) 22px -2px rgba(30, 34, 42, .5), calc(var(--hx) * 5) calc(var(--hy) * 5) 12px var(--hi); }
.btn-key:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), 0 0 0 transparent; }
:root[data-theme="dark"] .btn-key { background: linear-gradient(150deg, #f1f3f5, #c9cdd3); color: #15171b; box-shadow: inset 0 1px 0 #fff, calc(var(--hx) * -6) calc(var(--hy) * -7) 16px -2px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-key { background: linear-gradient(150deg, #f1f3f5, #c9cdd3); color: #15171b; box-shadow: inset 0 1px 0 #fff, calc(var(--hx) * -6) calc(var(--hy) * -7) 16px -2px rgba(0, 0, 0, .6); } }
.btn-soft { background: var(--face); box-shadow: var(--raise-1); color: var(--ink); }
.btn-soft:hover { box-shadow: var(--raise-2); }
.btn-soft:active, .btn-soft[aria-pressed="true"] { background: var(--face-press); box-shadow: var(--sink-1); transform: scale(.985); }
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: .62; transform: none; }
.text-link { font-weight: 520; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--signal); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 620; font-size: 1.1875rem; letter-spacing: -.035em; text-decoration: none; font-variation-settings: "SHRP" 60; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .9375rem; color: var(--ink-2); transition: box-shadow .2s, color .2s; }
.nav-links a:hover { color: var(--ink); box-shadow: var(--raise-1); }
.nav-links a[aria-current="page"] { box-shadow: var(--sink-1); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.theme-switch {
  position: relative;
  width: 58px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--page);
  box-shadow: var(--sink-1);
  padding: 0;
}
.theme-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--face);
  box-shadow: var(--raise-1);
  transition: transform .45s var(--spring);
}
.theme-knob::after { /* sun becomes moon: a disc with a sliding bite */
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 0 var(--face);
  transition: box-shadow .45s var(--ease);
}
.theme-switch[aria-checked="true"] .theme-knob { transform: translateX(26px); }
.theme-switch[aria-checked="true"] .theme-knob::after { box-shadow: inset -3px -2px 0 0 #202328; }

/* Phones and tablets: the section links move into a menu that drops from the header. */
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border: 0; padding: 0; border-radius: 50%; place-items: center; align-content: center; gap: 5px; background: var(--face); box-shadow: var(--raise-1); color: var(--ink); transition: box-shadow .25s; }
.menu-btn i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--spring); }
.menu-btn[aria-expanded="true"] { box-shadow: var(--sink-1); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; gap: 2px; padding: 10px; border-radius: 26px; background: var(--page); box-shadow: var(--raise-2); animation: menu-in .35s var(--ease-out); }
.menu[hidden] { display: none; }
.menu a { padding: 13px 16px; border-radius: 16px; text-decoration: none; font-size: 1.0625rem; font-weight: 520; color: var(--ink-2); }
.menu a[aria-current="page"], .menu a:active { box-shadow: var(--sink-1); color: var(--ink); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (min-width: 901px) { .menu { display: none; } }
/* Narrow phones: the mark alone, and the header button stays on one line. */
@media (max-width: 380px) {
  .brand span { display: none; }
  .nav-end { gap: 8px; }
  .nav-end .btn-sm { white-space: nowrap; padding-inline: 14px; }
}
.brand .mark { flex: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-side { display: grid; gap: 24px; justify-items: start; padding-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 960px) { .hero-head { grid-template-columns: minmax(0, 1fr); } }

.stage { margin-top: clamp(48px, 7vw, 88px); padding: clamp(14px, 2.4vw, 28px); border-radius: var(--r-xl); }
.idea { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 20px; padding: 6px 6px 22px; }
.idea label { font-weight: 560; font-size: 1.0625rem; letter-spacing: -.015em; }
.idea-field { display: flex; gap: 10px; padding: 6px; border-radius: 999px; background: var(--face); box-shadow: var(--raise-1); }
.idea-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--page);
  box-shadow: var(--sink-1);
  font-size: 1rem;
  outline-offset: 0;
}
.idea-field input::placeholder { color: var(--mute); }
.idea-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .875rem;
  background: var(--face);
  box-shadow: var(--raise-1);
  color: var(--ink-2);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip:active, .chip[aria-checked="true"] { box-shadow: var(--sink-1); background: var(--face-press); color: var(--ink); }
@media (max-width: 720px) {
  .idea { grid-template-columns: minmax(0, 1fr); }
  .idea-chips { grid-column: 1; }
  .idea-field { flex-direction: column; border-radius: 26px; }
  .idea-field input { min-height: 48px; }
}

.sim { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(14px, 2vw, 24px); }
/* Phones and tablets: the desktop layout at a fixed 720px, zoomed to fit by home.js. */
@media (max-width: 900px) { .sim { width: max(720px, 100%); gap: 14px; } .sim .term, .sim .app { min-height: 460px; } }

/* Terminal: the AI at work. */
.term { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--obj-line); font-size: .875rem; color: var(--obj-ink-2); }
.term-bar .glyph { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--obj-3); color: var(--obj-ink); }
.term-bar .glyph svg { width: 14px; height: 14px; }
.term-bar .path { margin-left: auto; color: var(--obj-mute); }
.term-lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; font-family: var(--mono); font-size: .8125rem; line-height: 1.55; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.term-lines li { color: var(--obj-ink-2); animation: line-in .35s var(--ease-out) both; overflow-wrap: anywhere; }
.term-lines .you { color: var(--obj-ink); }
.term-lines .you::before { content: "› "; color: var(--obj-signal); }
/* Wraps between words: the bare command text is an anonymous flex item that otherwise broke mid-word. */
.term-lines .tool { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; color: var(--obj-mute); }
.term-lines .tool b { font-weight: 500; color: var(--obj-signal); }
.term-lines .say { font-family: var(--f); font-size: .9375rem; color: var(--obj-ink); }
.term-lines .edit { color: var(--obj-mute); padding-left: 14px; border-left: 2px solid var(--obj-3); }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--obj-signal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }

/* App replica: mirrors the desktop app's project view. */
.app { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--obj-line); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--obj-3); }
.app-bar .app-name { margin-left: 10px; display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--obj-ink-2); }
.app-bar .saved { margin-left: auto; font-size: .8125rem; color: var(--obj-mute); display: inline-flex; gap: 6px; align-items: center; }
.app-body { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 20px clamp(16px, 2vw, 24px) 24px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.pmark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--obj-2); box-shadow: var(--obj-rim), 0 4px 10px rgba(0, 0, 0, .35); font-weight: 600; }
.app-head h3 { font-size: 1.1875rem; font-weight: 580; letter-spacing: -.02em; line-height: 1.2; }
.app-head p { font-size: .8125rem; color: var(--obj-mute); }
.status-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--obj-2); font-size: .8125rem; color: var(--obj-ink-2); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--obj-mute); }
.status-pill.live::before { background: var(--obj-signal); box-shadow: 0 0 0 4px rgba(142, 164, 255, .18); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(142, 164, 255, 0); } }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ms { padding: 10px 12px 12px; border-radius: 14px; background: var(--obj-2); box-shadow: inset 0 1px 0 var(--obj-hi); animation: pop-in .45s var(--spring) both; }
.ms.current { background: var(--obj-3); }
.ms small { display: block; font-size: .75rem; color: var(--obj-mute); }
.ms strong { display: block; font-size: .875rem; font-weight: 520; margin: 2px 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms .ticks { display: flex; gap: 4px; }
.ms .ticks i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .4s var(--ease); }
.ms .ticks i.doing { background: rgba(142, 164, 255, .45); }
.ms .ticks i.done { background: var(--obj-ink); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.tasks { display: flex; flex-direction: column; gap: 2px; align-content: start; overflow: hidden; }
.tasks:empty::before { content: "No plan yet. Ask your AI for a roadmap and it appears here."; color: var(--obj-mute); font-size: .9375rem; padding: 24px 0; }
.task {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  font-size: .9375rem;
  animation: pop-in .4s var(--ease-out) both;
  transition: background .25s;
}
.task button.tick { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--obj-mute); display: grid; place-items: center; transition: box-shadow .3s, background .3s; }
.task button.tick:focus-visible { outline: 2px solid var(--obj-signal); outline-offset: 2px; }
.task button.tick svg { width: 12px; height: 12px; stroke: var(--obj); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s .05s var(--ease); }
.task.doing button.tick { box-shadow: inset 0 0 0 1.5px var(--obj-signal); background: conic-gradient(var(--obj-signal) 0 30%, transparent 0); animation: spin 1.1s linear infinite; }
.task.done button.tick { background: var(--obj-ink); box-shadow: none; animation: tick-pop .4s var(--spring); }
.task.done button.tick svg { stroke-dashoffset: 0; }
.task.done .t-title { color: var(--obj-mute); }
.task .ref { font-family: var(--mono); font-size: .75rem; color: var(--obj-mute); }
.task .t-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.task .t-note { grid-column: 3 / -1; font-size: .8125rem; color: var(--obj-mute); margin-top: -2px; animation: line-in .35s var(--ease-out) both; }
.task .by { font-size: .75rem; color: var(--obj-mute); white-space: nowrap; }
.task .by:empty { display: none; }
/* A 44px touch area around the 20px tick. */
.task button.tick { position: relative; }
.task button.tick::before { content: ""; position: absolute; inset: -12px; }
.task.new { background: rgba(142, 164, 255, .08); }
.task.flash { background: rgba(255, 255, 255, .05); }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes tick-pop { 40% { transform: scale(1.25); } }

.handover { padding: 16px 18px; border-radius: 18px; background: var(--obj-2); box-shadow: inset 0 1px 0 var(--obj-hi); animation: pop-in .5s var(--spring) both; }
.handover header { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--obj-mute); margin-bottom: 6px; }
.handover header b { color: var(--obj-ink); font-weight: 540; }
.handover header span:last-child { margin-left: auto; white-space: nowrap; }
.handover p { font-size: .9375rem; line-height: 1.5; }
.needs { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: .8125rem; color: var(--obj-ink-2); }
.needs::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--obj-ink); flex: none; }

.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 22px 6px 4px; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-pill { display: inline-flex; align-items: center; gap: 8px; }
.agent-pill svg { width: 15px; height: 15px; }
.sim-status { flex: 1; min-width: 200px; font-size: .9375rem; color: var(--mute); }
.sim-status b { color: var(--ink); font-weight: 520; }

@media (max-width: 560px) {
  .sim-bar { gap: 12px; }
  .sim-bar #sim-replay { margin-left: auto; }
}

/* Mid-page call to action, right after the demo. */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); border-radius: var(--r-l); }
.cta-band h3 { font-size: 1.25rem; font-weight: 560; letter-spacing: -.02em; line-height: 1.3; }
.cta-band p { color: var(--mute); font-size: .9375rem; margin-top: 4px; }
.cta-band .actions { flex: none; }
@media (max-width: 560px) { .cta-band .actions, .cta-band .btn { width: 100%; } }

/* Works with */
.works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding-top: clamp(44px, 6vw, 72px); color: var(--mute); }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.works li { display: inline-flex; align-items: center; gap: 9px; font-weight: 520; font-size: 1.0625rem; color: var(--ink-2); letter-spacing: -.01em; }
.works li svg { width: 20px; height: 20px; }

/* ── Stale plan ─────────────────────────────────────────────────────────── */
.stale-demo { display: grid; gap: 28px; }
.weeks { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 18px 26px; border-radius: 999px; }
.weeks label { font-weight: 520; }
.weeks output { font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; font-weight: 560; }
@media (max-width: 640px) { .weeks { grid-template-columns: 1fr auto; border-radius: 28px; } .weeks input { grid-column: 1 / -1; grid-row: 2; } }

/* A neumorphic range: a sunken groove, a raised knob. */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--signal) 0 var(--fill), transparent var(--fill)), var(--page); box-shadow: var(--sink-1); }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 999px; background: var(--page); box-shadow: var(--sink-1); }
input[type="range"]::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--signal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: var(--face); box-shadow: var(--raise-1), inset 0 0 0 8px var(--face), inset 0 0 0 30px var(--signal); transition: transform .2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--face); box-shadow: var(--raise-1), inset 0 0 0 8px var(--face), inset 0 0 0 30px var(--signal); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 3px; }

.stale-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); align-items: start; }
/* Phones keep the two lists side by side, smaller, so the comparison reads at a glance. */
@media (max-width: 640px) {
  .stale-demo { gap: 18px; }
  .stale-pair { gap: 10px; }
  .stale-pair .list-card { padding: 14px 12px; border-radius: 20px; }
  .stale-pair .list-card h3 { font-size: .9375rem; line-height: 1.25; }
  .stale-pair .list-card .meta { font-size: .75rem; margin-bottom: 12px; }
  .stale-pair .bar { height: 6px; margin-bottom: 10px; }
  .stale-pair .mini-list { gap: 0; }
  .stale-pair .mini-list li { align-items: flex-start; gap: 7px; padding: 4px 0; font-size: .8125rem; line-height: 1.3; }
  .stale-pair .mini-list li::before { width: 12px; height: 12px; margin-top: 2px; }
  .stale-tag { margin-top: 10px; padding: 4px 10px; font-size: .75rem; }
  .list-card.paper.stale { transform: rotate(-1deg) translateY(6px); }
}
.list-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-l); transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s; }
.list-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.list-card h3 { font-size: 1.125rem; font-weight: 560; letter-spacing: -.015em; }
.list-card .meta { font-size: .875rem; color: var(--mute); margin-bottom: 18px; min-height: 1.4em; }
.obj.list-card .meta { color: var(--obj-mute); }
.bar { height: 8px; border-radius: 999px; background: var(--page); box-shadow: var(--sink-1); overflow: hidden; margin-bottom: 18px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink-2); transition: width .7s var(--ease); }
.obj .bar { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.obj .bar i { background: var(--obj-ink); }
.mini-list { display: grid; gap: 4px; }
.mini-list li { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: .9375rem; transition: color .5s, opacity .5s; }
.mini-list li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55; transition: background .4s, box-shadow .4s, opacity .4s; }
.mini-list li.done { color: var(--mute); }
.mini-list li.done::before { background: var(--ink-2); box-shadow: none; opacity: 1; }
.obj .mini-list li.done { color: var(--obj-mute); }
.obj .mini-list li.done::before { background: var(--obj-ink); }
.mini-list li.added { color: var(--obj-signal); }
.list-card.paper { background: var(--face); box-shadow: var(--raise-2); }
.list-card.paper.stale { transform: rotate(-1.6deg) translateY(10px); filter: grayscale(1) blur(.4px); opacity: .62; }
.list-card.paper.stale .mini-list { filter: blur(.6px); }
.stale-tag { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; color: var(--mute); box-shadow: var(--sink-1); opacity: 0; transition: opacity .5s; }
.stale .stale-tag { opacity: 1; }
.truth { text-align: center; color: var(--mute); }
.truth strong { color: var(--ink); font-weight: 560; font-variant-numeric: tabular-nums; }

/* ── How it works: a sticky stage beside the steps ──────────────────────── */
.how-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 5vw, 72px); }
.how-steps { display: grid; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 24px; opacity: .38; transition: opacity .5s var(--ease); }
.how-step:first-child { min-height: 48vh; }
.how-step.active { opacity: 1; }
.step-num { --hp: 0; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; font: inherit; font-weight: 600; color: inherit; background: var(--face); box-shadow: var(--raise-1); transition: box-shadow .4s, color .4s; }
.how-step.active .step-num { box-shadow: var(--sink-1); color: var(--signal); }
.how-step p { color: var(--ink-2); max-width: 30em; }
.how-sticky { position: sticky; top: max(96px, calc(50vh - 260px)); align-self: start; aspect-ratio: 16 / 10.5; max-height: calc(100vh - 130px); }
.how-stage { height: 100%; }
.how-stage .obj { height: 100%; overflow: hidden; }
.pane { position: absolute; inset: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.pane.active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.pane-title { font-size: .875rem; color: var(--obj-mute); display: flex; align-items: center; gap: 8px; }
/* Phones and tablets: no sticky scroll stage. The panel sits on top and the steps become numbered tabs
   under it that advance on their own (home.js); only the active step's text shows, in one shared cell. */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .how-sticky { position: relative; top: auto; order: -1; aspect-ratio: 760 / 500; max-height: none; }
  .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .how-step { display: contents; }
  .how-step .step-num { grid-row: 1; width: auto; height: 44px; border-radius: 999px; overflow: hidden; position: relative; color: var(--mute); }
  .how-step .step-num::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0; transform-origin: 0 50%; transform: scaleX(var(--hp)); }
  .how-step.active .step-num::after { opacity: .5; }
  .how-step:nth-child(2) .step-num { grid-column: 2; }
  .how-step:nth-child(3) .step-num { grid-column: 3; }
  .how-step:nth-child(4) .step-num { grid-column: 4; }
  .how-step .h3, .how-step p { grid-column: 1 / -1; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .how-step .h3 { grid-row: 2; margin-top: 14px; }
  .how-step p { grid-row: 3; margin-top: 8px; }
  .how-step.active .h3, .how-step.active p { opacity: 1; visibility: visible; transition: opacity .4s var(--ease) .1s, visibility 0s; }
}

.connect-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--obj-2); box-shadow: inset 0 1px 0 var(--obj-hi); }
.connect-row .glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--obj-3); }
.connect-row .glyph svg { width: 18px; height: 18px; }
.connect-row strong { font-weight: 540; display: block; }
.connect-row small { font-size: .8125rem; color: var(--obj-mute); }
.installs { grid-column: 2 / -1; display: none; flex-wrap: wrap; gap: 6px 14px; font-size: .8125rem; color: var(--obj-mute); }
.connect-row.on .installs { display: flex; }
.installs span { display: inline-flex; gap: 6px; align-items: center; opacity: .4; transition: opacity .3s, color .3s; }
.installs span.ok { opacity: 1; color: var(--obj-ink-2); }
.installs span::before { content: "○"; font-size: .75rem; }
.installs span.ok::before { content: "✓"; color: var(--obj-signal); }

/* Dark switch inside graphite objects. */
.switch { position: relative; flex: none; width: 50px; height: 28px; border: 0; padding: 0; border-radius: 999px; background: #121417; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .05); transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(150deg, #4a4f57, #33373e); box-shadow: 0 2px 5px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .4s var(--spring), background .3s; }
.switch[aria-checked="true"] { background: #2a3a7a; }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: linear-gradient(150deg, #fff, #cfd4dc); }
.switch:focus-visible { outline: 2px solid var(--obj-signal); }

.bubble { align-self: flex-end; max-width: 80%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--obj-3); font-size: .9375rem; }
.reply { max-width: 88%; font-size: .9375rem; color: var(--obj-ink-2); display: flex; gap: 10px; }
.reply svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pane .roadmap .ms { animation: none; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--spring); }
.pane.active .roadmap .ms { opacity: 1; transform: none; }
.pane.active .roadmap .ms:nth-child(2) { transition-delay: .5s; }
.pane.active .roadmap .ms:nth-child(3) { transition-delay: .8s; }
.pane.active .roadmap .ms:nth-child(1) { transition-delay: .2s; }
.pane .tasks { gap: 2px; }
.pane .task { animation: none; }
.hook-note { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: .8125rem; color: var(--obj-mute); display: flex; gap: 10px; align-items: center; }
.hook-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--obj-signal); flex: none; }
.away h4 { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.3; font-weight: 450; letter-spacing: -.02em; }
.away-list { display: grid; gap: 8px; font-size: .875rem; color: var(--obj-ink-2); }
.away-list li { display: flex; gap: 10px; }
.away-list li::before { content: "✓"; color: var(--obj-signal); }
.away-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.obj .btn-soft { background: var(--obj-3); color: var(--obj-ink); box-shadow: var(--obj-rim), 0 4px 12px rgba(0, 0, 0, .35); }
.obj .btn-soft:active { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55); }

/* ── Control: activity with undo ───────────────────────────────────────── */
.control-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 36px); align-items: stretch; }
@media (max-width: 900px) { .control-demo { grid-template-columns: minmax(0, 1fr); } }
.feed { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-l); display: flex; flex-direction: column; gap: 6px; }
.feed h3 { font-size: 1.0625rem; font-weight: 560; margin-bottom: 8px; display: flex; justify-content: space-between; }
.feed h3 span { font-weight: 400; color: var(--mute); font-size: .875rem; }
.feed-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px; margin-inline: -10px; border-radius: 14px; transition: background .3s, opacity .3s; }
.feed-item .who { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--face); box-shadow: var(--raise-1); }
.feed-item .who svg { width: 15px; height: 15px; }
.feed-item p { font-size: .9375rem; line-height: 1.4; }
.feed-item p small { display: block; color: var(--mute); font-size: .8125rem; }
.feed-item.undone p { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--lo); }
.feed-item .btn { --h: 34px; padding: 0 14px; font-size: .875rem; }
.board { padding: clamp(14px, 2vw, 22px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { display: flex; flex-direction: column; gap: 8px; min-height: 260px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .025); }
.col h4 { margin: 0 0 4px; font-size: .8125rem; font-weight: 500; color: var(--obj-mute); display: flex; justify-content: space-between; }
.card { padding: 11px 12px; border-radius: 12px; background: var(--obj-2); box-shadow: var(--obj-rim), 0 3px 8px rgba(0, 0, 0, .3); font-size: .875rem; line-height: 1.35; }
.card .ref { display: block; font-family: var(--mono); font-size: .6875rem; color: var(--obj-mute); margin-bottom: 3px; }
.card.hl { box-shadow: var(--obj-rim), 0 0 0 1.5px var(--obj-signal), 0 6px 16px rgba(0, 0, 0, .4); }
/* Phones keep the three columns, with smaller cards, so undo visibly moves cards between them. */
@media (max-width: 560px) {
  .board { gap: 6px; padding: 10px; }
  .col { min-height: 220px; padding: 8px 6px; gap: 6px; border-radius: 12px; }
  .col h4 { font-size: .75rem; margin-inline: 2px; }
  .card { padding: 8px; border-radius: 10px; font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }
  .card .ref { font-size: .625rem; }
  .feed-item { gap: 10px; }
}

/* ── Local: offline switch and recovery points ─────────────────────────── */
.local-demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); }
@media (max-width: 900px) { .local-demo { grid-template-columns: minmax(0, 1fr); } }
.offline { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.offline-head { display: flex; align-items: center; gap: 14px; }
.offline-head strong { font-weight: 540; }
.offline-head .switch { margin-left: auto; }
.net { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--obj-3); }
.net svg { width: 20px; height: 20px; }
.net .slash { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .4s var(--ease); }
.offline.is-off .net .slash { stroke-dashoffset: 0; }
.offline-proof { display: grid; gap: 8px; }
.offline-proof li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--obj-2); font-size: .9375rem; }
.offline-proof li span:last-child { color: var(--obj-mute); font-size: .8125rem; text-align: right; }
.offline-note { font-size: .875rem; color: var(--obj-mute); min-height: 2.8em; }
.recovery { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); display: grid; gap: 16px; align-content: start; }
.recovery h3 { font-size: 1.125rem; font-weight: 560; }
.recovery p { font-size: .9375rem; color: var(--ink-2); }
.points { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .points { gap: 5px; } .point { aspect-ratio: auto; min-height: 44px; font-size: .6875rem; border-radius: 10px; } }
.point { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--face); box-shadow: var(--raise-1); font-size: .75rem; color: var(--mute); display: grid; place-items: center; transition: box-shadow .2s, color .2s; }
.point[aria-pressed="true"] { box-shadow: var(--sink-1); color: var(--signal); font-weight: 600; }
.point-info { font-size: .875rem; color: var(--mute); min-height: 2.8em; }
.bundle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: var(--sink-1); font-size: .9375rem; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--spring); }
.bundle.show { opacity: 1; transform: none; }
.bundle .file { width: 34px; height: 40px; border-radius: 6px 12px 6px 6px; background: var(--obj-face); display: grid; place-items: center; color: var(--obj-ink); flex: none; }
.bundle small { display: block; color: var(--mute); font-size: .8125rem; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
/* Stacked, the price and its button come before the comparison. */
@media (max-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr); } .price-grid > .obj-frame { order: -1; } }
.compare { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); display: grid; gap: 24px; }
.compare .weeks { padding: 0; box-shadow: none; background: none; border-radius: 0; }
.charges { display: grid; gap: 12px; }
.charges h3 { font-size: 1rem; font-weight: 520; display: flex; justify-content: space-between; gap: 12px; }
.charges h3 b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.months, .once { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.months i { aspect-ratio: 2.2; border-radius: 5px; background: var(--page); box-shadow: var(--sink-1); transition: background .3s, box-shadow .3s; }
.months i.on { background: var(--ink-2); box-shadow: none; }
.once i { aspect-ratio: 2.2; border-radius: 5px; background: var(--page); box-shadow: var(--sink-1); }
.once i:first-child { background: var(--signal); box-shadow: none; }
.price-card { padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.price-card .price-top { display: flex; align-items: center; gap: 12px; font-weight: 540; }
.price-card .badge { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--obj-3); font-size: .8125rem; color: var(--obj-ink-2); font-weight: 400; white-space: nowrap; }
.price-card .trial { margin-top: -6px; text-align: center; font-size: .875rem; color: var(--obj-ink-2); }
.price-card .price { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 560; letter-spacing: -.035em; line-height: 1.1; font-variation-settings: "SHRP" 40; }
.price-card .price-sub { color: var(--obj-mute); font-size: .9375rem; }
.checks { display: grid; gap: 10px; font-size: .9375rem; color: var(--obj-ink-2); }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--obj-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1f24' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price-card .btn-key { background: linear-gradient(150deg, #f1f3f5, #c9cdd3); color: #15171b; box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0, 0, 0, .45); width: 100%; }
.price-card .fine { color: var(--obj-mute); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; gap: 14px; }
.faq details { border-radius: 22px; background: var(--face); box-shadow: var(--raise-1); transition: box-shadow .3s var(--ease); }
.faq details[open] { background: var(--page); box-shadow: var(--sink-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 520; font-size: 1.0625rem; letter-spacing: -.01em; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: var(--raise-1); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858b95' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat, var(--face); transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); max-width: 44em; }
.faq details > div p + p { margin-top: 10px; }

/* ── Final call ────────────────────────────────────────────────────────── */
.finale { padding-block: var(--section) clamp(80px, 10vw, 140px); text-align: center; display: grid; justify-items: center; gap: 28px; }
.emboss { color: var(--page); width: clamp(96px, 14vw, 150px); }
.emboss svg { width: 100%; height: auto; filter: drop-shadow(calc(var(--hx) * 4) calc(var(--hy) * 4) 3px var(--hi)) drop-shadow(calc(var(--hx) * -5) calc(var(--hy) * -5) 5px var(--lo)); }
.finale .h2 { max-width: 15em; }
.finale .lead { margin-inline: auto; }
.btn-xl { --h: 64px; padding: 0 38px; font-size: 1.125rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { width: min(100% - var(--gutter) * 2, var(--max)); margin: 0 auto; padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand p { margin-top: 10px; color: var(--mute); font-size: .9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.footer-links h2 { font-size: .875rem; font-weight: 560; margin-bottom: 10px; }
.footer-links a { display: block; padding: 4px 0; color: var(--mute); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: .875rem; color: var(--mute); }

/* ── Inner pages ───────────────────────────────────────────────────────── */
/* Clears the fixed header (about 76px) on every width. */
.page-head { padding-top: calc(76px + clamp(32px, 4.5vw, 64px)); padding-bottom: clamp(36px, 5vw, 64px); display: grid; gap: 22px; }
.page-head .display { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.25rem); }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
@media (max-width: 820px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-card { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.dl-card .os { display: flex; align-items: center; gap: 12px; }
.dl-card .os svg { width: 28px; height: 28px; }
.dl-card h2 { font-size: 1.5rem; font-weight: 560; letter-spacing: -.025em; }
.dl-card p { color: var(--obj-ink-2); }
.dl-card .yours-tag { margin-left: auto; font-size: .8125rem; color: var(--obj-signal); display: none; }
.dl-card.yours .yours-tag { display: inline; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: #121417; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
.seg button { flex: 1; border: 0; padding: 9px 12px; border-radius: 999px; background: transparent; color: var(--obj-mute); font-size: .875rem; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--obj-3); color: var(--obj-ink); box-shadow: var(--obj-rim), 0 2px 6px rgba(0, 0, 0, .4); }
.dl-card .btn-key { background: linear-gradient(150deg, #f1f3f5, #c9cdd3); color: #15171b; box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0, 0, 0, .45); }
.dl-card .note { font-size: .875rem; color: var(--obj-mute); }
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
@media (max-width: 820px) { .steps-3 { grid-template-columns: minmax(0, 1fr); } }
.steps-3 li { display: grid; gap: 10px; align-content: start; }
.steps-3 p { color: var(--ink-2); }
.notice { padding: 20px 24px; border-radius: 20px; color: var(--ink-2); }
.legal { max-width: 720px; padding-bottom: 40px; }
.legal h2 { font-size: 1.375rem; font-weight: 560; letter-spacing: -.02em; margin: 44px 0 10px; }
.legal p { color: var(--ink-2); }
.legal a { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); display: grid; gap: 14px; }
.form label { font-weight: 520; font-size: .9375rem; }
.form select, .form textarea { width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; background: var(--page); box-shadow: var(--sink-1); font-size: 1rem; }
.form textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.form-result { min-height: 1.5em; font-size: .9375rem; color: var(--ink-2); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); padding: 12px 20px; border-radius: 999px; background: var(--obj-face); color: var(--obj-ink); box-shadow: var(--obj-rim), 0 12px 30px rgba(0, 0, 0, .35); font-size: .9375rem; transition: transform .45s var(--spring); }
.toast.show { transform: translate(-50%, 0); }

/* Entrances: one orchestrated hero sequence on load. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .task.doing button.tick { animation: none; }
}
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; } }
.term-lines .tool b { flex: none; }
.term-bar .path { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .pane { padding: 18px; gap: 10px; }
  .connect-row { padding: 10px 12px; gap: 10px; }
  .connect-row small { display: none; }
}

/* ══ Motion system ═══════════════════════════════════════════════════════ */

/* ── Loader: the mark draws itself, then the page opens out of the logo ─── */
.loader {
  --lp: 0;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--page);
  transition: opacity .7s var(--ease) .15s;
  animation: loader-bail 0s 7s forwards;
}
html[data-intro="done"] .loader, html:not(.js) .loader { display: none; }
/* Fades out with the mark lifting toward the header logo. (A circle cut-out here made a 3787px layer.) */
.loader.out { opacity: 0; pointer-events: none; }
@keyframes loader-bail { to { visibility: hidden; } }
.loader-inner { display: grid; justify-items: center; gap: 30px; transition: opacity .4s, transform .9s var(--ease); }
.loader.out .loader-inner { opacity: 0; transform: translate(calc(var(--cx, 50vw) - 50vw), calc(var(--cy, 50vh) - 50vh)) scale(.4); }
.loader-mark {
  width: 132px;
  height: 132px;
  padding: 30px;
  border-radius: 38px;
  color: var(--ink);
  background: var(--face);
  box-shadow: -10px -10px 24px var(--hi), 14px 16px 30px var(--lo);
  animation: mark-press 1.6s var(--ease) both;
}
.loader-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: mark-draw 1.2s .15s var(--ease) forwards, mark-fill .6s 1.1s var(--ease) forwards; }
.loader-mark path + path { animation-delay: .45s, 1.25s; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; } }
@keyframes mark-press { from { box-shadow: 0 0 0 var(--hi), 0 0 0 var(--lo); transform: scale(.92); } }
.loader-track { width: 168px; height: 6px; border-radius: 999px; box-shadow: var(--sink-1); overflow: hidden; }
.loader-track i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--lp)); }
.loader-count { font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }

/* ── Header: a flat bar at the top that detaches into a floating pill ──── */
:root { --d: 0; --pg: 0; }
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 60; padding: calc(var(--d) * 14px) var(--gutter) 0; pointer-events: none; transition: transform .6s var(--spring); }
.nav-wrap.hidden { transform: translateY(-130%); }
.nav {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, calc(var(--max) - var(--d) * 330px));
  margin-inline: auto;
  padding: calc(18px - var(--d) * 10px) calc(var(--d) * 8px) calc(18px - var(--d) * 10px) calc(var(--d) * 20px);
  border-radius: calc(var(--d) * 40px);
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--page); box-shadow: var(--raise-2); opacity: var(--d); transform: scale(calc(.97 + var(--d) * .03)); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: calc(1 - var(--d) * 3); }
.nav-progress { position: absolute; left: 28px; right: 28px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ink); opacity: calc(var(--d) * .35); transform-origin: 0 50%; transform: scaleX(var(--pg)); pointer-events: none; }
.nav-links { position: relative; }
.nav-links a { position: relative; z-index: 1; }
.nav-links a:hover { box-shadow: none; }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; box-shadow: var(--sink-1); opacity: 0; transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s; pointer-events: none; }
.nav-pill.on { opacity: 1; }
body:not([data-path="/"]) .nav-pill { display: none; }

/* Sound switch: four bars that dance with the music. */
.sound-switch { flex: none; width: 40px; height: 40px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--face); box-shadow: var(--raise-1); color: var(--ink); transition: box-shadow .25s; }
.sound-switch:active { box-shadow: var(--sink-1); }
.bars { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.bars i { width: 2.5px; height: 15px; border-radius: 2px; background: currentColor; transform: scaleY(.27); transition: transform .3s var(--ease), opacity .3s; }
html[data-sound="playing"] .bars i { animation: eq 1.1s var(--ease) infinite alternate; }
html[data-sound="playing"] .bars i:nth-child(2) { animation-delay: -.4s; animation-duration: .9s; }
html[data-sound="playing"] .bars i:nth-child(3) { animation-delay: -.7s; animation-duration: 1.3s; }
html[data-sound="playing"] .bars i:nth-child(4) { animation-delay: -.2s; animation-duration: .8s; }
.sound-switch[aria-pressed="false"] .bars i { transform: scaleY(.17); opacity: .5; }
/* scaleY, not height: the bars run all the time music plays, and height changes relayout and repaint the header. */
@keyframes eq { from { transform: scaleY(.27); } to { transform: scaleY(1); } }
@media (max-width: 520px) { .theme-switch { display: none; } .nav-end { gap: 8px; } }

/* Magnetic keys drift toward the pointer. */
[data-magnetic] { translate: var(--mgx, 0) var(--mgy, 0); transition: translate .5s var(--spring), transform .18s var(--ease), box-shadow .18s var(--ease); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
/* No isolation or 3D context around the film: in Firefox (and Zen) an isolated group stops the video getting
   its own compositor surface, so the whole hero (blurred rings, the device's shadow) was redrawn every video frame.
   The rings sit at z-index 0 under the hero's content instead. */
.hero { position: relative; padding-top: clamp(120px, 14vw, 176px); overflow: clip; }
.hero > :not(.hero-rings) { position: relative; z-index: 1; }
/* A single 1fr column: an auto track grew to the nowrap ticker's width and pushed the copy off phone screens. */
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; text-align: center; }
.hero-title { font-size: clamp(3rem, .9rem + 7.6vw, 7.75rem); max-width: 10.5em; }
.hero-lead { margin-inline: auto; max-width: 35em; }
.hero-actions { justify-content: center; }
.hero-note { margin-top: -10px; }
@media (max-width: 480px) {
  .hero-copy { gap: 22px; }
  .hero-actions { justify-self: stretch; flex-direction: column; }
}
.hero-live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; box-shadow: var(--sink-1); font-size: .9375rem; color: var(--ink-2); max-width: 100%; }
.hero-live #hero-ticker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-live #hero-ticker.swap { animation: ticker .6s var(--ease-out); }
@keyframes ticker { from { opacity: 0; transform: translateY(8px); } }
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--signal); opacity: 0; animation: live 2s var(--ease-out) 3; }
/* Three pulses, then rest: a never-ending animation makes Firefox redraw the tiles under it every frame. */
@keyframes live { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* Embossed rings behind the device, breathing with the music. */
/* Embossed rings: a pre-rendered image per theme (tools/render-rings.mjs) with its fade baked in. Live blurred
   shadows under a mask, or a fade overlay across the hero, made Firefox and Zen redraw the hero constantly.
   ?rings=short swaps in a version that fades out above the device. */
.hero-rings { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.hero-rings::before { content: ""; position: absolute; left: 50%; top: clamp(640px, 64vw, 900px); width: 2400px; height: 2004px; margin: -1200px 0 0 -1200px; background: url("/assets/rings-light.webp") center / 100% 100% no-repeat; }
:root[data-theme="dark"] .hero-rings::before { background-image: url("/assets/rings-dark.webp"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-rings::before { background-image: url("/assets/rings-dark.webp"); } }
.rings-short .hero-rings::before { height: 924px; background-image: url("/assets/rings-light-short.webp"); }
:root.rings-short[data-theme="dark"] .hero-rings::before { background-image: url("/assets/rings-dark-short.webp"); }
@media (prefers-color-scheme: dark) { :root.rings-short:not([data-theme="light"]) .hero-rings::before { background-image: url("/assets/rings-dark-short.webp"); } }

/* The device: the real app in a graphite window, tilted back until you scroll. */
.device-stage { position: relative; width: min(100% - var(--gutter) * 2, 1240px); margin: clamp(56px, 7vw, 88px) auto 0; }
.device-tilt { position: relative; transform-origin: 50% 0; }
/* Straightens over the first 70% of a screen of scroll, driven by the scroll itself on the compositor.
   Browsers without scroll-driven animations show it flat. */
@supports (animation-timeline: scroll()) {
  html:not(.reduce) .device-stage { perspective: 2400px; }
  html:not(.reduce) .device-tilt { animation: straighten linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
}
@keyframes straighten {
  from { transform: translateY(0) rotateX(26deg) scale(.9); animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  to { transform: translateY(-30px) rotateX(0deg) scale(1); }
}
.device {
  position: relative;
  border-radius: 22px;
  background: var(--obj-face);
  color: var(--obj-ink);
  padding: 0 8px 8px;
  box-shadow: var(--obj-rim), 0 50px 90px -30px rgba(25, 30, 40, .55), 0 18px 36px -18px rgba(25, 30, 40, .5), -6px -8px 24px var(--hi);
}
:root[data-theme="dark"] .device { box-shadow: var(--obj-rim), 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .device { box-shadow: var(--obj-rim), 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05); } }
.device-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; }
.device-bar > i { width: 11px; height: 11px; border-radius: 50%; background: var(--obj-3); }
.device-title { margin-left: 10px; display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--obj-ink-2); }
.device-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--obj-ink-2); padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--obj-2); }
.device-badge { max-width: min(60%, 520px); min-width: 0; }
.badge-glyph { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
.badge-glyph svg { width: 13px; height: 13px; }
.device-badge.done .badge-glyph { border-radius: 50%; background: var(--obj-ink); color: var(--obj); }
.device-badge.done .badge-glyph svg { width: 10px; height: 10px; stroke-width: 3; }
.badge-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-text.swap { animation: ticker .5s var(--ease-out); }
.device-badge .live-dot { background: var(--obj-signal); }
.device-badge .live-dot::after { border-color: var(--obj-signal); }
/* Nothing is drawn over the film and its clip is a plain rectangle, so every engine can hand the video
   straight to the system compositor. (Rounded clips, overlays, isolation and 3D around it made Firefox and
   Zen redraw the hero for every video frame.) */
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden; background: #16181c; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .45s var(--ease); }
.screen.dip #film { opacity: 0; }


.film-bar { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); width: min(100%, 820px); margin: clamp(40px, 5vw, 64px) auto 0; }
.chapters { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 24px); }
.film-play { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--face); color: var(--ink); box-shadow: var(--raise-1); transition: box-shadow .3s var(--ease), transform .2s var(--ease); }
.film-play:hover { box-shadow: var(--raise-2); }
.film-play:active { box-shadow: var(--sink-1); transform: scale(.96); }
.film-play svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.film-play .i-pause { fill: none; }
.film-play[aria-pressed="false"] .i-play, .film-play[aria-pressed="true"] .i-pause { display: none; }
.chapters button { border: 0; background: none; padding: 0; display: grid; align-content: end; gap: 10px; text-align: left; color: var(--mute); font-size: .9375rem; transition: color .3s; }
.chapters button.on { color: var(--ink); }
.chapters button i { display: block; height: 4px; border-radius: 999px; box-shadow: var(--sink-1); overflow: hidden; position: relative; }
.chapters button b { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .1s linear; }

/* Phones: the same desktop window and film, just smaller. */
@media (max-width: 760px) {
  .device-stage .device { border-radius: 14px; padding: 0 5px 5px; }
  .device-stage .device-bar { height: 30px; gap: 5px; padding: 0 6px; }
  .device-stage .device-bar > i { width: 8px; height: 8px; }
  .device-stage .device-title { display: none; }
  .device-badge { font-size: .6875rem; padding: 3px 9px 3px 7px; gap: 6px; max-width: 78%; }
  .film-bar { margin-top: 20px; gap: 12px; }
  .tour-device { border-radius: 16px; padding: 0 5px 5px; }
  .tour-device .device-bar { height: 30px; }
  .tour-device .screen { border-radius: 10px; }
  .chapters span { font-size: .8125rem; }
}

/* ── Tour: real screens ─────────────────────────────────────────────────── */
.tour-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.tour-tabs { display: grid; gap: 6px; }
.tour-tabs button { --tp: 0; position: relative; display: grid; gap: 4px; text-align: left; border: 0; padding: 16px 20px 18px; border-radius: 20px; background: transparent; color: var(--mute); transition: background .3s, box-shadow .35s var(--ease), color .3s; }
.tour-tabs button b { font-weight: 560; font-size: 1.0625rem; color: var(--ink-2); letter-spacing: -.01em; }
.tour-tabs button span { font-size: .9375rem; line-height: 1.45; display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .5s var(--ease), opacity .4s; opacity: 0; }
.tour-tabs button[aria-selected="true"] { background: var(--face); box-shadow: var(--raise-1); color: var(--ink-2); }
.tour-tabs button[aria-selected="true"] b { color: var(--ink); }
.tour-tabs button[aria-selected="true"] span { opacity: 1; }
.tour-tabs button:not([aria-selected="true"]) span { height: 0; }
.tab-bar { position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; }
.tab-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--tp)); }
.tour-tabs button[aria-selected="true"] .tab-bar { opacity: .5; }
.tour-device { width: 100%; }
.tour-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s var(--ease); }
.tour-shots img.active { opacity: 1; filter: none; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-frame { order: -1; }
  .tour-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-tabs button { padding: 12px 14px 16px; }
  .tour-tabs button span { display: none; }
}

/* How-it-works panes showing real screens, zooming into the part that matters. */
/* How it works: the app's own parts, rebuilt at a fixed 760×500 size and scaled to fit the stage, so
   nothing is ever cropped. Colours, radii and shadows follow apps/app/src/styles/tokens.css. */
.pane.rx { padding: 0; --rx-s1: #202227; --rx-s0: #1b1d22; --rx-s2: #292b31; --rx-s3: #393c43; --rx-ink: #eff0f2; --rx-ink2: #cacdd2; --rx-mute: #afb3ba; --rx-line: #33363e;
  --rx-raise: -4px -4px 12px rgba(239, 240, 242, .065), 6px 8px 18px rgba(0, 0, 0, .46); --rx-raise1: -1px -1px 4px rgba(239, 240, 242, .065), 2px 3px 7px rgba(0, 0, 0, .46);
  --rx-sink: inset 2px 2px 4px rgba(0, 0, 0, .46), inset -1px -1px 3px rgba(239, 240, 242, .065); --rx-rim: inset 1px 1px 0 rgba(239, 240, 242, .06), inset -1px -1px 0 rgba(0, 0, 0, .22);
  background: radial-gradient(120% 90% at 20% 0%, #252a31, #1c2026 55%, #12151a); color: var(--rx-ink); }
.rx-fit { position: absolute; left: 50%; top: 50%; width: 760px; height: 500px; translate: -50% -50%; scale: var(--k, 1); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 28px 36px; font-size: 14px; line-height: 20px; }
.rx-crumb, .rx-note { font-size: 13px; color: var(--rx-mute); display: flex; gap: 8px; }
.rx-crumb span { opacity: .5; }
.rx-card { position: relative; padding: 24px; border-radius: 16px; background: linear-gradient(145deg, var(--rx-s1), var(--rx-s0)); box-shadow: var(--rx-rim), var(--rx-raise); }
.rx-cut { border-bottom-right-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.rx-card header h4 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 560; }
.rx-card header p { margin: 4px 0 0; color: var(--rx-mute); font-size: 13px; }
.rx-disc { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--rx-s2), var(--rx-s0)); box-shadow: var(--rx-rim), var(--rx-raise1); color: var(--rx-ink); }
.rx-disc svg { width: 18px; height: 18px; }
.rx-disc.sm { width: 28px; height: 28px; }
.rx-disc.sm svg { width: 14px; height: 14px; }

.rx-tools ul { margin: 16px 0 0; border-radius: 12px; box-shadow: var(--rx-sink); }
.rx-tools li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; }
.rx-tools li + li { border-top: 1px solid var(--rx-line); }
.rx-tools b { display: block; font-weight: 540; font-size: 15px; }
.rx-tools small { display: block; font-size: 13px; color: var(--rx-mute); }
.rx-state { font-style: normal; font-size: 12px; color: var(--rx-mute); opacity: 0; translate: 6px 0; transition: opacity .35s var(--ease), translate .45s var(--ease); white-space: nowrap; }
.rx-tools li.on .rx-state { opacity: 1; translate: 0 0; }
.rx .switch[aria-checked="true"] { background: #4b5060; }

.rx-ask { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(40, 43, 49, .86); box-shadow: inset 0 1px 0 rgba(241, 243, 247, .1), 0 12px 28px -12px rgba(0, 0, 0, .6); font-size: 14px; color: var(--rx-ink2); }
.rx-roadmap header { display: flex; align-items: baseline; justify-content: space-between; }
.rx-roadmap header p b { color: var(--rx-ink); font-size: 18px; font-weight: 600; margin-right: 4px; }
.rx-ms-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.rx-ms { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: linear-gradient(145deg, var(--rx-s1), var(--rx-s0)); box-shadow: var(--rx-rim), var(--rx-raise1); }
.rx-ms.now { box-shadow: inset 0 0 0 1.5px var(--rx-ink2), var(--rx-raise1); }
.rx-ms small { font-size: 12px; color: var(--rx-mute); display: flex; justify-content: space-between; }
.rx-ms small span { color: var(--rx-ink2); }
.rx-ms strong { font-weight: 540; font-size: 14px; }
.rx-seg { display: flex; gap: 4px; }
.rx-seg i { width: 9px; height: 13px; border-radius: 2px; background: rgba(255, 255, 255, .1); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .4); }
.rx-seg i.d { background: var(--rx-ink); box-shadow: none; }
.rx-seg i.w { background: #8c9099; box-shadow: none; }
.rx-add { margin: 14px 0 0; font-size: 13px; color: var(--rx-mute); }
/* The milestones arrive one by one when the step comes into view. */
.rx-ask, .rx-ms, .rx-roadmap .rx-add { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .6s var(--spring); }
.pane.active .rx-ask, .pane.active .rx-ms, .pane.active .rx-roadmap .rx-add { opacity: 1; transform: none; }
.pane.active .rx-ms:nth-child(1) { transition-delay: .5s; }
.pane.active .rx-ms:nth-child(2) { transition-delay: .65s; }
.pane.active .rx-ms:nth-child(3) { transition-delay: .8s; }
.pane.active .rx-ms:nth-child(4) { transition-delay: .95s; }
.pane.active .rx-roadmap .rx-add { transition-delay: 1.1s; }

.rx-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rx-board section { height: 372px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(145deg, var(--rx-s0), var(--rx-s1)); box-shadow: var(--rx-rim), var(--rx-raise1); }
.rx-board h5 { margin: 2px 4px 2px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 540; }
.rx-board h5 span { color: var(--rx-mute); font-weight: 400; margin-left: 4px; }
.rx-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rx-mute); }
.rx-dot.half { background: linear-gradient(90deg, var(--rx-ink) 50%, transparent 0); box-shadow: inset 0 0 0 1.5px var(--rx-ink); }
.rx-dot.full { background: var(--rx-ink); box-shadow: none; }
.rx-kcard { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(145deg, var(--rx-s1), var(--rx-s0)); box-shadow: var(--rx-rim), var(--rx-raise1); }
.rx-kcard .rx-tick { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rx-mute); display: grid; place-items: center; color: #17191d; transition: background .3s, box-shadow .3s; }
.rx-kcard .rx-tick svg { width: 11px; height: 11px; stroke-width: 3; opacity: 0; transition: opacity .25s .1s; }
.rx-kcard.done .rx-tick { background: var(--rx-ink); box-shadow: none; }
.rx-kcard.done .rx-tick svg { opacity: 1; }
.rx-kcard.doing .rx-tick { box-shadow: inset 0 0 0 1.5px var(--rx-ink); background: conic-gradient(var(--rx-ink) 0 30%, transparent 0); animation: spin 1.1s linear infinite; }
.rx-kcard b { font-weight: 520; font-size: 14px; line-height: 20px; }
.rx-kcard p { grid-column: 2; margin: 0; font-size: 12px; line-height: 16px; color: var(--rx-mute); }
.rx-kcard footer { grid-column: 2; display: flex; justify-content: space-between; font-size: 12px; color: var(--rx-mute); }
.rx-kcard footer code { font-family: var(--mono); font-size: 11px; }
.rx-kcard footer span { display: inline-flex; align-items: center; gap: 4px; }
.rx-kcard footer svg { width: 11px; height: 11px; }
.rx-kcard.flash { box-shadow: var(--rx-rim), 0 0 0 1.5px var(--rx-ink2), var(--rx-raise1); }
.rx-toast { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--inverse, #eceef1); color: #17191d; font-size: 13px; font-weight: 520; white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s var(--ease), transform .45s var(--spring); }
.rx-toast.show { opacity: 1; transform: none; }

.rx-handover header { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rx-handover header time { margin-left: auto; font-size: 13px; color: var(--rx-mute); }
.rx-handover > p { margin: 16px 0 0; font-size: 17px; line-height: 26px; max-width: 34em; }
.rx-done-list { margin: 14px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--rx-ink2); }
.rx-done-list li { display: flex; align-items: center; gap: 8px; }
.rx-done-list small { font-family: var(--mono); font-size: 11px; color: var(--rx-mute); }
.rx-check { width: 16px; height: 16px; border-radius: 50%; background: var(--rx-ink); color: #17191d; display: grid; place-items: center; }
.rx-check svg { width: 10px; height: 10px; stroke-width: 3; }
.rx-request { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: var(--rx-sink); font-size: 13px; color: var(--rx-ink2); }
.rx-badge { padding: 3px 10px; border-radius: 999px; background: #34373f; color: #f0f1f3; font-size: 12px; font-weight: 520; }
.rx-handover footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--rx-mute); }
.rx-handover footer b { display: block; color: var(--rx-ink); font-weight: 520; font-size: 14px; }
.rx-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 16px; border-radius: 999px; background: linear-gradient(145deg, #eceef1, #cdd0d6); color: #17191d; font: inherit; font-size: 14px; font-weight: 540; box-shadow: var(--rx-raise1); cursor: pointer; transition: transform .15s var(--ease); }
.rx-btn:active { transform: scale(.97); }
.rx-btn svg { width: 15px; height: 15px; }
.rx-handover > p, .rx-done-list, .rx-request, .rx-handover footer { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.pane.active .rx-handover > p, .pane.active .rx-done-list, .pane.active .rx-request, .pane.active .rx-handover footer { opacity: 1; transform: none; }
.pane.active .rx-handover > p { transition-delay: .25s; }
.pane.active .rx-done-list { transition-delay: .5s; }
.pane.active .rx-request { transition-delay: .7s; }
.pane.active .rx-handover footer { transition-delay: .85s; }
/* ── Reveals ────────────────────────────────────────────────────────────── */
[data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
[data-split] .w > span { display: inline-block; transform-origin: 0 100%; }
html.js:not(.reduce) [data-split]:not(.in) .w > span { transform: translateY(108%) rotate(5deg); }
html.js:not(.reduce) [data-split] .w > span { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 60ms); }
[data-split] { --shrp: 0; transition: --shrp 1.6s var(--ease) .5s; }
[data-split].in { --shrp: 100; }
/* Fades and slides only: blur filters gave every waiting block its own GPU layer and a blur pass. */
html.js:not(.reduce) [data-reveal]:not(.in) { opacity: 0; transform: translateY(30px); }
html.js:not(.reduce) [data-reveal] { transition: opacity 1s var(--ease), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--rd, 0) * 1ms); }
html.js:not(.reduce) [data-rise]:not(.in) { opacity: 0; transform: translateY(70px) scale(.94); }
html.js:not(.reduce) [data-rise] { transform-origin: 50% 100%; transition: opacity 1s var(--ease), transform 1.5s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--rd, 0) * 1ms); }

/* Hero entrance, after the loader. */
html.js:not(.reduce):not(.ready) [data-hero-in] { opacity: 0; transform: translateY(24px); }
html.js:not(.reduce) [data-hero-in] { transition: opacity 1s var(--ease), transform 1.2s cubic-bezier(.16, 1, .3, 1); }
html.js .hero-live { transition-delay: .1s; }
html.js .hero-lead { transition-delay: .55s; }
html.js .hero-actions { transition-delay: .7s; }
html.js .hero-note { transition-delay: .8s; }
html.js:not(.reduce):not(.ready) .device-stage { opacity: 0; transform: translateY(180px); }
html.js:not(.reduce) .device-stage { transition: opacity 1.2s var(--ease) .75s, transform 1.8s cubic-bezier(.16, 1, .3, 1) .75s; }
html.js:not(.reduce):not(.ready) .hero-rings { opacity: 0; }
html.js:not(.reduce) .hero-rings { transition: opacity 1.6s var(--ease) .6s; }

@media (prefers-reduced-motion: reduce) {
  .device-tilt { transform: none; }
}

/* Theme change: a circular wipe out of the switch. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: wipe .8s cubic-bezier(.76, 0, .24, 1); }
@keyframes wipe { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 90%) var(--vy, 0)); } }

/* Diagnostics for ?test=… (hero.js). */
.test-no-rings .hero-rings { display: none; }
.test-no-shadow .device { box-shadow: none !important; }
.test-no-device .device-stage { visibility: hidden; }
.test-no-nav .nav-wrap { display: none; }

/* Inline payment frame keeps Paddle's full merchant footer visible on small screens. */
.purchase-includes { padding-left: 1.2em; display: grid; gap: 12px; margin-block: 24px; }
.purchase-checkout { min-width: 0; border-radius: var(--r-l); }
.purchase-controls { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.paddle-checkout-frame { min-width: 286px; }
.paddle-checkout-frame[data-checkout-theme="light"] { background: #e2e5e9; color-scheme: light; }
.paddle-checkout-frame[data-checkout-theme="dark"] { background: #1b1e22; color-scheme: dark; }
@media (max-width: 400px) { .purchase-wrap { width: calc(100% - 24px); } }
.purchase-controls [hidden] { display: none; }
.purchase-wrap .price { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 560; letter-spacing: -.04em; line-height: 1.1; }
