:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --fg: #14161f;
  --muted: #6b7280;
  --muted-2: #9499a6;
  --border: #e6e7ef;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-fg: #ffffff;
  --accent-tint: #eef0fe;
  --good: #16a34a;
  --good-tint: #ecfdf3;
  --warn: #b45309;
  --warn-tint: #fff7ed;
  --bad: #b91c1c;
  --bad-tint: #fef2f2;
  --shadow: 0 1px 2px rgba(20, 22, 31, 0.04), 0 8px 24px -12px rgba(20, 22, 31, 0.10);
  --shadow-sm: 0 1px 2px rgba(20, 22, 31, 0.06);
  --shadow-lg: 0 4px 8px rgba(20, 22, 31, 0.04), 0 24px 48px -16px rgba(20, 22, 31, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --surface: #15161e;
    --surface-2: #191a24;
    --fg: #eef0f6;
    --muted: #a2a6b5;
    --muted-2: #6f7484;
    --border: #262835;
    --accent: #8b85f5;
    --accent-2: #a78bfa;
    --accent-fg: #0c0d12;
    --accent-tint: #1c1b2e;
    --good: #4ade80;
    --good-tint: #0f2318;
    --warn: #fbbf24;
    --warn-tint: #2a2010;
    --bad: #f87171;
    --bad-tint: #2a1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero, .scan-form, .result-card, .pricing-card, .faq-item {
    animation: rise-in 0.5s var(--ease) both;
  }
}

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

/* ---------- layout ---------- */

.site-header {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.marketing .header-inner { max-width: 1160px; margin: 0 auto; }

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--fg); }

.nav-link.nav-cta {
  color: var(--accent-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .nav-link-page { display: none; } /* keep the mobile header to Sign in / Dashboard only */
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* The product marketing page (gapcite.com root) reads as a real site, not
   a single-column tool like the scanner/dashboard — give it real room. */
body.marketing main { max-width: 1160px; }

.site-footer {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  padding: 2.5rem 1.5rem 3rem;
}

/* ---------- hero / landing ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}

.notice {
  background: var(--warn-tint);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.notice.error {
  background: var(--bad-tint);
  border-color: color-mix(in srgb, var(--bad) 35%, transparent);
}

/* ---------- form ---------- */

.scan-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin: 2rem 0 3rem;
}

.scan-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.scan-form input {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scan-form input::placeholder { color: var(--muted-2); }

.scan-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- unified buttons ---------- */

.btn, .scan-form button, .cta a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: flex-start;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s ease;
}

.btn-primary, .scan-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}

.btn-primary:hover, .scan-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-primary:active, .scan-form button:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1.5px solid var(--border);
}

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

