/* ═══════════════════════════════════════════════════════════════
   cite0 — marketing-site stylesheet
   Used by: index.html, insights.html, plan.html (web/landing)
   ───────────────────────────────────────────────────────────────
   This file is the marketing layer. Every color, font, and spacing
   token used below comes from /design/tokens.css — which must be
   imported BEFORE this file in the page <head>. To re-skin the
   brand, edit /design/tokens.yaml + /design/tokens.css; do not
   touch this file for color tweaks.
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 17px; line-height: var(--leading-normal); font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-snug);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mono { font-family: var(--font-mono); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(246, 247, 250, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-weight: var(--weight-bold); font-size: 17px;
  letter-spacing: var(--tracking-tight);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-text);
}
.logo-mark {
  width: 28px; height: 28px;
  display: inline-block;
  color: var(--color-text);
  /* Cite0 vector mark, painted in currentColor so it adapts to light/dark surfaces. */
  background-color: currentColor;
  -webkit-mask: url(design/assets/cite0-mark.svg) center / contain no-repeat;
          mask: url(design/assets/cite0-mark.svg) center / contain no-repeat;
}
.logo-wordmark {
  display: block;
  height: 32px;
  width: auto;
  /* Full Cite0 vector wordmark; inline SVG inherits currentColor (white on dark, ink on light). */
  color: var(--color-text);
}
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; display: block; }
.logo-suffix { font-weight: var(--weight-medium); font-size: 14px; color: var(--color-text-muted); }
.nav-links { display: flex; gap: 32px; list-style: none; font-size: 14px; color: var(--ink-2); }
.nav-links a { color: inherit; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -20px; left: 0; right: 0;
  height: 2px; background: var(--ink); border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: var(--weight-medium); font-size: 14px; border: none; cursor: pointer;
  text-decoration: none; transition: all var(--duration-base) var(--ease-standard);
  letter-spacing: var(--tracking-snug);
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-cta);
  color: var(--color-on-brand);
}
.btn-primary:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-glow);
}
.btn-ghost {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-ghost:hover { background: var(--color-bg-subtle); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-accent:hover {
  background: var(--color-accent-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent-glow);
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── Live indicator ──────────────────────────────────────── */
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--green-glow); }
  50% { box-shadow: 0 0 0 9px transparent; }
}

/* ── Hero (shared base) ──────────────────────────────────── */
/* explorer-led: the hero shares the first screen with the live explorer,
   so it's intentionally compact — no bottom padding, the card sits right under it.
   The dashboard is the centerpiece, so the headline is deliberately restrained. */
section.hero { padding: 40px 0 0; }
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-watermark {
  position: absolute; top: 50%; right: -3%; transform: translateY(-50%);
  width: min(48vw, 640px); height: auto;
  color: var(--color-brand-ink); opacity: 0.06;
  pointer-events: none; z-index: 0;
}
.hero-tag { margin-bottom: 16px; }
/* keep the dot aligned to the first line when the tagline wraps */
.hero-tag .live-tag { align-items: flex-start; }
.hero-tag .live-tag .live-dot { margin-top: 4px; flex: 0 0 auto; }
h1.hero-title {
  font-family: var(--font-display);
  /* restrained vs. the global display scale so the live dashboard — not the
     headline — is the dominant element on first paint, while keeping brand presence */
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  max-width: 17ch; margin-bottom: 14px;
  color: var(--color-text);
}
/* keep "picked by" together so the wrap can never orphan "by" on its own line */
.hero-title-nowrap { white-space: nowrap; }
.hero-title em {
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 80;
  color: var(--color-text);
  position: relative; white-space: nowrap;
}
.hero-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 14px; background: var(--color-accent-tint);
  border-radius: 2px; z-index: -1;
  opacity: 0.85;
}
/* Hero typer — cycles through AI tool names with a typewriter effect.
   The <em> wrapper holds the orange underline; the inner span receives
   the typed text. The caret is its own span so it doesn't blink the
   highlight along with it. */
.hero-typer {
  display: inline-flex; align-items: baseline;
  min-width: 4ch;          /* prevents layout shift between names */
}
.hero-typer-caret {
  display: inline-block;
  width: 0.06em; height: 0.9em;
  margin-left: 0.05em;
  background: var(--color-brand);
  animation: heroCaretBlink 1.05s steps(1) infinite;
  vertical-align: baseline;
  align-self: center;
  transform: translateY(0.05em);
}
@keyframes heroCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-sub {
  font-size: 17px; color: var(--ink-2); max-width: 56ch;
  margin-bottom: 20px; line-height: 1.45;
}
.hero-sub em {
  font-style: normal; color: var(--ink); font-weight: 500;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 1px;
}
/* "Sub-hero" variant for non-homepage pages */
section.hero.sub-hero { padding: 48px 0 32px; }
section.hero.sub-hero h1.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  max-width: 22ch;
}

/* ── Section base ────────────────────────────────────────── */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.block-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.block-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ink-3); display: inline-block; }
.block-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px); font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: var(--tracking-display); line-height: var(--leading-tight);
  max-width: 22ch; margin-bottom: 18px;
}
.block-lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; line-height: 1.55; }

/* ── Search bar (homepage hero) ──────────────────────────── */
.search-bar {
  display: inline-flex; align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-md);
  margin-bottom: 44px;
  max-width: 100%; flex-wrap: wrap;
}
.search-cell {
  position: relative; padding: 12px 24px;
  cursor: pointer; transition: background 0.2s, opacity 0.25s, max-width 0.3s ease, padding 0.3s ease;
  border-radius: 999px; min-width: 200px;
  overflow: hidden; max-width: 320px;
}
.search-cell.hidden {
  max-width: 0 !important; min-width: 0 !important;
  padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none;
}
.search-cell:hover { background: var(--bg-soft); }
.search-cell + .search-cell { border-left: 1px solid var(--line); }
.search-cell-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.search-cell select {
  appearance: none; -webkit-appearance: none; background: transparent; border: none;
  font-family: inherit; font-weight: 500; font-size: 15px; color: var(--ink);
  cursor: pointer; outline: none; width: 100%; padding-right: 18px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 12px;
}
.search-go {
  background: var(--color-brand); color: var(--color-on-brand); border: none;
  border-radius: var(--radius-pill); padding: 12px 22px;
  font-family: inherit; font-weight: var(--weight-medium); font-size: 14px;
  cursor: pointer; margin: 4px; transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.search-go:hover { transform: scale(1.04); box-shadow: var(--shadow-brand-glow); }

/* ── Hero demo card ──────────────────────────────────────── */
.hero-demo {
  margin-top: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-sm);
}
.demo-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  gap: 12px; flex-wrap: wrap;
}
.demo-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.ai-source {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 4px; border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11px; font-weight: 500; color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
}
.demo-card-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.02em;
}
.prompt-shown {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-2);
}
.typewriter {
  font-size: 16.5px; line-height: 1.65; color: var(--ink); min-height: 160px;
  font-weight: 400;
}
.typewriter::after {
  content: '▍'; color: var(--green); margin-left: 1px;
  animation: blink 1.1s infinite;
}
.typewriter.done::after { content: ''; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Stats strip (homepage) ──────────────────────────────── */
.stats-section { padding-bottom: 64px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
/* 6-up layout (current hero) — 3 cols on tablet, 2 on phone. The borders
   wrap correctly via `:nth-child` because we know the column count. */
.stats-row-6 { grid-template-columns: repeat(3, 1fr); }
.stat-tile {
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
/* In the 4-col (legacy) layout, last tile in row drops the right border. */
.stats-row:not(.stats-row-6) .stat-tile:last-child { border-right: none; }
.stats-row:not(.stats-row-6) .stat-tile { border-bottom: none; }
/* In the 6-tile 3-col layout: every 3rd loses right border; last row loses bottom. */
.stats-row-6 .stat-tile:nth-child(3n) { border-right: none; }
.stats-row-6 .stat-tile:nth-last-child(-n+3) { border-bottom: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 38px; font-weight: var(--weight-semibold);
  letter-spacing: -0.045em; line-height: 1;
  color: var(--color-text); margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 6px;
}
.stat-num .stat-unit {
  font-size: 0.62em;
  color: var(--color-text-muted);
}
.stat-num .stat-trend {
  font-size: 16px; color: var(--color-success); font-weight: var(--weight-medium);
  font-family: var(--font-sans);
}
.stat-num .stat-trend.down { color: var(--color-accent); }
.stat-label {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  letter-spacing: -0.005em;
}
.stat-source {
  position: absolute; top: 20px; right: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-3);
}
.stats-footnote {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); line-height: 1.5;
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard {
  margin-top: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  gap: 12px; flex-wrap: wrap;
}
.dash-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600;
}
.dash-title-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  font-size: 12px; font-weight: var(--weight-medium); color: var(--color-text-muted);
  transition: background var(--duration-base), color var(--duration-base), border-color var(--duration-base);
}
/* Three visual modes for the data-source state pill. Pseudo-element dot
   on the left tells the user where the data is coming from at a glance. */
