/* Relay website. Dark-first, one accent colour. */

:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --surface: #11141c;
  --surface-2: #171b25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef4;
  --muted: #9aa2b4;
  --faint: #6b7385;
  --accent: #6f8fff;
  --accent-2: #a4b6ff;
  --accent-ink: #0a0f22;
  --accent-glow: rgba(111, 143, 255, 0.35);
  --ok: #4ad295;
  --warn: #f0b45a;
  --danger: #ff7a85;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--faint); }
.grad {
  background: linear-gradient(100deg, #fff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: #8aa4ff; color: var(--accent-ink); box-shadow: 0 10px 36px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-danger { background: transparent; border-color: rgba(255,122,133,.4); color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.cta-row.center { justify-content: center; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.preview-bar { background: linear-gradient(90deg, #1a2140, #1d1733); color: var(--accent-2); text-align: center; font-size: 13px; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(7, 8, 12, .6); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 12, .82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(140deg, #8ea7ff, #4f6df0 60%, #3b4fc4); box-shadow: 0 4px 18px -4px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-plain { color: var(--muted); font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; margin: 0 auto; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; background: rgba(9,10,15,.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; }
  .nav-links a { display: block; padding: 12px; font-size: 17px; }
  .nav-actions { justify-content: space-between; padding: 8px 12px 0; border-top: 1px solid var(--line); }
}

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; overflow-wrap: anywhere; }
.flash-ok { border-color: rgba(74,210,149,.4); color: #b6f0d5; }
.flash-error { border-color: rgba(255,122,133,.45); color: #ffc7cc; }
.flash-info { border-color: rgba(111,143,255,.45); color: var(--accent-2); }

/* ---------- Hero story: one email through Relay, played by scrolling ---------- */
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent-2); padding: 6px 12px; border: 1px solid rgba(111,143,255,.3); border-radius: 999px; background: rgba(111,143,255,.08); margin-bottom: 22px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,210,149,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,210,149,.55); } 70% { box-shadow: 0 0 0 9px rgba(74,210,149,0); } 100% { box-shadow: 0 0 0 0 rgba(74,210,149,0); } }

