/* Pulshade website. One stylesheet for every page. No external resources. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #141417;
  --raised: #1c1c20;
  --hover: #232328;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededf0;
  --dim: #a1a1aa;
  --faint: #74747e;
  --teal: #3ee0d2;
  --ind: #6c7bff;
  --link: #3ee0d2;
  --on-accent: #05060a;
  --grad: linear-gradient(135deg, #40e0d0 0%, #6a78ff 100%);
  --glow: rgba(62, 224, 210, .16);
  --mark-bg: rgba(255, 214, 102, .14);
  --mark-text: #ffd666;

  /* App mock-ups follow the site: Dark theme here, Light theme in light mode */
  --m-void: #08080a; --m-base: #0d0d10; --m-surface: #141417; --m-raised: #1c1c20;
  --m-line: rgba(255, 255, 255, .065); --m-text: rgba(255, 255, 255, .93); --m-dim: rgba(255, 255, 255, .58);
  --m-faint: rgba(255, 255, 255, .34); --m-accent: #4fd8bc; --m-mine: linear-gradient(135deg, #4fd8bc, #5aafcf);
  --m-on: #000;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
code { font-family: var(--font-code); font-size: .86em; background: var(--raised); border: 1px solid var(--line); padding: .08em .35em; border-radius: 5px; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta { margin-left: 8px; color: var(--on-accent); background: var(--grad); font-weight: 600; }
.nav .nav-cta:hover { color: var(--on-accent); background: var(--grad); filter: brightness(1.08); }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--raised); }
.menu summary svg { width: 22px; height: 22px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: grid; }
.menu nav a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--raised); }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--grad); color: #05060a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--raised); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--hover); }

/* Store buttons. Styled like the site, not Apple's badge. */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 14px; min-width: 250px; padding: 14px 22px 14px 18px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
}
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; gap: 3px; line-height: 1.15; }
.store small { font-size: 13px; color: var(--dim); }
.store b { font: 650 18px/1.15 var(--font-display); letter-spacing: -.01em; }
a.store[href]:hover { background: var(--raised); }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(48% 46% at 72% 46%, var(--glow), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(108, 123, 255, .08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 750; max-width: 12ch; }
.hero .lede { margin-top: 26px; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--dim); max-width: 34em; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--faint); }
.hero-device { position: relative; display: flex; justify-content: center; }

/* The heartbeat line: the one moving thing on the site. Drawn once, then still. */
.pulse { position: absolute; left: 0; right: 0; top: 50%; height: 220px; transform: translateY(-50%); z-index: -1; pointer-events: none; }
.pulse svg { width: 100%; height: 100%; overflow: visible; }
.pulse path { fill: none; stroke: url(#pulse-grad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(62, 224, 210, .55)); }
.pulse .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.45, .05, .2, 1) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 14ch; }
  .pulse { top: auto; bottom: 230px; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 56px; }
.section-head h2, .h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.035em; line-height: 1.06; }
.section-head p { margin-top: 18px; color: var(--dim); font-size: 1.1rem; }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Reasons: text beside a small picture of the app */
.reasons { display: grid; gap: 28px; }
.reason {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 56px; border-radius: var(--r-l); background: var(--bg-2); border: 1px solid var(--line);
}
.reason:nth-child(even) .reason-art { order: -1; }
.reason h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); letter-spacing: -.03em; line-height: 1.1; }
.reason p { margin-top: 16px; color: var(--dim); font-size: 1.05rem; max-width: 32em; }
.reason p + p { margin-top: 12px; }
.reason .more { display: inline-block; margin-top: 20px; font-weight: 600; }
.reason-art { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .reason { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; border-radius: 22px; }
  .reason:nth-child(even) .reason-art { order: 0; }
}

/* Panels drawn in the app's style */
.panel { width: 100%; max-width: 400px; background: var(--m-base); border: 1px solid var(--m-line); border-radius: 22px; padding: 22px; color: var(--m-text); font-size: 14px; line-height: 1.45; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); }
.panel-title { font: 700 18px/1.2 var(--font-display); color: var(--m-text); }
.panel-sub { margin-top: 6px; color: var(--m-dim); font-size: 13px; }
.panel-note { margin-top: 14px; color: var(--m-faint); font-size: 12px; text-align: center; }

.code-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.code-grid span { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--m-raised); border: 1px solid var(--m-line); color: var(--m-faint); font-size: 11px; }
.code-grid span::after { content: ""; flex: 1; height: 8px; border-radius: 4px; background: var(--m-dim); opacity: .35; filter: blur(2px); }
.panel-btn { margin-top: 16px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--m-accent); color: var(--m-on); font-weight: 600; font-size: 15px; }

/* Envelope: layers inside layers */
.layers { width: 100%; max-width: 420px; }
.layer { border-radius: 22px; padding: 16px 16px 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.layer > .layer { margin-top: 14px; }
.layer-name { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; color: var(--dim); }
.layer-name b { color: var(--text); font-weight: 600; font-size: 14px; }
.layer-outer { border-color: color-mix(in srgb, var(--ind) 55%, transparent); background: color-mix(in srgb, var(--ind) 8%, var(--surface)); }
.layer-mid { border-color: color-mix(in srgb, var(--teal) 50%, transparent); background: color-mix(in srgb, var(--teal) 6%, var(--surface)); }
.layer-core { background: var(--raised); }
.layer-msg { margin-top: 12px; display: inline-block; padding: 9px 14px; border-radius: 18px 18px 6px 18px; background: var(--m-mine); color: var(--m-on); font-size: 14px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--text); white-space: nowrap; }