.dash-title-pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-text-subtle);
  flex-shrink: 0;
}
.dash-title-pill.pill-live {
  background: var(--color-brand-soft);
  color: var(--color-brand-ink);
  border-color: var(--color-brand-tint);
}
.dash-title-pill.pill-live::before {
  background: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
  animation: pillPulse 2.2s infinite;
}
.dash-title-pill.pill-demo::before {
  background: var(--color-accent);
}
.dash-title-pill.pill-loading::before {
  background: var(--color-text-subtle);
  animation: pillBlink 1.1s steps(2) infinite;
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}
@keyframes pillBlink {
  50% { opacity: 0.35; }
}
.dash-meta-r {
  display: flex; align-items: center; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.dash-body {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 1px; background: var(--line);
}
.dash-pane { background: var(--paper); padding: 24px 28px; }
.pane-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.pane-title-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--ink); border-radius: 2px;
}

/* Leaderboard */
.leaderboard { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px;
  align-items: center; padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 10px; transition: background 0.2s;
}
.lb-row:hover { background: #ECEAE3; }
.lb-rank { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }
.lb-name { font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }
.lb-bar { display: flex; align-items: center; gap: 10px; }
.lb-bar-track { width: 64px; height: 4px; background: rgba(10,10,10,0.08); border-radius: 999px; overflow: hidden; }
.lb-bar-fill { height: 100%; background: var(--color-brand); border-radius: var(--radius-pill); width: 0%; transition: width var(--duration-epic) var(--ease-standard); }
.lb-score { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); font-weight: 500; min-width: 22px; text-align: right; }
.lb-missing { background: var(--warn-glow); border: 1px dashed rgba(232,74,46,0.5); }
.lb-missing .lb-name, .lb-missing .lb-rank, .lb-missing .lb-score { color: var(--warn); }
/* neutral placeholder shown before a business name is entered */
.lb-missing.lb-placeholder { background: transparent; border: 1px dashed var(--color-border); }
.lb-missing.lb-placeholder .lb-name, .lb-missing.lb-placeholder .lb-rank { color: var(--color-text-muted); }
.lb-placeholder-hint {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--color-text-subtle); letter-spacing: 0.01em; white-space: nowrap;
}

/* Prompts list */
.prompts-list {
  display: flex; flex-direction: column;
  max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prompt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  gap: 10px;
}
.prompt-row:last-child { border-bottom: none; }
.prompt-row .prompt-text { font-size: 13.5px; font-weight: 500; }
.prompt-row .prompt-quote { color: var(--ink-3); }
.prompt-row .prompt-meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }

/* Source provenance strip */
.dash-source {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); gap: 12px; flex-wrap: wrap;
}
.source-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.source-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--paper); color: var(--ink-2);
}
.source-tag::before { content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%; }

/* Inline snapshot input */
.dash-snapshot {
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.dash-snapshot-label { font-size: 14px; color: var(--ink-2); flex-shrink: 0; }
.dash-snapshot-label strong { color: var(--ink); font-weight: 600; }
.snap-form {
  flex: 1; display: flex; gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px; min-width: 280px;
  transition: border-color 0.2s;
}
.snap-form:focus-within { border-color: var(--ink); }
.snap-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 10px 16px; font-size: 14px; font-family: inherit; color: var(--color-text);
  letter-spacing: var(--tracking-snug);
}
.snap-form input::placeholder { color: var(--color-text-subtle); }
.snap-form button {
  background: var(--color-brand); color: var(--color-on-brand); border: none;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: var(--weight-medium); font-size: 13px; cursor: pointer;
  font-family: inherit; transition: transform var(--duration-base), box-shadow var(--duration-base);
  white-space: nowrap;
}
.snap-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-brand-glow); }

/* Snapshot result panel */
.snap-result {
  display: none; padding: 20px 28px;
  background: var(--bg-panel); border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s;
}
.snap-result.show { display: block; }
.snap-result.visible { opacity: 1; transform: translateY(0); }
.snap-result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.snap-result-title { font-weight: 600; font-size: 15px; }
.snap-stats { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.snap-stat { display: flex; align-items: baseline; gap: 10px; }
.snap-stat-num { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 32px; letter-spacing: -0.04em; }
.snap-stat-num.warn { color: var(--warn); }
.snap-stat-num.ok { color: var(--green); }
.snap-stat-label { font-size: 12.5px; color: var(--ink-2); max-width: 28ch; line-height: 1.4; }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 180px;
  text-align: center; color: var(--ink-2);
  padding: 24px 16px;
}
.empty-state-mark {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace; font-size: 18px;
}
.empty-state-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.empty-state-copy { font-size: 13px; max-width: 36ch; line-height: 1.5; }

/* ── ChatGPT interaction mockup ──────────────────────────── */
/* Styled to match the real ChatGPT desktop interface */
.chat-section { padding: 96px 0 80px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.chat-wrap {
  margin-top: 48px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.cgpt {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,10,10,0.08), 0 2px 8px rgba(10,10,10,0.04);
  display: flex; flex-direction: column;
  min-height: 540px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #1F1F1F;
  position: relative;
}
.cgpt::before {
  /* subtle blue tint at top edge — matches ChatGPT's background */
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(173, 216, 230, 0.18) 0%, transparent 100%);
  pointer-events: none;
}
.cgpt-header {
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #ECECEC;
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}
.cgpt-model {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: #1F1F1F;
  cursor: pointer;
}
.cgpt-model-arrow {
  color: #8E8E93; font-size: 11px;
  margin-top: 1px;
}
.cgpt-body {
  flex: 1;
  padding: 32px 24px 16px;
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
  max-height: 340px;
  position: relative; z-index: 1;
}
.cgpt-msg {
  display: flex; width: 100%;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.cgpt-msg.visible { opacity: 1; transform: translateY(0); }
.cgpt-msg.user { justify-content: flex-end; }
.cgpt-bubble {
  background: #F4F4F4;
  color: #1F1F1F;
  padding: 11px 16px;
  border-radius: 22px;
  font-size: 15px; line-height: 1.5;
  max-width: 75%;
  letter-spacing: -0.005em;
}
.cgpt-msg.assistant {
  gap: 12px; align-items: flex-start;
}
.cgpt-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #DCDCDC;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #1F1F1F;
}
.cgpt-avatar svg { width: 16px; height: 16px; }
.cgpt-content {
  font-size: 15px; line-height: 1.6;
  color: #1F1F1F;
  flex: 1; min-width: 0;
  padding-top: 2px;
  letter-spacing: -0.005em;
}
.cgpt-content strong { font-weight: 600; }
.cgpt-content p { margin-bottom: 10px; }
.cgpt-content p:last-child { margin-bottom: 0; }
.cgpt-content ol {
  margin: 12px 0; padding-left: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.cgpt-content ol li {
  padding-left: 4px;
  font-size: 14.5px;
  line-height: 1.55;
}
.cgpt-typing {
  display: inline-flex; align-items: center; gap: 5px;
  padding-top: 5px;
}
.cgpt-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #C4C4C4;
  animation: cgptTyping 1.4s infinite;
}
.cgpt-typing span:nth-child(2) { animation-delay: 0.16s; }
.cgpt-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes cgptTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.cgpt-input-wrap {
  padding: 10px 18px 14px;
  border-top: 1px solid #F0F0F0;
  background: white;
  position: relative; z-index: 1;
}
.cgpt-input {
  background: #F4F4F4;
  border-radius: 28px;
  padding: 14px 18px;
  font-size: 15px;
  color: #8E8E93;
  letter-spacing: -0.005em;
}
.cgpt-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 6px 0;
  color: #5F5F5F;
}
.cgpt-toolbar svg { width: 18px; height: 18px; flex-shrink: 0; }
.cgpt-tool { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cgpt-tool:hover { color: #1F1F1F; }
.cgpt-model-pill {
  font-size: 13px; color: #5F5F5F;
  margin-left: 2px;
  font-weight: 400;
}
.cgpt-spacer { flex: 1; }
.cgpt-voice {
  width: 32px; height: 32px;
  background: #1F1F1F;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
}
.cgpt-voice svg { width: 16px; height: 16px; }
.cgpt-disclaimer {
  text-align: center;
  font-size: 11px; color: #B4B4B4;
  padding: 8px 12px 14px;
  letter-spacing: -0.005em;
}
.chat-side h3 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  margin-bottom: 20px;
}
.chat-side p {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 16px;
}
.chat-side p strong { color: var(--ink); font-weight: 600; }
.chat-side-callout {
  display: inline-flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--warn-glow); color: var(--warn);
  font-weight: 600; font-size: 14px; line-height: 1.4;
  margin-top: 12px;
}
.chat-side-callout-mark {
  font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px;
}

