/* Pace Maker — site styles. Dark first, light via prefers-color-scheme. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d13;
  --bg-alt: #0e1119;
  --surface: #131722;
  --surface-2: #191e2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f7fb;
  --text-2: #a9b1c3;
  --text-3: #6f7891;

  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --purple: #a78bfa;
  --teal: #2dd4bf;

  --store-bg: #ffffff;
  --store-fg: #0b0d13;

  --c-sent: #3b82f6;
  --c-received: #22c55e;
  --c-failures: #ef4444;
  --c-error: #f59e0b;
  --c-grid: rgba(255, 255, 255, 0.07);
  --c-axis: rgba(255, 255, 255, 0.42);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-alt: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f3f5fa;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #0b1020;
    --text-2: #4a5468;
    --text-3: #7a8499;
    --blue: #2563eb;
    --store-bg: #0b0d13;
    --store-fg: #ffffff;
    --c-sent: #2563eb;
    --c-received: #16a34a;
    --c-failures: #dc2626;
    --c-error: #d97706;
    --c-grid: rgba(15, 23, 42, 0.07);
    --c-axis: rgba(15, 23, 42, 0.45);
    --shadow: 0 30px 70px -25px rgba(15, 23, 42, 0.3), 0 0 0 1px var(--border);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 750; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-3); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 46ch; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.grad {
  background: linear-gradient(100deg, var(--blue-2) 10%, #a5b4fc 55%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-2); font-weight: 550; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s, border-color 0.2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 11px; gap: 7px; }
.btn--lg { padding: 12px 22px 12px 18px; border-radius: 16px; gap: 12px; }
.btn--lg > svg { width: 30px; height: 30px; }
.btn--block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn--store {
  background: var(--store-bg);
  color: var(--store-fg);
  box-shadow: 0 10px 30px -10px rgba(96, 165, 250, 0.55), 0 0 0 1px var(--border);
}
.btn--store:hover { box-shadow: 0 16px 40px -10px rgba(96, 165, 250, 0.75), 0 0 0 1px var(--border); }
.btn--store.is-soon { cursor: default; transform: none; box-shadow: 0 0 0 1px var(--border); opacity: 0.92; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.btn__stack small { font-size: 0.72rem; font-weight: 520; opacity: 0.75; }
.btn__stack strong { font-size: 1.22rem; font-weight: 680; letter-spacing: -0.015em; }
.btn__price {
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-fg) 10%, transparent);
  font-size: 0.92rem;
  font-weight: 700;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8); }
.btn--primary:hover { background: #2f74e6; }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue-2); background: color-mix(in srgb, var(--blue) 8%, transparent); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
.cta--center { justify-content: center; }
.cta__alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.cta__alt > svg { width: 18px; height: 18px; flex: none; }
.cta__alt > svg:last-child { width: 15px; height: 15px; transition: transform 0.2s; }
.cta__alt:hover { color: var(--text); }
.cta__alt:hover > svg:last-child { transform: translateX(3px); }
.cta__alt em {
  font-style: normal;
  font-size: 0.82rem;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-3);
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled, .nav.is-open {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); background: var(--border); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); }
.nav__toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 900px;
  height: 700px;
  right: -200px;
  top: -260px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.35), rgba(45, 212, 191, 0.08) 60%, transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; margin: 22px 0 22px; }
.hero h1 .grad { display: block; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.85rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--blue-2); color: var(--text); }
.pill svg { width: 14px; height: 14px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.hero__meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: var(--text-3); }
.hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--green); }

/* Hero recording: a real capture of the app window */
.hero__shot { position: relative; container-type: inline-size; }
.hero__shot::before {
  content: "";
  position: absolute;
  inset: 12% 6% 10%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.35), transparent);
  filter: blur(40px);
  z-index: -1;
}
.hero__video {
  /* The window's own corner radius is ~2.1 % of the recording's width; clip a little
     beyond it so none of the transparent (black in video) corner shows. */
  border-radius: 2.5cqw;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  line-height: 0;
}
.hero__video video, .hero__video img { width: 100%; height: auto; display: block; }
.hero__caption { margin-top: 14px; text-align: center; font-size: 0.82rem; color: var(--text-3); }

