/* ---------- Tokens (default = dark) ---------- */
:root {
  --bg:        oklch(0.18 0.005 270);
  --bg-2:      oklch(0.205 0.005 270);
  --surface:   oklch(0.225 0.006 270);
  --surface-2: oklch(0.255 0.006 270);
  --line:      oklch(0.30 0.006 270);
  --line-2:    oklch(0.36 0.008 270);
  --fg:        oklch(0.965 0.003 270);
  --fg-muted:  oklch(0.78 0.005 270);
  --fg-dim:    oklch(0.60 0.006 270);

  --accent:    oklch(0.82 0.19 145);          /* electric green */
  --accent-ink: oklch(0.18 0.04 145);
  --accent-soft: oklch(0.82 0.19 145 / 0.14);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --rail: 1200px;

  --shadow-1: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-2: 0 1px 0 0 oklch(1 0 0 / 0.05) inset, 0 8px 30px -10px rgb(0 0 0 / 0.5);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg:        oklch(0.985 0.002 270);
  --bg-2:      oklch(0.965 0.003 270);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.975 0.003 270);
  --line:      oklch(0.90 0.005 270);
  --line-2:    oklch(0.84 0.006 270);
  --fg:        oklch(0.20 0.008 270);
  --fg-muted:  oklch(0.40 0.008 270);
  --fg-dim:    oklch(0.55 0.008 270);

  --shadow-1: 0 1px 0 0 oklch(1 0 0 / 0.6) inset, 0 1px 2px 0 oklch(0 0 0 / 0.06);
  --shadow-2: 0 1px 0 0 oklch(1 0 0 / 0.6) inset, 0 12px 30px -12px oklch(0 0 0 / 0.18);
}

[data-accent="cyan"]   { --accent: oklch(0.82 0.16 215); --accent-ink: oklch(0.18 0.04 215); --accent-soft: oklch(0.82 0.16 215 / 0.14); }
[data-accent="orange"] { --accent: oklch(0.78 0.17 55);  --accent-ink: oklch(0.20 0.04 55);  --accent-soft: oklch(0.78 0.17 55 / 0.14); }
[data-accent="green"]  { --accent: oklch(0.82 0.19 145); --accent-ink: oklch(0.18 0.04 145); --accent-soft: oklch(0.82 0.19 145 / 0.14); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.rail { max-width: var(--rail); margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 640px) { .rail { padding: 0 20px; } }

section { position: relative; }
.divide { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
p  { margin: 0; }
.lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--fg-muted); line-height: 1.55; max-width: 56ch; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn .arr { display: inline-block; transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; color: var(--fg-muted);
  padding: 8px 12px; border-radius: 8px;
}
.nav-link:hover { color: var(--fg); background: var(--surface); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.logo-mark {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  position: relative;
}
.logo-mark::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--fg);
  border-radius: 5px;
  transform: rotate(45deg);
}
.logo-mark::after {
  content: ""; width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent { color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--fg-muted); font-weight: 600; }
.hero-sub { margin-top: 28px; }
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-foot { margin-top: 14px; font-size: 13px; color: var(--fg-dim); display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); display: inline-block; }

/* subtle grid bg in hero */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--line) 50%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: 0.5;
}

/* ---------- Product mockup (hero) ---------- */
.mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tl { width: 10px; height: 10px; border-radius: 99px; background: var(--line-2); }
.mockup-url {
  margin-left: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim);
  background: var(--bg-2);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line);
}
.mockup-body {
  padding: 22px;
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 60%),
    var(--surface);
}

/* a fake host app skeleton inside the browser mockup */
.fake-app { display: grid; grid-template-columns: 140px 1fr; gap: 18px; height: 100%; }
.fake-side { display: flex; flex-direction: column; gap: 10px; }
.fake-side .item { height: 12px; background: var(--surface-2); border-radius: 4px; }
.fake-side .item.active { background: color-mix(in oklch, var(--fg) 20%, transparent); }
.fake-main { display: flex; flex-direction: column; gap: 14px; }
.fake-row { height: 12px; background: var(--surface-2); border-radius: 4px; }
.fake-row.short { width: 60%; }
.fake-row.tall { height: 80px; background:
  repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px),
  var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; }