/* ── Service detail modal ────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: var(--bg);
  border-radius: 24px;
  max-width: 980px;
  width: 100%;
  margin: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink);
  transition: background 0.2s, transform 0.2s;
  z-index: 2; font-family: inherit; line-height: 1;
}
.modal-close:hover { background: var(--bg-soft); transform: scale(1.06); }
.modal-content { padding: 56px 48px 48px; }
.modal-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--color-brand);
  font-weight: var(--weight-semibold); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.modal-tag::before {
  content: ''; width: 8px; height: 8px;
  background: var(--color-brand); border-radius: 50%;
}
.modal-name {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: 14px;
}
.modal-tagline {
  font-size: 19px; color: var(--ink-2);
  line-height: 1.45; margin-bottom: 36px;
  max-width: 56ch;
}
.modal-body {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 44px; margin-bottom: 48px;
}
.modal-desc p {
  font-size: 15.5px; color: var(--ink-2);
  line-height: 1.6; margin-bottom: 14px;
}
.modal-desc p:last-child { margin-bottom: 0; }
.modal-included { margin-top: 28px; }
.modal-included-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; margin-bottom: 16px;
}
.modal-included-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.modal-included-list li {
  font-size: 14.5px; color: var(--ink);
  padding-left: 26px; position: relative; line-height: 1.5;
  letter-spacing: -0.005em;
}
.modal-included-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
  background-position: center; background-repeat: no-repeat;
  background-size: 10px;
}
.modal-how-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; margin-bottom: 16px;
}
.modal-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.modal-how-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.modal-how-num {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-brand);
  font-weight: var(--weight-bold); margin-bottom: 10px;
}
.modal-how-step h5 {
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.015em; margin-bottom: 6px;
}
.modal-how-step p {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.modal-cta-row {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.modal-cta-row p { font-size: 14px; color: var(--ink-2); max-width: 38ch; }

/* ── Service viz components (inside modals) ──────────────── */
.svc-viz {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.viz-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; margin-bottom: 16px;
}
.viz-chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 110px; margin-bottom: 14px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.viz-bar {
  flex: 1;
  background: var(--ink); opacity: 0.7;
  border-radius: 3px 3px 0 0;
}
.viz-bar.up { background: var(--green); opacity: 1; }
.viz-stat { font-size: 13px; color: var(--ink-2); }
.viz-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--green); font-size: 17px;
  letter-spacing: -0.02em;
}
.viz-list { display: flex; flex-direction: column; gap: 8px; }
.viz-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; background: var(--bg-soft);
  border-radius: 6px; font-size: 13px;
}
.viz-platform { font-weight: 500; color: var(--ink); }
.viz-check {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--green); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: lowercase; letter-spacing: 0.02em;
}
.viz-check::before {
  content: '✓';
  width: 14px; height: 14px;
  background: var(--green); color: var(--paper);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-family: 'Inter', sans-serif; font-weight: 700;
}
.viz-check.pending { color: var(--warn); }
.viz-check.pending::before { background: var(--warn); content: '⋯'; font-size: 11px; line-height: 0.5; }
.viz-score {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.viz-score-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 700;
  letter-spacing: -0.045em; line-height: 1;
  color: var(--ink);
}
.viz-score-num small {
  font-size: 16px; color: var(--ink-3);
  margin-left: 4px; font-weight: 500;
}
.viz-score-label {
  font-size: 13px; color: var(--green); font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.viz-review {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 16px;
}
.viz-stars {
  color: var(--green); margin-bottom: 8px;
  letter-spacing: 3px; font-size: 14px;
}
.viz-review p {
  font-size: 13px; color: var(--ink); line-height: 1.55;
  margin-bottom: 10px;
}
.viz-review p strong { font-weight: 600; }
.viz-review-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px;
}
.viz-review-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--ink-2);
  background: var(--paper);
  padding: 3px 7px; border-radius: 4px;
  border: 1px solid var(--line);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.viz-task {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; background: var(--bg-soft);
  border-radius: 6px;
}
.viz-task-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0; margin-top: 6px;
}
.viz-task-content strong {
  font-size: 13px; color: var(--ink); display: block; font-weight: 600;
}
.viz-task-content span {
  font-size: 11.5px; color: var(--ink-3);
}
.viz-flow { display: flex; flex-direction: column; gap: 4px; }
.viz-flow-step {
  background: var(--bg-soft);
  padding: 11px 14px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.viz-flow-step.active {
  background: var(--ink); color: var(--bg);
  font-weight: 600;
}
.viz-flow-num {
  width: 22px; height: 22px;
  background: var(--ink-3);
  color: var(--paper);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.viz-flow-step.active .viz-flow-num { background: var(--green); }
.viz-flow-arrow {
  text-align: center;
  color: var(--ink-3);
  font-size: 12px; padding: 2px 0;
}
.viz-flow-end {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.viz-flow-end div {
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
}
.viz-flow-end strong {
  display: block; color: var(--ink); font-weight: 600;
  font-size: 13px; margin-bottom: 2px;
}
.viz-flow-end span {
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
}

@media (max-width: 760px) {
  .modal-content { padding: 40px 24px 32px; }
  .modal-body { grid-template-columns: 1fr; gap: 32px; }
  .modal-how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .chat-wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Inline hero stats strip ─────────────────────────────── */
.hero-stats-inline {
  margin-top: 8px;
  margin-bottom: 44px;
}
.hero-stats-inline .block-eyebrow { margin-bottom: 14px; }
.hero-stats-inline .stats-row { margin-top: 0; }
.hero-stats-inline .stats-footnote { margin-top: 12px; }

/* ── Method × Systems section (homepage) ─────────────────── */
/* Display-font accent treatment for one word inside a block-title.
   Used in "Six steps. Seven systems. <em class="title-accent">One AI
   front door.</em>" — the italic Fraunces variant feels editorial
   and the orange underline lands the brand accent. */
.title-accent {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 80;
  color: var(--color-text);
  position: relative;
  background-image: linear-gradient(180deg, transparent 0%, transparent 68%,
                                   var(--color-accent-tint) 68%,
                                   var(--color-accent-tint) 92%, transparent 92%);
  padding: 0 2px;
}

/* The six-step strip — scannable in one row on desktop, wraps on mobile. */
.method-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.method-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 16px 16px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-standard),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
}
.method-step:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-tint);
  box-shadow: var(--shadow-md);
}
.method-step-letter {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  line-height: 1; letter-spacing: -0.03em;
  color: var(--color-on-brand);
  background: var(--color-brand);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
/* The "T" step gets the orange accent — it's the live testing loop,
   the moment our work proves itself. One step in orange per strip. */
.method-step-accent .method-step-letter {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-accent-glow);
}
.method-step-body {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.method-step-name {
  font-size: 13.5px; font-weight: var(--weight-semibold);
  color: var(--color-text); letter-spacing: -0.005em;
}
.method-step-sub {
  font-size: 12px; color: var(--color-text-muted);
  line-height: 1.45;
}
@media (max-width: 1080px) {
  .method-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .method-strip { grid-template-columns: repeat(2, 1fr); }
}

/* The visual handoff between "method" and "systems". A thin orange rule
   on each side of a centered label — orientation-conscious, not loud. */
.method-systems-bridge {
  display: flex; align-items: center; gap: 18px;
  margin: 36px 0 8px;
}
.method-systems-bridge-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}
.method-systems-bridge-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand-ink);
  background: var(--color-brand-soft);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* Small "Step X" badge inside each service card — ties card back to method. */
.service-card-step {
  display: inline-flex; align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand-ink);
  background: var(--color-brand-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  margin-bottom: -2px;
}
/* Service cards that map to the "D · Drive" method step get the orange tag
   — matches the orange step letter in the strip, so the eye connects them. */
