/* MsgSaver website. Dark is the default theme; light is a warm paper look. */

:root {
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --wrap: 1160px;
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #06080c;
  --bg2: #0a0d13;
  --surface: #0e1219;
  --surface2: #131924;
  --line: rgba(255,255,255,.075);
  --line2: rgba(255,255,255,.14);
  --text: #eef2f6;
  --text2: #b4bfcc;
  --muted: #7d8a9b;
  --brand: #43c0ba;
  --brand-2: #6fd8d2;
  --brand-ink: #04110f;
  --brand-soft: rgba(67,192,186,.12);
  --red: #f0708a; --red-soft: rgba(240,112,138,.13);
  --amber: #e0a85a; --amber-soft: rgba(224,168,90,.13);
  --btn-bg: #43c0ba; --btn-fg: #04110f; --btn-hover: #5fd0ca;
  --ink-bg: #eef2f6; --ink-fg: #0a0d13;
  --ghost-bg: rgba(255,255,255,.04);
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -30px rgba(0,0,0,.8);
  --win-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  --beam-core: rgba(140,240,235,.95);
  --beam-glow: rgba(67,192,186,.55);
  --grid-dot: rgba(255,255,255,.05);
  --nav-bg: rgba(6,8,12,.68);
  --sel-bg: #43c0ba; --sel-fg: #04110f;

  /* MsgSaver app (from dashboard.html, dark) */
  --a-bg: #0d1117; --a-panel: #161b22; --a-panel2: #1c2330; --a-line: #262e3b; --a-line2: #323c4d;
  --a-text: #e6edf3; --a-text2: #c3ccd6; --a-muted: #8b98a9; --a-accent: #43c0ba; --a-on-accent: #06121a;
  --a-red: #f0708a; --a-red-soft: rgba(240,112,138,.13); --a-amber: #e0a85a; --a-amber-soft: rgba(224,168,90,.13);
  --a-bubble: #1f2734; --a-ok: #3fb950; --a-av-s: 38%; --a-av-l: 30%; --a-av-t: 82%;
  /* Chat (neutral messenger look) */
  --c-bg: #0b0f15; --c-head: #121821; --c-in: #1b2330; --c-out: #164c48; --c-text: #e8edf2; --c-meta: #8794a5;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ebe5da;
  --bg2: #e4ddd0;
  --surface: #f4efe7;
  --surface2: #efe9df;
  --line: rgba(31,28,23,.09);
  --line2: rgba(31,28,23,.17);
  --text: #1f1c17;
  --text2: #4f4a42;
  --muted: #6c665c;
  --brand: #0f726c;
  --brand-2: #0f726c;
  --brand-ink: #ffffff;
  --brand-soft: rgba(15,114,108,.10);
  --red: #b8323f; --red-soft: rgba(184,50,63,.09);
  --amber: #8f5c0c; --amber-soft: rgba(143,92,12,.10);
  --btn-bg: #1f1c17; --btn-fg: #ffffff; --btn-hover: #36312a;
  --ink-bg: #1f1c17; --ink-fg: #ffffff;
  --ghost-bg: rgba(255,255,255,.45);
  --card-shadow: 0 1px 2px rgba(31,28,23,.05), 0 10px 28px -12px rgba(31,28,23,.12);
  --win-shadow: 0 40px 90px -30px rgba(60,45,25,.38), 0 8px 24px -8px rgba(60,45,25,.14), 0 0 0 1px rgba(31,28,23,.10);
  --beam-core: rgba(255,255,255,.95);
  --beam-glow: rgba(15,114,108,.20);
  --grid-dot: rgba(31,28,23,.06);
  --nav-bg: rgba(235,229,218,.74);
  --sel-bg: #1f1c17; --sel-fg: #fff;

  --a-bg: #f4f6f9; --a-panel: #ffffff; --a-panel2: #eef2f6; --a-line: #dfe5ec; --a-line2: #cbd3dd;
  --a-text: #17202b; --a-text2: #2f3b49; --a-muted: #5d6a7a; --a-accent: #12807a; --a-on-accent: #ffffff;
  --a-red: #c2304a; --a-red-soft: rgba(194,48,74,.08); --a-amber: #9a6410; --a-amber-soft: rgba(154,100,16,.09);
  --a-bubble: #eef3f7; --a-ok: #1a7f37; --a-av-s: 55%; --a-av-l: 88%; --a-av-t: 28%;
  --c-bg: #f7f3ec; --c-head: #fffdf9; --c-in: #ffffff; --c-out: #d6efe9; --c-text: #1f1c17; --c-meta: #7a7468;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
::selection { background: var(--sel-bg); color: var(--sel-fg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .9;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 600; border-radius: 999px;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px var(--beam-glow); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ink { background: var(--ink-bg); color: var(--ink-fg); border-radius: var(--r); }
.btn-ink:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--ghost-bg); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--muted) inset; }
.btn-lg .ico { width: 18px; height: 18px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; background: transparent; color: var(--text2);
  box-shadow: 0 0 0 1px var(--line2) inset; transition: color .2s, box-shadow .2s;
}
.icon-btn:hover { color: var(--text); box-shadow: 0 0 0 1px var(--muted) inset; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  cursor: pointer; color: var(--text2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line2);
}
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav::before {
  content: ""; position: absolute; inset: 0; background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; opacity: 0; transition: opacity .3s, border-color .3s;
}
.nav.scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.nav-in > * { position: relative; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; justify-self: center; }
.nav-links a { text-decoration: none; color: var(--text2); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.ico-sun { display: none; } .ico-moon { display: block; }
[data-theme="dark"] .ico-sun { display: block; } [data-theme="dark"] .ico-moon { display: none; }

/* Hero */
.hero { position: relative; padding: 40px 0 40px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.beam { position: absolute; left: 50%; top: -80px; width: 900px; height: 760px; transform: translateX(-50%); z-index: -1; pointer-events: none; }
.beam i {
  position: absolute; left: 50%; top: 0; width: 3px; height: 300px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--beam-core) 55%, var(--beam-core) 80%, transparent);
  filter: blur(1px); opacity: .9; animation: beamPulse 6s ease-in-out infinite;
}
.beam b {
  position: absolute; left: 50%; top: 0; width: 640px; height: 100%; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 10% 34% at 50% 22%, var(--beam-glow), transparent 70%),
    radial-gradient(ellipse 46% 26% at 50% 50%, var(--beam-glow), transparent 72%);
  filter: blur(34px); opacity: .85; animation: beamPulse 6s ease-in-out infinite;
}
[data-theme="light"] .beam i { opacity: .7; width: 2px; }
[data-theme="light"] .beam b { opacity: .8; }
@keyframes beamPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px;
  text-decoration: none; font-size: 13px; color: var(--text2);
  background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--line2) inset;
  backdrop-filter: blur(8px); transition: color .2s;
}
.pill:hover { color: var(--text); }
.pill .ico { width: 14px; height: 14px; }
.pill-tag { background: var(--brand); color: var(--brand-ink); padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.hero-title { font-size: clamp(56px, 9.4vw, 120px); margin-top: 26px; }
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--brand); position: relative; }
[data-theme="dark"] .hero-title em { text-shadow: 0 0 40px rgba(67,192,186,.35); }
.lead { max-width: 560px; margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--text2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.hero-meta { margin-top: 16px; font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }
.vt-shot { display: block; margin: 4px 0 14px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.vt-shot img { display: block; width: 100%; height: auto; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; text-decoration: none; }
.store-badge img { display: block; height: 44px; width: auto; }
.store-badge[aria-disabled="true"] { cursor: default; }
.store-badge[aria-disabled="true"] img { opacity: .72; }
.store-badge[href]:hover img { opacity: .9; }
.sb-soon { font-size: 11.5px; color: var(--muted); padding: 4px 9px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line2) inset; }
.store-badge[href] .sb-soon { display: none; }
.sb-light { display: none !important; }
[data-theme="light"] .sb-dark { display: none !important; }
[data-theme="light"] .sb-light { display: block !important; }

/* Demo */
.demo-wrap { margin-top: 56px; }
.scenes {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px;
}
.scene-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 0; cursor: pointer; background: var(--ghost-bg); color: var(--text2); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--line) inset; transition: background .2s, color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.scene-btn .ico { width: 15px; height: 15px; }
.scene-btn:hover { color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.scene-btn[aria-selected="true"] { background: var(--surface2); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.scene-btn[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--brand);
}
.scene-you { color: var(--brand); }
.scene-you[aria-selected="true"] { color: var(--brand); }

.stage {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden; background: var(--a-bg);
  box-shadow: var(--win-shadow); position: relative; height: 560px;
}
[data-theme="dark"] .stage::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(111,216,210,.35), transparent 30%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; border: 1px solid transparent;
}

