/* BrowserPilot website. Flat, system fonts, no external requests.
   Motion: CSS transforms and opacity, driven by motion.js; all of it stops under prefers-reduced-motion. */
:root {
  --bg: #ffffff;
  --soft: #f3f4f6;
  --panel: #ffffff;
  --line: #e2e5e9;
  --ink: #111316;
  --muted: #5b6170;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --cta: #111316;
  --cta-ink: #ffffff;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.3' fill='%23dadee4'/%3E%3C/svg%3E");
  --ok-bg: #dcfce7;
  --ok-ink: #166534;
  --radius: 12px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --soft: #181a1d;
    --panel: #1c1e22;
    --line: #2c2f35;
    --ink: #f2f3f5;
    --muted: #a4a9b3;
    --accent: #5b8cff;
    --cta: #f2f3f5;
    --cta-ink: #111316;
    --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.3' fill='%23272a30'/%3E%3C/svg%3E");
    --ok-bg: #153321;
    --ok-ink: #86efac;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* header, with a reading-progress line */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.top .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .top .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.2px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--panel);
  transition: transform .25s var(--ease), border-color .2s, background .2s, color .2s; }
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn.primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover svg { animation: nudge .7s var(--ease); }
@keyframes nudge { 40% { transform: translateY(3px); } }
.top .btn { padding: 8px 14px; font-size: 14.5px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -28px; z-index: -1; pointer-events: none;
  background-image: var(--dots); animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translate(28px, 28px); } }
