/* ============================================================
   Neztrack — site styles
   Tokens, layout, components shared across landing + feature pages
   ============================================================ */

:root {
  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Accent — baked: Arctic blue */
  --accent: oklch(0.72 0.14 240);
  --accent-ink: oklch(0.16 0.06 240);
  --accent-soft: oklch(0.72 0.14 240 / 0.14);

  /* Dark surface tokens */
  --d-bg:        oklch(0.155 0.014 240);
  --d-bg-2:      oklch(0.185 0.014 240);
  --d-surface:   oklch(0.215 0.014 240);
  --d-surface-2: oklch(0.245 0.014 240);
  --d-border:    oklch(0.30 0.014 240);
  --d-border-2:  oklch(0.40 0.014 240);
  --d-ink:       oklch(0.97 0.006 250);
  --d-ink-2:     oklch(0.80 0.010 250);
  --d-muted:     oklch(0.62 0.012 250);

  /* Light tokens */
  --l-bg:        oklch(0.985 0.006 220);
  --l-bg-2:      oklch(0.965 0.0072 220);
  --l-surface:   #ffffff;
  --l-border:    oklch(0.91 0.0072 220);
  --l-border-2:  oklch(0.83 0.0084 220);
  --l-ink:       oklch(0.18 0.010 250);
  --l-ink-2:     oklch(0.38 0.012 250);
  --l-muted:     oklch(0.55 0.010 250);

  /* Status palette */
  --ok:    oklch(0.72 0.14 150);
  --warn:  oklch(0.78 0.15 75);
  --crit:  oklch(0.65 0.22 25);
  --info:  oklch(0.70 0.13 240);

  /* Radii / spacing */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Density (tweakable) */
  --pad-section: clamp(72px, 9vw, 128px);
  --pad-card: 20px;
}

[data-density="compact"] {
  --pad-section: clamp(48px, 6vw, 88px);
  --pad-card: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--d-bg);
  color: var(--d-ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Layout primitives ----- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.section { padding: var(--pad-section) 0; }

.surface-dark   { background: var(--d-bg); color: var(--d-ink); }
.surface-dark-2 { background: var(--d-bg-2); color: var(--d-ink); }
.surface-light  { background: var(--l-bg); color: var(--l-ink); }
.surface-light-2 { background: var(--l-bg-2); color: var(--l-ink); }

/* ----- Typography ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.surface-light .eyebrow { color: oklch(0.55 0.18 60); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 500; }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

p { line-height: 1.55; margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--d-ink-2); }
.surface-light .lead { color: var(--l-ink-2); }

.muted { color: var(--d-muted); }
.surface-light .muted { color: var(--l-muted); }

.mono { font-family: var(--font-mono); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: oklch(from var(--accent) calc(l + 0.04) c h); }
.btn-ghost-dark {
  background: transparent;
  color: var(--d-ink);
  border-color: var(--d-border);
}
.btn-ghost-dark:hover { border-color: var(--d-border-2); background: var(--d-surface); }
.btn-ghost-light {
  background: transparent;
  color: var(--l-ink);
  border-color: var(--l-border-2);
}
.btn-ghost-light:hover { background: var(--l-surface); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Top nav (v2 — floating pill + products menu) ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--d-bg) 95%, transparent) 0%, color-mix(in oklch, var(--d-bg) 70%, transparent) 70%, transparent 100%);
}
.surface-light .nav {
  background: linear-gradient(180deg, color-mix(in oklch, var(--l-bg) 95%, transparent) 0%, color-mix(in oklch, var(--l-bg) 70%, transparent) 70%, transparent 100%);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: center;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--d-surface) 62%, transparent) 0%,
      color-mix(in oklch, var(--d-bg-2) 58%, transparent) 100%);
  border: 1px solid color-mix(in oklch, var(--d-border-2) 50%, transparent);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.06) inset,
    0 0 0 1px oklch(0 0 0 / 0.15),
    0 18px 48px -20px rgba(0,0,0,0.55);
  width: 100%;
  max-width: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--d-ink);
  padding-right: 14px;
  border-right: 1px solid color-mix(in oklch, var(--d-border) 60%, transparent);
  height: 36px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--d-ink);
}
.brand-mark svg { width: 22px; height: 18px; }
.brand-mark svg path { fill: currentColor; }

/* Status pip baked into brand */
.brand .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-left: 6px;
}
.brand .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 20%, transparent);
  animation: blink 2.4s ease-in-out infinite;
}