/* phone/chat */
.phone { display: flex; flex-direction: column; background: var(--c-bg); border-right: 1px solid var(--a-line); min-height: 0; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--c-head); border-bottom: 1px solid var(--a-line); }
.phone-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.phone-who strong { font-size: 14.5px; color: var(--c-text); }
.phone-who span { font-size: 12px; color: var(--c-meta); transition: color .2s; }
.phone-who span.typing { color: var(--brand); }
.plat { margin-left: auto; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: var(--a-muted); box-shadow: 0 0 0 1px var(--a-line2) inset; }
.chat { flex: 1; min-height: 0; overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.msg {
  max-width: 82%; padding: 8px 11px 6px; border-radius: 14px; font-size: 14.5px; line-height: 1.35; color: var(--c-text);
  background: var(--c-in); align-self: flex-start; border-top-left-radius: 4px; position: relative;
  animation: msgIn .35s var(--ease) both; word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.out { align-self: flex-end; background: var(--c-out); border-top-left-radius: 14px; border-top-right-radius: 4px; }
.msg .meta { display: block; text-align: right; font-size: 10.5px; color: var(--c-meta); margin-top: 2px; }
.msg .meta em { font-style: normal; margin-right: 4px; }
.msg.day { align-self: center; background: transparent; color: var(--c-meta); font-size: 11.5px; padding: 2px 0; animation: none; }
.msg.gone { color: var(--c-meta); font-style: italic; display: flex; flex-direction: column; }
.msg.gone .g { display: inline-flex; align-items: center; gap: 6px; }
.msg.gone .ico { width: 14px; height: 14px; }
.msg.swap .t { animation: swapText .5s var(--ease); }
.msg.photo { padding: 4px; }
.msg.photo .pic { width: 200px; height: 150px; border-radius: 10px; background: var(--pic); }
.msg.photo .meta { padding: 0 6px 2px; }
.msg.voice .vrow { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 2px 0; }
.msg.voice .play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.msg.voice .play .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }
.wave {
  flex: 1; height: 22px; border-radius: 2px; opacity: .75;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 9h3v2H0zM5 6h3v8H5zM10 3h3v14h-3zM15 7h3v6h-3zM20 1h3v18h-3zM25 5h3v10h-3zM30 8h3v4h-3zM35 4h3v12h-3zM40 2h3v16h-3zM45 6h3v8h-3zM50 8h3v4h-3zM55 3h3v14h-3zM60 5h3v10h-3zM65 7h3v6h-3zM70 2h3v16h-3zM75 6h3v8h-3zM80 8h3v4h-3zM85 4h3v12h-3zM90 7h3v6h-3zM95 9h3v2h-3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 9h3v2H0zM5 6h3v8H5zM10 3h3v14h-3zM15 7h3v6h-3zM20 1h3v18h-3zM25 5h3v10h-3zM30 8h3v4h-3zM35 4h3v12h-3zM40 2h3v16h-3zM45 6h3v8h-3zM50 8h3v4h-3zM55 3h3v14h-3zM60 5h3v10h-3zM65 7h3v6h-3zM70 2h3v16h-3zM75 6h3v8h-3zM80 8h3v4h-3zM85 4h3v12h-3zM90 7h3v6h-3zM95 9h3v2h-3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.typing-dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-meta); animation: dot 1.1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes swapText { 0% { opacity: 0; filter: blur(4px); } 100% { opacity: 1; filter: none; } }
.msg.zap { animation: zap .45s var(--ease); }
@keyframes zap { 0% { transform: none; } 30% { transform: scale(.96); filter: blur(1px); opacity: .5; } 100% { transform: none; opacity: 1; } }

.composer { padding: 10px 12px 12px; border-top: 1px solid var(--a-line); background: var(--c-head); display: none; flex-direction: column; gap: 8px; }
.stage.you .composer { display: flex; }
.composer-hint { font-size: 12px; color: var(--c-meta); }
.composer-row { display: flex; gap: 8px; }
.composer input {
  flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--a-line2);
  background: var(--c-bg); color: var(--c-text); padding: 0 14px; font: inherit; font-size: 14px; outline: none;
}
.composer input:focus { border-color: var(--brand); }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.send:disabled { opacity: .45; cursor: default; }
.composer-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.composer-acts[hidden] { display: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--c-text);
  background: var(--c-in); box-shadow: 0 0 0 1px var(--a-line2) inset;
}
.chip-btn .ico { width: 14px; height: 14px; }
.chip-btn.danger { color: var(--a-red); }
.chip-btn:hover { box-shadow: 0 0 0 1px var(--c-meta) inset; }
.chip-btn.pulse { animation: chipPulse 1.6s ease-in-out infinite; }
@keyframes chipPulse { 0%,100% { box-shadow: 0 0 0 1px var(--a-line2) inset, 0 0 0 0 rgba(240,112,138,.0); } 50% { box-shadow: 0 0 0 1px var(--a-red) inset, 0 0 0 4px var(--a-red-soft); } }

