/* Tokens copied from brand/tokens.css (itself copied from src/app.css). */
:root {
  --bg: #121416; --surface: #181b1d; --surface-2: #1f2224; --surface-3: #26292c;
  --border: #2f3437; --border-subtle: #23272a;
  --fg: #eff2f5; --fg-muted: #a0a5a9;
  --accent: #62a565; --accent-hi: #73c076; --accent-on: #020f02;
  --accent-soft: rgb(98 165 101 / .16); --accent-ring: rgb(98 165 101 / .32);
  --neg: #dd766f;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --ease-snap: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-lg: 10px; --radius-2xl: 18px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.5 var(--font-body); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: .86em/1.4 var(--font-mono); color: var(--accent-hi); }
:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--accent-ring); border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 30; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

.eyebrow, .kicker { margin: 0 0 12px; color: var(--accent-hi); font: 600 13px/1.3 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.display { margin: 0; font: 700 clamp(44px, 6.2vw, 80px)/1.02 var(--font-display); letter-spacing: -0.035em; }
.title { margin: 0 0 16px; font: 680 clamp(30px, 4.4vw, 52px)/1.08 var(--font-display); letter-spacing: -0.028em; }
.lead { margin: 20px 0 0; color: var(--fg-muted); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; letter-spacing: -0.015em; }
.body { color: var(--fg-muted); max-width: 56ch; }
.note { margin: 12px 0 0; color: var(--fg-muted); font-size: 13px; letter-spacing: .005em; }
h3 { margin: 0 0 8px; font: 620 21px/1.25 var(--font-display); letter-spacing: -0.018em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-on); font-weight: 650; text-decoration: none;
  transition: transform 90ms ease-out, background-color 140ms;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.97); }
.btn--small { padding: 8px 14px; font-size: 14px; }
.btn--large { gap: 10px; padding: 17px 32px; font-size: 18px; letter-spacing: -0.015em; }
.btn__apple { width: 19px; height: 19px; margin-top: -3px; fill: currentColor; flex: none; }
.link { color: var(--fg-muted); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--fg); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }

section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Nav: clear at the top, a translucent material once content scrolls under it. */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease-snap), border-color 220ms var(--ease-snap);
}
.nav.is-scrolled {
  background: rgb(18 20 22 / .72); border-bottom-color: rgb(255 255 255 / .07);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.015em; }
.nav__brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 24px; margin-left: 16px; }
.nav__links a, .nav__lang { color: var(--fg-muted); text-decoration: none; font-size: 14px; }
.nav__links a:hover, .nav__lang:hover { color: var(--fg); }
.nav__end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
@media (max-width: 720px) { .nav__links { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 24px; padding-top: clamp(48px, 8vw, 96px); }
.hero__mascot video { width: 100%; max-width: 520px; margin-inline: auto; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; text-align: left; } .hero__mascot { order: -1; } .hero__mascot video { max-width: 280px; margin: 0; } }

.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0;
  width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter));
  background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); overflow: hidden;
}
.proof div { background: var(--bg); padding: 28px 24px; }
.proof strong { display: block; font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; }
.proof span { display: block; margin-top: 8px; color: var(--fg-muted); font-size: 14px; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } }

/* Product: without the sticky stage (phones, reduced motion, no JS) each step carries its
   own screenshot inline; with it, the screenshots live once in the stage. */
.product__grid { display: grid; gap: 48px; }
.product__stage { display: none; }
.product__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.step p { color: var(--fg-muted); max-width: 46ch; }
.step__shot, .window { border-radius: 12px; box-shadow: 0 28px 72px -18px rgb(0 0 0 / .68), 0 4px 12px -4px rgb(0 0 0 / .4), 0 0 0 1px rgb(255 255 255 / .06); }
.step__shot { margin-top: 24px; }
.bars { display: flex; align-items: end; gap: 10px; height: 96px; margin: 24px 0 0; }
.bars span { position: relative; flex: 1; height: 100%; transform-origin: bottom; }
.bars span::before, .bars span::after { content: ""; position: absolute; bottom: 0; width: 46%; border-radius: 3px 3px 0 0; }
.bars span::before { left: 0; height: calc(var(--in) * 100%); background: var(--accent); }
.bars span::after { right: 0; height: calc(var(--out) * 100%); background: var(--neg); opacity: .85; }

/* The sticky stage is motion: with reduced motion the steps stay a plain list. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .product__grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .js .product__stage { display: block; position: sticky; top: 96px; }
  .js .window { position: relative; aspect-ratio: 1600 / 934; overflow: hidden; background: var(--surface); }
  .js .product__screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 340ms var(--ease-snap), transform 340ms var(--ease-snap); transform: scale(.985); }
  .js .product__screen.is-active { opacity: 1; transform: none; }
  .js .product__steps { gap: 0; }
  .js .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
  .js .step h3 { color: var(--fg-muted); transition: color 340ms var(--ease-snap); }
  .js .step.is-active h3 { color: var(--fg); }
  .js .step__shot { display: none; }
  .product__dots { display: flex; gap: 0; justify-content: center; margin-top: 20px; }
  /* 24px hit area (WCAG 2.5.8) around an 8px dot. */
  .product__dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .product__dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface-3); transition: background-color 220ms, transform 90ms ease-out; }
  .product__dots button.is-active::before { background: var(--accent); }
  .product__dots button:active::before { transform: scale(.85); }
}