.service-card-step[data-letter="D"] {
  color: var(--color-accent-ink);
  background: var(--color-accent-tint);
}
.service-card.cta .service-card-step { display: none; }

/* ── Services grid (homepage) ────────────────────────────── */
.services-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* symbolic icon at the top of each service card */
.service-ico {
  align-self: flex-start;
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-brand-soft); color: var(--color-brand-ink);
  margin-bottom: 2px;
}
/* the Drive-step card (Gateway) carries the orange accent, so does its icon */
.service-card[data-service="05"] .service-ico {
  background: var(--color-accent-tint); color: var(--color-accent-ink);
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.25s ease;
  min-height: 220px;
  cursor: pointer;
  position: relative;
}
.service-card:not(.cta)::after {
  content: '→';
  position: absolute;
  top: 24px; right: 22px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s, background 0.25s, color 0.25s;
}
.service-card:not(.cta):hover::after {
  opacity: 1;
  transform: translateX(0);
  background: var(--color-brand);
  color: var(--color-on-brand);
}
.service-card:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.service-card.cta {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-dark-elevated) 100%);
  color: var(--color-text-inverse);
  cursor: pointer;
  border-color: transparent;
}
.service-card.cta:hover {
  background: linear-gradient(135deg, var(--c-eggplant-900) 0%, var(--color-brand-strong) 100%);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--color-text-subtle);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  font-weight: var(--weight-medium);
}
.service-card.cta .service-num { color: var(--c-violet-200); }
.service-name {
  font-size: 17px; font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight); line-height: 1.25;
  color: var(--color-text);
}
.service-card.cta .service-name { color: var(--color-text-inverse); font-size: 19px; }
.service-desc {
  font-size: 13.5px; color: var(--color-text-muted);
  line-height: 1.5; flex-grow: 1;
}
.service-card.cta .service-desc { color: var(--color-text-inverse-muted); }
.service-card-cta {
  margin-top: auto;
  font-size: 13.5px; font-weight: var(--weight-medium);
  text-decoration: none; color: var(--color-text-inverse);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card-cta::after { content: '→'; transition: transform var(--duration-base); }
.service-card.cta:hover .service-card-cta::after { transform: translateX(3px); }

/* ── Tier matrix (homepage pricing) ──────────────────────── */
/* Billing-period toggle (monthly / yearly) */
.billing-toggle {
  display: inline-flex; align-items: center;
  margin-top: 32px;
  padding: 4px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.billing-pill {
  position: relative;
  background: transparent; border: none;
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 13.5px; font-weight: var(--weight-medium);
  color: var(--color-text-muted); cursor: pointer;
  transition: color var(--duration-base), background var(--duration-base);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: var(--tracking-snug);
}
.billing-pill:hover { color: var(--color-text); }
.billing-pill.active {
  background: var(--color-brand); color: var(--color-on-brand);
  box-shadow: var(--shadow-brand-glow);
}
.billing-save {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; font-weight: var(--weight-semibold);
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-on-accent);
}
.billing-pill.active .billing-save {
  background: var(--color-on-brand); color: var(--color-brand);
}

.tier-table-wrap {
  margin-top: 24px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table thead th {
  padding: 32px 14px 24px;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  text-align: center; vertical-align: top;
  position: relative;
  width: 18%;                    /* 4-tier default */
}
.tier-table.tier-table-5 thead th { width: 15.8%; padding-left: 10px; padding-right: 10px; }
.tier-table.tier-table-5 thead th:first-child { width: 21%; padding-left: 18px; padding-right: 14px; }
.tier-table.tier-table-5 .tier-name {
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;            /* keep "Cite0 Dominate" on one line */
}
/* Group bands above the columns: Self-serve (Radar/Lift, violet) vs Partnership
   (Boost/Dominate, orange). The th is a transparent spacer; the inner band
   carries the tint + rounded top so it reads as a tab capping each pair. */
.tier-table.tier-table-5 thead tr.tier-group-row th {
  padding: 0 4px; border: none; background: transparent; vertical-align: bottom;
}
.tier-group-free { color: var(--color-success); background: var(--color-success-soft); border: 1px solid var(--color-live-glow); }
.tier-group {
  text-align: center; padding: 9px 12px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--weight-bold);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.tier-group-self { color: var(--color-brand-ink); background: var(--color-brand-soft); }
.tier-group-partner { color: var(--color-accent-ink); background: var(--color-accent-soft); }
.tier-table thead th:first-child {
  text-align: left;
  width: 34%;
  background: var(--color-bg-elevated);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--color-text-subtle);
  font-weight: var(--weight-medium);
  padding-top: 36px;
}
.tier-row-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px; color: var(--color-text-subtle);
  font-weight: var(--weight-regular); letter-spacing: 0;
  margin-top: 4px; text-transform: none;
  max-width: 44ch; line-height: 1.45;
}
.tier-row-meta {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--color-brand-ink);
  background: var(--color-brand-soft);
  padding: 2px 8px; border-radius: var(--radius-pill);
  margin-left: 6px; vertical-align: middle;
  font-weight: var(--weight-semibold); letter-spacing: 0.02em;
}
.tier-table thead th.popular {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-dark-elevated) 100%);
  color: var(--color-text-inverse);
}
.tier-popular-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-on-accent); font-weight: var(--weight-semibold);
  padding: 3px 10px; background: var(--color-accent); border-radius: 999px;
  box-shadow: var(--shadow-accent-glow);
}
.tier-name {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 8px; margin-top: 6px;
}
.tier-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px; font-weight: 600;
  letter-spacing: -0.04em; display: block; line-height: 1;
}
.tier-price-currency { font-size: 16px; vertical-align: top; opacity: 0.7; margin-right: 2px; }
/* Upper bound of a scoped/range price (Dominate) — smaller + quieter than the
   anchor number so the range fits the column and reads as "from X, up to Y." */
.tier-price-to { font-size: 15px; font-weight: 500; opacity: 0.6; letter-spacing: -0.02em; }
.tier-period {
  font-size: 11px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em; margin-top: 6px; margin-bottom: 20px;
  display: block;
}
.tier-table thead th.popular .tier-period { color: var(--color-text-inverse-muted); }
/* Action, not a tag: the CTA is the only full-width element and the only one
   with a trailing arrow — affordances no static pill has, so it can never be
   confused with the Find/Fix or prompt-count labels. */
.tier-cta {
  display: flex; width: 100%;
  align-items: center; justify-content: center; gap: 7px;
  padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--color-brand); color: var(--color-on-brand);
  text-decoration: none; font-weight: var(--weight-semibold); font-size: 13px;
  font-family: inherit;
  line-height: 1.1;
  white-space: nowrap;            /* "Start with Dominate" must stay on one line */
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}
.tier-cta::after {
  content: '→'; font-size: 14px; line-height: 1;
  transition: transform var(--duration-base);
}
.tier-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-brand-glow); }
.tier-cta:hover::after { transform: translateX(3px); }
.tier-table thead th.popular .tier-cta {
  background: var(--color-accent); color: var(--color-on-accent);
}
.tier-table thead th.popular .tier-cta:hover { background: var(--color-accent-strong); box-shadow: var(--shadow-accent-glow); }
.tier-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 15px;
}
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tier-table tbody tr:hover td { background: var(--bg-soft); }
.tier-table tbody tr:hover td.popular-col { background: rgba(10,10,10,0.04); }
.tier-yes { color: var(--color-brand); font-size: 17px; font-weight: var(--weight-bold); }
.tier-no { color: var(--color-text-subtle); opacity: 0.55; }
.tier-table tbody td.popular-col {
  background: var(--color-brand-soft);
  border-left: 1px solid var(--color-brand-tint);
  border-right: 1px solid var(--color-brand-tint);
}

/* ── Snapshot result helpers (used by homepage snapshot input) ─ */
.snap-message {
  font-size: 14.5px; color: rgba(250,250,247,0.78);
  line-height: 1.55; margin-bottom: 18px; max-width: 56ch;
}
.snap-result .btn-on-dark {
  background: var(--bg); color: var(--ink); padding: 12px 22px;
  border-radius: 999px; font-weight: 500; font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s;
}
.snap-result .btn-on-dark:hover { transform: translateY(-1px); }