/* app window */
.appwin { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-bg); color: var(--a-text); }
.appwin-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--a-line); background: var(--a-panel); font-size: 12px; color: var(--a-muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--a-line2); }
.appwin-title { font-weight: 600; color: var(--a-text2); }
.appwin-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.appwin-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--a-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-ok) 25%, transparent); transition: background .3s, box-shadow .3s; }
.appwin-state.off i { background: var(--a-muted); box-shadow: none; }
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 22px 0; transition: opacity .4s, filter .4s; }
.app.closed { opacity: .25; filter: grayscale(1); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head img { border-radius: 9px; }
.app-head strong { display: block; font-size: 16px; }
.app-head span { font-size: 12.5px; color: var(--a-muted); }
.app-conn { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.conn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; background: var(--a-panel); border: 1px solid var(--a-line); font-size: 12.5px; color: var(--a-muted); }
.conn b { color: var(--a-text); font-weight: 600; margin-right: 3px; }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--a-muted); }
.conn i.ok { background: var(--a-ok); }
.app-tabs { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--a-line); }
.tab { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--a-line2); color: var(--a-text2); }
.tab.on { border-color: var(--a-accent); background: color-mix(in srgb, var(--a-accent) 12%, transparent); color: var(--a-text); font-weight: 600; }
.tab em { font-style: normal; color: var(--a-muted); margin-left: 3px; font-weight: 500; }
.app-search { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; min-width: 180px; border-radius: 999px; border: 1px solid var(--a-line2); color: var(--a-muted); font-size: 12.5px; }
.app-search .ico { width: 13px; height: 13px; }
.feed { flex: 1; min-height: 0; overflow: hidden; padding: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.feed-day { font-size: 12px; color: var(--a-muted); margin: 2px 2px 0; }

.rec {
  display: flex; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--a-panel); border: 1px solid var(--a-line);
  animation: recIn .6s var(--ease) both;
}
.rec.new { border-color: color-mix(in srgb, var(--a-accent) 55%, var(--a-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 14%, transparent); }
@keyframes recIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.av {
  --h: 200; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: hsl(var(--h) var(--a-av-s) var(--a-av-l)); color: hsl(var(--h) 45% var(--a-av-t));
}
.av-sm { width: 34px; height: 34px; font-size: 13px; }
.av-xs { width: 22px; height: 22px; font-size: 10px; }
.rec-body { flex: 1; min-width: 0; }
.rec-top { display: flex; align-items: center; gap: 7px; }
.rec-top b { font-size: 14px; }
.rec-top time { margin-left: auto; font-size: 12px; color: var(--a-muted); }
.ptag { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.ptag.wa { color: var(--a-accent); background: color-mix(in srgb, var(--a-accent) 14%, transparent); }
.ptag.ig { color: var(--a-amber); background: var(--a-amber-soft); }
.rec-act { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--a-muted); }
.act-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--a-red-soft); color: var(--a-red); }
.act-ic.edit { background: var(--a-amber-soft); color: var(--a-amber); }
.act-ic .ico { width: 12px; height: 12px; }
.tag-away { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--a-accent) 55%, transparent); color: var(--a-accent); font-size: 11px; }
.tag-away .ico { width: 11px; height: 11px; }
.bubble { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--a-bubble); font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.bubble.hit { animation: hit 1.2s var(--ease); }
@keyframes hit { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a-accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.muted-bub { display: inline-flex; align-items: center; gap: 7px; color: var(--a-muted); font-size: 13px; }
.edit-pair { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.edit-pair .bubble { margin-top: 0; }
.edit-pair .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); margin-right: 8px; font-weight: 600; }
.edit-pair .old { box-shadow: 0 0 0 1px color-mix(in srgb, var(--a-amber) 45%, transparent) inset; }
.rec .pic { width: 180px; height: 120px; border-radius: 10px; margin-top: 8px; background: var(--pic); }
.rec .vrow { display: flex; align-items: center; gap: 10px; width: 220px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--a-bubble); color: var(--a-text2); font-size: 12px; }
.rec .vrow .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--a-accent); color: var(--a-on-accent); }
.rec .vrow .play .ico { width: 11px; height: 11px; fill: currentColor; stroke: none; margin-left: 2px; }
.rec-actions { display: flex; gap: 6px; margin-top: 8px; }
.rec-actions span { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--a-line2); color: var(--a-text2); }
.rec.ghost { opacity: .55; animation: none; }