/* Nav links group */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 0 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-ink-2);
  transition: color .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover { color: var(--d-ink); background: color-mix(in oklch, var(--d-surface) 60%, transparent); }
.nav-link.active { color: var(--d-ink); background: color-mix(in oklch, var(--d-surface) 80%, transparent); }
.nav-link .caret {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-left: 2px;
  opacity: 0.5;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-link:hover .caret { opacity: 1; transform: translateY(1px); }

/* Products dropdown */
.nav-prod {
  position: relative;
}
.nav-prod-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--d-bg-2);
  border: 1px solid var(--d-border);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 240px);
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .2s ease;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5), 0 0 0 1px oklch(1 0 0 / 0.02);
}
.nav-prod:hover .nav-prod-menu,
.nav-prod:focus-within .nav-prod-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-prod-menu::before {
  /* invisible hover bridge */
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}

.nav-prod-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.nav-prod-card:hover {
  background: var(--d-surface);
  border-color: var(--d-border);
}
.nav-prod-card .pico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-prod-card .pico svg { width: 18px; height: 18px; }
.nav-prod-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
}
.nav-prod-card h6 {
  margin: 0;
  font-size: 14.5px;
  color: var(--d-ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-prod-card p {
  font-size: 12.5px;
  color: var(--d-ink-2);
  line-height: 1.45;
  margin: 0;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid color-mix(in oklch, var(--d-border) 60%, transparent);
}
.nav-right .nav-signin {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--d-ink-2);
}
.nav-right .nav-signin:hover { color: var(--d-ink); }
.nav-right .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease;
}
.nav-right .nav-cta:hover { transform: translateY(-1px); background: oklch(from var(--accent) calc(l + 0.04) c h); }
.nav-right .nav-cta .arrow { transition: transform .2s ease; }
.nav-right .nav-cta:hover .arrow { transform: translateX(3px); }

/* ----- Mobile nav (hamburger) ----- */
/* Appearance lives at base scope; the panel is display:none until mobile+open,
   so these rules never affect the desktop layout. Only the show/hide toggles
   are gated by the media query below. */
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  position: relative;
  width: 42px; height: 42px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--d-border-2) 60%, transparent);
  background: color-mix(in oklch, var(--d-surface) 55%, transparent);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-burger:hover { background: var(--d-surface); }
