/* ClerkWatch - change intelligence for public data
   Single stylesheet, no frameworks. */

/* ---------- Tokens ---------- */
:root {
  --bg: #080b09;
  --bg-soft: #0c100d;
  --surface: #111713;
  --surface-2: #161e18;
  --surface-3: #1c261e;
  --border: #223028;
  --border-soft: #1a241d;
  --text: #e9f1ea;
  --text-muted: #9db0a3;
  --text-faint: #6d7f73;
  --accent: #b8f24d;
  --accent-strong: #a6e635;
  --accent-ink: #10160a;
  --accent-soft: rgba(184, 242, 77, 0.12);
  --amber: #f5b544;
  --red: #f2746b;
  --cyan: #6ee7d8;
  --violet: #b39ddb;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(184, 242, 77, 0.18), 0 20px 60px rgba(184, 242, 77, 0.08);

  --container: 1140px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

li + li { margin-top: 0.35em; }

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 100px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.tiny { font-size: 0.82rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.badge.accent {
  border-color: rgba(184, 242, 77, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.amber {
  border-color: rgba(245, 181, 68, 0.35);
  background: rgba(245, 181, 68, 0.1);
  color: var(--amber);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(184, 242, 77, 0.18);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(8, 11, 9, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(184, 242, 77, 0.3);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  transition: color 0.18s, background 0.18s;
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

.nav a:not(.btn).active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { position: absolute; top: -6px; margin-top: 0; }
.nav-toggle span::after { position: absolute; top: 6px; margin-top: 0; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s var(--ease), opacity 0.22s;
  }

  .nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }

  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(560px 320px at 18% 18%, rgba(184, 242, 77, 0.1), transparent 65%),
    radial-gradient(520px 300px at 82% 8%, rgba(110, 231, 216, 0.07), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero-copy .lead {
  max-width: 56ch;
  margin-bottom: 26px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Alert feed card */
.feed-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.feed-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184, 242, 77, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 242, 77, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(184, 242, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 242, 77, 0); }
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.feed-item:hover {
  background: var(--surface-2);
  border-color: var(--border-soft);
}

.feed-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  color: var(--accent);
  flex: none;
}

.feed-icon svg { width: 17px; height: 17px; }

.feed-body p {
  margin: 0 0 5px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.feed-meta .tag {
  color: var(--accent);
}

.feed-item.is-new,
.feed-item.feed-in {
  animation: slide-in 0.5s var(--ease) both;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Source marquee */
.marquee-wrap {
  position: relative;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-soft), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-soft), transparent);
}

.marquee {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marquee span::before {
  content: "//";
  color: var(--accent);
  opacity: 0.5;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  background: var(--surface-2);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(184, 242, 77, 0.22);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg { width: 21px; height: 21px; }

.card h3 { margin-bottom: 8px; }

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.card-link {
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-arrow {
  transition: transform 0.2s var(--ease);
}

.card:hover .card-arrow { transform: translateX(3px); }

.card-alert {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 16px;
}

.card-alert .alert-age {
  order: 2;
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.card-alert b { color: var(--accent); font-weight: 500; }

/* Highlight card (problem section) */
.card-plain {
  background: transparent;
  border: 1px dashed var(--border);
}

.card-plain:hover {
  transform: none;
  background: var(--surface);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
}

.step-num {
  counter-increment: step;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(184, 242, 77, 0.25);
  font-size: 1rem;
}

.step-num::before { content: "0" counter(step); }

.step h3 { margin-bottom: 6px; }

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-soft);
  padding: 22px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border-color: rgba(184, 242, 77, 0.45);
  background: linear-gradient(180deg, rgba(184, 242, 77, 0.05), var(--surface) 45%);
  box-shadow: var(--shadow-glow);
}

.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.price-card .price small {
  font-size: 0.95rem;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

.price-card .plan-for {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 0;
  color: var(--text-muted);
}

.feature-list li strong { color: var(--text); font-weight: 600; }

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(184, 242, 77, 0.35);
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.check svg { width: 10px; height: 10px; color: var(--accent); }

.price-card .btn { margin-top: auto; }

.price-note {
  text-align: center;
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

table.compare th,
table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

table.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
}

table.compare tbody tr:last-child td { border-bottom: none; }

table.compare td:not(:first-child) { color: var(--text-muted); }

table.compare .col-hi {
  color: var(--accent);
  background: rgba(184, 242, 77, 0.03);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--border);
  background: var(--surface-2);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 0.2s var(--ease);
  flex: none;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq .faq-body p { margin: 0 0 0.7em; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 60px);
  background:
    radial-gradient(480px 260px at 12% 0%, rgba(184, 242, 77, 0.1), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  overflow: hidden;
  text-align: center;
}

.cta-band h2 { margin-bottom: 10px; }

.cta-band .lead {
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% 50% auto -10%;
  height: 420px;
  background: radial-gradient(420px 260px at 20% 40%, rgba(184, 242, 77, 0.09), transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 { max-width: 22ch; }

.page-hero .lead { max-width: 68ch; }

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Services layout ---------- */
.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.anchor-nav .anchor-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 10px 8px;
}

.anchor-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.anchor-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.anchor-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.monitor-detail {
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 24px;
}

.monitor-detail:hover { border-color: var(--border); }

.monitor-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.monitor-head .card-icon { margin: 0; flex: none; }

.monitor-head h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.monitor-head .mono {
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-detail > p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.who-for {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  margin-top: 18px;
}

.who-for strong { color: var(--text); }

.who-for svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

/* ---------- Pipeline diagram ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pipe-node {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.pipe-node::after {
  content: "->";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.6;
  z-index: 2;
}

.pipe-node:last-child::after { display: none; }

.pipe-node .pipe-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pipe-node h4 { margin-bottom: 6px; }

.pipe-node p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--border);
  margin-left: 10px;
  padding-left: 26px;
}

.tl-item {
  position: relative;
  padding-bottom: 26px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-item h4 { margin-bottom: 4px; }

.tl-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.tl-item .mono {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}

.quick-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(184, 242, 77, 0.09), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
}

.quick-copy h2 { margin: 10px 0 12px; }

.quick-form .field + .field { margin-top: 14px; }

.quick-form .field textarea { min-height: 96px; }

.quick-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 900px) {
  .quick-card { grid-template-columns: 1fr; align-items: start; }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 242, 77, 0.12);
}

.form-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 116, 107, 0.4);
  background: rgba(242, 116, 107, 0.08);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.88rem;
}

.form-error a {
  color: var(--red);
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: none;
  text-align: center;
  padding: 44px 24px;
}

.form-success.visible { display: block; }

.related-box {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.related-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.related-box ul {
  margin: 0;
  padding-left: 18px;
}

.related-box li {
  margin: 5px 0;
  color: var(--text-muted);
}

.form-success .big-check {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(184, 242, 77, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--accent);
}

.form-success .big-check svg { width: 26px; height: 26px; }

.contact-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-item .card-icon { margin: 0; width: 40px; height: 40px; }

.contact-item h4 { margin: 0 0 3px; }

.contact-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border-soft);
}

.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose h3 { margin-top: 1.6em; }

.prose p, .prose li { color: var(--text-muted); }

.prose strong { color: var(--text); }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 56px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 34ch;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-bottom .mono { font-size: 0.72rem; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus { top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-node::after { display: none; }
  .services-layout { grid-template-columns: 1fr; }
  .anchor-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .anchor-nav .anchor-label { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats { gap: 18px; }
  .feed-head { flex-wrap: wrap; }
  .monitor-detail { padding: 22px; }
  .monitor-head { flex-direction: column; }
}