/* Trust strip */
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; padding: 0; margin: 72px 0 0; color: var(--text-3); font-size: 0.9rem; font-weight: 550; }
.trust li { padding: 0 18px; }
.trust li + li { border-left: 1px solid var(--border-strong); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section--tight { padding: 48px 0 112px; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head .lead { margin: 18px auto 0; max-width: 60ch; }

.stats-band { padding: 36px 0 24px; }
.stats-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--text-3); font-size: 0.92rem; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --accent: var(--blue);
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; }
.card--green { --accent: var(--green); }
.card--red { --accent: var(--red); }
.card--orange { --accent: var(--orange); }
.card--purple { --accent: var(--purple); }
.card--teal { --accent: var(--teal); }
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card__points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card__points li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 0.84rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.card__points svg { width: 14px; height: 14px; color: var(--accent); }

/* Split: backpressure */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.pipeline-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.pipeline-steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--text-2); font-size: 0.98rem; }
.pipeline-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-2);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
}
.pipeline-steps li:last-child::before { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.pipeline-steps strong { color: var(--text); }

.split__visual { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pipeline { width: 100%; height: auto; overflow: visible; }
.pipeline__lanes path { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 4 5; }
.pipeline__lanes path.shed { stroke: color-mix(in srgb, var(--red) 60%, transparent); }
.pipeline__nodes rect { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.pipeline__nodes rect.server { stroke: color-mix(in srgb, var(--green) 60%, transparent); fill: color-mix(in srgb, var(--green) 8%, var(--surface-2)); }
.pipeline__nodes rect.shed { stroke: color-mix(in srgb, var(--red) 55%, transparent); fill: color-mix(in srgb, var(--red) 8%, var(--surface-2)); }
.pipeline__nodes text { fill: var(--text); font: 650 15px var(--font); text-anchor: middle; }
.pipeline__nodes text.sub { fill: var(--text-3); font-size: 12px; font-weight: 500; }
.pipeline__nodes text.shed-text { fill: var(--red); font-size: 13px; }
.pipeline__queue rect { fill: color-mix(in srgb, var(--blue) 55%, transparent); stroke: none; }
.pipeline__queue rect.dim { fill: var(--border-strong); }
.pipeline__nodes circle { fill: rgba(59, 130, 246, 0.22); stroke: #60a5fa; stroke-width: 1.5; animation: work 1.6s ease-in-out infinite; }
.pipeline__nodes circle:nth-of-type(2) { animation-delay: 0.4s; }
.pipeline__nodes circle:nth-of-type(3) { animation-delay: 0.8s; }
.pipeline__nodes circle:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes work { 50% { fill: rgba(96, 165, 250, 0.9); } }
.pipeline__flow .dot { fill: var(--blue-2); animation: flow-in 1.8s linear infinite; }
.pipeline__flow .dot--b { animation-delay: 0.6s; }
.pipeline__flow .dot--c { animation-delay: 1.2s; }
.pipeline__flow .dot--out { fill: var(--green); animation-name: flow-out; animation-duration: 1.2s; }
.pipeline__flow .dot--e { animation-delay: 0.6s; }
.pipeline__flow .dot--shed { fill: var(--red); animation: flow-shed 2.4s ease-in infinite; }
@keyframes flow-in { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }
@keyframes flow-out { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(30px); opacity: 0; } }
@keyframes flow-shed { 0%, 30% { transform: translateY(0); opacity: 0; } 45% { opacity: 1; } 100% { transform: translateY(70px); opacity: 0; } }

/* Gallery */
.gallery__tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__tabs button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; font-size: 0.92rem; font-weight: 560; color: var(--text-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.gallery__tabs button:hover { color: var(--text); }
.gallery__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.gallery__stage { position: relative; }
.gallery__stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% -4%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.28), transparent);
  filter: blur(40px);
  z-index: -1;
}
.gallery__panel { margin: 0; animation: fade-up 0.45s ease both; }
.gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; }
.gallery__zoom img { width: 100%; }
.gallery__panel figcaption { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 0.95rem; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.inspector-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 96px; }
.inspector-shots figure { margin: 0; }
.inspector-shots img { border-radius: 14px; box-shadow: var(--shadow); }
.inspector-shots figure:last-child { align-self: end; }
.inspector-shots__copy h3 { font-size: 1.6rem; margin-bottom: 14px; }
.inspector-shots__copy p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.97rem; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.ticks li.is-muted { color: var(--text-3); }
.ticks li.is-muted svg { color: var(--text-3); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 7, 12, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; z-index: 1; }
.lightbox__close svg { width: 16px; height: 16px; }
.lightbox[open] { animation: zoom-in 0.25s ease; }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), #6366f1); box-shadow: 0 10px 24px -8px rgba(59, 130, 246, 0.7); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.97rem; }