.eyebrow { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 650; color: var(--muted); border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; }
.live { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #22c55e; animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.06; letter-spacing: -1.6px; margin: 20px auto 0; max-width: 900px; }
h1 .k, h2 .k { color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 760px; margin: 20px auto 0; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.caption { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* the hero comes in piece by piece */
.hero .eyebrow, .hero h1 .w, .hero .lead, .hero .ctas, .hero .works-wrap, .hero .stage, .hero .caption { animation: rise .8s var(--ease) both; }
.hero h1 .w { display: inline-block; animation-delay: calc(.1s + var(--i) * .07s); }
.hero .lead { animation-delay: .5s; }
.hero .ctas { animation-delay: .6s; }
.hero .works-wrap { animation-delay: .7s; }
.hero .stage { animation-delay: .8s; animation-duration: 1s; }
.hero .caption { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* works-with list: wraps without JS, slides as a ticker with it */
.works-wrap { margin: 30px auto 0; max-width: 860px; }
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.works li { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); white-space: nowrap; }
.works-wrap.on { overflow: hidden; max-width: 760px; }
.works.marquee { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: ticker 34s linear infinite; }
.works.marquee li { margin-right: 8px; }
.works-wrap.on:hover .works, .works.paused { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- live demo stage */
.stage { display: none; }
.js .stage { display: grid; }
.stage { grid-template-columns: 318px minmax(0, 1fr); height: 520px; max-width: 1040px; margin: 44px auto 0; text-align: left; font-size: 14px; line-height: 1.45;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e46; }

/* the AI's side */
.ai { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0f1113; color: #e4e6ea; border-right: 1px solid #23262c; }
.ai-head { flex: none; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid #23262c; font-size: 13px; }
.ai-head b { color: #fff; font-weight: 650; }
.ai-head small { margin-left: auto; color: #8a919c; font-size: 11.5px; }
.ai-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 14px; overflow: hidden; transition: opacity .4s; }
.ai-body.clear { opacity: 0; }
.msg { font-size: 13px; animation: pop .4s var(--ease) both; }
.msg.user { align-self: flex-end; max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: #262a31; color: #fff; }
.msg.bot { padding: 1px 0 1px 11px; border-left: 2px solid #5b8cff; color: #e4e6ea; }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font: 12px/1.3 var(--mono); }
.tools li { display: flex; align-items: center; gap: 8px; min-width: 0; animation: pop .35s var(--ease) both; }
.tools .st { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #3d424a; border-top-color: #e4e6ea; animation: spin .7s linear infinite; }
.tools .st svg { display: none; width: 10px; height: 10px; fill: none; stroke: #0f1113; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.tools li.ok .st { border: 0; background: #22c55e; animation: tick-in .3s var(--ease); }
.tools li.ok .st svg { display: block; }
.tools code { flex: none; color: #fff; font: inherit; font-weight: 700; }
.tools .d { color: #9aa1ad; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-input { flex: none; display: flex; align-items: center; height: 44px; margin: 0 14px 14px; padding: 0 12px; border: 1px solid #2b2f36; border-radius: 10px; font-size: 13px; color: #fff; transition: border-color .2s; }
.ai-input.focus { border-color: #5b8cff; }
.ai-input .val { min-width: 0; overflow: hidden; white-space: nowrap; }
.ai-input .caret { display: none; flex: none; width: 1.5px; height: 16px; margin-left: 1px; background: #fff; animation: blink 1s steps(1) infinite; }
.ai-input.focus .caret { display: block; }
.ai-input .ph { display: none; color: #6b717c; }
.ai-input:not(.focus) .val:empty ~ .ph { display: block; }
.ai-input svg { flex: none; width: 16px; height: 16px; margin-left: auto; fill: none; stroke: #6b717c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the browser's side */
.bw { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--soft); }
.bw-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.bw-bar .nv { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bw-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; }
.bw-url svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bw-url .u.swap { animation: swap .35s ease-out; }
.bw-ext { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; }
.bw-ext img { width: 18px; height: 18px; border-radius: 4px; }
.bw-ext i { position: absolute; right: -1px; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--soft); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.stage.active .bw-ext i { transform: scale(1); }
.bw-page { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; color: #15171a; }
.bw-load { position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 3px; background: #2563eb; opacity: 0; }
.bw-load.run { width: 88%; opacity: 1; transition: width .9s var(--ease), opacity .1s; }

.view { position: absolute; inset: 0; padding: 18px 24px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.view.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.v-blank { display: grid; place-items: center; color: #9aa1ad; font-size: 14px; }
.site { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #eceef1; font-size: 14px; }
.site .logo { position: relative; width: 24px; height: 24px; border-radius: 7px; background: #0f766e; }
.site .logo::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid #fff; }
.site .links { margin-left: auto; display: flex; gap: 16px; color: #5b6170; font-size: 12.5px; }
.v-search h4 { margin: 0 0 14px; font-size: 24px; letter-spacing: -.4px; line-height: 1.2; }
.form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid #e4e7eb; border-radius: 12px; background: #f8fafb; }
.fld .lb { display: block; margin: 0 0 5px 2px; font-size: 11px; font-weight: 650; letter-spacing: .3px; text-transform: uppercase; color: #6b7280; }
.box { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid #d6dae0; border-radius: 9px; background: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fld.focus .box { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .16); }
.box .caret { display: none; flex: none; width: 1.5px; height: 17px; margin-left: 1px; background: #15171a; animation: blink 1s steps(1) infinite; }
.fld.focus .caret { display: block; }
.go { display: grid; place-items: center; height: 40px; padding: 0 16px; border-radius: 9px; background: #0f766e; color: #fff; font-weight: 650; font-size: 13.5px; white-space: nowrap; transition: transform .1s, background .1s; }
.go.down, .sel.down { transform: scale(.94); background: #115e59; color: #fff; }
.deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.deals div { border: 1px solid #e4e7eb; border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.deals i { display: block; height: 58px; }
.deals b { display: block; padding: 8px 10px 0; }
.deals small { display: block; padding: 0 10px 9px; color: #6b7280; }

.rh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rh b { font-size: 18px; letter-spacing: -.2px; }
.rh small { color: #6b7280; font-size: 12.5px; }
.fare { display: grid; grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid #e4e7eb; border-radius: 11px; font-size: 13px; transition: border-color .25s, background .25s, box-shadow .25s; }
.v-results.on .fare { animation: pop .45s var(--ease) both; }
.v-results.on .fare:nth-child(4) { animation-delay: .08s; }
.v-results.on .fare:nth-child(5) { animation-delay: .16s; }
.fare .al { width: 28px; height: 28px; border-radius: 8px; }
.fare .fl b { display: block; }
.fare .fl small { color: #6b7280; font-size: 11.5px; }
.fare .tm { color: #374151; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fare .pr { font-size: 16px; text-align: right; line-height: 1.15; }
.fare .pr em { display: block; font-style: normal; font-size: 10.5px; font-weight: 650; color: #0f766e; }
.fare .sel { padding: 7px 12px; border-radius: 8px; border: 1px solid #0f766e; color: #0f766e; font-weight: 650; font-size: 12.5px; transition: transform .1s, background .15s, color .15s; }
.fare.pick { border-color: #0f766e; background: #f0fdfa; box-shadow: inset 0 0 0 1px #0f766e; }
.fare.pick .sel { background: #0f766e; color: #fff; }

.v-done { display: grid; place-items: center; text-align: center; }
.done h4 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -.3px; }
.done p { margin: 2px 0; color: #4b5563; font-size: 13.5px; }
.done .ref { display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 7px; background: #f3f4f6; color: #111; font: 600 12px var(--mono); }
.v-done.on .done > :not(svg) { animation: pop .5s var(--ease) both; }
.v-done.on .done > :nth-child(2) { animation-delay: .35s; }
.v-done.on .done > :nth-child(3) { animation-delay: .45s; }
.v-done.on .done > :nth-child(4) { animation-delay: .5s; }
.v-done.on .done > :nth-child(5) { animation-delay: .6s; }
.tick { display: block; width: 64px; height: 64px; margin: 0 auto; fill: none; stroke: #0f766e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle, .tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.v-done.on .tick circle { animation: draw .6s var(--ease) .1s forwards; }
.v-done.on .tick path { animation: draw .4s var(--ease) .55s forwards; }

/* BrowserPilot's own overlay: status chip with Stop, and the AI cursor */
.chip { position: absolute; z-index: 4; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px;
  background: #111; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 0 0 1.5px #fff;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .3s var(--ease); }
.chip.on { opacity: 1; transform: translate(-50%, 0); }
.chip .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.chip .eq i { width: 3px; height: 100%; border-radius: 1.5px; background: #22c55e; transform-origin: bottom; animation: eq .8s ease-in-out infinite; }
.chip .eq i:nth-child(2) { animation-delay: .18s; }
.chip .eq i:nth-child(3) { animation-delay: .36s; }
.chip.thinking .eq i { background: #fff; animation-duration: 1.7s; }
.chip.done .eq i { background: #9aa1ad; animation: none; transform: scaleY(.45); }
.chip .t.swap { animation: swap .35s ease-out; }
.chip .stop { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; background: #fff; color: #111; font-weight: 600; font-size: 12px; }
.chip .stop i { width: 8px; height: 8px; border-radius: 1.5px; background: currentColor; }

.cur-x { position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none; transition: transform 0s cubic-bezier(.45, .05, .3, 1); }
.cur-y { transition: transform 0s cubic-bezier(.25, .6, .35, 1); }
.cur { position: relative; width: 26px; height: 26px; margin: -3px 0 0 -3px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.cur.on { opacity: 1; transform: none; }
.cur.on.rest { opacity: .8; }
.cur > svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 11% 11%; transition: transform .3s cubic-bezier(.3, 1.7, .5, 1); }
.cur > svg path, .mc path, .mcur path { fill: #fff; stroke: #111; stroke-width: 2.4; stroke-linejoin: round; paint-order: stroke; }
.cur.moving > svg { transform: rotate(var(--lean, 0deg)) scale(1.06); transition-duration: .12s; }
.cur.press > svg { transform: scale(.8); transition-duration: .07s; }
.cur .tag { position: absolute; left: 22px; top: 23px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 4px 12px 12px 12px;
  background: #111; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 1.5px #fff; }
.cur.flip .tag { left: auto; right: calc(100% - 4px); border-radius: 12px 4px 12px 12px; }
.cur .tag .caret { display: none; width: 2px; height: 12px; border-radius: 1px; background: currentColor; animation: blink .8s steps(1) infinite; }
.cur.typing .tag .caret { display: block; }
.cur .hop { display: none; align-items: center; gap: 3px; }
.cur .hop i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: hop 1.1s ease-in-out infinite; }
.cur .hop i:nth-child(2) { animation-delay: .15s; }
.cur .hop i:nth-child(3) { animation-delay: .3s; }
.cur.thinking .hop { display: inline-flex; }
.cur .ring { position: absolute; left: 3px; top: 3px; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid #2563eb; opacity: 0; }
.cur .ring.run { animation: ring .5s ease-out; }

/* ---------------------------------------------------------------- sections */
section { padding: 80px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.watch { padding: 16px 0 88px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.9px; margin: 0; }
.intro { color: var(--muted); font-size: 19px; max-width: 720px; margin: 14px 0 0; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }
.demo { margin: 36px auto 0; max-width: 1040px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111316; aspect-ratio: 16 / 9; }
.demo { position: relative; }
.demo video { width: 100%; height: 100%; }
.sound { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border: 0; border-radius: 10px;
  background: #fff; color: #111316; font: 650 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; animation: halo-w 2.4s ease-out infinite; transition: transform .2s var(--ease); }
.sound:hover { transform: translateY(-1px); }
.sound[hidden] { display: none; }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes halo-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 75%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

/* scroll reveals (only with JS; motion.js adds .in) */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="left"] { translate: -56px 0; }
.js [data-reveal="right"] { translate: 56px 0; }
.js [data-reveal="scale"] { translate: 0 20px; scale: .94; }
.js [data-reveal].in { opacity: 1; translate: none; scale: none; }

/* how it works: three small scenes play in turn */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; text-align: left; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 24px; counter-increment: step; animation: act 12s infinite; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; vertical-align: 2px;
  background: var(--cta); color: var(--cta-ink); font-size: 13px; animation: act-n 12s infinite; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
/* the second and third scenes start 4s and 8s later (selectors outrank each scene's own animation shorthand) */
.steps li:nth-child(2), .steps li:nth-child(2) *, .steps li:nth-child(2) h3::before { animation-delay: 4s; }
.steps li:nth-child(3), .steps li:nth-child(3) *, .steps li:nth-child(3) h3::before { animation-delay: 8s; }
@keyframes act { 0%, 31% { border-color: var(--accent); } 35%, 100% { border-color: var(--line); } }
@keyframes act-n { 0%, 31% { background: var(--accent); color: #fff; } 35%, 100% { background: var(--cta); color: var(--cta-ink); } }
.vig { position: relative; height: 136px; margin-bottom: 18px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }

.pop { width: 214px; padding: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.pop-h { display: flex; align-items: center; gap: 7px; height: 20px; margin-bottom: 10px; font-size: 12.5px; font-weight: 650; }
.pop-h img { width: 18px; height: 18px; border-radius: 4px; }
.pop-h .pill { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 10.5px; font-weight: 650; }
.pop-btn { display: grid; height: 32px; border-radius: 7px; background: var(--cta); color: var(--cta-ink); font-size: 12.5px; font-weight: 650; animation: v1btn 12s infinite; }
.pop-btn > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pop-btn .a { animation: v1a 12s infinite; }
.pop-btn .b { opacity: 0; animation: v1b 12s infinite; }
.pop-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mc { position: absolute; left: calc(50% + 58px); top: calc(50% + 12px); width: 22px; height: 22px; overflow: visible; transform-origin: 2px 2px; transform: translate(56px, 34px); animation: v1cur 12s infinite; }
@keyframes v1cur { 0% { transform: translate(56px, 34px); } 9% { transform: none; } 11% { transform: scale(.8); } 13%, 27% { transform: none; } 33%, 100% { transform: translate(56px, 34px); } }
@keyframes v1btn { 0%, 11% { background: var(--cta); color: var(--cta-ink); } 12%, 28% { background: #16a34a; color: #fff; } 31%, 100% { background: var(--cta); color: var(--cta-ink); } }
@keyframes v1a { 0%, 11% { opacity: 1; } 12%, 28% { opacity: 0; } 31%, 100% { opacity: 1; } }
@keyframes v1b { 0%, 11% { opacity: 0; } 12%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }

.term { width: 236px; padding: 8px 12px 10px; border-radius: 10px; background: #0f1113; color: #e4e6ea; border: 1px solid #23262c; font: 11.5px/1.75 var(--mono); text-align: left; }
.term .dots { margin-bottom: 3px; }
.term .dots i { width: 8px; height: 8px; }
.steps .term p { margin: 0; font-size: 11.5px; color: inherit; white-space: nowrap; overflow: hidden; }
.term .pr { color: #5b8cff; }
.ty { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; }
.t1 { width: 21ch; animation: v2t1 12s steps(21) infinite; }
.t2 { width: 24ch; animation: v2t2 12s steps(24) infinite; }
.steps .term .ok { display: flex; align-items: center; gap: 6px; color: #4ade80; animation: v2ok 12s ease infinite; }
.term .ok svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes v2t1 { 0%, 3% { width: 0; } 11%, 100% { width: 21ch; } }
@keyframes v2t2 { 0%, 14% { width: 0; } 22%, 100% { width: 24ch; } }
@keyframes v2ok { 0%, 24% { opacity: 0; transform: translateY(4px); } 27%, 100% { opacity: 1; transform: none; } }

.mini { position: relative; width: 232px; height: 114px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; text-align: left; }
.mini-bar { display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.mini-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mini-bar span { flex: 1; height: 7px; margin-left: 8px; border-radius: 4px; background: var(--soft); }
.mini-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mf { display: flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; }
.mf b { display: block; height: 4px; border-radius: 2px; background: var(--ink); }
.f1 { animation: v3b1 12s infinite; }
.f2 { animation: v3b2 12s infinite; }
.f1 b { width: 62%; animation: v3f1 12s steps(6) infinite; }
.f2 b { width: 48%; animation: v3f2 12s steps(5) infinite; }
.mbtn { display: grid; place-items: center; height: 18px; border-radius: 5px; background: var(--cta); color: var(--cta-ink); font-size: 9.5px; font-weight: 700; animation: v3btn 12s infinite; }
.mchip { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 3px 0 8px; border-radius: 7px; background: #111; color: #fff; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.mchip .eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 8px; }
.mchip .eq i { width: 2px; border-radius: 1px; background: #22c55e; }
.mchip .eq i:nth-child(1) { height: 50%; } .mchip .eq i:nth-child(2) { height: 100%; } .mchip .eq i:nth-child(3) { height: 70%; }
.mchip .stp { padding: 2px 6px; border-radius: 4px; background: #fff; color: #111; font-size: 9px; }
.mcur { position: absolute; left: 50%; top: 50%; display: flex; align-items: flex-start; transform-origin: 2px 2px; transform: translate(-57px, 5px); animation: v3cur 12s infinite; }
.mcur svg { width: 18px; height: 18px; overflow: visible; }
.mcur span { margin: 15px 0 0 -3px; padding: 2px 6px; border-radius: 3px 8px 8px 8px; background: #111; color: #fff; font-size: 9px; font-weight: 700; line-height: 1.3; box-shadow: 0 0 0 1.5px #fff; }
@keyframes v3cur {
  0% { transform: translate(-57px, 5px); }
  6% { transform: translate(-77px, -21px); }
  7% { transform: translate(-77px, -21px) scale(.85); }
  8%, 14% { transform: translate(-77px, -21px); }
  19% { transform: translate(23px, -21px); }
  20% { transform: translate(23px, -21px) scale(.85); }
  21%, 25% { transform: translate(23px, -21px); }
  29% { transform: translate(-57px, 5px); }
  30% { transform: translate(-57px, 5px) scale(.85); }
  31%, 100% { transform: translate(-57px, 5px); }
}
@keyframes v3f1 { 0%, 8% { width: 0; } 13%, 100% { width: 62%; } }
@keyframes v3f2 { 0%, 21% { width: 0; } 25%, 100% { width: 48%; } }
@keyframes v3b1 { 0%, 7% { border-color: var(--line); } 8%, 13% { border-color: var(--accent); } 15%, 100% { border-color: var(--line); } }
@keyframes v3b2 { 0%, 20% { border-color: var(--line); } 21%, 25% { border-color: var(--accent); } 27%, 100% { border-color: var(--line); } }
@keyframes v3btn { 0%, 29% { background: var(--cta); } 30%, 32% { background: var(--accent); } 34%, 100% { background: var(--cta); } }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .25s, transform .3s var(--ease); }
.js .card[data-reveal] { transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), border-color .25s, transform .3s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 14px; transition: background .25s, border-color .25s; }
.card .ic svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.card:hover .ic { background: var(--accent); border-color: var(--accent); }
.card:hover .ic svg { stroke: #fff; }
.js .card .ic svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) calc(.3s + var(--d, 0) * 90ms); }
.js .card.in .ic svg > * { stroke-dashoffset: 0; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 72px; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 26px; letter-spacing: -.5px; margin: 0 0 10px; line-height: 1.2; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 4px 0; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; }

/* screen recorder */
.phone { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }
.phone video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #e9ebee; }
.phone-video { position: relative; }
.sizes { margin-top: 26px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.sz-stage { position: relative; display: grid; place-items: center; height: 218px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.sz-frame { width: 300px; height: 169px; max-width: calc(100% - 24px); border: 2px solid var(--ink); border-radius: 8px; background: var(--panel); overflow: hidden; container-type: inline-size;
  transition: width .75s cubic-bezier(.65, 0, .25, 1), height .75s cubic-bezier(.65, 0, .25, 1), border-radius .75s; }
.sz-frame[data-s="laptop"] { width: 268px; height: 168px; }
.sz-frame[data-s="tablet"] { width: 134px; height: 192px; border-radius: 12px; }
.sz-frame[data-s="phone"] { width: 92px; height: 198px; border-radius: 16px; }
.sz-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.sz-page i { display: block; border-radius: 4px; }
.sz-page .h { grid-column: 1 / -1; height: 8px; border-radius: 3px; background: var(--line); }
.sz-page .hb { grid-column: 1 / -1; height: 44px; background: var(--accent); }
.sz-page .c { height: 38px; background: var(--soft); border: 1px solid var(--line); }
@container (max-width: 160px) {
  .sz-page { grid-template-columns: 1fr; }
  .sz-page .hb { height: 52px; }
  .sz-page .c { height: 26px; }
}
.rec { position: absolute; top: 10px; left: 12px; display: flex; align-items: center; gap: 6px; font: 650 11px/1 var(--mono); color: #dc2626; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: blink 1.2s steps(1) infinite; }
.rec .tc { color: var(--muted); }
.sz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.sz-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); }
.sz-tabs span { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .35s, color .35s; }
.sz-tabs span.on { background: var(--cta); color: var(--cta-ink); }
.sz-label { margin-left: auto; font: 600 13px var(--mono); color: var(--muted); }
.sz-label.swap { animation: swap .35s ease-out; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* privacy: how data moves, all on one computer */
.priv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.priv .checks { grid-template-columns: 1fr; }
.priv .more { margin-top: 22px; }
.flow { position: relative; padding: 28px 20px 20px; border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 16px; }
.flow-l { position: absolute; top: -11px; left: 16px; padding: 0 8px; background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 650; letter-spacing: .2px; }
.node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.node .ni { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.node svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.node b { display: block; font-size: 15.5px; line-height: 1.3; }
.node small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.wire { position: relative; display: flex; gap: 8px; height: 46px; margin-left: 29px; }
.wire > span { position: relative; width: 2px; height: 100%; background: var(--line); }
.wire i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; }
.wire .cmd i { background: var(--accent); animation: down 1.8s linear infinite; }
.wire .data i { background: var(--ink); animation: up 1.8s linear .9s infinite; }
.wire em { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); display: flex; gap: 16px; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wire em span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.c-cmd::before { background: var(--accent); }
.c-data::before { background: var(--ink); }
@keyframes down { 0% { transform: translateY(-4px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }
@keyframes up { 0% { transform: translateY(42px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
.cloud { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.cloud svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* questions: open smoothly where the browser can */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 650; font-size: 18px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

.band { text-align: center; }
.band .intro { margin-left: auto; margin-right: auto; }
.band .ctas { margin-top: 26px; }
.band .btn.primary { position: relative; }
.band .btn.primary::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cta) 38%, transparent); } 75%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--cta) 0%, transparent); } }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }
footer .note { flex-basis: 100%; font-size: 13.5px; }

/* privacy policy */
.doc { max-width: 780px; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); text-align: left; margin: 0; letter-spacing: -1px; }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 23px; letter-spacing: -.3px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 14px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--soft); }
.doc code { font-size: .92em; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* install page */
.install .get { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.install .get p { margin: 14px 0 0; color: var(--muted); }
.install-steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; }
.install-steps li { position: relative; counter-increment: step; padding: 0 0 28px 52px; border-left: 2px solid var(--line); margin-left: 15px; }
.install-steps li:last-child { border-left-color: transparent; }
.install-steps li::before { content: counter(step); position: absolute; left: -17px; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: 15px; }
.install-steps h2 { margin: 0 0 6px; font-size: 20px; }
.install-steps p { margin: 0; color: var(--muted); }
.install-steps .shot { margin-top: 16px; }
.copy { margin: 0 2px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: 600 12.5px/1.4 system-ui, sans-serif; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.doc .more { margin-top: 26px; }

/* shared keyframes */
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick-in { from { transform: scale(.4); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes hop { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ring { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }

/* scenes rest while they are off screen */
.js [data-play]:not(.play) *, .js [data-play]:not(.play) *::before, .js [data-play]:not(.play) *::after { animation-play-state: paused !important; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .steps, .grid { grid-template-columns: 1fr; }
  .feature, .feature.flip, .phone, .priv { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .phone-video { width: 100%; max-width: 340px; margin: 0 auto; }
  .checks { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  section.watch { padding: 8px 0 64px; }
  .hero { padding-top: 48px; }
  footer nav { margin-left: 0; }
}
@media (max-width: 760px) {
  .stage { grid-template-columns: minmax(0, 1fr); height: auto; font-size: 13px; }
  .ai { height: 196px; border-right: 0; border-bottom: 1px solid #23262c; }
  .ai-body { padding: 12px; gap: 9px; }
  .msg { font-size: 12.5px; }
  .bw { height: 430px; }
  .view { padding: 14px; }
  .site { margin-bottom: 14px; padding-bottom: 12px; }
  .site .links { display: none; }
  .v-search h4 { font-size: 19px; margin-bottom: 10px; }
  .form { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .form .wide, .form .go { grid-column: 1 / -1; }
  .deals { display: none; }
  .fare { grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 10px; padding: 9px 10px; }
  .fare .al { width: 24px; height: 24px; }
  .fare .tm { display: none; }
  .chip { gap: 8px; padding-left: 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .ctas .btn { width: 100%; justify-content: center; }
  .wire em { flex-direction: column; gap: 0; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .js .card .ic svg > *, .tick circle, .tick path { stroke-dashoffset: 0; }
  .wire i { display: none; }
}
@media print {
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .stage, .top .progress { display: none !important; }
}