/* Tor route */
.route { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.lane-name { font-size: 13px; color: var(--dim); }
.lane-name b { color: var(--text); font-weight: 600; }
.hops { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.hops::before { content: ""; position: absolute; left: 12%; right: 12%; top: 13px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--ind)); opacity: .7; }
.hops li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 11.5px; color: var(--dim); line-height: 1.25; }
.hops li::before { content: ""; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--teal); }
.hops li:last-child::before { background: var(--grad); border-color: transparent; width: 18px; height: 18px; margin-top: 5px; }
.route-foot { font-size: 13px; color: var(--dim); padding: 4px 4px 0; }
.route-foot b { color: var(--text); font-weight: 600; }

/* Burn tab */
.leave { display: grid; gap: 10px; margin-top: 16px; }
.leave-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--m-surface); border: 1px solid var(--m-line); }
.leave-row b { display: block; font-size: 15px; font-weight: 600; color: var(--m-text); }
.leave-row span { display: block; font-size: 12.5px; color: var(--m-dim); }
.leave-row svg { width: 22px; height: 22px; justify-self: center; }
.ico-lock { color: var(--m-dim); }
.ico-detach { color: #ff9f0a; }
.ico-burn { color: #ff453a; }

/* Everything else: a plain list in two to four columns */
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.extras div { padding: 22px 0; border-top: 1px solid var(--line); }
.extras h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.extras p { margin-top: 6px; color: var(--dim); font-size: .95rem; line-height: 1.5; }
.extras-foot { margin-top: 40px; }
@media (max-width: 1000px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

/* The journey of a message: a real sequence, so it's numbered */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.journey::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--ind)); opacity: .5; }
.journey li { counter-increment: step; position: relative; }
.journey li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--teal); color: var(--text); font: 700 17px/1 var(--font-display); margin-bottom: 22px; position: relative;
}
.journey li:last-child::before { border-color: var(--ind); }
.journey h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.journey p { margin-top: 8px; color: var(--dim); font-size: .98rem; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--ind)); }
  .journey li { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; }
  .journey li::before { grid-row: span 2; margin: 0; }
}

/* Download */
.download { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 72px 56px; background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 50%, var(--glow), transparent 70%); }
.download-icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 20px 60px rgba(62, 224, 210, .18); }
.download h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -.035em; }
.download p { margin-top: 12px; color: var(--dim); font-size: 1.08rem; max-width: 36em; }
.download .stores { margin-top: 28px; }
.download .fine { margin-top: 18px; font-size: 14px; color: var(--faint); }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; padding: 40px 24px; gap: 28px; } .download-icon { width: 96px; height: 96px; border-radius: 22px; } .store { min-width: 0; width: 100%; } }

/* ---------- Devices ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%; aspect-ratio: 9 / 19.3; flex: none;
  border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .034);
  container-type: inline-size;
  background: linear-gradient(145deg, #2a2a30, #0c0c0f 40%, #1d1d22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .6);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .128); overflow: hidden; background: var(--m-base); container-type: inline-size; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 3; top: 6.2cqw; left: 50%; transform: translateX(-50%); width: 28cqw; height: 8.4cqw; border-radius: 99px; background: #000; }
/* A real screenshot replaces the drawn screen: put an <img> first inside .screen */
.screen:has(> img) .mock { display: none; }
.screen:has(> img) + .island, .screen:has(> img) .island { display: none; }