/* Privacy mode scene */
.msg .meta .tk { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--c-meta); }
.msg .meta .tk .ico { width: 15px; height: 15px; }
.msg .meta .tk.mic .ico { width: 13px; height: 13px; }
.msg.voice.out { align-self: flex-end; }
.msg .meta .tk.hold { animation: tkHold 1.4s var(--ease); }
@keyframes tkHold { 0%, 100% { transform: none; } 30% { transform: scale(1.35); color: var(--brand); } }
.pm-card { padding: 13px 14px; border-radius: 12px; background: var(--a-panel); border: 1px solid color-mix(in srgb, var(--a-accent) 55%, var(--a-line)); animation: recIn .6s var(--ease) both; display: flex; flex-direction: column; gap: 4px; }
.pm-head { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 4px; }
.pm-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--a-accent) 16%, transparent); color: var(--a-accent); }
.pm-ic .ico { width: 13px; height: 13px; }
.pm-card label { display: flex; align-items: center; font-size: 13px; color: var(--a-text2); padding: 4px 0; }
.pm-card .sw { background: var(--a-line2); }
.pm-card .sw::after { background: var(--a-bg, #fff); }
.pm-card .sw.on { background: var(--a-accent); }
.pm-head-sw { display: none; margin-left: auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--a-text2); }
.pm-head-sw .sw { margin-left: 0; }
.pm-log { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.pm-log:empty { display: none; }
.pm-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--a-text2); padding-top: 7px; border-top: 1px solid var(--a-line); animation: recIn .5s var(--ease) both; }
.pm-row b { color: var(--a-text); }
.pm-dot { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--a-accent) 14%, transparent); color: var(--a-accent); }
.pm-dot .ico { width: 12px; height: 12px; }