/* ── Insights filters + post grid (insights page) ────────── */
.insights-filters {
  display: flex; gap: 12px; margin-top: 40px;
  margin-bottom: 32px; flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.filter-pill {
  display: inline-flex; align-items: center;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 4px 4px 14px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  font-size: 13.5px; font-weight: 500;
}
.filter-pill:hover { border-color: var(--color-brand); }
.filter-pill.active { background: var(--color-brand); color: var(--color-on-brand); border-color: var(--color-brand); }
.filter-pill select {
  appearance: none; -webkit-appearance: none; background: transparent;
  border: none; font-family: inherit; font-weight: 500; font-size: 13.5px;
  color: inherit; padding: 6px 26px 6px 4px;
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
}
.filter-pill.active select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAFAF7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.filter-reset {
  background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); padding: 4px 8px; text-decoration: underline;
}
.filter-reset:hover { color: var(--ink); }
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; transition: all 0.25s ease;
  min-height: 220px;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.post-card.hidden { display: none; }
.post-type {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-brand-ink); font-weight: var(--weight-medium);
  align-self: flex-start;
  padding: 4px 8px; background: var(--color-brand-soft); border-radius: 4px;
}
.post-title {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.25; color: var(--ink);
}
.post-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.5; flex-grow: 1; }
.post-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 11px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.post-tag { background: var(--bg-soft); color: var(--ink-2); padding: 3px 7px; border-radius: 4px; }
.post-date { margin-left: auto; }
.no-posts {
  grid-column: 1 / -1;
  padding: 56px 24px; text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius); font-size: 14px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  padding: 24px 0; font-size: 18px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: -0.02em; transition: opacity 0.2s;
}
.faq-q:hover { opacity: 0.7; }
.faq-q-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
  transition: transform 0.3s, background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-item[open] .faq-q-icon {
  transform: rotate(45deg); background: var(--color-brand); color: var(--color-on-brand);
  border-color: var(--color-brand);
}
.faq-a { padding: 0 0 24px; color: var(--ink-2); max-width: 72ch; font-size: 16px; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}
.foot-cta {
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.foot-cta h4 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight); margin-bottom: 18px;
}
.foot-cta p { color: var(--ink-2); margin-bottom: 28px; font-size: 17px; }
.foot-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.foot-meta .mono { font-size: 11px; }
.foot-brand { display: flex; justify-content: center; margin-bottom: 32px; }
.foot-wordmark { height: 48px; width: auto; color: var(--color-text); opacity: 0.5; transition: opacity var(--duration-base, .2s) ease; }
.foot-brand:hover .foot-wordmark { opacity: 0.8; }

/* ── Map (homepage hero demo) ────────────────────────────── */
.map-wrap { position: relative; }
#mapContainer {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.map-legend {
  margin-top: 16px; padding-top: 14px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.cited { background: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.legend-dot.other { background: var(--ink-3); opacity: 0.5; }

/* Pins (Leaflet divIcons) */
.map-pin { display: flex !important; align-items: center; justify-content: center; }
.map-pin-cited .pin-inner {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--paper);
  box-shadow: 0 0 0 4px var(--green-glow), 0 4px 12px rgba(0,184,95,0.25);
  animation: pinPulse 2.4s infinite;
}
.map-pin-cited.high .pin-inner { width: 38px; height: 38px; font-size: 12px; }
.map-pin-other .pin-inner {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-3); opacity: 0.55;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(10,10,10,0.1);
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--green-glow), 0 4px 12px rgba(0,184,95,0.25); }
  50% { box-shadow: 0 0 0 10px transparent, 0 4px 12px rgba(0,184,95,0.4); }
}