.mock { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--m-base); color: var(--m-text); font-family: var(--font); font-size: 4.6cqw; line-height: 1.35; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 4.2cqw 8cqw 0 9cqw; height: 14cqw; font-weight: 600; font-size: 4.4cqw; }
.m-status i { display: inline-block; width: 7cqw; height: 3.4cqw; border-radius: 1.2cqw; border: .5cqw solid currentColor; opacity: .85; position: relative; }
.m-status i::after { content: ""; position: absolute; inset: .5cqw; right: 1.6cqw; background: currentColor; border-radius: .5cqw; }
.m-head { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 5cqw 3.5cqw; border-bottom: 1px solid var(--m-line); background: var(--m-base); }
.m-back { width: 4cqw; height: 4cqw; border-left: .9cqw solid var(--m-accent); border-bottom: .9cqw solid var(--m-accent); transform: rotate(45deg); margin: 0 1cqw 0 1.5cqw; }
.m-avatar { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 4.4cqw; color: #08080a; flex: none; }
.av-1 { background: #ff5fa2; } .av-2 { background: #5c9dff; } .av-3 { background: #ffb547; } .av-4 { background: #c6f24a; } .av-5 { background: #8b5cff; color: #fff; } .av-6 { background: #2ef2c8; }
.m-who { display: grid; line-height: 1.2; min-width: 0; }
.m-who b { font-size: 4.6cqw; font-weight: 650; }
.m-who small { font-size: 3.3cqw; color: var(--m-dim); }
.m-who small::before { content: ""; display: inline-block; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--m-accent); margin-right: 1.2cqw; vertical-align: .1em; }
.m-icons { margin-left: auto; display: flex; gap: 4cqw; color: var(--m-accent); }
.m-icons svg { width: 6cqw; height: 6cqw; }
.m-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; padding: 4cqw 4cqw 3cqw; background: var(--m-void); overflow: hidden; }
.m-sys { align-self: center; font-size: 3.2cqw; color: var(--m-faint); background: var(--m-surface); border: 1px solid var(--m-line); padding: 1cqw 3cqw; border-radius: 99px; margin-bottom: 2cqw; }
.b { max-width: 76%; padding: 2.4cqw 3.6cqw; border-radius: 4.6cqw; font-size: 4.2cqw; line-height: 1.35; }
.b-them { align-self: flex-start; background: var(--m-raised); border-bottom-left-radius: 1.4cqw; }
.b-me { align-self: flex-end; background: var(--m-mine); color: var(--m-on); border-bottom-right-radius: 1.4cqw; }
.b-me + .b-me, .b-them + .b-them { margin-top: -.6cqw; }
.b-meta { display: block; text-align: right; font-size: 2.8cqw; opacity: .6; margin-top: .4cqw; }
.b-voice { display: flex; align-items: center; gap: 2.4cqw; width: 60%; }
.b-voice .play { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--m-accent); flex: none; position: relative; }
.b-voice .play::after { content: ""; position: absolute; left: 2.7cqw; top: 1.9cqw; border-left: 2.4cqw solid var(--m-base); border-top: 1.6cqw solid transparent; border-bottom: 1.6cqw solid transparent; }
.wave { flex: 1; height: 6cqw; display: flex; align-items: center; gap: .7cqw; }
.wave i { flex: 1; border-radius: 1cqw; background: var(--m-dim); }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 60%; } .wave i:nth-child(3) { height: 90%; } .wave i:nth-child(4) { height: 50%; }
.wave i:nth-child(5) { height: 75%; } .wave i:nth-child(6) { height: 40%; } .wave i:nth-child(7) { height: 100%; } .wave i:nth-child(8) { height: 55%; }
.wave i:nth-child(9) { height: 35%; } .wave i:nth-child(10) { height: 70%; } .wave i:nth-child(11) { height: 45%; } .wave i:nth-child(12) { height: 25%; }
.b-voice small { font-size: 3cqw; color: var(--m-dim); }
.react { align-self: flex-end; margin: -2.4cqw 3cqw 0 0; font-size: 3.4cqw; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 99px; padding: .2cqw 1.6cqw; position: relative; z-index: 1; }
.m-compose { display: flex; align-items: center; gap: 2.6cqw; padding: 2.6cqw 4cqw 7cqw; background: var(--m-base); border-top: 1px solid var(--m-line); }
.m-plus { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--m-raised); flex: none; position: relative; }
.m-plus::before, .m-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3.6cqw; height: .7cqw; background: var(--m-dim); transform: translate(-50%, -50%); border-radius: 1cqw; }
.m-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.m-field { flex: 1; height: 9cqw; border-radius: 99px; background: var(--m-raised); border: 1px solid var(--m-line); color: var(--m-faint); font-size: 3.8cqw; display: flex; align-items: center; padding: 0 3.4cqw; }
.m-mic { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--m-mine); flex: none; display: grid; place-items: center; color: var(--m-on); }
.m-mic svg { width: 4.6cqw; height: 4.6cqw; }