.nav-burger span {
  position: absolute;
  left: 12px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--d-ink);
  transition: transform .22s ease, opacity .15s ease, top .22s ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  flex-direction: column;
  background: var(--d-bg-2);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,0.6), 0 1px 0 oklch(1 0 0 / 0.04) inset;
}
.nav-m-group { display: flex; flex-direction: column; padding: 4px; }
.nav-m-group + .nav-m-group { border-top: 1px solid var(--d-border); margin-top: 2px; padding-top: 6px; }
.nav-m-head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--d-muted); padding: 8px 12px 4px;
}
.nav-m-link, .nav-m-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 14px; border-radius: 13px;
  color: var(--d-ink); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: background .14s ease;
}
.nav-m-link:hover, .nav-m-sub:hover { background: var(--d-surface); }
.nav-m-sub .nm-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--d-muted); font-weight: 500;
}
.nav-m-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 4px 4px; margin-top: 2px; border-top: 1px solid var(--d-border);
}
.nav-m-signin {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--d-border-2);
  color: var(--d-ink); font-size: 15px; font-weight: 500;
  transition: background .14s ease;
}
.nav-m-signin:hover { background: var(--d-surface); }
.nav-m-cta {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
}
.nav-m-cta .arrow { transition: transform .2s ease; }
.nav-m-cta:hover .arrow { transform: translateX(3px); }
@keyframes navmenu {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.nav-locked { overflow: hidden; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .brand { border-right: 0; padding-right: 0; }
  .brand .status { display: none; }
  .nav-shell { position: relative; padding: 7px 8px 7px 16px; }
  .nav-burger { display: inline-flex; }
  .nav-open .nav-mobile { display: flex; animation: navmenu .2s ease; }
}
@media (max-width: 560px) {
  .nav { padding: 10px 0; }
  .nav-shell { width: 100%; }
  .nav-inner { padding: 0 12px; }
}

/* ----- Tag chip ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--d-border);
  background: var(--d-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.surface-light .tag {
  background: var(--l-surface);
  border-color: var(--l-border);
  color: var(--l-ink-2);
}
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }
.tag.tag-warn .dot { background: var(--warn); }
.tag.tag-crit .dot { background: var(--crit); }
.tag.tag-info .dot { background: var(--info); }

/* ----- Card ----- */
.card {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.surface-light .card {
  background: var(--l-surface);
  border-color: var(--l-border);
  box-shadow: 0 1px 0 rgba(15,20,35,0.02), 0 6px 18px -8px rgba(15,20,35,0.05);
}

/* ----- Feature grid ----- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--l-muted);
  letter-spacing: 0.08em;
}
.feature h3 { font-size: 22px; }
.feature p { color: var(--l-ink-2); font-size: 15px; }

/* ----- Footer ----- */
footer.site-footer {
  background: var(--d-bg);
  color: var(--d-ink-2);
  border-top: 1px solid var(--d-border);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: var(--d-ink-2); font-size: 14px; }
.footer-col li a:hover { color: var(--d-ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--d-border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--d-muted);
}

/* ----- Utility: pixel grid for "screenshots" ----- */
.bg-grid {
  background-image:
    linear-gradient(to right, oklch(0.30 0.012 250 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.30 0.012 250 / 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ----- Store badges ----- */
.store-badges { display: inline-flex; gap: 8px; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 10px;
  background: oklch(0.10 0.005 250);
  color: var(--d-ink);
  border: 1px solid var(--d-border-2);
  font-family: var(--font-sans);
  transition: transform .15s ease, border-color .2s ease;
  text-align: left;
  line-height: 1;
}
.store-badge:hover { transform: translateY(-1px); border-color: var(--accent); }
.store-badge .icn { width: 22px; height: 22px; flex: 0 0 22px; display:grid; place-items:center; color: var(--d-ink); }
.store-badge .txt { display: flex; flex-direction: column; gap: 3px; }
.store-badge .small { font-size: 9px; letter-spacing: 0.08em; color: var(--d-muted); font-family: var(--font-mono); text-transform: uppercase; }
.store-badge .big { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.surface-light .store-badge { background: oklch(0.13 0.012 250); color: var(--d-ink); }

/* ============================================================
   Product page patterns
   ============================================================ */

/* Product hero (dark) */
.p-hero {
  position: relative;
  background: var(--d-bg);
  color: var(--d-ink);
  padding: 56px 0 80px;
  overflow: hidden;
}
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 50% at 85% 15%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 0% 80%, oklch(0.40 0.10 240 / 0.16), transparent 70%);
  pointer-events: none;
}
.p-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.p-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.p-hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 480;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, oklch(1 0 0) 0%, oklch(0.78 0.012 250) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-hero-copy h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, oklch(from var(--accent) calc(l + 0.1) calc(c + 0.05) calc(h - 18)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-style: italic; font-weight: 400;
}
.p-hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--d-ink-2); line-height: 1.5; }
.p-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.p-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--d-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.p-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.p-hero-meta .pill { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); animation: blink 2.4s ease-in-out infinite; }

@media (max-width: 980px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Feature row — alternating image/text */
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--l-border);
}
.f-row:first-of-type { border-top: 0; }
.f-row.reverse .f-row-visual { order: -1; }
.f-row-copy { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.f-row-copy .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--l-muted); }
.f-row-copy h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.02em; font-weight: 500; }
.f-row-copy p { font-size: 16px; color: var(--l-ink-2); line-height: 1.55; }
.f-row-copy ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.f-row-copy ul li { font-size: 14.5px; color: var(--l-ink-2); padding-left: 22px; position: relative; }
.f-row-copy ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1.5px;
  background: var(--accent);
}
.f-row-visual { min-height: 320px; display: grid; place-items: center; position: relative; }