/* Comparison */
.compare { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.85rem; font-weight: 650; color: var(--text-2); }
.compare th[scope="row"] { text-align: left; font-weight: 560; color: var(--text); }
.compare .is-us { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.compare thead .is-us { color: var(--blue-2); font-size: 0.95rem; }
.mark svg { width: 20px; height: 20px; margin: 0 auto; }
.mark small { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-3); }
.mark--yes svg { color: var(--green); }
.mark--no svg { color: color-mix(in srgb, var(--red) 70%, var(--text-3)); }
.mark--partial svg { color: var(--text-3); }

/* Recommendation card (download page) */
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.plan--featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--blue-2), #818cf8 45%, var(--teal)) border-box;
  box-shadow: 0 40px 90px -40px rgba(59, 130, 246, 0.65);
}
.plan__badge { position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--blue), #6366f1); }
.plan__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.plan__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--store-bg); color: var(--store-fg); }
.plan__icon svg { width: 26px; height: 26px; }
.plan h3 { font-size: 1.3rem; }
.plan__price-sm { color: var(--text-2); font-size: 0.95rem; margin-top: 4px; }
.plan > p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 24px; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roadmap__item { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.roadmap__item h3 { font-size: 1.4rem; margin: 14px 0 8px; }
.roadmap__item p { color: var(--text-2); font-size: 0.97rem; }
.soon { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { position: relative; list-style: none; padding: 20px 56px 20px 24px; font-weight: 620; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--text-3); transition: transform 0.25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }

/* Final CTA */
.final { position: relative; padding: 120px 0 140px; overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; left: 50%; top: 30%; width: 1000px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(59, 130, 246, 0.25), transparent); pointer-events: none; }
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__icon { width: 112px; height: 112px; margin-bottom: 32px; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(59, 130, 246, 0.6); }
.final h2 { max-width: 18ch; }
.final .lead { margin-top: 18px; }
.final .cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); font-size: 0.92rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 10px; color: var(--text-3); }
.footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__links h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px; }
.footer__links a { display: block; color: var(--text-2); margin-bottom: 8px; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.82rem; }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 32px; overflow: hidden; text-align: center; }
.page-hero--full { min-height: 80vh; display: grid; align-items: center; }
.page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.page-hero__icon { margin-bottom: 24px; border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(59, 130, 246, 0.6); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; }
.page-hero .lead { margin-top: 16px; }
.page-hero .hero__glow { right: 50%; transform: translateX(50%); top: -360px; }

.download { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.download__main { display: grid; gap: 24px; }
.download__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.panel { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.panel__title { font-size: 1.3rem; margin-bottom: 18px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.release-meta div { padding: 10px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.release-meta span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }
.release-meta strong { font-size: 1rem; }
.download__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.checksum { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.checksum span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); flex: none; }
.checksum code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 0.82rem; }
.checksum__copy { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.82rem; cursor: pointer; }
.checksum__copy svg { width: 14px; height: 14px; }
.checksum__copy.is-done { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.install { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-2); }
.install strong { color: var(--text); }
.install li::marker { color: var(--blue-2); font-weight: 700; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--text-2); font-size: 0.9rem; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue-2); }
.note code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); word-break: break-all; }