/* Chat list mock */
.m-title { padding: 1cqw 5cqw 3cqw; font: 700 7.4cqw/1.1 var(--font-display); letter-spacing: -.02em; }
.m-stories { display: flex; gap: 3cqw; padding: 0 5cqw 3.5cqw; }
.m-stories span { width: 13cqw; height: 13cqw; border-radius: 50%; padding: .7cqw; background: var(--m-mine); }
.m-stories span i { display: block; width: 100%; height: 100%; border-radius: 50%; border: .8cqw solid var(--m-base); }
.m-stories span:nth-child(1) i { background: #ff5fa2; } .m-stories span:nth-child(2) i { background: #5c9dff; } .m-stories span:nth-child(3) i { background: #ffb547; } .m-stories span:nth-child(4) i { background: #8b5cff; }
.m-list { flex: 1; border-top: 1px solid var(--m-line); }
.m-row { display: grid; grid-template-columns: 11cqw 1fr auto; gap: 3cqw; align-items: center; padding: 2.8cqw 5cqw; }
.m-row .m-avatar { width: 11cqw; height: 11cqw; }
.m-row b { display: block; font-size: 4.2cqw; font-weight: 600; }
.m-row span { display: block; font-size: 3.6cqw; color: var(--m-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row time { font-size: 3.2cqw; color: var(--m-faint); align-self: start; padding-top: 1cqw; }
.m-row .dot { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--m-accent); justify-self: end; margin-top: 1.4cqw; }
.m-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3cqw 4cqw 7cqw; border-top: 1px solid var(--m-line); background: var(--m-base); font-size: 2.8cqw; color: var(--m-faint); text-align: center; }
.m-tabs span { display: grid; justify-items: center; gap: 1cqw; }
.m-tabs span::before { content: ""; width: 6cqw; height: 5cqw; border-radius: 1.6cqw; background: currentColor; opacity: .55; }
.m-tabs .on { color: var(--m-accent); }
.m-tabs .on::before { opacity: 1; }

/* Theme sets for the theme row: the app's three looks */
.t-light { --m-void: #ededf1; --m-base: #f7f7f9; --m-surface: #fff; --m-raised: #f0f0f4; --m-line: rgba(0, 0, 0, .08); --m-text: rgba(0, 0, 0, .88); --m-dim: rgba(0, 0, 0, .56); --m-faint: rgba(0, 0, 0, .38); --m-accent: #3d6bff; --m-mine: linear-gradient(135deg, #3d6bff, #485fff); --m-on: #fff; }
.t-dark { --m-void: #08080a; --m-base: #0d0d10; --m-surface: #141417; --m-raised: #1c1c20; --m-line: rgba(255, 255, 255, .065); --m-text: rgba(255, 255, 255, .93); --m-dim: rgba(255, 255, 255, .58); --m-faint: rgba(255, 255, 255, .34); --m-accent: #4fd8bc; --m-mine: linear-gradient(135deg, #4fd8bc, #5aafcf); --m-on: #000; }
.t-graphite { --m-void: #17181b; --m-base: #1e2024; --m-surface: #282a2f; --m-raised: #32353b; --m-line: rgba(255, 255, 255, .09); --m-text: rgba(255, 255, 255, .92); --m-dim: rgba(255, 255, 255, .6); --m-faint: rgba(255, 255, 255, .38); --m-accent: #c8f560; --m-mine: linear-gradient(135deg, #c8f560, #b0ee82); --m-on: #14170a; }

.themes { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(16px, 4vw, 48px); }
.themes figure { margin: 0; display: grid; justify-items: center; gap: 16px; }
.themes .phone { --w: 230px; }
.themes figcaption { font-weight: 600; text-align: center; }
.themes figcaption span { display: block; font-weight: 400; color: var(--dim); font-size: 14px; text-align: center; }
@media (max-width: 760px) {
  .themes { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .themes .phone { --w: 100%; }
  .themes figcaption span { display: none; }
}

/* Mac window */
.mac { width: 100%; max-width: 760px; border-radius: 14px; overflow: hidden; background: var(--m-base); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .4); container-type: inline-size; }
.mac > img { width: 100%; height: auto; }
.mac:has(> img) .mac-mock { display: none; }
.mac-mock { display: grid; grid-template-columns: 34% 1fr; aspect-ratio: 16 / 10; color: var(--m-text); font-size: 1.7cqw; }
.mac-side { background: var(--m-surface); border-right: 1px solid var(--m-line); display: flex; flex-direction: column; }
.mac-dots { display: flex; gap: .9cqw; padding: 1.8cqw 1.8cqw 1cqw; }
.mac-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; } .mac-dots i:nth-child(3) { background: #28c840; }
.mac-side .m-title { font-size: 2.6cqw; padding: 1cqw 1.8cqw 1.4cqw; }
.mac-side .m-row { grid-template-columns: 4.4cqw 1fr auto; gap: 1.2cqw; padding: 1.1cqw 1.8cqw; }
.mac-side .m-row .m-avatar { width: 4.4cqw; height: 4.4cqw; font-size: 1.8cqw; }
.mac-side .m-row b { font-size: 1.6cqw; }
.mac-side .m-row span { font-size: 1.4cqw; }
.mac-side .m-row time { font-size: 1.2cqw; }
.mac-side .m-row.sel { background: color-mix(in srgb, var(--m-accent) 14%, transparent); border-radius: 1cqw; margin: 0 .8cqw; padding-left: 1cqw; padding-right: 1cqw; }
.mac-main { display: flex; flex-direction: column; background: var(--m-void); min-width: 0; }
.mac-main .m-head { padding: 1.6cqw 2cqw; gap: 1.2cqw; }
.mac-main .m-avatar { width: 3.8cqw; height: 3.8cqw; font-size: 1.6cqw; }
.mac-main .m-who b { font-size: 1.7cqw; }
.mac-main .m-who small { font-size: 1.3cqw; }
.mac-main .m-who small::before { width: .9cqw; height: .9cqw; margin-right: .5cqw; }
.mac-main .m-icons { gap: 1.6cqw; }
.mac-main .m-icons svg { width: 2.2cqw; height: 2.2cqw; }
.mac-main .m-body { padding: 2cqw; gap: .7cqw; }
.mac-main .b { font-size: 1.6cqw; padding: .9cqw 1.4cqw; border-radius: 1.8cqw; max-width: 62%; }
.mac-main .b-them { border-bottom-left-radius: .6cqw; }
.mac-main .b-me { border-bottom-right-radius: .6cqw; }
.mac-main .m-sys { font-size: 1.3cqw; padding: .4cqw 1.2cqw; }
.mac-main .m-compose { padding: 1.2cqw 2cqw; gap: 1cqw; }
.mac-main .m-plus { width: 3cqw; height: 3cqw; }
.mac-main .m-plus::before, .mac-main .m-plus::after { width: 1.3cqw; height: .25cqw; }
.mac-main .m-field { height: 3.4cqw; font-size: 1.5cqw; padding: 0 1.4cqw; }
.mac-main .m-mic { width: 3.4cqw; height: 3.4cqw; }
.mac-main .m-mic svg { width: 1.7cqw; height: 1.7cqw; }
.b-file { display: flex; gap: 1cqw; align-items: center; }
.b-file i { width: 3cqw; height: 3.6cqw; border-radius: .5cqw; background: var(--m-on); opacity: .18; flex: none; }
.b-file span { display: grid; line-height: 1.25; }
.b-file small { opacity: .7; font-size: .85em; }

.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; }
.devices .phone { --w: 200px; position: absolute; right: 2%; bottom: -24px; }
@media (max-width: 700px) { .devices { flex-direction: column; align-items: center; } .devices .phone { position: relative; right: auto; bottom: auto; margin-top: -40px; --w: 170px; } }

/* ---------- Page heads ---------- */
.page-head { padding: 80px 0 56px; position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0 0 -40% 0; z-index: -1; background: radial-gradient(50% 70% at 15% 10%, var(--glow), transparent 70%); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -.04em; line-height: 1.04; max-width: 16ch; }
.page-head p { margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--dim); max-width: 38em; }
.page-head .updated { margin-top: 14px; font-size: 14px; color: var(--faint); }
@media (max-width: 700px) { .page-head { padding: 48px 0 32px; } }

/* ---------- Features page ---------- */
.fgroup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding: 64px 0; border-top: 1px solid var(--line); }
.fgroup-head { align-self: start; position: sticky; top: 100px; }
.fgroup-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -.03em; }
.fgroup-head p { margin-top: 12px; color: var(--dim); }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin: 0; }
.flist div { min-width: 0; }
.flist dt { font: 650 1.08rem/1.3 var(--font-display); letter-spacing: -.01em; display: flex; gap: 10px; align-items: center; }
.flist dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.flist dd { margin: 8px 0 0 18px; color: var(--dim); font-size: .98rem; }
.showcase { padding: 24px 0 88px; }
.showcase-caption { text-align: center; color: var(--dim); margin-top: 28px; font-size: 15px; }
@media (max-width: 900px) {
  .fgroup { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .fgroup-head { position: static; }
}
@media (max-width: 600px) { .flist { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Long reading (how it works, legal) ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-bottom: 120px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { color: var(--faint); font-size: 13px; margin-bottom: 10px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--dim); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--raised); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
  .toc ol, .toc ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

.prose { font-size: 1.04rem; line-height: 1.7; min-width: 0; }
.prose > :not(.table-wrap):not(.expert):not(.sees) { max-width: 70ch; }
.prose > .sees, .prose > .expert { max-width: 820px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -.028em; margin-top: 2.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; letter-spacing: -.012em; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--faint); }
.prose .lead { font-size: 1.18rem; color: var(--dim); line-height: 1.6; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--dim); }
mark.todo { background: var(--mark-bg); color: var(--mark-text); padding: .05em .3em; border-radius: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); max-width: none; }
.prose .table-wrap { margin-right: 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.5; min-width: 640px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--raised); font-weight: 650; font-size: .86rem; color: var(--dim); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 170px; }