.btn-block { align-self: stretch; width: 100%; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- "how it works" feature grid ---------- */

.how { margin-top: 3rem; }

.how h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-grid strong {
  display: block;
  color: var(--fg);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* ---------- methodology + FAQ ---------- */

.methodology, .faq {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.methodology h2, .faq h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.methodology p { color: var(--muted); }

.methodology ol {
  padding-left: 1.3rem;
  margin: 1rem 0;
}

.methodology li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

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

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--accent);
  font-weight: 800;
}

.faq-item[open] summary::before { content: "–"; }

.faq-item p {
  margin: 0.7rem 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- scan status / results ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.pending {
  text-align: center;
  padding: 4rem 1rem;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pending p { margin: 0.3rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* An SVG stroke-dashoffset ring (Apple Watch activity-ring style)
   instead of a CSS conic-gradient trick — renders crisply at any size,
   animates smoothly, and sidesteps a real Chromium full-page-screenshot
   compositing artifact the conic-gradient version hit under
   `position: sticky` + `backdrop-filter` (confirmed via isolated CSS
   testing, 2026-09-04). See templates/_macros.html's score_ring macro. */
.score-ring {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring svg { transform: rotate(-90deg); }

.score-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 9;
}

.score-ring-fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .score-ring-fill { animation: ring-fill 1s var(--ease) both; }
  @keyframes ring-fill {
    from { stroke-dashoffset: var(--ring-circumference); }
  }
}

.score-ring-label {
  position: absolute;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.score-ring-label small {
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 1px;
}

.score-meta h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.score-meta p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.verdict-good { color: var(--good); }
.verdict-bad { color: var(--bad); }

.prompt-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.prompt-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.prompt-status {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.prompt-status.yes { background: var(--good-tint); color: var(--good); }
.prompt-status.no { background: var(--border); color: var(--muted-2); }

.prompt-body { flex: 1; min-width: 0; }

.prompt-text { font-size: 0.95rem; margin: 0 0 0.4rem; }

.confidence-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  max-width: 220px;
}

.confidence-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.confidence-label {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 0.3rem;
}

.engine-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

/* Each badge's --engine-color is set inline from webapp/engine_meta.py —
   a "hit" badge is filled in that engine's own brand-evocative color
   (see engine_meta.py's docstring for why: every color on the page maps
   to a specific real engine, never decorative). A "miss" stays neutral
   so the colorful ones read as genuine signal, not noise. */
.engine-badge {
  --engine-color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--muted-2);
  transition: transform 0.15s var(--ease);
}

.engine-badge.hit {
  color: var(--engine-color);
  border-color: color-mix(in srgb, var(--engine-color) 45%, transparent);
  background: color-mix(in srgb, var(--engine-color) 12%, var(--surface));
}

.prompt-status.lock {
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.95rem;
}

.prompt-text.placeholder {
  color: var(--muted-2);
  font-style: italic;
}

.confidence-bar.placeholder .confidence-fill {
  background: var(--border);
}

.engine-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}

.engine-score {
  --engine-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.engine-score::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--engine-color);
}

.engine-score strong {
  color: var(--fg);
  font-size: 0.95rem;
}

.cta {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cta a.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}

.cta a.button:hover { transform: translateY(-1px); }

.disclosure {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

/* ---------- pricing cards (dashboard subscribe step) ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing-card .badge {
  position: absolute;
  top: -0.65rem;
  left: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.pricing-card .price {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-card .price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.pricing-card li::before { content: "✓ "; color: var(--good); font-weight: 800; }

/* ---------- trend chart (dashboard) ---------- */

.trend-chart-wrap {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trend-chart-wrap h3 {
  font-size: 1rem;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.trend-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-area { opacity: 0.9; }

.trend-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2.5;
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* ---------- product marketing page (gapcite.com root) ---------- */

/* Hero: two-column split (copy + a real product mockup), a decorative
   dotted/gradient backdrop instead of a flat background, and noticeably
   bigger type than the utilitarian scanner/app pages — matches the scale
   every researched competitor (Profound, Peec, Otterly, Rankscale) uses
   on their own marketing hero, confirmed via direct screenshots
   (2026-09-08), not guessed. */
/* Full-bleed, boldly colored hero — replaces an earlier version that was
   just a pale wash with a barely-visible dotted texture (real feedback,
   2026-09-08: "ultra ugly" / "card soup", correctly). A confident, fixed
   color band regardless of viewer theme (same reasoning as .band-dark)
   makes the white product-mockup card pop instead of blending into a
   near-identical light background. */
body.marketing .hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem calc(50vw - 50% + 1.5rem) 5rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.08), transparent 45%),
    radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px),
    linear-gradient(155deg, #4338ca, #2a1a63 65%, #1a1035);
  background-size: auto, 26px 26px, auto;
  color: #fff;
}

body.marketing .hero .eyebrow {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

body.marketing .hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.04;
  font-weight: 800;
  color: #fff;
}

body.marketing .hero p {
  font-size: 1.1rem;
  max-width: 48ch;
  color: rgba(255,255,255,0.78);
}

body.marketing .hero .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

@media (max-width: 900px) {
  body.marketing .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 3.5rem; }
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* A real HTML/CSS reproduction of the actual dashboard (same score-ring,
   engine chips, trend-chart markup the live product renders) — chosen
   over a static screenshot so it never drifts out of sync with the real
   UI and stays crisp at any resolution. Framed like a browser window,
   the same "show the real product" pattern every competitor researched
   uses on their own hero. */
.mockup-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-url {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted-2);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

.mockup-body { padding: 1.5rem; }
.mockup-body .score-row { margin-bottom: 1.25rem; }
.mockup-body .trend-chart-wrap { margin-top: 1.25rem; padding-top: 1.25rem; }

/* Stat strip — real, verifiable numbers only (see marketing.html's
   context: engine/frequency/price figures come straight from
   billing.PLANS, nothing invented for effect). */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: var(--accent-tint);
  color: var(--accent);
}