.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.mascot { width: min(360px, 70vw); }
.mascot--flow { width: min(280px, 60vw); justify-self: end; }

/* A rail runs through the stage icons; scrolling fills it and lights each stage. Without
   motion everything renders filled and lit. */
.pipeline { grid-column: 1 / -1; position: relative; margin-top: 24px; --icon: 48px; --gap: 24px; }
.pipeline__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); position: relative; }
.pipeline__rail { position: absolute; top: calc(var(--icon) / 2 - 1px); height: 2px; left: calc(var(--icon) / 2);
  right: calc((100% - 3 * var(--gap)) / 4 - var(--icon) / 2); background: var(--border); border-radius: 2px; overflow: hidden; }
.pipeline__rail span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left center; }
.stage-card { display: grid; gap: 20px; align-content: start; }
.stage-card__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--icon); height: var(--icon); border-radius: 14px;
  /* Tint over an opaque base: a translucent fill would let the rail show through. */
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); border: 1px solid var(--accent); color: var(--accent-hi);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background-color 340ms var(--ease-snap), border-color 340ms var(--ease-snap), color 340ms var(--ease-snap), transform 340ms var(--ease-snap);
}
.stage-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-card__num { display: block; margin-bottom: 6px; color: var(--fg-muted); font: 600 12px/1 var(--font-mono); letter-spacing: .04em; }
.stage-card h3 { font-size: 19px; }
.stage-card p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.pipeline.is-tracking .stage-card:not(.is-lit) .stage-card__icon { background: var(--surface-2); border-color: var(--border); color: var(--fg-muted); transform: scale(.94); }

@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .mascot--flow { justify-self: start; width: min(220px, 55vw); }
  .pipeline__stages { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stage-card { grid-template-columns: var(--icon) minmax(0, 1fr); gap: 18px; }
  /* Stacked: one connector per gap, so the line never runs past the last icon. */
  .pipeline__rail { display: none; }
  .stage-card { position: relative; }
  .stage-card:not(:last-child)::after {
    content: ""; position: absolute; left: calc(var(--icon) / 2 - 1px); top: calc(var(--icon) + 8px); bottom: -24px; width: 2px;
    border-radius: 2px; background: var(--accent); transition: background-color 340ms var(--ease-snap);
  }
  .pipeline.is-tracking .stage-card:not(.is-lit)::after,
  .pipeline.is-tracking .stage-card:has(+ .stage-card:not(.is-lit))::after { background: var(--border); }
}

.privacy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.manifesto { margin: 8px 0 32px; font: 680 clamp(26px, 3.4vw, 40px)/1.15 var(--font-display); letter-spacing: -0.025em; }
.net { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15px; }
.net caption { text-align: left; color: var(--fg-muted); font-size: 13px; padding-bottom: 8px; }
.net th, .net td { text-align: left; vertical-align: top; padding: 12px 0; border-top: 1px solid var(--border-subtle); font-weight: 400; }
.net th { color: var(--fg-muted); padding-right: 24px; width: 50%; }
.net__never { color: var(--accent-hi); font-weight: 650; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

.ai { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font-size: 11px; vertical-align: 2px; }
.chat { margin: 28px 0; display: grid; gap: 10px; }
.chat p { margin: 0; padding: 12px 16px; border-radius: 16px; max-width: 46ch; }
.chat__q { justify-self: end; background: var(--accent); color: var(--accent-on); border-bottom-right-radius: 4px; }
.chat__a { background: var(--surface-2); border-bottom-left-radius: 4px; }
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; } }

.specs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); overflow: hidden; }
.specs__grid div { background: var(--bg); padding: 32px 24px; }
.specs__grid dt { font: 700 34px/1.05 var(--font-display); letter-spacing: -0.028em; }
.specs__grid dd { margin: 8px 0 0; color: var(--fg-muted); font-size: 15px; }
@media (max-width: 760px) { .specs__grid { grid-template-columns: 1fr 1fr; } }

.install { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.install__mascot .celebrate { width: 100%; max-width: 420px; transform-origin: 50% 100%; }
/* A hop on hover: squash, lift, land. Starts and ends at rest, so stopping after a full
   cycle never snaps. */
.install__mascot .celebrate.is-hopping { animation: hop 760ms var(--ease-snap) infinite; }
@keyframes hop {
  0%, 100% { transform: none; }
  18% { transform: scale(1.04, .95); }
  48% { transform: translateY(-9%) scale(.98, 1.03); }
  78% { transform: scale(1.02, .98); }
}
.install__steps { margin: 0 0 32px; padding-left: 22px; color: var(--fg-muted); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 10px 10px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-subtle); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--fg); }
.cmd__copy { flex: none; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--fg); font: 600 13px var(--font-body); cursor: pointer; transition: transform 90ms ease-out; }
.cmd__copy:active { transform: scale(.96); }
@media (max-width: 860px) { .install { grid-template-columns: minmax(0, 1fr); } .install__mascot .celebrate { max-width: 260px; } }

.footer { display: grid; justify-items: center; gap: 8px; padding: 64px var(--gutter) 48px; border-top: 1px solid var(--border-subtle); text-align: center; }
.footer video { width: 120px; border-radius: 26px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 12px; font-size: 14px; }
.footer__links a { color: var(--fg-muted); text-decoration: none; }
.footer__links a:hover { color: var(--fg); }

.notfound main { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; }
.notfound img { width: min(320px, 70vw); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