/* A note set apart from the reading */
.callout { border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--line); padding: 22px 24px; }
.callout h3 { margin: 0 0 6px; font-size: 1.08rem; }
.callout p { color: var(--dim); }

/* Plain words / expert words */
.expert { margin-top: 3.2em; border-radius: var(--r-l); padding: 40px; background: var(--bg-2); border: 1px solid var(--line); }
.expert > h2 { margin-top: 0; }
.spec { margin: 1.6em 0 0; display: grid; gap: 0; }
.spec > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec dt { font-weight: 650; font-size: .98rem; }
.spec dd { margin: 0; color: var(--dim); font-size: .98rem; line-height: 1.65; }
.spec dd code { color: var(--text); }
@media (max-width: 700px) { .expert { padding: 28px 20px; border-radius: 22px; } .spec > div { grid-template-columns: 1fr; gap: 6px; } }

.sees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sees > div { border-radius: var(--r-m); padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); }
.sees h3 { margin: 0 0 10px; font-size: 1.05rem; }
.sees ul { margin: 0; padding-left: 1.1em; color: var(--dim); font-size: .98rem; }
@media (max-width: 640px) { .sees { grid-template-columns: 1fr; } }

/* ---------- Support ---------- */
.help-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 72px; }
.help-ways > div { padding: 26px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.help-ways h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.help-ways p { margin-top: 8px; color: var(--dim); font-size: .98rem; }
.help-ways a.big { display: inline-block; margin-top: 12px; font-weight: 600; word-break: break-all; }
@media (max-width: 860px) { .help-ways { grid-template-columns: 1fr; } }

.faq-group { padding-top: 8px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.025em; margin-bottom: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq summary:hover { color: var(--link); }
.faq .answer { padding: 0 0 24px; color: var(--dim); max-width: 68ch; }
.faq .answer > * + * { margin-top: .8em; }
.faq .answer ul { padding-left: 1.2em; }
.faq .answer strong { color: var(--text); }
.faq-group > .faq:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-content: center; text-align: center; padding: 80px 0; }
.lost svg { width: min(520px, 90vw); height: 120px; margin: 0 auto 32px; }
.lost h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.035em; }
.lost p { margin: 14px auto 28px; color: var(--dim); max-width: 32em; }
.lost .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid p { margin-top: 14px; color: var(--dim); font-size: 15px; max-width: 26em; }
.foot-grid h2 { font-size: 14px; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-bottom: 12px; font-family: var(--font); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid ul a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot-grid ul a:hover { color: var(--link); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse .draw { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Print (for the policies) ---------- */
@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc-layout { display: block; }
  a { color: #000; }
}

/* Phone width: a 16px side gutter */
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .reason { padding: 28px 18px; }
  .layer { padding: 12px 12px 14px; }
  .layer-name { flex-wrap: wrap; }
}

/* =====================================================================
   Motion layer. Pure CSS: no scripts, so the "no scripts" promise holds.
   Scroll-driven parts switch on only where the browser supports them;
   everywhere else the page simply shows, fully visible.
   ===================================================================== */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
:root { --ease: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: no-preference) {

  /* Reading progress hairline across the top */
  @supports (animation-timeline: scroll()) {
    body::before {
      content: ""; position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60;
      background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
      animation: progress linear both; animation-timeline: scroll(root);
    }
    @keyframes progress { to { transform: scaleX(1); } }
  }

  /* Header: blooms in, and nav links get an underline sweep */
  .site-head { animation: drop .9s var(--ease) both; }
  @keyframes drop { from { transform: translateY(-100%); opacity: 0; } }
  .nav a:not(.nav-cta) { position: relative; }
  .nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
  .nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
  .brand img { transition: transform .6s var(--ease); }
  .brand:hover img { transform: rotate(-12deg) scale(1.12); }

  /* Buttons: lift, glow and a sheen that sweeps across */
  .btn, .nav-cta, .store { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s, filter .2s; position: relative; overflow: hidden; }
  .btn::after, .nav-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); transform: translateX(-120%); }
  .btn:hover::after, .nav-cta:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .btn:hover { transform: translateY(-3px); }
  .btn-primary:hover { box-shadow: 0 12px 34px -6px rgba(62, 224, 210, .55); }
  .btn:active { transform: translateY(0) scale(.98); }
  a.store[href]:hover { transform: translateY(-3px); }

  /* ---------- Hero ---------- */
  .hero::before { animation: breathe 10s ease-in-out infinite alternate; }
  @keyframes breathe { to { transform: translate3d(-3%, 4%, 0) scale(1.08); } }

  .aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
  .aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: screen; }
  .aurora i:nth-child(1) { left: -12%; top: -30%; background: rgba(62, 224, 210, .22); animation: drift1 16s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { right: -10%; top: 0%; background: rgba(108, 123, 255, .24); animation: drift2 19s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { left: 30%; bottom: -45%; background: rgba(140, 90, 255, .16); animation: drift1 23s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.2); } }
  @keyframes drift2 { to { transform: translate3d(-12vw, 14vh, 0) scale(.85); } }
  
  /* Headline: each word rises out of a mask */
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; animation: rise 1.1s var(--ease) both; animation-delay: .15s; }
  .split .w:nth-child(2) > span { animation-delay: 0.225s; }
  .split .w:nth-child(3) > span { animation-delay: 0.300s; }
  .split .w:nth-child(4) > span { animation-delay: 0.375s; }
  .split .w:nth-child(5) > span { animation-delay: 0.450s; }
  .split .w:nth-child(6) > span { animation-delay: 0.525s; }
  .split .w:nth-child(7) > span { animation-delay: 0.600s; }
  .split .w:nth-child(8) > span { animation-delay: 0.675s; }
  @keyframes rise { to { transform: none; } }
  .split .w:nth-child(n+4):nth-child(-n+8) > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  
  .hero .lede, .hero-actions, .hero-note { animation: fadeup 1.1s var(--ease) both; }
  .hero .lede { animation-delay: .75s; } .hero-actions { animation-delay: .9s; } .hero-note { animation-delay: 1.05s; }
  @keyframes fadeup { from { opacity: 0; transform: translateY(26px); } }

  /* Phone: slides in, then floats; the chat plays itself */
  .hero-device { animation: fadeup 1.4s var(--ease) .4s both; perspective: 1400px; }
  .hero-device .phone { animation: float 7s ease-in-out 1.8s infinite alternate; transform-style: preserve-3d; }
  @keyframes float { from { transform: translateY(-8px) rotateY(-5deg) rotateX(2deg); } to { transform: translateY(10px) rotateY(5deg) rotateX(-1deg); } }
  .hero-device::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(62,224,210,.28), transparent 75%); filter: blur(30px); z-index: -1; animation: glow 5s ease-in-out infinite alternate; }
  @keyframes glow { to { opacity: .45; transform: scale(1.12); } }
  .hero .m-body > * { animation: pop .7s var(--ease) both; }
  .hero .m-body > :nth-child(1) { animation-delay: 1.3s; } .hero .m-body > :nth-child(2) { animation-delay: 1.9s; }
  .hero .m-body > :nth-child(3) { animation-delay: 2.7s; } .hero .m-body > :nth-child(4) { animation-delay: 3.6s; }
  .hero .m-body > :nth-child(5) { animation-delay: 4.5s; } .hero .m-body > :nth-child(6) { animation-delay: 4.9s; }
  .hero .m-body > :nth-child(7) { animation-delay: 5.7s; }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }
  .b-me { transform-origin: 100% 100%; } .b-them { transform-origin: 0 100%; }
  .wave i { transform-origin: 50% 50%; animation: eq 1.2s ease-in-out infinite; }
  .wave i:nth-child(odd) { animation-duration: .9s; } .wave i:nth-child(3n) { animation-delay: -.4s; } .wave i:nth-child(4n) { animation-delay: -.7s; }
  @keyframes eq { 50% { transform: scaleY(.45); } }
  .react { animation: pop .6s var(--ease) 5.2s both, wobble 3s ease-in-out 6s infinite; }
  @keyframes wobble { 50% { transform: translateY(-3px) rotate(-8deg); } }

  /* Heartbeat: draws, then keeps pulsing a bright spark along the line */
  .pulse .draw { animation: draw 2.2s cubic-bezier(.45,.05,.2,1) .25s forwards, beat 3.6s ease-in-out 2.6s infinite; }
  @keyframes beat { 0%, 100% { filter: drop-shadow(0 0 8px rgba(62,224,210,.4)); } 50% { filter: drop-shadow(0 0 22px rgba(62,224,210,.95)); } }

  /* ---------- Marquee ---------- */
  .marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-bottom: 112px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .marquee .track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  .marquee .track > div { display: flex; flex: none; }
  .marquee span { font: 650 clamp(1.3rem, 2.6vw, 2rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--dim); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
  .marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
  @keyframes scroll { to { transform: translateX(-50%); } }

  /* ---------- Scroll-driven reveals ---------- */
  @supports (animation-timeline: view()) {
    .section-head, .page-head > .wrap > *, .reason, .extras > div, .journey li, .download, .fgroup, .help-ways > div, .faq-group, .showcase, .prose > h2, .sees > div, .callout, .expert, .foot-grid > div {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(56px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
    .page-head > .wrap > * { animation: fadeup 1s var(--ease) both; animation-timeline: auto; animation-range: normal; }
    .page-head > .wrap > :nth-child(2) { animation-delay: .12s; } .page-head > .wrap > :nth-child(3) { animation-delay: .24s; }

    /* Each reason's picture drifts against the text for depth */
    .reason-art { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { transform: translateY(46px); } to { transform: translateY(-46px); } }

    /* Section titles that reveal like a curtain */
    .section-head h2 { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes curtain { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }

    /* Journey: the rail draws as you scroll and the steps light up in turn */
    .journey::before { transform-origin: 0 50%; animation: rail linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    @keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (max-width: 900px) { .journey::before { transform-origin: 50% 0; animation-name: railv; } @keyframes railv { from { transform: scaleY(0); } to { transform: scaleY(1); } } }
    .journey li::before { animation: light linear both; animation-timeline: view(); animation-range: entry 30% entry 90%; }
    @keyframes light { from { background: var(--bg); box-shadow: 0 0 0 0 rgba(62,224,210,0); transform: scale(.7); } to { background: color-mix(in srgb, var(--teal) 18%, var(--bg)); box-shadow: 0 0 28px 2px rgba(62,224,210,.4); transform: scale(1); } }
    .extras > div:nth-child(4n+2), .journey li:nth-child(2) { animation-range: entry 8% entry 63%; }
    .extras > div:nth-child(4n+3), .journey li:nth-child(3) { animation-range: entry 16% entry 71%; }
    .extras > div:nth-child(4n+4), .journey li:nth-child(4) { animation-range: entry 24% entry 79%; }
  }

  /* Cards: hover lift and a glow that follows the accent colours */
  .reason, .help-ways > div, .sees > div, .lane, .leave-row, .code-grid span { transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), background .3s; }
  .reason:hover { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); box-shadow: 0 30px 80px -30px rgba(62,224,210,.25); }
  .help-ways > div:hover, .sees > div:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
  .leave-row:hover { transform: translateX(6px); border-color: var(--line-2); }
  .lane:hover { transform: translateY(-3px); border-color: var(--line-2); }
  .extras > div { transition: border-color .3s, transform .5s var(--ease); }
  .extras > div:hover { border-color: var(--teal); }
  .extras > div h3 { transition: color .3s, transform .5s var(--ease); }
  .extras > div:hover h3 { color: var(--teal); transform: translateX(4px); }
  .reason .more { position: relative; text-decoration: none; }
  .reason .more::after { content: " →"; display: inline-block; transition: transform .4s var(--ease); }
  .reason .more:hover::after { transform: translateX(6px); }

  /* Illustrations come alive */
  .code-grid span::after { animation: shimmer 2.8s ease-in-out infinite; }
  .code-grid span:nth-child(3n+2)::after { animation-delay: .35s; } .code-grid span:nth-child(3n)::after { animation-delay: .7s; }
  @keyframes shimmer { 50% { opacity: .12; } }
  .panel-btn { animation: nudge 3.2s ease-in-out infinite; }
  @keyframes nudge { 0%, 85%, 100% { box-shadow: 0 0 0 0 rgba(79,216,188,0); } 92% { box-shadow: 0 0 0 10px rgba(79,216,188,.22); } }

  .layer-outer { animation: ringo 4.5s ease-in-out infinite; }
  .layer-mid { animation: ringm 4.5s ease-in-out .5s infinite; }
  @keyframes ringo { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ind) 14%, transparent); } }
  @keyframes ringm { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 14%, transparent); } }
  .layer-msg { animation: msg 4.5s ease-in-out infinite; transform-origin: 0 100%; }
  @keyframes msg { 0%, 60%, 100% { transform: none; } 70% { transform: scale(1.08); } }

  .hops li::before { animation: hop 3.2s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .45s); }
  .hops li:nth-child(2)::before { --n: 1; } .hops li:nth-child(3)::before { --n: 2; } .hops li:nth-child(4)::before { --n: 3; }
  @keyframes hop { 0%, 20%, 100% { box-shadow: 0 0 0 0 rgba(62,224,210,0); transform: none; } 10% { box-shadow: 0 0 0 7px rgba(62,224,210,.28); transform: scale(1.2); } }
  .hops::after { content: ""; position: absolute; left: 12%; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--teal); animation: packet 3.2s cubic-bezier(.5,0,.5,1) infinite; }
  .lane + .lane .hops::after { animation-delay: -1.1s; }
  @keyframes packet { 0% { left: 12%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: calc(88% - 10px); opacity: 0; } }

  .ico-burn { animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.12, 1.18) rotate(-3deg); } 60% { transform: scale(.96, 1.05) rotate(2deg); } }

  /* Download card: a light that circles the edge, and the icon bobs */
  .download { --spin: 0deg; border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, conic-gradient(from var(--spin), transparent 0 55%, var(--teal) 75%, var(--ind) 88%, transparent) border-box; border: 1px solid transparent; animation: spin 7s linear infinite; }
  @supports (animation-timeline: view()) { .download { animation: reveal linear both, spin 7s linear infinite; animation-timeline: view(), auto; animation-range: entry 0% entry 55%, normal; } }
  @keyframes spin { to { --spin: 360deg; } }
  .download-icon { animation: bob 5s ease-in-out infinite alternate; }
  @keyframes bob { to { transform: translateY(-10px) rotate(-3deg); } }

  /* FAQ opens smoothly */
  .faq .answer { animation: fadeup .5s var(--ease) both; }
  .faq summary::after { transition: transform .35s var(--ease), top .35s var(--ease); }

  /* 404 line */
  .lost svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45,.05,.2,1) .2s forwards; }
}