/* Story views scene */
.stage.story .chat { justify-content: flex-start; }
.sv { display: flex; flex-direction: column; gap: 10px; min-height: 0; animation: msgIn .4s var(--ease) both; }
.sv-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--a-line); }
.sv-thumb { flex: none; width: 30px; height: 48px; border-radius: 6px; background: var(--pic); }
.sv-top div { display: flex; flex-direction: column; line-height: 1.3; }
.sv-top b { font-size: 13.5px; color: var(--c-text); }
.sv-top div span { font-size: 11.5px; color: var(--c-meta); }
.sv-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--c-meta); }
.sv-live i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: svPulse 1.4s infinite; }
@keyframes svPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sv-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-meta); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sv-n { font-size: 12px; color: var(--c-text); padding: 1px 8px; border-radius: 999px; background: var(--c-in); letter-spacing: 0; }
.sv-n.bump { animation: tkHold 1s var(--ease); }
.sv-list { display: flex; flex-direction: column; gap: 8px; }
.sv-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--c-text); animation: msgIn .45s var(--ease) both; }
.sv-row b { font-weight: 600; }
.sv-row time { margin-left: auto; font-size: 11.5px; color: var(--c-meta); }
.sv-play { display: flex; gap: 12px; align-items: center; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--a-line); animation: recIn .5s var(--ease) both; }
.sv-play[hidden] { display: none; }
.sv-frame { position: relative; flex: none; width: 64px; height: 112px; border-radius: 9px; background: var(--pic, #333); transition: background .3s; overflow: hidden; }
.sv-bars { position: absolute; left: 5px; right: 5px; top: 5px; display: flex; gap: 3px; }
.sv-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-by { position: absolute; left: 6px; top: 12px; font-size: 9.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sv-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; }
.sv-info b { font-size: 13.5px; color: var(--a-text); }
.sv-step { color: var(--a-muted); }
.sv-seen { display: inline-flex; align-items: center; gap: 6px; color: var(--a-accent); font-weight: 600; }
.sv-seen .ico { width: 13px; height: 13px; }

.away-banner {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--a-accent) 45%, var(--a-line)); background: color-mix(in srgb, var(--a-accent) 6%, var(--a-panel));
  animation: recIn .6s var(--ease) both;
}
.away-banner strong { font-size: 14px; }
.away-banner p { font-size: 12.5px; color: var(--a-muted); margin-top: 3px; line-height: 1.45; }
.away-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--a-accent) 14%, transparent); color: var(--a-accent); }
.away-banner .btn { flex: none; background: var(--a-accent); color: var(--a-on-accent); align-self: center; border-radius: 8px; }