.story { position: relative; }
.story-pin { position: relative; overflow: hidden; padding: 56px 0 48px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 1000px; pointer-events: none;
  background:
    radial-gradient(640px 400px at 70% 38%, rgba(111,143,255,.22), transparent 70%),
    radial-gradient(520px 320px at 18% 12%, rgba(160,120,255,.11), transparent 70%);
  filter: blur(10px);
}
.story-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 72%);
}
.story-frame { position: relative; z-index: 1; }
.story-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 20px; }
.scroll-cue { display: none; }
.story-steps { margin-top: 40px; }
.story-steps ol { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 14px; }
.story-steps h2 { font-size: 20px; margin-bottom: 4px; }
.story-steps p { color: var(--muted); margin: 0; }
.story-count, .story-rail, .slot { display: none; }
.stage { position: relative; z-index: 2; margin: 32px auto 0; max-width: var(--wrap); padding: 0 16px; }
.stage-window { position: relative; width: 880px; transform-origin: 0 0; border-radius: 22px; background: linear-gradient(180deg, rgba(23,27,37,.94), rgba(12,14,20,.97)); border: 1px solid var(--line-2); box-shadow: 0 50px 140px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 120px -40px var(--accent-glow); overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.stage-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.stage-bar b { margin-left: 10px; font-weight: 600; }
.stage-live { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.stage-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.stage-body { position: relative; height: 500px; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 24px 24px; }
.stage-cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-lines .wire { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1.5; }
.stage-lines .wire-lit { fill: none; stroke: #8fa6ff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(111,143,255,.9)); }
.stage-lines .wire-lit.to-you { stroke: #ffc773; filter: drop-shadow(0 0 4px rgba(255,180,80,.8)); }
.stage-lines .spark { fill: #fff; filter: drop-shadow(0 0 6px #8ea7ff) drop-shadow(0 0 16px #6f8fff); }

.node { position: absolute; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); z-index: 2; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease), background .4s; }
.node b { display: block; font-size: 15px; line-height: 1.2; }
.node small { display: block; font-size: 12.5px; color: var(--faint); line-height: 1.35; transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node > div:last-child { min-width: 0; }
.node.active { border-color: rgba(111,143,255,.75); background: #1b2133; box-shadow: 0 0 0 5px rgba(111,143,255,.12), 0 0 50px -6px var(--accent-glow); transform: translateY(-2px) scale(1.03); }
.node.active small { color: var(--accent-2); }
.node.done small { color: var(--ok); }
.node-you.active { border-color: rgba(255,190,100,.8); box-shadow: 0 0 0 5px rgba(255,190,100,.12), 0 0 50px -6px rgba(255,180,80,.5); }
.node-you.active small { color: var(--warn); }
.node-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 15px; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0b0d14; flex: none; }
.av-ops { background: linear-gradient(135deg, #9fb3ff, #6f8fff); }
.av-sales { background: linear-gradient(135deg, #8ff0c4, #3fc48a); }
.av-report { background: linear-gradient(135deg, #ffd59a, #f0a64a); }
.av-fin { background: linear-gradient(135deg, #f5b3ff, #c27bf0); }
.av-you { background: linear-gradient(135deg, #ffffff, #c9d5ff); font-size: 10px; }

/* Positions inside the 880 x 480 stage. */
[data-node="inbox"] { left: 20px; top: 228px; width: 150px; }
[data-node="ops"] { left: 202px; top: 228px; width: 194px; }
[data-node="sales"] { left: 452px; top: 60px; width: 190px; }
[data-node="report"] { left: 452px; top: 228px; width: 190px; }
[data-node="finance"] { left: 452px; top: 396px; width: 190px; }
[data-node="you"] { left: 682px; top: 228px; width: 180px; }

.float-card { position: absolute; z-index: 3; padding: 16px 18px; border-radius: 16px; background: rgba(28,33,45,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -18px rgba(0,0,0,.85); font-size: 13px; opacity: 0; pointer-events: none; }
.float-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.float-card > :first-child { margin-top: 0; }
.fc-head { display: flex; gap: 10px; align-items: center; }
.fc-head b { display: block; font-size: 13px; } .fc-head small { color: var(--faint); font-size: 12px; }
.fc-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2c3346; font-size: 11px; font-weight: 700; flex: none; }
.attach { display: inline-block; margin-top: 12px; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); }
.email-card { left: 20px; top: 318px; width: 296px; }
.report-card { left: 20px; top: 20px; width: 404px; }
.approve-card { left: 690px; top: 318px; width: 172px; }
.invoice-card { left: 202px; top: 322px; width: 232px; }
.fc-title { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.fc-title small { color: var(--faint); font-weight: 400; }
.bars { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; }
.bars i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #6f8fff, #9fb3ff); width: 0; }
.finding b { color: var(--text); }
.check { color: var(--ok) !important; font-size: 12px; margin-top: 6px !important; opacity: 0; transition: opacity .3s; }
.check.on { opacity: 1; }
.approve-card small { display: block; color: var(--warn); font-size: 12px; line-height: 1.4; }
.approve-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 30px; }
.btn-fake { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; transition: transform .15s, opacity .3s; }
.btn-fake.gone { display: none; }
.sent { color: var(--ok); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.sent.show { opacity: 1; transform: none; }

.stage-feed { list-style: none; margin: 0; padding: 14px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 7px; height: 104px; align-content: start; background: rgba(0,0,0,.18); }
.stage-feed li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; animation: feedIn .5s var(--ease) both; }
.stage-feed li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }
.stage-feed li:first-child { color: var(--text); }
.stage-feed li time { color: var(--faint); margin-left: auto; font-size: 12px; white-space: nowrap; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Phone-sized stage: 360 x 430, two columns of agents, cards below. */
@media (max-width: 899px) {
  .stage-window { width: 360px; border-radius: 18px; }
  .stage-bar { padding: 10px 14px; }
  .stage-body { height: 396px; }
  .node { padding: 8px 10px; gap: 8px; border-radius: 12px; }
  .node b { font-size: 14px; }
  .node small { font-size: 11.5px; }
  .node .avatar, .node-icon { width: 30px; height: 30px; font-size: 11px; }
  .av-you { font-size: 9px !important; }
  [data-node="inbox"] { left: 10px; top: 14px; width: 162px; }
  [data-node="sales"] { left: 188px; top: 14px; width: 162px; }
  [data-node="ops"] { left: 10px; top: 84px; width: 162px; }
  [data-node="report"] { left: 188px; top: 84px; width: 162px; }
  [data-node="finance"] { left: 188px; top: 154px; width: 162px; }
  [data-node="you"] { left: 10px; top: 154px; width: 162px; }
  .float-card { padding: 12px 14px; border-radius: 14px; }
  .email-card, .report-card, .approve-card, .invoice-card { left: 10px; width: 340px; top: 232px; }
  .bars { gap: 5px; margin: 10px 0 2px; }
  .bars i { height: 6px; }
  .stage-feed { display: none; }
}

/* Live (scroll-driven) layout. Without JS or with reduced motion the story is a normal page. */
.story.is-live { height: 820vh; margin-top: -66px; }
.is-live .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; padding: 0; }
.is-live .story-frame { height: 100%; max-width: none; padding: 0; --gx: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); }
.is-live .story-hero, .is-live .story-steps { position: absolute; left: var(--gx); top: 66px; bottom: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; will-change: transform, opacity; }
.is-live .story-hero { width: min(44%, 540px); }
.is-live .story-steps { width: min(28%, 360px); opacity: 0; pointer-events: none; }
.is-live .scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--faint); font-size: 13px; }
.is-live .scroll-cue span { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; flex: none; }
.is-live .scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }
.is-live .story-count { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.is-live .story-count b { font-family: var(--font-display); font-size: clamp(64px, 7vw, 104px); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(170,186,255,.55); }
.is-live .story-count span { color: var(--faint); font-weight: 600; letter-spacing: .08em; }
.is-live .story-steps ol { list-style: none; padding: 0; position: relative; display: grid; margin: 0; }
.is-live .story-steps li { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), filter .6s var(--ease-out); }
.is-live .story-steps li.on { opacity: 1; transform: none; filter: none; }
.is-live .story-steps li.past { transform: translate3d(0, -26px, 0); }
.is-live .story-steps h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; margin-bottom: 14px; }
.is-live .story-steps p { font-size: 17px; line-height: 1.6; }
.is-live .story-count { order: 0; }
.is-live .story-steps ol { order: 2; }
.is-live .story-rail { order: 1; display: flex; gap: 6px; margin: 4px 0 26px; }
.is-live .story-rail i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.is-live .story-rail i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #6f8fff, #b08cff); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.is-live .slot { display: block; position: absolute; visibility: hidden; }
.is-live .slot-hero { right: max(72px, calc(var(--gx) - 40px)); left: calc(var(--gx) + min(44%, 540px) + 40px); top: 110px; bottom: 60px; }
.is-live .slot-story { right: max(24px, calc(var(--gx) - 96px)); left: calc(var(--gx) + min(28%, 360px) + 40px); top: 88px; bottom: 24px; }
.is-live .stage { position: absolute; inset: 0; margin: 0; padding: 0; max-width: none; z-index: 2; pointer-events: none; }
.is-live .stage-window { position: absolute; left: 0; top: 0; will-change: transform; }
@media (max-width: 899px) {
  .story.is-live { height: 480vh; }
  .is-live .story-frame { --gx: 16px; }
  .is-live .story-hero { top: 82px; right: 16px; width: auto; bottom: auto; display: block; }
  .is-live .story-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .is-live .story-hero .lead { font-size: 16px; }
  .is-live .story-hero .cta-row { margin: 20px 0 0; }
  .is-live .scroll-cue { display: none; }
  .is-live .story-steps { top: 74px; right: 16px; width: auto; bottom: auto; display: block; }
  .is-live .story-count { margin: 0; }
  .is-live .story-count b { font-size: 40px; }
  .is-live .story-steps ol { margin-bottom: 0; }
  .is-live .story-steps h2 { font-size: 20px; margin-bottom: 4px; }
  .is-live .story-steps p { font-size: 13.5px; line-height: 1.45; }
  .is-live .story-rail { position: absolute; left: 0; right: 0; top: 14px; margin: 0; width: 46%; margin-left: auto; }
  .is-live .slot-hero { left: 16px; right: 16px; width: auto; top: 60%; bottom: 12px; }
  .is-live .slot-story { left: 16px; right: 16px; top: 262px; bottom: 12px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .is-live .story-hero .lead, .is-live .story-hero .eyebrow { display: none; }
}

/* ---------- Works with: a ticker that speeds up as you scroll ---------- */
.ticker { position: relative; z-index: 3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; display: flex; align-items: center; gap: 24px; overflow: hidden; }
.ticker-label { flex: none; margin: 0 0 0 max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.ticker-viewport { flex: 1; overflow: hidden; display: flex; padding: 0 16px; }
.ticker.is-live .ticker-viewport { padding: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; padding: 0 20px 0 0; }
.ticker.is-live .ticker-list { flex-wrap: nowrap; flex: none; padding-right: 40px; will-change: transform; }
.ticker li { color: var(--muted); font-weight: 600; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.ticker.is-live li::after { content: "✦"; color: rgba(111,143,255,.5); font-size: 11px; }
.ticker em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--warn); margin-left: 6px; }
@media (max-width: 700px) { .ticker { flex-direction: column; align-items: stretch; gap: 10px; } .ticker-label { margin: 0 16px; } }

/* ---------- Inside Relay: a sideways gallery pinned while you scroll ---------- */
.hgallery { position: relative; padding: 96px 0; }
.hg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.hg-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.hg-head p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0; }
.hg-meter { display: none; align-items: center; gap: 12px; color: var(--faint); font-weight: 600; }
.hg-meter b { font-family: var(--font-display); font-size: 44px; color: var(--text); letter-spacing: -0.03em; }
.hg-meter i { display: block; width: 140px; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.hg-meter u { display: block; height: 100%; background: linear-gradient(90deg, #6f8fff, #b08cff); transform: scaleX(0); transform-origin: 0 50%; }
.hg-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 16px; scrollbar-width: thin; }
.hg-panel { flex: none; width: min(86vw, 1040px); scroll-snap-align: center; display: grid; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 26px; }
.hg-n { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-2); letter-spacing: .1em; }
.hg-text h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 12px; letter-spacing: -0.02em; }
.hg-text p { color: var(--muted); }
.hg-shot { margin: 0; display: grid; place-items: center; min-height: 0; }
.hg-shot img { border-radius: 12px; border: 1px solid var(--line-2); max-height: 54vh; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
@media (min-width: 900px) { .hg-panel { grid-template-columns: 300px 1fr; align-items: center; padding: 36px; } }
.hgallery.is-live { padding: 0; }
.hgallery.is-live .hg-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 50px; }
.hgallery.is-live .hg-meter { display: flex; }
.hgallery.is-live .hg-track { overflow: visible; scroll-snap-type: none; padding: 0 0 0 max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); will-change: transform; }
.hgallery.is-live .hg-panel { transition: opacity .4s, transform .6s var(--ease-out); }
.hgallery.is-live .hg-panel:not(.near) { opacity: .35; transform: scale(.94); }

/* ---------- Safety: words light up as you read ---------- */
.scrub { max-width: 980px; margin: 0 auto 64px; text-align: center; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.scrub .sw { transition: color .25s, text-shadow .25s; }
.scrub.is-live .sw { color: rgba(237,240,247,.16); }
.scrub.is-live .sw.lit { color: var(--text); }
.scrub.is-live .sw.lit.key { color: var(--accent-2); text-shadow: 0 0 30px rgba(111,143,255,.5); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2, .split-copy h2, .final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.section-head .kicker { justify-content: center; }

.steps { display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step, .card, .case, .plan { background: linear-gradient(180deg, var(--surface), rgba(17,20,28,.6)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; transition: border-color .3s, transform .3s var(--ease); }
.step:hover, .card:hover, .case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step h3, .card h3, .case h3 { font-size: 21px; }
.step p, .card p, .case p { color: var(--muted); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(111,143,255,.12); color: var(--accent-2); font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(111,143,255,.25); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; gap: 72px; } .split-rev { grid-template-columns: 1fr 1fr; } .split-rev .split-copy { order: 2; } }
.split-copy p { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.ticks b { color: var(--text); }

.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 100px -50px var(--accent-glow); }
.shot figcaption { font-size: 13px; color: var(--faint); padding: 10px 16px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .shot-tilt { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); } .shot-tilt:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); } }

/* Screens tour */
.tour { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.tour-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tour-tabs button { flex: none; background: none; border: 0; color: var(--muted); font: 600 14px var(--font); padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tour-panel { display: grid; gap: 24px; padding: 24px; animation: fadeUp .5s var(--ease); }
@media (min-width: 900px) { .tour-panel { grid-template-columns: 320px 1fr; padding: 36px; gap: 36px; align-items: start; } }
.tour-panel[hidden] { display: none; }
.tour-text h3 { font-size: 22px; }
.tour-text p { color: var(--muted); }
.tour-panel img { border-radius: 12px; border: 1px solid var(--line-2); max-height: 560px; width: auto; max-width: 100%; object-fit: contain; object-position: top left; justify-self: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.safety-grid { display: grid; gap: 18px; margin-bottom: 36px; }
@media (min-width: 760px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(111,143,255,.12); color: var(--accent-2); font-size: 18px; margin-bottom: 18px; border: 1px solid rgba(111,143,255,.22); }
.mask-demo { font-family: var(--mono); font-size: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text) !important; }
.mask-demo span { color: var(--warn); transition: color .3s; }
.mask-demo span.masked { color: var(--accent-2); }

.cases { display: grid; gap: 18px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { display: flex; flex-direction: column; }
.case p { flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.tag-soon { background: rgba(240,180,90,.1); color: var(--warn); border-color: rgba(240,180,90,.3); }

/* Chat mock */
.chat-mock { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 12px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg-ai { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.confirm-card { border: 1px solid rgba(111,143,255,.4); border-radius: 14px; padding: 14px 16px; background: rgba(111,143,255,.06); max-width: 92%; }
.cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.confirm-card dt { color: var(--faint); }
.confirm-card dd { margin: 0; color: var(--muted); }
.confirm-card .risky { color: var(--warn); }
.cc-actions { display: flex; gap: 8px; }
[data-chat] .msg, [data-chat] .confirm-card { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-chat].play .msg, [data-chat].play .confirm-card { opacity: 1; transform: none; }
[data-chat].play .msg-ai { transition-delay: .7s; }
[data-chat].play .confirm-card { transition-delay: 1.5s; }

/* Plans */
.plans { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.plan .ticks li { font-size: 15px; }
.plan-featured { border-color: rgba(111,143,255,.5); background: linear-gradient(180deg, rgba(111,143,255,.1), var(--surface) 40%); box-shadow: 0 30px 90px -40px var(--accent-glow); }
.plan-badge { position: absolute; top: -12px; left: 28px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.price { margin: 6px 0 4px; display: flex; align-items: baseline; gap: 6px; min-height: 52px; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--font-display); }
.amount-soon { font-size: 22px; color: var(--muted); }
.per { color: var(--faint); }
.plan-sub { color: var(--muted); font-size: 15px; min-height: 48px; }

.final-cta { text-align: center; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, rgba(111,143,255,.18), transparent); filter: blur(20px); pointer-events: none; }
.final-cta .wrap { position: relative; }
.final-cta p { color: var(--muted); font-size: 18px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 72px 0 40px; text-align: center; position: relative; }
.page-head::before { content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(111,143,255,.16), transparent); pointer-events: none; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 56px); letter-spacing: -0.035em; position: relative; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 auto; position: relative; }
.page-body { padding-bottom: 100px; }

.feature-rows { display: grid; gap: 96px; }
.feature-row { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .feature-row { grid-template-columns: 1fr 1.15fr; gap: 64px; } .feature-row:nth-child(even) .feature-copy { order: 2; } }
.feature-copy h2 { font-size: clamp(26px, 3.4vw, 36px); }
.feature-copy p { color: var(--muted); font-size: 17px; }
.feature-row .shot img { width: 100%; }

.grid-2 { display: grid; gap: 18px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 600; background: rgba(255,255,255,.03); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--faint); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Docs ---------- */
.docs-layout { display: grid; gap: 32px; padding: 40px 0 100px; }
@media (min-width: 1000px) { .docs-layout { grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; } }
@media (min-width: 760px) and (max-width: 999px) { .docs-layout { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
.docs-nav { font-size: 15px; }
@media (min-width: 760px) { .docs-nav, .docs-toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.docs-nav h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 22px 0 8px; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.docs-nav a[aria-current] { color: var(--text); background: rgba(111,143,255,.12); }
@media (max-width: 759px) {
  .docs-nav details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .docs-nav summary { cursor: pointer; font-weight: 600; }
}
@media (min-width: 760px) { .docs-nav summary { display: none; } }
.docs-toc { font-size: 14px; }
.docs-toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 10px; }
.docs-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 5px 12px; color: var(--faint); margin-left: -1px; border-left: 1px solid transparent; }
.docs-toc a:hover, .docs-toc a.on { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 760px; min-width: 0; font-size: 17px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; }
.prose h2 { font-size: 26px; margin: 2em 0 .6em; padding-top: 8px; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.prose p, .prose li { color: #c4c9d6; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(164,182,255,.4); text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; color: #dfe4ff; overflow-wrap: anywhere; }
.prose pre { background: #0b0d13; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }
.prose img { border-radius: 12px; border: 1px solid var(--line-2); margin: 1.2em 0; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose .callout-Tip, .prose .callout-Note { border-left-color: var(--accent); background: rgba(111,143,255,.07); }
.prose .callout-Important { border-left-color: var(--warn); background: rgba(240,180,90,.07); }
.prose .callout-soon { border-left-color: var(--warn); background: rgba(240,180,90,.07); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.doc-meta { color: var(--faint); font-size: 14px; margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.doc-pager { display: grid; gap: 14px; margin-top: 56px; }
@media (min-width: 640px) { .doc-pager { grid-template-columns: 1fr 1fr; } }
.doc-pager a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); }
.doc-pager a:hover { border-color: rgba(111,143,255,.5); }
.doc-pager small { display: block; color: var(--faint); font-size: 13px; }
.doc-pager .next { text-align: right; }

.docs-home-grid { display: grid; gap: 40px; }
.docs-section h2 { font-size: 22px; margin-bottom: 16px; }
.doc-cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .doc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .doc-cards { grid-template-columns: repeat(3, 1fr); } }
.doc-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.doc-card:hover { border-color: rgba(111,143,255,.5); transform: translateY(-2px); color: var(--text); }
.doc-card b { display: block; margin-bottom: 6px; font-size: 17px; }
.doc-card span { color: var(--muted); font-size: 15px; }
.docs-search { max-width: 520px; margin: 28px auto 0; position: relative; }
.docs-search input { width: 100%; }

/* ---------- Forms & account ---------- */
.auth { max-width: 460px; margin: 0 auto; padding: 56px 0 100px; }
.auth h1 { font-size: 34px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: 16px var(--font); color: var(--text); background: #0b0d13; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,143,255,.2); }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.check-field input { margin-top: 4px; accent-color: var(--accent); }
.form-foot { text-align: center; color: var(--muted); font-size: 15px; margin-top: 20px; }
.btn-block { width: 100%; }
.error-text { color: var(--danger); font-size: 14px; }

.dash { padding: 48px 0 100px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: 34px; margin: 0; }
.dash-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.4fr 1fr; } }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.lic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.plan-pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(111,143,255,.15); color: var(--accent-2); }
.plan-pill.free { background: rgba(255,255,255,.08); color: var(--muted); }
.plan-pill.revoked { background: rgba(255,122,133,.12); color: var(--danger); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; margin: 0 0 18px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.keybox { font-family: var(--mono); font-size: 12px; line-height: 1.5; width: 100%; min-height: 110px; color: #cdd6ff; background: #090b10; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; word-break: break-all; resize: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
meter { width: 100%; height: 8px; margin: 6px 0 4px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 15px; }
.list-plain li:last-child { border-bottom: 0; }
.notice { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(240,180,90,.35); background: rgba(240,180,90,.07); color: #f6d7a6; margin-bottom: 18px; font-size: 15px; }
.notice a { color: #ffe2b3; text-decoration: underline; }

.download-hero { display: grid; gap: 32px 48px; align-items: start; }
@media (min-width: 900px) { .download-hero { grid-template-columns: 1fr 1fr; } }
.req { font-size: 15px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 48px; color: var(--muted); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(111,143,255,.12); color: var(--accent-2); font-weight: 700; border: 1px solid rgba(111,143,255,.25); }
.steps-list b { color: var(--text); }

.admin table td, .admin table th { font-size: 14px; }
.admin form.inline { display: inline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--faint); max-width: 320px; margin-top: 14px; font-size: 15px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); font-size: 15px; }
.site-footer ul a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); filter: blur(8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .hero-stage.reveal { transform: perspective(1400px) rotateX(16deg) translate3d(0, 48px, 0) scale(.95); transform-origin: 50% 100%; transition-duration: 1.5s; }
.js .hero-stage.reveal.in { transform: none; }

/* Headings rise word by word (split by site.js). */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .12em; margin-bottom: -.12em; }
.words .w > span { display: inline-block; transform: translate3d(0, 110%, 0) rotate(3deg); transform-origin: 0 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 100ms); }
.in .words .w > span, .words.in .w > span { transform: none; }

/* Scroll progress. */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #6f8fff, #b08cff 60%, #8ff0c4); box-shadow: 0 0 12px rgba(111,143,255,.7); pointer-events: none; }

/* Scroll-linked motion. --h is how far the hero has scrolled away, --p how far an element has come into view (0 to 1). */
.fx .sfx { will-change: transform; }
.fx .shot.sfx { transform-origin: 50% 0; transform: perspective(1600px) rotateX(calc((1 - var(--p, 1)) * 18deg)) translate3d(0, calc((1 - var(--p, 1)) * 48px), 0) scale(calc(.88 + var(--p, 1) * .12)); opacity: calc(.15 + var(--p, 1) * .85); transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
@media (min-width: 960px) {
  .fx .shot-tilt.sfx { transform: perspective(1600px) rotateY(calc(var(--p, 1) * -8deg)) rotateX(calc(3deg + (1 - var(--p, 1)) * 15deg)) translate3d(0, calc((1 - var(--p, 1)) * 48px), 0) scale(calc(.9 + var(--p, 1) * .1)); }
}
.fx .tour.sfx { transform: translate3d(0, calc((1 - var(--p, 1)) * 60px), 0) scale(calc(.94 + var(--p, 1) * .06)); opacity: calc(.2 + var(--p, 1) * .8); transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.fx .steps.sfx { position: relative; }
.fx .steps.sfx::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(111,143,255,.85) 20%, rgba(176,140,255,.85) 80%, transparent); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.fx .plans.sfx .plan.in { transform: perspective(1200px) rotateX(calc((1 - var(--p, 1)) * 10deg)) translate3d(0, calc((1 - var(--p, 1)) * 40px), 0); transition: opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out), transform .6s var(--ease-out); }
.fx .plans.sfx .plan.in:nth-child(odd) { transform: perspective(1200px) rotateX(calc((1 - var(--p, 1)) * 14deg)) translate3d(0, calc((1 - var(--p, 1)) * 90px), 0); }
.fx .final-cta.sfx::before { transform: scale(calc(.5 + var(--p, 1) * .7)); opacity: var(--p, 1); transition: transform .6s var(--ease-out), opacity .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .shot-tilt { transform: none !important; }
  .scroll-progress { box-shadow: none; }
}
.page-head .kicker { justify-content: center; }
.req-title { margin-top: 36px; font-size: 18px; }
.auth-tight { padding-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dash-side { display: grid; gap: 18px; align-content: start; }
.dash-history { margin-top: 18px; }
.field-label { display: grid; gap: 4px; margin-bottom: 8px; }
.field-label .hint, .hint { font-size: 13px; color: var(--faint); font-weight: 400; }
.inline-form { display: inline-block; margin-left: 8px; }
.pw-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.pw-details summary { cursor: pointer; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 28px; font-family: var(--font-display); }
.stat span { color: var(--faint); font-size: 13px; }
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.admin form.inline { display: inline-flex; gap: 6px; margin: 2px 0; align-items: center; }
.admin form.inline input[type=date] { width: auto; padding: 6px 8px; font-size: 13px; }
.msg-text { color: var(--muted); white-space: normal; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.dash-grid { align-items: start; }

/* Clips recorded from the app */
.clip { margin: 1.6em 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 880 / 544; }
.clip figcaption { background: var(--surface); color: var(--muted); font-size: 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.prose .clip { margin: 1.6em 0; }
.resources-actions { justify-content: center; margin: 0 0 36px; }
.doc-card.locked { opacity: .6; position: relative; }
.doc-card.locked::after { content: "Paid"; position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(111,143,255,.15); color: var(--accent-2); }
.price .from { color: var(--faint); font-size: 15px; margin-right: 2px; }
.price-note { margin: -6px 0 10px; font-size: 14px; color: var(--muted); }

/* Story focus: idle agents step back so the one doing the work stands out. */
.story.is-live .node { transition: border-color .4s, box-shadow .4s, transform .4s var(--ease), background .4s, opacity .4s; }
.story.is-live .node:not(.active):not(.done) { opacity: .55; }
.story.is-live.all-lit .node { opacity: 1; }
.panel .notice { margin: 22px 0 0; }
.panel .notice:first-child { margin-top: 0; }

/* Phones and touch screens: keep the motion, drop the effects that are slow to paint on mobile GPUs. */
@media (max-width: 899px), (hover: none) {
  .hero-glow { filter: none; }
  .float-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(28,33,45); }
  .stage-lines .wire-lit, .stage-lines .wire-lit.to-you, .stage-lines .spark { filter: none; }
  .js .reveal { filter: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .is-live .story-steps li { filter: none; }
  .node.active { box-shadow: 0 0 0 4px rgba(111,143,255,.14); }
  .node-you.active { box-shadow: 0 0 0 4px rgba(255,190,100,.16); }
  .stage-window { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7,8,12,.94); }
  .scroll-progress { box-shadow: none; }
}

/* Story: a light that follows the work, a ring on whoever is working, and new activity sliding in. */
.stage-spot { position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(111,143,255,.16), rgba(111,143,255,.06) 45%, transparent 72%); pointer-events: none; z-index: 0; opacity: 0; will-change: transform; }
.stage-lines { z-index: 1; }
.story.is-live .node.active::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid rgba(111,143,255,.75); pointer-events: none; animation: node-ring 1.8s var(--ease-out) infinite; }
.story.is-live .node-you.active::after { border-color: rgba(255,190,100,.8); }
.story.is-live .node.active { transform: translateY(-3px) scale(1.06); }
@keyframes node-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.22, 1.5); opacity: 0; } }
.story.is-live .stage-feed li:first-child { animation: feed-in .55s var(--ease-out); }
@keyframes feed-in { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .stage-spot { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
}
.btn-fake { white-space: nowrap; }