.feature-icon svg { width: 20px; height: 20px; }

/* A small rotating palette instead of one repeated indigo tint on every
   card — real feedback, 2026-09-08 ("ultra ugly" — correctly, the whole
   page leaned on one accent hue everywhere). Reuses hues already
   established elsewhere (engine colors, the good/warn tokens) rather
   than introducing new arbitrary ones. */
.feature-grid li:nth-child(4n+1) .feature-icon { background: color-mix(in srgb, #10a37f 16%, var(--surface)); color: #10a37f; }
.feature-grid li:nth-child(4n+2) .feature-icon { background: color-mix(in srgb, #0ea5e9 16%, var(--surface)); color: #0ea5e9; }
.feature-grid li:nth-child(4n+3) .feature-icon { background: color-mix(in srgb, #d97757 16%, var(--surface)); color: #d97757; }
.feature-grid li:nth-child(4n+4) .feature-icon { background: color-mix(in srgb, #8b5cf6 16%, var(--surface)); color: #8b5cf6; }

/* Final CTA band before the footer */
.cta-band {
  margin: 3.5rem 0 1rem;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  text-align: center;
}

.cta-band h2 { margin: 0 0 0.6rem; font-size: 1.85rem; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 1.5rem; color: color-mix(in srgb, var(--accent-fg) 88%, transparent); max-width: 50ch; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }
.cta-band .btn-primary { background: var(--accent-fg); color: var(--accent); box-shadow: none; }
.cta-band .btn-secondary { background: transparent; border-color: color-mix(in srgb, var(--accent-fg) 45%, transparent); color: var(--accent-fg); }

/* "Logo" strip — see _macros.html's engine_logo() for why these are
   monogram badges rather than reproductions of real company logomarks. */
.engine-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.engine-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engine-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--engine-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
  flex: none;
}

.engine-logo-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

/* Early access section — honest framing, no fabricated testimonials */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--good);
  background: var(--good-tint);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

/* A third full-bleed "scene" (after the bold hero and the dark
   constellation band) — soft accent tint instead of stark white cards,
   so the pricing teaser + early-access pitch read as one considered
   moment instead of two generic boxes stacked back to back. */
.band-tint {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3.5rem 1.5rem;
  background: var(--accent-tint);
}

.band-tint .band-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.band-tint h3 { margin: 0 0 0.5rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.band-tint p { margin: 0 0 1.25rem; }
.band-tint .btn-secondary { background: var(--surface); }

@media (max-width: 900px) {
  .band-tint .band-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Full-bleed section band — breaks out of main's centered max-width for
   a deliberate "scene change" moment (inspired directly by a reference
   the founder pointed to, 2026-09-08: alternating full-bleed color
   blocks read as far more considered/designed than a uniform flat
   background for every section). Fixed dark colors regardless of the
   viewer's light/dark preference — meant to stand out as a distinct
   beat either way, not blend with either theme. */
.band-dark {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 1.5rem;
  background: #0c0d12;
  color: #eef0f6;
}

.band-dark .band-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.band-dark h2 { color: #fff; font-size: 1.6rem; letter-spacing: -0.02em; }
.band-dark .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
.band-dark .feature-grid li { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.band-dark .feature-grid strong { color: #fff; }
.band-dark .feature-grid { color: #a2a6b5; }

@media (max-width: 900px) {
  .band-dark .band-inner { grid-template-columns: 1fr; }
}

/* The engine constellation graphic — see _macros.html's engine_constellation() */
.constellation { width: 100%; height: auto; max-width: 480px; margin: 0 auto; display: block; }
.constellation-center { fill: #1c1d28; stroke: rgba(255,255,255,0.25); stroke-width: 1.5; }
.constellation-center-label { fill: #fff; font-size: 13px; font-weight: 700; font-family: inherit; }
.constellation-node-label { fill: #fff; font-size: 10px; font-weight: 800; font-family: inherit; letter-spacing: -0.02em; }
.constellation-caption { fill: #a2a6b5; font-size: 12px; font-weight: 600; font-family: inherit; }

.how-it-works {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.how-it-works li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 0.5rem 0 1.6rem;
  border-bottom: 1px solid var(--border);
}

.how-it-works li:last-child { border-bottom: none; padding-bottom: 0.5rem; }

.how-it-works .step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.how-it-works strong {
  display: block;
  color: var(--fg);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.how-it-works p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