@media (max-width: 980px) {
  .f-row { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .f-row.reverse .f-row-visual { order: 0; }
}

/* Dark feature row variant */
.surface-dark .f-row { border-top: 1px solid var(--d-border); }
.surface-dark .f-row-copy .num { color: var(--d-muted); }
.surface-dark .f-row-copy p { color: var(--d-ink-2); }
.surface-dark .f-row-copy ul li { color: var(--d-ink-2); }

/* Section header (used on product pages) */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 { font-weight: 480; margin-top: 18px; }
.sec-head p { color: var(--l-ink-2); margin-top: 16px; font-size: 17px; line-height: 1.5; }
.surface-dark .sec-head p { color: var(--d-ink-2); }

/* Mock window for product page visuals */
.app-mock {
  border-radius: var(--r-xl);
  border: 1px solid var(--d-border);
  background: var(--d-bg-2);
  overflow: hidden;
  width: 100%;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.5);
}
.app-mock .chrome { display:flex; align-items:center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--d-border); background: var(--d-surface); }
.app-mock .chrome .dots { display: flex; gap: 6px; }
.app-mock .chrome .dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--d-border-2); }
.app-mock .chrome .url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--d-muted); }

/* Mini key-value chip used in many visuals */
.kv {
  display: inline-grid; grid-template-columns: auto auto; gap: 4px 8px;
  font-family: var(--font-mono); font-size: 11px;
}
.kv dt { color: var(--d-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--d-ink); }

/* ============================================================
   Legal pages (Terms / Privacy)
   ============================================================ */
.legal {
  background: var(--l-bg);
  color: var(--l-ink);
}
.legal-hero {
  background: var(--d-bg);
  color: var(--d-ink);
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}
.legal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 80% 0%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.legal-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.legal-hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 480;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.legal-hero .legal-meta {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--d-muted);
}
.legal-hero .legal-meta b { color: var(--d-ink-2); font-weight: 500; }

.legal-body { padding: 56px 0 96px; }
.legal-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sidebar TOC */
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-toc h5 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--l-muted); margin: 0 0 14px; font-weight: 500;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--l-ink-2); line-height: 1.35;
  transition: background .15s ease, color .15s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 10px; color: var(--l-muted);
  flex: 0 0 auto;
}
.legal-toc a:hover { background: var(--l-bg-2); color: var(--l-ink); }
.legal-toc a.is-active { background: var(--l-surface); color: var(--l-ink); box-shadow: inset 2px 0 0 var(--accent); }

/* Reading column */
.legal-content { max-width: 720px; }
.legal-content .note {
  border: 1px solid var(--l-border);
  border-left: 3px solid var(--accent);
  background: var(--l-surface);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--l-ink-2);
  line-height: 1.55;
  margin-bottom: 40px;
}
.legal-content section { scroll-margin-top: 96px; padding: 0 0 36px; }
.legal-content section + section { border-top: 1px solid var(--l-border); padding-top: 36px; }
.legal-content h2 {
  font-size: 24px; letter-spacing: -0.015em; font-weight: 500;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-content h2 .s-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.04em; font-weight: 500;
}
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; letter-spacing: -0.005em; }
.legal-content p { font-size: 15px; color: var(--l-ink-2); line-height: 1.65; margin: 12px 0; }
.legal-content ul { margin: 12px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-content ul li {
  position: relative; padding-left: 22px; font-size: 15px; color: var(--l-ink-2); line-height: 1.6;
}
.legal-content ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 1.5px; background: var(--accent);
}
.legal-content ul li b { color: var(--l-ink); font-weight: 600; }
.legal-content a.inline { color: oklch(0.50 0.16 60); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .updated { font-family: var(--font-mono); font-size: 11px; color: var(--l-muted); letter-spacing: 0.06em; }

/* Data table */
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--l-border); vertical-align: top;
  color: var(--l-ink-2); line-height: 1.5;
}
.legal-table th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--l-muted); font-weight: 500; border-bottom: 1px solid var(--l-border-2);
}
.legal-table td:first-child { color: var(--l-ink); font-weight: 500; white-space: nowrap; }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}

/* ----- Animations ----- */
@keyframes pulse-soft {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes ring-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(100%); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0.25; }
}