/* Leaflet overrides — match aesthetic */
.leaflet-container { font-family: 'Inter', sans-serif !important; background: var(--bg-soft); }
.leaflet-tooltip.cited-label {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(10,10,10,0.08);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.leaflet-tooltip.cited-label::before { display: none !important; }
.leaflet-control-attribution {
  background: rgba(250, 250, 247, 0.85) !important;
  font-size: 9px !important;
  color: var(--ink-3) !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .dash-body { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row-6 { grid-template-columns: repeat(2, 1fr); }
  .stats-row-6 .stat-tile:nth-child(3n) { border-right: 1px solid var(--color-border); }
  .stats-row-6 .stat-tile:nth-child(2n) { border-right: none; }
  .stats-row-6 .stat-tile { border-bottom: 1px solid var(--color-border); }
  .stats-row-6 .stat-tile:nth-last-child(-n+2) { border-bottom: none; }
  .stat-tile:nth-child(2) { border-right: none; }
  .stat-tile:nth-child(1), .stat-tile:nth-child(2) { border-bottom: 1px solid var(--color-border); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-table-wrap { overflow-x: auto; }
  .tier-table { min-width: 840px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  section.hero { padding: 48px 0 32px; }
  section.block { padding: 64px 0; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-tile { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat-tile:last-child { border-bottom: none; }
  .post-grid { grid-template-columns: 1fr; }
  .dash-header, .dash-pane, .dash-snapshot, .dash-source, .snap-result { padding-left: 20px; padding-right: 20px; }
  .search-bar { width: 100%; border-radius: 18px; padding: 8px; flex-direction: column; }
  .search-cell { width: 100%; padding: 12px 14px; min-width: 0; max-width: none; }
  .search-cell.hidden { display: none; }
  .search-cell + .search-cell { border-left: none; border-top: 1px solid var(--line); }
  .search-go { width: 100%; margin: 8px 0 0; }
  #mapContainer { height: 320px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MIDNIGHT THEME · page canvas + component touch-ups
   ───────────────────────────────────────────────────────────────
   Everything below only applies under <html data-theme="midnight">.
   The component rules above already read tokens, so these are just
   the handful of spots that hardcoded a light value, plus the
   luxury gradient canvas.
   ═══════════════════════════════════════════════════════════════ */
[data-theme="midnight"] body {
  background: var(--grad-page);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
[data-theme="midnight"] nav {
  background: rgba(10, 10, 13, 0.66);
  border-bottom-color: var(--color-border);
}
[data-theme="midnight"] .logo,
[data-theme="midnight"] .logo-mark { color: var(--color-text); }

/* spots that hardcoded light rgba/hex */
[data-theme="midnight"] .lb-row:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="midnight"] .lb-bar-track { background: rgba(255, 255, 255, 0.10); }
[data-theme="midnight"] .tier-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
[data-theme="midnight"] .tier-table tbody tr:hover td.popular-col { background: rgba(139, 92, 246, 0.12); }
[data-theme="midnight"] .map-pin-cited .pin-inner { border-color: #1b1726; }
[data-theme="midnight"] .map-pin-other  .pin-inner { border-color: #1b1726; }
[data-theme="midnight"] .leaflet-container { background: #0f0d16; }
[data-theme="midnight"] .leaflet-control-attribution {
  background: rgba(10, 10, 13, 0.78) !important;
  color: var(--color-text-subtle) !important;
}
[data-theme="midnight"] .leaflet-control-attribution a { color: var(--color-text-muted) !important; }
[data-theme="midnight"] .leaflet-tooltip.cited-label {
  background: #1b1726; border-color: var(--color-border-strong); color: var(--color-text);
}

/* the hero underline accent reads better as a soft glow on dark */
[data-theme="midnight"] .hero-title em::after { opacity: 0.55; }

/* white ChatGPT mock floats on the dark page — give it a violet ring */
[data-theme="midnight"] .gpt-shell {
  box-shadow: 0 0 0 1px rgba(124,58,237,0.20), 0 30px 80px rgba(0,0,0,0.55);
}

/* ═══════════════════════════════════════════════════════════════
   HERO TYPER — fixed-metric slot so a long model name (e.g.
   "Google AI Overviews") never wraps to a 2nd line and bumps the
   page. The slot clips horizontally and reserves exactly one line.
   ═══════════════════════════════════════════════════════════════ */
.hero-typer {
  display: inline-flex;
  align-items: baseline;
  vertical-align: bottom;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}
#aiToolTyper { white-space: nowrap; }
/* On phones the longest names would still overflow the viewport, so
   allow the hero headline to shrink the slot rather than wrap. */
@media (max-width: 640px) {
  h1.hero-title { max-width: 18ch; }
  .hero-typer { font-size: 0.92em; }
}

/* ═══════════════════════════════════════════════════════════════
   AI VISIBILITY EXPLORER — the single consolidated interactive
   component. Holds the control bar, the tab switcher, and the four
   panels (customer's view / map / leaderboard / prompts), plus the
   provenance strip and the snapshot result.
   ═══════════════════════════════════════════════════════════════ */
.explorer {
  margin-top: 16px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.explorer::before {            /* violet halo across the top edge */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 220px;
  background: var(--grad-spot); pointer-events: none; z-index: 0;
}
.explorer > * { position: relative; z-index: 1; }

/* — control bar — */
.explorer-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.xp-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.xp-field.hidden { display: none; }
.xp-field > label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-text-subtle);
}
.xp-opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.xp-field select, .xp-field input {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 11px 14px;
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit; font-size: 14.5px; font-weight: var(--weight-medium);
  color: var(--color-text); cursor: pointer; outline: none;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.xp-field input { cursor: text; }
.xp-field select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px;
}
.xp-field select option { background: var(--color-bg-elevated); color: var(--color-text); }
.xp-field input::placeholder { color: var(--color-text-subtle); }
.xp-field select:focus, .xp-field input:focus {
  border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft);
}
.xp-field-biz { flex: 1.4 1 200px; }

/* ── Business name typeahead — restrict input to known businesses ─────────
   The dropdown has to render above the explorer-panels below it (Leaflet
   map, panel headers). The explorer template gives every direct child
   z-index: 1, which puts panels (later in DOM) on top by default — so
   explicitly lift the controls bar one notch above. */
.explorer > .explorer-controls { z-index: 2; }
.xp-field-biz { position: relative; z-index: 100; }
.biz-input-wrap { position: relative; z-index: 100; }
.biz-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px 0; list-style: none;
  background: var(--color-bg-elevated);
  border: 1px solid var(--line-2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 240px; overflow-y: auto;
  z-index: 1000;
}
.biz-dropdown li {
  padding: 8px 12px; font-size: 13.5px; color: var(--color-text);
  cursor: pointer; line-height: 1.35;
}
.biz-dropdown li:hover,
.biz-dropdown li.is-active { background: var(--bg-soft); }
.biz-dropdown li mark {
  background: var(--color-brand-soft); color: var(--color-brand-ink);
  padding: 0 2px; border-radius: 3px;
}
.biz-input-invalid { border-color: var(--color-danger, #f87171) !important; }
/* Hint floats absolutely below the input, so it never changes the field's
   layout height — the biz input stays aligned with the other selects no
   matter what's typed. When the dropdown is open it sits at the same
   top:100% with higher z-index, so it naturally covers the hint. */
.biz-input-hint {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; font-size: 11px; color: var(--color-danger, #f87171);
  line-height: 1.3; pointer-events: none;
}
.biz-input-hint:empty { display: none; }
/* the Run button when blocked by an invalid biz value */
.xp-run:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.xp-run {
  flex: 0 0 auto;
  background: var(--grad-cta); color: var(--color-on-brand); border: none;
  border-radius: var(--radius); padding: 12px 22px;
  font-family: inherit; font-weight: var(--weight-semibold); font-size: 14px;
  cursor: pointer; white-space: nowrap; height: 44px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-brand-glow);
  transition: background var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
}
.xp-run:hover { background: var(--grad-cta-hover); transform: translateY(-1px); box-shadow: 0 10px 34px rgba(124,58,237,0.55); }

/* — tab switcher — */
.explorer-tabs {
  display: flex; gap: 4px; padding: 12px 16px 0;
  overflow-x: auto; scrollbar-width: none;
}
.explorer-tabs::-webkit-scrollbar { display: none; }
.xp-tab {
  flex: 0 0 auto;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  padding: 10px 16px; border-radius: var(--radius) var(--radius) 0 0;
  position: relative; white-space: nowrap;
  transition: color var(--duration-base), background var(--duration-base);
}
.xp-tab:hover { color: var(--color-text); }
.xp-tab.active { color: var(--color-text); background: rgba(255,255,255,0.04); }
.xp-tab.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--color-brand); border-radius: 2px;
}
.xp-tab-count {
  font-family: var(--font-mono); font-size: 10px; font-weight: var(--weight-semibold);
  color: var(--color-brand-ink); background: var(--color-brand-soft);
  padding: 1px 6px; border-radius: var(--radius-pill); margin-left: 6px;
}

/* — meta strip (which prompt / which engine / freshness) — */
.explorer-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}
.explorer-meta .prompt-shown { flex: 1; min-width: 160px; }
/* freshness badge — highlighted so the "live, recent data" signal pops.
   Tucked into the customer-POV panel header rather than its own row. */
.live-tag-fresh {
  padding: 4px 10px 3px; border-radius: var(--radius-pill);
  background: var(--green-glow); color: var(--green);
  font-weight: var(--weight-semibold); font-size: 10px;
  white-space: nowrap; flex: 0 0 auto;
}
.xp-panel-head { flex-wrap: nowrap; }
.xp-panel-head .live-tag-fresh { margin-left: auto; }
.explorer-meta-r { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }

/* — panels — */
.explorer-panels { padding: 24px; }
.xp-panel { display: none; }
.xp-panel.active { display: block; animation: xpFade var(--duration-slow) var(--ease-standard); }
@keyframes xpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.xp-panel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: var(--weight-semibold);
  color: var(--color-text); margin-bottom: 16px;
}
.xp-panel-head .pane-title-dot { background: var(--color-brand); }
.xp-panel-hint { font-size: 13px; color: var(--color-text-muted); margin: 0 0 18px; max-width: 60ch; line-height: 1.55; }

/* the customer's-view panel hosts the white gpt-shell on a tinted stage */
#panelChat .gpt-shell { height: 480px; }

/* — explorer footnote (replaces the old chat-side prose, trimmed) — */
.explorer-note {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.explorer-note-card {
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px 22px;
}
.explorer-note-card h4 {
  font-size: 15px; font-weight: var(--weight-semibold); margin-bottom: 8px;
  letter-spacing: var(--tracking-tight); color: var(--color-text);
}
.explorer-note-card p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.55; }
.explorer-note-card.accent { border-color: var(--color-accent-tint); background: var(--color-accent-soft); }
.explorer-note-card.accent h4 { color: var(--color-accent-ink); }

/* ═══ Tier base/custom prompt cell ═══ */
.tier-prompts { display: inline-flex; flex-direction: column; gap: 3px; align-items: center; }
.tier-prompts-base { font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-semibold); color: var(--color-text); }
.tier-prompts-custom {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--color-brand-ink); background: var(--color-brand-soft);
  padding: 1px 8px; border-radius: var(--radius-pill);
}
/* One dignified violet ladder — every tier gets a solid, intentional fill (no
   faded low-opacity pills) so the entry tiers still look like real choices. The
   ladder deepens as it climbs and Dominate (+50) gets the brand glow on top. */
.tier-prompts-custom.lvl-1 { background: var(--color-brand-soft); }
.tier-prompts-custom.lvl-2 { background: var(--color-brand-tint); }
.tier-prompts-custom.lvl-3 {
  background: var(--color-brand); color: var(--color-on-brand);
  font-weight: var(--weight-bold);
}
.tier-prompts-custom.lvl-4 {
  background: var(--color-brand-strong); color: var(--color-on-brand);
  font-weight: var(--weight-bold); font-size: 11.5px; padding: 2px 10px;
  box-shadow: var(--shadow-brand-glow);
}
.tier-table thead th.popular .tier-prompts-base { color: var(--color-text-inverse); }

/* ── Find vs Fix: depth-of-service cell, used where a higher tier offers the
   SAME service at a higher price. "Find" = Lift reveals every issue (diagnostic,
   quiet outline pill); "Fix" = Boost/Dominate take ownership and apply the fixes
   (the valued, done-for-you action — brand-filled pill so the eye lands on it).
   Mirrors the .tier-prompts stacked layout for visual consistency. */
.tier-mode { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; line-height: 1.2; }
.tier-mode-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: var(--weight-bold);
  letter-spacing: 0.02em; padding: 2px 11px; border-radius: var(--radius-pill);
}
/* Find = the lighter, diagnostic inclusion: soft brand (violet) so it still
   reads as "yes, included" but visually subordinate to Fix. */
.tier-mode-find .tier-mode-label {
  color: var(--color-brand-ink); background: var(--color-brand-soft);
  border: 1px solid var(--color-brand-tint);
}
/* Fix = the done-for-you action. Solid brand violet — one rung up from Find's
   soft violet — so the ladder reads in a single hue. */
.tier-mode-fix .tier-mode-label {
  color: var(--color-on-brand); background: var(--color-brand);
}
/* Build = Dominate's exclusive new always-on systems. Deepest violet plus the
   brand glow — the same peak treatment as the top "+50 custom" pill — so the
   glowing violet reads as Dominate's signature down its column. */
.tier-mode-build .tier-mode-label {
  color: var(--color-on-brand); background: var(--color-brand-strong);
  box-shadow: var(--shadow-brand-glow);
}
.tier-mode-sub {
  font-size: 10.5px; letter-spacing: 0.01em; color: var(--ink-2);
  white-space: nowrap;
}
/* inside the highlighted Boost column the bg is brand-soft (light), so keep
   normal ink for the caption rather than inverse text */
.tier-table tbody td.popular-col .tier-mode-sub { color: var(--ink-2); }

/* "Best for" cap — lives inside each tier header, under the name and above the
   price, so it reads as the tier's identity rather than a feature row. The
   color-coded chip encodes the two ways to work with cite0: a violet "You run
   it" for bring-your-own-team (Radar/Lift) and an orange "We run it" for the
   partner tiers where we're your AI team (Boost/Dominate). min-height keeps the
   prices aligned across columns when a tagline wraps to two lines. */
.tier-cap { margin: 9px auto 16px; max-width: 22ch; }
/* Filled soft pill — a static capability/positioning label, deliberately NOT
   full-width and with no arrow, so it never reads as the clickable CTA. */
.tier-cap-chip {
  display: inline-block; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase;
  font-weight: var(--weight-bold); padding: 3px 11px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.chip-byot { color: var(--color-brand-ink); background: var(--color-brand-soft); }
.chip-partner { color: var(--color-accent-ink); background: var(--color-accent-soft); }
/* Free column accents: a restrained green hint (the "free" cue) — soft tint
   fills + muted-green text, kept small so it never dominates the table. */
.chip-free { color: var(--color-success); background: var(--color-success-soft); border: 1px solid var(--color-live-glow); }
/* small per-row "Free" pill + benefit note (+ optional bonus) for Spark cells */
.tier-demo-pill {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.02em;
  color: var(--color-success); background: var(--color-success-soft);
  padding: 2px 9px; border-radius: var(--radius-pill);
}
.tier-demo-note { display: block; font-size: 10.5px; color: var(--color-text); line-height: 1.3; margin-top: 5px; }
.tier-demo-bonus { display: block; font-size: 9.5px; color: var(--color-success); margin-top: 3px; font-style: italic; }
/* the Free CTA is the quiet, no-commitment one — green outline rather than filled */
.tier-cta-free { background: transparent; color: var(--color-success); border: 1px solid var(--color-live-glow); }
.tier-cta-free:hover { background: var(--color-success-soft); box-shadow: none; }
.tier-cap-desc {
  display: block; font-size: 11.5px; line-height: 1.35; font-weight: var(--weight-medium);
  color: var(--color-text); max-width: 22ch; margin: 0 auto; min-height: 4em;
}
/* on the dark Boost header, lift the tagline to inverse so it stays legible */
.tier-table thead th.popular .tier-cap-desc { color: var(--color-text-inverse-muted); }

/* ═══════════════════════════════════════════════════════════════
   EXTRA MOBILE RULES for the new component + the gpt mock
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .explorer-note { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* the ChatGPT-accurate mock: drop the sidebar, it eats the phone */
  .gpt-nav { display: none; }
  #panelChat .gpt-shell { height: 440px; }
  .gpt-msg { padding: 4px 14px; }
}
@media (max-width: 640px) {
  .explorer-controls { padding: 16px; gap: 8px; }
  /* keep the dropdowns (Category / Subcategory / Neighborhood) on one row */
  .explorer-controls { flex-wrap: wrap; }
  .xp-field { flex: 1 1 0; min-width: 0; }
  .xp-field > label { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xp-field select { padding: 10px 26px 10px 10px; font-size: 13.5px; background-position: right 8px center; }
  /* business name + run button get their own full-width rows below */
  .xp-field-biz { flex: 1 1 100%; min-width: 0; }
  .xp-field-biz input { font-size: 14px; }
  .xp-run { width: 100%; justify-content: center; }
  .explorer-panels { padding: 16px; }
  .explorer-meta { padding: 12px 16px; }
  .explorer-meta-r { margin-left: 0; }
  .gpt-shell { height: 420px; }
  /* tier table: keep comparison readable via horizontal scroll w/ snap */
  .tier-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tier-table { min-width: 720px; }
  .tier-table.tier-table-5 thead th { scroll-snap-align: start; }
  /* let the Find/Fix captions wrap inside the narrow mobile columns instead of
     forcing the scroll width wider; the label pill stays the anchor */
  .tier-mode-sub { white-space: normal; font-size: 10px; max-width: 11ch; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   REVISION 2 — single-view explorer, compact stats, tier popular
   fix, service-card affordance, orange CTA, hero emphasis.
   (Appended last so it wins over the rules above.)
   ═══════════════════════════════════════════════════════════════ */

/* hero subtitle emphasis */
.hero-sub strong { color: var(--color-text); font-weight: var(--weight-semibold); }
/* lede emphasis — brings the CITED letters/name forward against muted lede */
.block-lede strong { color: var(--color-text); font-weight: var(--weight-semibold); }
/* CITED acronym: the leading letter of each step glows in the brand color so
   the eye reads C·I·T·E·D down the subtitle. */
.cited-initial {
  color: var(--color-brand-ink);
  font-weight: var(--weight-bold);
  font-family: var(--font-mono);
}

/* urgency emphasis inside the FOMO callout */
.explorer-fomo em {
  font-style: normal; color: var(--color-accent-ink); font-weight: var(--weight-semibold);
}

/* ═══ iPhone mock for the customer's-view panel ═══
   A realistic phone frame (this is how local customers actually ask AI).
   The animated #chatBody lives inside the screen — JS is unchanged. */
.xp-cell-chat { display: flex; flex-direction: column; }
.iphone { display: flex; justify-content: center; padding-top: 4px; flex: 1; }
.iphone-frame {
  position: relative; width: 300px; max-width: 100%;
  background: linear-gradient(160deg, #2c2c33 0%, #0c0c0f 62%);
  border-radius: 46px; padding: 11px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 30px 70px rgba(0,0,0,0.6), 0 0 44px rgba(124,58,237,0.16);
}
.iphone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; background: #000; border-radius: 14px; z-index: 6;
}
.iphone-screen {
  position: relative; background: #fff; border-radius: 38px; overflow: hidden;
  height: 470px; display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ip-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 26px 6px; flex-shrink: 0; }
.ip-time { font-size: 14px; font-weight: 600; color: #000; }
.ip-sigs { display: inline-flex; align-items: center; gap: 5px; }
.ip-appbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 10px; border-bottom: 1px solid #ececec; flex-shrink: 0; }
.ip-appbar-side { width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.ip-appbar-title { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #0d0d0d; }
.ip-app-logo { display: inline-flex; }
.ip-app-model { font-size: 12px; font-weight: 500; color: #8e8ea0; }
.ip-inputbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.ip-input-plus { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; color: #6e6e6e; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ip-input-field { flex: 1; background: #f4f4f4; border-radius: 18px; padding: 9px 14px; font-size: 13px; color: #b4b4b4; }
.ip-input-mic { flex-shrink: 0; display: inline-flex; }
.iphone-home { height: 5px; width: 118px; background: #000; border-radius: 3px; margin: 7px auto 9px; flex-shrink: 0; }
/* messages inside the phone — compact, full-width */
.iphone .gpt-messages { flex: 1; overflow-y: auto; padding: 14px 0; background: #fff; scroll-behavior: smooth; }
.iphone .gpt-msg { max-width: 100%; margin: 0; padding: 4px 14px; }
.iphone .gpt-msg-user-bubble { font-size: 13.5px; max-width: 86%; }
.iphone .gpt-msg-ai-body { font-size: 13.5px; }
.iphone .gpt-chat-list-item { font-size: 12.5px; }

/* ═══ Coverage section — categories (cards) + neighborhoods (map) ═══ */
.coverage-layout { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.coverage-col { display: flex; flex-direction: column; gap: 12px; }
.coverage-coltag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: 2px;
}
.coverage-card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
}
.coverage-card:hover { transform: translateY(-2px); border-color: var(--color-brand-tint); box-shadow: var(--shadow-md); }
.coverage-card-head { display: flex; align-items: center; gap: 14px; }
.coverage-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-brand-ink); background: var(--color-brand-soft); border: 1px solid var(--color-brand-tint);
}
.coverage-title { font-size: 18px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--color-text); }
.coverage-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.coverage-tag {
  font-size: 12px; font-weight: var(--weight-medium); color: var(--color-text);
  background: var(--color-bg-inset); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); padding: 5px 11px;
}
.coverage-tag-soon { color: var(--color-text-subtle); border-style: dashed; background: transparent; }
/* map card */
.coverage-map-card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
#coverageMap {
  height: 300px; border-radius: var(--radius); overflow: hidden;
  background: #0f0d16; border: 1px solid var(--color-border);
}
.coverage-area-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.coverage-pin { display: flex !important; align-items: center; justify-content: center; }
.coverage-pin .cov-pin-inner {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-brand); border: 2.5px solid #1b1726;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.25);
}
.coverage-note { margin-top: 22px; font-size: 14px; color: var(--color-text-muted); }
.coverage-note a { color: var(--color-brand-ink); text-decoration: underline; }
@media (max-width: 860px) {
  .coverage-layout { grid-template-columns: 1fr; }
  #coverageMap { height: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE-FIRST safety + hero sizing (most visitors are on phones)
   ═══════════════════════════════════════════════════════════════ */
/* prevent stray sideways scroll WITHOUT breaking the sticky nav:
   overflow:clip doesn't create a scroll container (unlike hidden). */
body { overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; }
@media (max-width: 640px) {
  /* explorer-led mobile hero: trimmed hard so the dashboard — controls AND the
     top of the phone-mock results — sits at/just above the fold (70% mobile). */
  section.hero { padding: 16px 0 0; }
  .hero-tag { margin-bottom: 8px; }
  /* shorter, tighter eyebrow so the tagline stays on one line */
  .hero-tag .live-tag { font-size: 10px; letter-spacing: 0.03em; }
  /* bigger headline on phones + balanced wrap so the first line doesn't break
     into an ugly orphan (e.g. "picked by" on its own short line). text-wrap:
     balance distributes the wrapped lines evenly; tighter line-height keeps the
     big display text from feeling sparse. */
  h1.hero-title {
    font-size: clamp(44px, 12.5vw, 60px);
    max-width: 18ch; margin-bottom: 10px;
    line-height: 1.05;
    text-wrap: balance;
  }
  .hero-typer { font-size: 1em; }
  /* subtitle deliberately kept small so the headline carries the hero */
  .hero-sub { font-size: 13.5px; line-height: 1.4; margin-bottom: 12px; }
  .explorer { margin-top: 10px; }
  /* tighten section rhythm on small screens */
  section.block { padding: 48px 0; }
  .block-title { font-size: clamp(28px, 7.5vw, 40px); }
}
@media (max-width: 430px) {
  /* iPhone portrait widths (SE ~375 · 14/15 ~390 · Pro Max ~430) */
  .hero-sub { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .iphone-frame { width: 100%; max-width: 300px; }
  .iphone-screen { height: 440px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE CONTENT DENSITY — trim secondary copy on phones so it
   stops eating vertical space / wrapping to 3+ lines. Single
   codebase: desktop keeps the full explanatory text.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* section ledes: smaller + tighter, and clamp the longest ones */
  .block-lede { font-size: 15px; line-height: 1.45; }
  /* pricing matrix: the long explanatory clause under each row label is
     the biggest space hog on mobile — the label alone is self-explanatory */
  .tier-row-sub { display: none; }
  /* service-card blurbs: cap to 3 lines so cards stay uniform */
  .service-desc {
    font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* coverage section copy */
  .coverage-note { font-size: 13px; }
  /* freshness: drop the filled pill on mobile — quiet green text + dot tag
     beside the panel title instead of a loud highlight */
  .xp-panel-head { gap: 8px; }
  .xp-panel-head .live-tag-fresh {
    font-size: 9px; padding: 0; background: none; letter-spacing: 0.03em;
  }
  .xp-cell-chat > .xp-panel-head { white-space: nowrap; }
}

/* — explorer: one compact view, no tabs — */
.explorer-grid {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 16px;
  padding: 22px 24px;
}
.xp-cell { min-width: 0; }
.xp-cell-side { display: flex; flex-direction: column; gap: 16px; }
.xp-cell-block { min-width: 0; }
.xp-cell-chat .gpt-shell { height: 400px; }
/* compact map inside the explorer */
.explorer-grid #mapContainer { height: 196px; }
.explorer-grid .map-legend { margin-top: 10px; padding-top: 10px; gap: 16px; }
/* compact leaderboard rows */
.xp-cell-side .lb-row { padding: 7px 11px; }
.xp-cell-side .lb-name { font-size: 13px; }
/* the xp-panel-head is reused as a small block label */
.xp-panel-head { font-size: 12.5px; margin-bottom: 12px; }

/* — one-line FOMO callout — */
.explorer-fomo {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 16px 20px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-tint);
  border-radius: var(--radius-lg);
  color: var(--color-text); font-size: 14.5px; font-weight: var(--weight-medium);
  line-height: 1.5;
}
.explorer-fomo-mark {
  font-size: 18px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,122,26,0.5));
}

/* — compact "why this matters" stats band — */
.stats-band { padding-top: 56px; padding-bottom: 56px; }
.stats-band .stats-row { margin-top: 18px; }
.stats-compact .stat-tile { padding: 18px 18px; }
.stats-compact .stat-num { font-size: 27px; margin-bottom: 8px; }
.stats-compact .stat-label { font-size: 12.5px; }
.stats-compact .stat-source { top: 14px; right: 16px; }

/* — TIER: popular flag in flow + readable highlight (no overlap) — */
.tier-popular-badge { display: none; }   /* retired old badge */
/* The flag is absolutely positioned in the column's top padding so it adds
   NO height — every column's name/price/button stay aligned across the row. */
.tier-flag {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: var(--weight-bold);
  color: #fff; background: var(--color-accent);
  padding: 4px 12px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-accent-glow); white-space: nowrap;
}
[data-theme="midnight"] .tier-table thead th.popular {
  background: linear-gradient(180deg, rgba(124,58,237,0.26) 0%, rgba(36,27,59,0.55) 100%);
  box-shadow: inset 0 0 0 1px var(--color-brand-tint);
  color: var(--color-text);
}
[data-theme="midnight"] .tier-table thead th.popular .tier-name,
[data-theme="midnight"] .tier-table thead th.popular .tier-price { color: var(--color-text); }
[data-theme="midnight"] .tier-table thead th.popular .tier-period { color: var(--color-text-muted); }
[data-theme="midnight"] .tier-table thead th.popular .tier-cap-desc { color: var(--color-text-muted); }

/* — SERVICE CARDS: make clickability obvious — */
/* corner arrow visible by default (was hover-only) */
.service-card:not(.cta)::after { opacity: 0.4; transform: translateX(0); }
/* persistent "View details →" cue pinned to the card bottom */
.service-card:not(.cta)::before {
  content: "View details →";
  order: 9; margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--color-brand-ink); font-weight: var(--weight-semibold);
}
.service-card:not(.cta):hover::before { color: var(--color-brand); }

/* — SERVICE CTA card: orange, high-attention, readable — */
[data-theme="midnight"] .service-card.cta {
  background: linear-gradient(135deg, #ff8a33 0%, #c4560a 100%);
  border-color: transparent;
}
[data-theme="midnight"] .service-card.cta:hover {
  background: linear-gradient(135deg, #ff9a55 0%, #d4600a 100%);
  box-shadow: var(--shadow-accent-glow);
}
[data-theme="midnight"] .service-card.cta .service-num { color: rgba(255,255,255,0.88); }
[data-theme="midnight"] .service-card.cta .service-name,
[data-theme="midnight"] .service-card.cta .service-card-cta { color: #fff; }
[data-theme="midnight"] .service-card.cta .service-desc { color: rgba(255,255,255,0.90); }

/* — explorer single-view responsive — */
@media (max-width: 860px) {
  .explorer-grid { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .xp-cell-chat .gpt-shell { height: 380px; }
  .explorer-grid #mapContainer { height: 220px; }
}

/* — contact form (business name + email) — */
.contact-form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 580px; margin: 0 auto;
}
.contact-form input {
  flex: 1 1 200px; min-width: 0;
  padding: 14px 16px;
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--color-text);
  outline: none; transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.contact-form input::placeholder { color: var(--color-text-subtle); }
.contact-form input:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-soft); }
.contact-form .btn { flex: 0 0 auto; }
.contact-note { margin-top: 14px; font-size: 13px; color: var(--color-text-muted); min-height: 1.2em; }
@media (max-width: 540px) {
  .contact-form input, .contact-form .btn { flex: 1 1 100%; width: 100%; justify-content: center; }
}