.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); margin-bottom: 14px; }
.prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta, .hero__meta { justify-content: center; }
  .hero__shot { max-width: 760px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .inspector-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inspector-shots__copy { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .inspector-shots__copy .ticks { justify-items: center; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 8px; font-size: 1.05rem; border-radius: 10px; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: block; }
  .bento, .steps, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band__inner { grid-template-columns: 1fr 1fr; }
  .download { grid-template-columns: minmax(0, 1fr); }
  .download__aside { position: static; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .bento, .steps, .roadmap { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: auto; }
  .inspector-shots { grid-template-columns: minmax(0, 1fr); }
  .inspector-shots figure { max-width: 340px; margin-inline: auto; }
  .trust li { padding: 0 12px; font-size: 0.82rem; }
  .plan, .panel { padding: 24px; }
  .nav__actions .btn--sm span { display: none; }
  .footer__links { gap: 40px; }
}

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

/* ---------- Statistics dashboard (private, noindex) ---------- */
.stats-body { font-size: 15px; background: var(--bg); }
.stats-container { width: min(1360px, 100% - 40px); margin-inline: auto; }
.stats-link { color: var(--blue-2); font-weight: 550; font-size: 0.9rem; }
.stats-link:hover { text-decoration: underline; }
.stats-muted { color: var(--text-3); }
.stats-nowrap { white-space: nowrap; }
.stats-empty { color: var(--text-3); font-size: 0.9rem; padding: 12px 0 4px; }

.stats-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.stats-login__card {
  width: min(380px, 100%); display: grid; gap: 18px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats-login__card .brand { margin-bottom: 6px; }
.stats-login__card label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.stats-login__card input {
  font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.stats-login__card input:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.stats-login__error {
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem;
  color: var(--text); background: color-mix(in srgb, var(--red) 14%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
}

.stats-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.stats-header__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 12px 0; }
.stats-header__user { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.stats-header__user form { margin: 0; }
.stats-ranges { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.stats-ranges a { padding: 5px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 550; color: var(--text-2); }
.stats-ranges a:hover { color: var(--text); background: var(--surface-2); }
.stats-ranges a[aria-current="page"] { color: #fff; background: var(--blue); }

.stats-main { padding: 24px 0 64px; display: grid; gap: 20px; }
.stats-period { color: var(--text-2); font-size: 0.92rem; }
.stats-period strong { color: var(--text); }

.stats-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stats-kpi { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.stats-kpi__label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.stats-kpi__value { font-size: 1.75rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stats-kpi__note { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

.stats-panel { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; margin: 0; }
.stats-panel h2 { font-size: 1rem; letter-spacing: -0.01em; font-weight: 700; }
.stats-panel__note, .stats-chart figcaption p { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

.stats-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
.stats-chart svg { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.stats-chart text { font-family: var(--font); font-size: 13px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.stats-chart__y { text-anchor: end; dominant-baseline: middle; }
.stats-chart__x { text-anchor: middle; }
.stats-chart__empty { text-anchor: middle; font-size: 13px !important; }
.stats-chart__grid { stroke: var(--c-grid); stroke-width: 1; }
.stats-chart__base { stroke: var(--c-axis); }
.stats-chart__bar path { fill: var(--blue); transition: fill 0.15s; }
.stats-chart__bar rect { fill: transparent; }
.stats-chart__bar:hover path { fill: var(--blue-2); }
.stats-chart__bar:hover rect { fill: var(--c-grid); }

.stats-data { margin-top: 8px; font-size: 0.85rem; }
.stats-data summary { cursor: pointer; color: var(--text-3); width: max-content; }
.stats-data summary:hover { color: var(--text-2); }
.stats-data table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.stats-data th, .stats-data td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.stats-data th { color: var(--text-3); font-weight: 600; text-transform: capitalize; }

.stats-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.88rem; table-layout: fixed; }
.stats-table th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); text-align: left; padding: 0 8px 6px; }
.stats-table td { padding: 5px 8px; border-top: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-table th:first-child { width: auto; }
.stats-table th.num { width: 76px; }
.stats-table td:first-child { position: relative; }
.stats-table td:first-child > :not(.stats-meter) { position: relative; }
.stats-table code { font-size: 0.84rem; }
.stats-meter {
  position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--w); min-width: 2px;
  border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--blue) 18%, transparent);
}
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

.stats-status { display: inline-block; padding: 0 7px; border-radius: 6px; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; border: 1px solid; }
.stats-status--ok { color: var(--c-received); border-color: color-mix(in srgb, var(--c-received) 40%, transparent); }
.stats-status--redirect { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.stats-status--client { color: var(--c-error); border-color: color-mix(in srgb, var(--c-error) 40%, transparent); }
.stats-status--server { color: var(--c-failures); border-color: color-mix(in srgb, var(--c-failures) 40%, transparent); }
.stats-status--other { color: var(--text-2); border-color: var(--border-strong); }
.stats-tag { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 0.72rem; font-weight: 650; text-transform: uppercase; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong); }

.stats-scroll { overflow-x: auto; }
.stats-table--recent { min-width: 1100px; table-layout: auto; }
.stats-table--recent th { white-space: nowrap; }
.stats-table--recent th.num { width: auto; }
.stats-table--recent tr.is-bot td { color: var(--text-3); }
.stats-clip { max-width: 280px; }

@media (max-width: 640px) {
  .stats-charts, .stats-tables { grid-template-columns: 1fr; }
  .stats-header__user { margin-left: 0; }
}