/* =====================================================================
   2026-11-19 look: matches the home page (night sky, glass, gradient words).
   Later rules here win over the older ones above.
   ===================================================================== */
:root {
  --bg: #06070c;
  --bg-2: rgba(18, 21, 34, .62);
  --surface: rgba(14, 16, 28, .62);
  --raised: rgba(255, 255, 255, .06);
  --hover: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0f6;
  --dim: #a3a7b8;
  --faint: #6f7489;
  --teal: #3ee0d2;
  --ind: #6c7bff;
  --link: #6fe9de;
  --grad: linear-gradient(100deg, #3ee0d2 0%, #6c7bff 70%, #a77bff 100%);
  --glow: rgba(108, 123, 255, .22);
  --paper: #eef0f5;
  --paper-text: #0c0e16;
  --paper-dim: #545a6c;
  --paper-line: rgba(10, 12, 22, .12);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-m: 20px;
  --r-l: 28px;
  --wrap: 1200px;
}

body {
  background:
    radial-gradient(90% 50% at 80% -5%, rgba(108, 123, 255, .28), transparent 60%),
    radial-gradient(70% 45% at 0% 10%, rgba(62, 224, 210, .14), transparent 60%),
    linear-gradient(180deg, #0a0d24 0%, #070814 40%, #05060c 100%) no-repeat;
  background-color: #05060c;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
::selection { background: rgba(62, 224, 210, .35); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.035em; }

/* Header: a floating glass pill */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 14px var(--gutter) 0;
}
.site-head .head-row {
  max-width: 1180px; height: 58px; padding: 0 8px 0 16px; gap: 18px;
  border-radius: 999px;
  background: rgba(10, 12, 22, .62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.brand { font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.nav a { font-size: 14px; padding: 8px 14px; }
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }
.nav .nav-cta, .nav .nav-cta:hover { background: #fff; color: #04060b; padding: 11px 18px; margin-left: 10px; }
.nav .nav-cta:hover { box-shadow: 0 8px 30px rgba(62,224,210,.35); filter: none; }
.menu nav { background: rgba(10, 12, 22, .94); border: 1px solid var(--line); border-radius: 20px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html { scroll-padding-top: 100px; }

/* Buttons */
.btn { border-radius: 999px; }
.btn-primary { background: #fff; color: #04060b; }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(62,224,210,.35); }
.btn-quiet { background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: var(--text); }

/* Page heads: big, tight, with a mono label and a gradient rule */
.page-head { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 5vw, 72px); }
.page-head::before { inset: -120px 0 -30% 0; background: radial-gradient(45% 60% at 18% 20%, rgba(62,224,210,.16), transparent 70%), radial-gradient(40% 60% at 70% 0%, rgba(108,123,255,.22), transparent 70%); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.6rem); line-height: .92; letter-spacing: -.055em; max-width: 14ch; }
.page-head h1::after { content: ""; display: block; width: 96px; height: 4px; margin-top: 28px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 24px rgba(62,224,210,.5); }
.page-head p { color: rgba(238,240,246,.8); }
.page-head .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* Glass surfaces */
.toc, .callout, .expert, .sees > div, .help-ways > div, .table-wrap {
  background: rgba(14, 16, 28, .58);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
}
.toc { border-radius: 22px; padding: 18px 14px; top: 100px; }
.toc p { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 0 10px; }
.toc a:hover { background: rgba(255,255,255,.07); }
.callout { border-color: rgba(62,224,210,.3); }
.expert { border-radius: var(--r-l); }
thead th { background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.help-ways > div { border-radius: 22px; transition: border-color .25s, transform .25s; }
.help-ways > div:hover { border-color: rgba(62,224,210,.35); transform: translateY(-2px); }

/* Reading */
.prose a, .faq .answer a, .help-ways a, .callout a { color: var(--link); }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.04em; }
.prose blockquote { border-left-color: var(--teal); }
.prose code, code { background: rgba(255,255,255,.07); border-color: var(--line); }
mark.todo { background: rgba(255, 214, 102, .16); color: #ffd666; }

/* Features */
.fgroup { border-top-color: var(--line); }
.fgroup-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.fgroup-head { top: 110px; }
.flist > div { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.flist > div:hover { background: rgba(255,255,255,.06); border-color: rgba(62,224,210,.3); }
.flist dd { margin-left: 18px; }

/* Support questions */
.faq-group h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.faq summary { font-family: var(--font-display); letter-spacing: -.01em; padding-right: 56px; }
.faq summary::after {
  content: "+"; top: 50%; right: 0; width: 30px; height: 30px; margin-top: -15px; border: 1px solid var(--line-2); border-radius: 50%;
  transform: none; display: grid; place-items: center; font: 400 18px/1 var(--font); color: var(--dim); transition: transform .3s, background .3s, color .3s;
}
.faq[open] summary::after { transform: rotate(45deg); top: 50%; background: #fff; color: #04060b; border-color: #fff; }
.faq summary:hover { color: var(--text); }
.faq summary:hover::after { border-color: rgba(62,224,210,.6); }

/* 404 */
.lost h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.055em; line-height: .95; }

/* Footer: the light "paper" band, as on the home page */
.site-foot { background: var(--paper); color: var(--paper-text); border-top: 0; margin-top: 40px; }
.site-foot .brand { color: var(--paper-text); }
.foot-grid p { color: var(--paper-dim); }
.foot-grid h2 { color: var(--paper-dim); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.foot-grid ul a { color: var(--paper-text); }
.foot-grid ul a:hover { color: #3b4bd8; }
.foot-base { border-top-color: var(--paper-line); color: var(--paper-dim); }
.site-foot :focus-visible { outline-color: #3b4bd8; }

@media (max-width: 820px) {
  .site-head { padding-top: 10px; }
  .site-head .head-row { height: 54px; }
}