/* Windows-style toast */
.toast {
  position: absolute; right: 16px; bottom: 16px; width: 300px; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--a-panel) 92%, transparent);
  border: 1px solid var(--a-line2); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .55s var(--ease), opacity .4s; z-index: 4;
}
.toast.show { transform: none; opacity: 1; }
.toast img { border-radius: 4px; margin-top: 2px; }
.toast div { display: flex; flex-direction: column; min-width: 0; }
.toast-app { font-size: 11px; color: var(--a-muted); }
.toast strong { font-size: 13px; margin-top: 2px; }
.toast span:last-child { font-size: 12.5px; color: var(--a-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0 4px; }
.demo-foot .mono { font-size: 12.5px; color: var(--muted); }
.demo-note { margin-top: 6px; padding: 0 4px; font-size: 12px; color: var(--muted); opacity: .8; }

/* Quick answers */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 56px; padding-bottom: 24px; }
.q { border-top: 1px solid var(--line2); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.q h3 { font-size: 15px; font-weight: 600; }
.q p { font-size: 14px; color: var(--text2); flex: 1; }
.q a, .q .link-btn { font-size: 13.5px; color: var(--text2); text-underline-offset: 3px; text-decoration-color: var(--line2); }
.q a:hover { color: var(--text); }

/* Sections */
.section { padding: 110px 0 20px; }
.sec-head { max-width: 860px; margin: 0 auto 48px; }
.sec-head p { max-width: 620px; margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(44px, 6.4vw, 78px); }
.sec-head p { margin-top: 16px; color: var(--text2); font-size: 17px; }
.grid { display: grid; gap: 16px; }
.feat-grid { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.feat { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), border-color .3s; }
.feat:hover { transform: translateY(-3px); border-color: var(--line2); }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 6px; }
.feat p { font-size: 14.5px; color: var(--text2); }
.feat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.feat-ic .ico { width: 18px; height: 18px; }
.feat-ic.red { background: var(--red-soft); color: var(--red); }
.feat-ic.amber { background: var(--amber-soft); color: var(--amber); }
.feat-ic.brand { background: var(--brand-soft); color: var(--brand); }
.mini { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mini-bub { font-size: 13px; padding: 7px 11px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); display: inline-block; }
.mini-bub.gone { color: var(--muted); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.mini-bub.gone .ico { width: 13px; height: 13px; }
.mini-bub.kept { border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: var(--brand-soft); }
.mini-bub s { color: var(--muted); text-decoration-color: var(--amber); }
.mini-bub mark { background: color-mix(in srgb, var(--brand) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.tag-amber { font-style: normal; font-size: 10.5px; color: var(--amber); font-weight: 600; margin-left: 4px; }
.mini-media { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ph { width: 64px; height: 48px; border-radius: 8px; }
.ph-a { background: linear-gradient(160deg, #f7b267 0%, #f4845f 45%, #7b4b94 100%); }
.ph-b { background: linear-gradient(200deg, #9be7e3 0%, #3a8fb7 60%, #1d3557 100%); }
.vn { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--line); color: var(--text2); flex: 1; min-width: 120px; }
.vn .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; color: var(--brand); }
.vn .wave { height: 18px; color: var(--text2); }
.vn em { font-style: normal; font-size: 11px; font-family: var(--font-mono); }
.mini-toast { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line2); width: 100%; }
.mini-toast img { border-radius: 4px; margin-top: 2px; }
.mini-toast div { display: flex; flex-direction: column; font-size: 12.5px; }
.mini-toast span { color: var(--muted); }
.mini-list { gap: 4px; align-items: stretch; width: 100%; }
.mini-list label { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 5px 4px; }
.mini-list .av { --a-av-s: 40%; --a-av-l: 45%; --a-av-t: 95%; }
.sw { margin-left: auto; width: 30px; height: 17px; border-radius: 999px; background: var(--line2); position: relative; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); transition: left .25s; }
.sw.on { background: var(--brand); }
.sw.on::after { left: 15px; }
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.feat-text { display: flex; flex-direction: column; gap: 10px; }
.pm-list { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.pm-list li { display: flex; gap: 9px; font-size: 14px; color: var(--text2); line-height: 1.45; }
.pm-list li b { color: var(--text); font-weight: 600; }
.pm-list .ico { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 2px; }
.feat-fine { font-size: 13px !important; color: var(--muted) !important; }
.mini-pm { margin: 0; padding: 18px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); gap: 14px; align-items: stretch; }
.mini-pm label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.mini-pm label .ico { width: 15px; height: 15px; color: var(--brand); }
.pm-say { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.pm-who { align-self: flex-start; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-say .mini-bub { background: var(--surface); }
.mini-tk { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--muted); }
.mini-tk .ico { width: 15px; height: 15px; }
.pm-state { font-size: 12px; color: var(--muted); }
.pm-story { display: flex; align-items: center; gap: 11px; padding-top: 14px; border-top: 1px solid var(--line); }
.pm-story .ring { flex: none; padding: 2px; border-radius: 50%; background: conic-gradient(var(--brand), var(--amber), var(--brand)); display: grid; }
.pm-story .ring .av { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface2); --a-av-s: 40%; --a-av-l: 45%; --a-av-t: 95%; }
.pm-story div { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; }
.pm-story b { font-weight: 600; font-size: 13px; }
.pm-story span { color: var(--muted); }
.mini-search { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; width: 100%; }
.mini-search .ico { width: 13px; height: 13px; color: var(--muted); }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev .split-text { order: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow .ico { width: 14px; height: 14px; }
.split-text h2 { font-size: clamp(44px, 5.6vw, 72px); margin-top: 16px; }
.split-text > p { margin-top: 18px; font-size: 17px; color: var(--text2); max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; color: var(--text2); }
.ticks .ico { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--brand); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.appcard { background: var(--a-bg); color: var(--a-text); border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--win-shadow); }
.appcard .rec { animation: none; }

.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0 10px; padding: 64px 36px; min-height: 360px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.flow-node b { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.flow-node span { display: inline-flex; align-items: center; gap: 5px; }
.flow-node span .ico { width: 12px; height: 12px; }
.flow-ic { width: 54px; height: 54px; border-radius: 16px; display: grid !important; place-items: center; background: var(--surface2); border: 1px solid var(--line2); color: var(--text2); }
.flow-ic .ico { width: 22px !important; height: 22px !important; }
.flow-node.main .flow-ic { width: 70px; height: 70px; border-radius: 20px; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: var(--brand); box-shadow: 0 0 40px -6px var(--beam-glow); }
.flow-node.main .flow-ic .ico { width: 28px !important; height: 28px !important; }
.flow-node.off { opacity: .6; }
.flow-line { width: 100%; min-width: 40px; height: 2px; position: relative; background: var(--line2); overflow: hidden; }
.flow-line i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: flow 1.8s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.flow-line.cut { background: repeating-linear-gradient(90deg, var(--line2) 0 4px, transparent 4px 8px); overflow: visible; }
.flow-line.cut i { display: none; }
.flow-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line2); color: var(--red); }
.flow-x .ico { width: 12px; height: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; }
.step-n { display: block; font-size: 44px; font-weight: 400; color: var(--muted); opacity: .6; line-height: 1; letter-spacing: -.04em; }
.step h3 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text2); }
.works-with { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.works-with b { color: var(--text); font-weight: 600; }
.works-with i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* Limits */
.limits { padding: 8px 26px; }
.lim { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lim:last-child { border-bottom: 0; }
.lim-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); color: var(--text2); }
.lim b { font-weight: 600; font-size: 15.5px; }
.lim p { margin-top: 4px; font-size: 14.5px; color: var(--text2); }

/* FAQ / accordions */
.faq, .dl-acc { display: flex; flex-direction: column; }
.faq details, .dl-acc details { border-bottom: 1px solid var(--line2); }
.faq summary, .dl-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-size: 16.5px; font-weight: 500;
}
.faq summary::-webkit-details-marker, .dl-acc summary::-webkit-details-marker { display: none; }
.faq summary .ico, .dl-acc summary .ico { transition: transform .3s var(--ease); color: var(--muted); }
details[open] > summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--text2); font-size: 15px; max-width: 700px; }