/* the announce modal floating over the host app */
.pin-modal {
  position: absolute;
  top: 90px; right: 36px;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgb(0 0 0 / 0.5), 0 1px 0 0 oklch(1 0 0 / 0.04) inset;
  padding: 18px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.pin-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 99px;
  margin-bottom: 12px;
}
.pin-modal h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.015em; }
.pin-modal p  { font-size: 13px; color: var(--fg-muted); line-height: 1.45; margin-bottom: 14px; }
.pin-modal .row { display: flex; gap: 8px; }
.pin-btn-primary {
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 7px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 500;
}
.pin-btn-ghost {
  background: transparent; color: var(--fg-muted);
  border: 0; padding: 7px 10px; font-size: 12.5px;
}

/* nudge tooltip */
.nudge-tip {
  position: absolute; bottom: 40px; left: 28%;
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  max-width: 240px;
  box-shadow: 0 12px 30px -8px color-mix(in oklch, var(--accent) 50%, transparent);
}
.nudge-tip::after {
  content: "";
  position: absolute; left: 24px; top: -6px;
  width: 12px; height: 12px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ---------- Pain section ---------- */
.pain {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .pain-grid { grid-template-columns: 1fr; } }
.pain h2 em { font-style: normal; color: var(--fg-dim); }
.pain-body { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--fg); letter-spacing: -0.012em; max-width: 22ch; }
.pain-body span.bad { color: var(--accent); }

/* fake amplitude card */
.amp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.amp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.amp-title { font-size: 13px; color: var(--fg-muted); font-family: var(--mono); }
.amp-pill { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; }
.amp-stat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.amp-num { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.amp-num .pct { color: var(--fg-dim); font-weight: 400; font-size: 0.5em; margin-left: 2px; }
.amp-delta { font-family: var(--mono); font-size: 12px; color: oklch(0.7 0.14 25); }
.amp-sub { color: var(--fg-dim); font-size: 13px; margin-bottom: 22px; }
.amp-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 80px; }
.amp-bars div { background: var(--surface-2); border-radius: 3px 3px 0 0; }

/* ---------- Solution ---------- */
.solution { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head .eyebrow { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
  min-height: 360px;
}
.feat-card .feat-head { display: flex; align-items: center; gap: 12px; }
.feat-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2);
}
.feat-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.feat-card p { color: var(--fg-muted); font-size: 15px; max-width: 38ch; }
.feat-visual {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  padding: 18px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

/* announce mini visual: stacked types */
.types-row { display: flex; flex-direction: column; gap: 8px; }
.type-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  color: var(--fg-muted);
}
.type-chip .badge {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.type-chip.active { border-color: var(--accent); color: var(--fg); background: color-mix(in oklch, var(--accent) 6%, var(--surface)); }
.type-chip.active .badge { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* nudge mini visual: rule builder */
.rule {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-muted);
  line-height: 2;
}
.rule .tk {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 6px;
  color: var(--fg);
}
.rule .tk.acc { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 50%, transparent); color: var(--accent); }
.rule .op { color: var(--fg-dim); }

/* ---------- How it works ---------- */
.how { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.step h3 { font-size: 19px; }
.step p { color: var(--fg-muted); font-size: 14.5px; }
.step-visual {
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

/* code block */
.code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.code .k { color: oklch(0.78 0.13 290); }
.code .s { color: var(--accent); }
.code .c { color: var(--fg-dim); }
.code .f { color: oklch(0.85 0.12 75); }

/* segment selector for step 3 */
.seg {
  display: flex; gap: 6px; padding: 4px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px;
}
.seg div { padding: 6px 10px; border-radius: 5px; color: var(--fg-muted); }
.seg div.on { background: var(--surface-2); color: var(--fg); box-shadow: var(--shadow-1); }

.adoption-line {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-muted);
}
.adoption-line .num { color: var(--accent); font-size: 16px; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(80px, 10vw, 140px) 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px color-mix(in oklch, var(--accent) 35%, transparent); }
.plan .ribbon {
  position: absolute; top: -10px; right: 18px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 6px;
}
.plan-name { font-size: 14px; font-family: var(--mono); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.plan-price .per { color: var(--fg-dim); font-size: 13px; }
.plan-mau { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; min-height: 80px; }
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; justify-content: center; }
.plan-cta .btn-ghost { background: var(--bg); }

.pricing-foot {
  text-align: left;
  margin-top: 32px;
  color: var(--fg-muted);
  font-size: 14px;
  max-width: 56ch;
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; padding: 0; width: 100%; text-align: left;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg);
}
.faq-q .plus {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  flex: 0 0 auto;
  transition: transform .2s ease, background .2s ease;
  color: var(--fg-muted);
  font-size: 14px;
}
.faq-item.open .faq-q .plus { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, margin .3s ease;
  color: var(--fg-muted);
  font-size: 15px; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 280px; margin-top: 10px; }

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--accent-ink) 12%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--accent-ink) 12%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.final-inner { position: relative; }
.final h2 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }
.final p { font-size: 18px; margin-top: 22px; opacity: 0.8; }
.final .btn-primary { background: var(--accent-ink); color: var(--accent); margin-top: 36px; }
.final .btn-primary:hover { filter: brightness(1.4); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 64px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--fg-dim);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--fg); }

/* small icons */
.ic { width: 14px; height: 14px; display: inline-block; }

/* =================================================================
   SEO TEMPLATE
   ================================================================= */

/* breadcrumb */
.crumb {
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.crumb a { color: var(--fg-muted); }
.crumb a:hover { color: var(--fg); }
.crumb .sep { color: var(--fg-dim); opacity: 0.6; }
.crumb .here { color: var(--fg); }

/* SEO hero — compact, left-aligned, no mockup */
.seo-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.seo-hero .grid-bg { mask-image: radial-gradient(ellipse 60% 80% at 0% 0%, black 0%, transparent 70%); opacity: 0.4; }
.seo-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -0.03em;
  margin-top: 24px;
  max-width: 18ch;
}
.seo-hero h1 .accent { color: var(--accent); }
.seo-hero .lede { margin-top: 24px; max-width: 60ch; font-size: clamp(17px, 1.25vw, 19px); }
.seo-hero .meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-dim);
}
.seo-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.seo-hero .meta strong { color: var(--fg-muted); font-weight: 400; }

/* page-type pill */
.kind-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  color: var(--fg-muted);
}
.kind-pill .dot { background: var(--accent); }

/* SEO body layout: content + sticky TOC */
.seo-body { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 96px); }
.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 960px) {
  .seo-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* TOC */
.toc {
  position: sticky; top: 88px;
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.toc-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a {
  color: var(--fg-muted);
  display: block; padding: 2px 0;
  border-left: 2px solid transparent;
  margin-left: -20px; padding-left: 18px;
  transition: color .15s, border-color .15s;
  line-height: 1.45;
}
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); }

/* prose styles for long-form */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-top: 2.4em;
  letter-spacing: -0.02em;
  scroll-margin-top: 88px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 19px;
  margin-top: 1.8em;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.prose p, .prose li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.prose strong { color: var(--fg); font-weight: 600; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 22px;
  margin-top: 0.5em;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 1px;
}
.prose ol { padding-left: 0; counter-reset: ol; list-style: none; }
.prose ol li {
  position: relative; padding-left: 32px;
  counter-increment: ol; margin-top: 0.5em;
}
.prose ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  line-height: 1.95;
}
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-left: 0;
  font-size: 19px; line-height: 1.55;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-weight: 500;
}
.prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg);
}
.prose hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

/* big stat callout (works inside prose) */
.callout-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  margin: 2em 0 !important;
}
.callout-stat .num {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--accent);
}
.callout-stat .label { color: var(--fg-muted); font-size: 15px; max-width: 32ch; }
.callout-stat .label strong { color: var(--fg); }

/* aside callout */
.callout {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2em 0 !important;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
}
.callout-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.callout-title {
  font-weight: 600; color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.callout p { font-size: 14.5px; color: var(--fg-muted); margin: 0 !important; line-height: 1.55; }

/* modular section variant — replaces prose blocks with cards */
.modular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2em 0;
}
@media (max-width: 720px) { .modular-grid { grid-template-columns: 1fr; } }
.modular-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.modular-card h4 {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.modular-card .num-tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.06em;
}
.modular-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* solution mini-block (inline FeaturePin pitch inside prose) */
.solve-block {
  margin: 2em 0 !important;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.solve-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  display: grid; place-items: center;
  position: relative;
  flex: 0 0 auto;
}
.solve-mark::after {
  content: ""; width: 12px; height: 12px;
  background: var(--accent); border-radius: 3px;
}
.solve-block .head {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.solve-block h4 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.solve-block p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; margin-bottom: 14px; }
.solve-block .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* related pages */
.related {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  transition: border-color .15s, transform .15s;
  text-decoration: none !important;
}
.related-card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.related-kind {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.related-card h4 {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.related-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.related-card .arr-row {
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
}