/* Final CTA */
.final { position: relative; padding: 150px 0 120px; overflow: hidden; isolation: isolate; margin-top: 60px; }
.beam-sm { top: -40px; height: 600px; }
.final-title { font-size: clamp(46px, 7.4vw, 96px); }
.final-title em { font-style: normal; color: var(--brand); }
.final .hero-cta { margin-top: 34px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; }
.foot-brand p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 360px; }
.foot-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--text2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Download dialog (warm paper in both themes, like a printed note) */
.dl {
  --d-bg: #f5f0e8; --d-text: #1f1c17; --d-text2: #4f4a42; --d-muted: #7a7366; --d-line: rgba(31,28,23,.12);
  width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px;
  background: var(--d-bg); color: var(--d-text); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.6);
}
[data-theme="dark"] .dl { --d-bg: #11161e; --d-text: #eef2f6; --d-text2: #b4bfcc; --d-muted: #7d8a9b; --d-line: rgba(255,255,255,.1); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.dl::backdrop { background: rgba(10,8,5,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl[open] { animation: dlIn .45s var(--ease); }
@keyframes dlIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.dl-in { position: relative; padding: 36px 36px 26px; }
.dl-close { position: absolute; top: 18px; right: 18px; box-shadow: none; color: var(--d-muted); }
.dl-close:hover { color: var(--d-text); box-shadow: none; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--d-line); box-shadow: 0 2px 0 var(--d-line); }
.dl-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -.025em; }
.dl-sub { margin-top: 12px; font-size: 14px; color: var(--d-text2); padding-bottom: 22px; border-bottom: 1px solid var(--d-line); }
.dl-steps { padding-top: 20px; }
.dl-steps-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.dl-count { font-size: 12.5px; color: var(--d-muted); }
.dl-slides { display: grid; margin-top: 14px; }
.dl-slide { grid-area: 1 / 1; opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.dl-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.dl-slide.left { transform: translateX(-16px); }
.dl-num { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.dl-num .mono { font-size: 64px; line-height: 1; font-weight: 300; color: var(--d-muted); opacity: .6; letter-spacing: -.05em; }
.dl-num h3 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.mock { border-radius: 14px; min-height: 210px; position: relative; overflow: hidden; }
.mock-browser { background: #202124; color: #e8eaed; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.mb-head { font-size: 13px; color: #bdc1c6; }
.mb-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.mb-file { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.mb-file .ico { width: 20px; height: 20px; color: #9aa0a6; margin-top: 2px; }
.mb-file b { display: block; font-size: 14px; font-weight: 600; }
.mb-file span { font-size: 13px; color: #9aa0a6; }
.mb-btn { flex: none; background: #fff; color: #202124; font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 6px; }
.mb-foot { font-size: 12.5px; color: #9aa0a6; margin-top: auto; }
.mock-ss { background: #0063b1; color: #fff; padding: 24px 26px; font-family: "Segoe UI", system-ui, sans-serif; }
.mock-ss h4 { font-size: 22px; font-weight: 300; }
.mock-ss p { font-size: 13.5px; margin-top: 10px; line-height: 1.45; opacity: .95; }
.mock-ss .ss-meta { margin-top: 14px; }
.ss-link { display: inline-block; margin-top: 16px; font-size: 13.5px; text-decoration: underline; font-weight: 600; }
.ss-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ss-btn { font-size: 13.5px; padding: 8px 22px; border: 1px solid rgba(255,255,255,.55); }
.ss-btn.primary { background: #fff; color: #1f1f1f; border-color: #fff; }
.hl { animation: hl 1.8s ease-in-out infinite; }
@keyframes hl { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,.35); } }
.hl-u { animation: hlu 1.8s ease-in-out infinite; border-radius: 3px; }
@keyframes hlu { 0%,100% { background: transparent; } 50% { background: rgba(255,255,255,.18); } }
.dl-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.dl-nav .link-btn { text-decoration: none; color: var(--d-text2); }
.dl-nav .link-btn:disabled { opacity: .35; cursor: default; }
.dl-dots { display: flex; gap: 8px; }
.dl-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--d-line); transition: width .3s var(--ease), background .3s; cursor: pointer; }
.dl-dots i.on { width: 22px; background: var(--d-text); }
.dl-go { width: 100%; margin-top: 22px; height: 54px; }
.dl-started { margin-top: 10px; font-size: 13.5px; color: var(--d-text2); text-align: center; }
.dl-acc { margin-top: 14px; }
.dl-acc details { border-color: var(--d-line); }
.dl-acc summary { font-size: 15px; padding: 16px 0; }
.dl-acc details p { font-size: 14px; color: var(--d-text2); padding-bottom: 12px; }
.dl-acc details p:last-child { padding-bottom: 18px; }
.dl-acc a, .dl-started a { color: var(--d-text); text-underline-offset: 3px; }
.dl-fine { margin-top: 16px; font-size: 12.5px; color: var(--d-muted); }
.dl-later { display: block; margin: 16px auto 0; color: var(--d-text2); text-decoration: none; font-size: 14.5px; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .stage { grid-template-columns: 1fr; height: auto; }
  .phone { border-right: 0; border-bottom: 1px solid var(--a-line); height: 300px; }
  .appwin { height: 470px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-in { padding: 10px 16px; gap: 12px; }
  .hero { padding-top: 16px; }
  .hero-in { padding-top: 20px; }
  .hero-title { font-size: 12.2vw; }
  .pill { font-size: 12px; }
  .lead { font-size: 16.5px; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .beam { width: 600px; }
  .beam b { width: 340px; }
  .demo-wrap { margin-top: 44px; }
  .scenes { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
  .scenes::-webkit-scrollbar { display: none; }
  .scene-btn { flex: none; }
  .stage { border-radius: var(--r-lg); }
  .app { padding: 14px 14px 0; }
  .app-head { display: none; }
  .app-conn { margin-top: 0; }
  .phone { height: 250px; }
  .appwin { height: 410px; }
  .phone-top { padding: 10px 14px; }
  .chat { padding: 10px 12px; }
  .msg { font-size: 14px; }
  .app-conn .conn { padding: 5px 9px; font-size: 11.5px; }
  .app-search { display: none; }
  .tab { font-size: 11.5px; padding: 4px 9px; }
  .rec { padding: 11px; gap: 10px; }
  .av { width: 32px; height: 32px; font-size: 11.5px; }
  .rec .pic { width: 150px; height: 100px; }
  .rec .vrow { width: 100%; max-width: 220px; }
  .feat-wide { grid-template-columns: 1fr; gap: 18px; }
  .pm-list { grid-template-columns: 1fr; }
  .stage.pm .app-tabs { display: none; }
  .pm-card label { display: none; }
  .pm-head-sw { display: inline-flex; }
  .pm-card { padding: 11px 12px; }
  .pm-row { font-size: 12px; padding-top: 6px; }
  .sv { gap: 8px; }
  .sv-top { padding-bottom: 8px; }
  .sv-list { gap: 6px; }
  .sv-row { font-size: 13px; }
  .sv-row .av { width: 22px; height: 22px; font-size: 10px; }
  .sv-thumb { width: 24px; height: 38px; }
  .sv-frame { width: 56px; height: 98px; }
  .toast { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .demo-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quick { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .section { padding-top: 84px; }
  .feat-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  .flow-line { width: 2px; height: 34px; margin: 0 auto; }
  .flow-line i { width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--brand), transparent); animation-name: flowV; }
  .flow-line.cut { background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px); }
  .away-banner { flex-wrap: wrap; }
  .away-banner .btn { margin-left: 44px; }
  .foot-in { grid-template-columns: 1fr; }
  .dl-in { padding: 26px 18px 20px; }
  .dl-num { gap: 14px; }
  .dl-num .mono { font-size: 46px; }
  .mock-ss h4 { font-size: 19px; }
  .mb-row { flex-direction: column; align-items: flex-start; }
}
@keyframes flowV { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
#dlTitle:focus { outline: none; }

/* Guides (/guides/*): article pages and the guides hub. Same tokens as the home page. */
.g-hero { position: relative; padding: 44px 0 10px; isolation: isolate; overflow-x: clip; }
.g-hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.g-title { font-size: clamp(40px, 6vw, 68px); max-width: 900px; }
.g-lead { max-width: 680px; margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--text2); }
.g-meta { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.answer { margin: 34px 0 6px; padding: 22px 24px; border-left: 3px solid var(--brand); }
.answer .eyebrow { margin-bottom: 10px; }
.answer p { font-size: 16px; line-height: 1.6; color: var(--text); }
.answer p + p { margin-top: 10px; }
.prose { padding-top: 20px; padding-bottom: 10px; font-size: 16px; line-height: 1.7; color: var(--text2); }
.prose h2 { margin: 46px 0 12px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 38px); line-height: 1; color: var(--text); }
.prose h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; color: var(--text); }
.prose p { margin: 12px 0; max-width: 720px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; max-width: 720px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--brand); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: 13.5px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tbl-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--text); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.note { margin: 20px 0; padding: 16px 18px; display: flex; gap: 12px; font-size: 15px; }
.note .ico { width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.cta-box { margin: 46px 0 10px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center; }
.cta-box h2 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--text); }
.cta-box p { margin-top: 10px; font-size: 15px; color: var(--text2); max-width: 560px; }
.cta-box .hero-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.related { padding-top: 30px; padding-bottom: 80px; }
.related h2 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel { display: block; padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.rel:hover { border-color: var(--line2); transform: translateY(-2px); }
.rel b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.rel span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text2); line-height: 1.5; }
.hub-group { margin-top: 40px; }
.hub-group:first-child { margin-top: 0; }
.hub-group > h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 32px; letter-spacing: -.005em; line-height: 1; color: var(--text); margin-bottom: 16px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.foot-guides { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; }
.foot-guides a { color: var(--text2); text-decoration: none; }
.foot-guides a:hover { color: var(--text); }
@media (max-width: 980px) {
  .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-hero { padding-top: 22px; }
  .cta-box { grid-template-columns: 1fr; padding: 22px 18px; }
  .rel-grid, .hub-grid { grid-template-columns: 1fr; }
  .answer { padding: 18px; }
}
