/* ==========================================================================
   OpenGEO — Modern Editorial B2B SaaS Design System
   Shared by index.html (5-second hook) and report.html (1-on-1 executive audit)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --line: #e2e8f0;
  --line-subtle: #eef2f6;
  --line-strong: #cbd5e1;

  --obsidian: #0f172a;
  --obsidian-hover: #1e293b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;

  --rose: #be123c;
  --rose-soft: #fff1f2;
  --rose-border: #fecdd3;
  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-stage: 0 28px 64px -24px rgba(15, 23, 42, 0.14), 0 6px 18px -6px rgba(15, 23, 42, 0.06);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

/* Scroll-state container query root for auto-hiding sticky header on scroll down */
html {
  container-type: scroll-state;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
pre,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:target {
  scroll-margin-top: 5rem;
}

/* Accessible visually hidden live-region utility */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.container-narrow {
  width: min(980px, 100% - 40px);
  margin-inline: auto;
}

/* ==========================================================================
   Compact Sticky Header (< 12% viewport height, hides smoothly on scroll down)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-subtle);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@container scroll-state((scrolled: bottom) and (scrollable: top)) {
  .site-header {
    transform: translateY(-100%);
  }
}

.site-header:focus-within {
  transform: none;
}

.site-header.is-hidden:not(:focus-within) {
  transform: translateY(-100%);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 26px;
  height: 26px;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.header-nav a {
  transition: color 140ms ease;
}

.header-nav a:hover {
  color: var(--ink);
}

@media (min-width: 820px) {
  .header-nav {
    display: inline-flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-subtle);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, color 150ms ease;
}

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

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
  border: 1px solid var(--obsidian);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.btn-primary:hover {
  background: var(--obsidian-hover);
  border-color: var(--obsidian-hover);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #94a3b8;
}

.btn-subtle {
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border: 1px solid transparent;
}

.btn-subtle:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.btn-accent-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-accent-soft:hover {
  background: #e0e7ff;
}

.btn-on-dark {
  background: #ffffff;
  color: var(--obsidian);
  border: 1px solid #ffffff;
}

.btn-on-dark:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   Hero Section (0–5 Seconds: Crisp, Editorial, High Impact)
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 28px 64px;
  background:
    radial-gradient(ellipse 75% 48% at 50% -8%, rgba(79, 70, 229, 0.085), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000 10%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-header {
  max-width: 1020px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  max-width: 100%;
  line-height: 1.4;
  text-wrap: balance;
  transition: border-color 140ms ease;
}

a.hero-pill:hover {
  border-color: var(--accent-border);
}

.hero-pill-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-title {
  font-size: clamp(1.85rem, 1.3rem + 1.65vw, 2.68rem);
  font-weight: 780;
  line-height: 1.13;
  letter-spacing: -0.036em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title .emphasis {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 66ch;
  font-size: clamp(0.95rem, 0.91rem + 0.2vw, 1.06rem);
  line-height: 1.56;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   5-Second Product Showcase Frame (The Visual Hook — NOT a paper database)
   ========================================================================== */

.showcase-container {
  container-type: inline-size;
  margin-top: 26px;
}

.showcase-frame {
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}

.showcase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.showcase-subject {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--obsidian);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.showcase-subject-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.showcase-domain {
  color: var(--muted);
  font-weight: 500;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.scenario-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--line-subtle);
  overflow-x: auto;
  max-width: 100%;
}

.scenario-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.scenario-pill:hover {
  color: var(--ink);
}

.scenario-pill.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* Safe default vertical stack + @container enhancement */
.showcase-split {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .showcase-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 860px) {
    .showcase-split {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 820px) {
    .showcase-split {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    }
  }
}

.showcase-pane {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.showcase-pane-left {
  background: #ffffff;
  border-bottom: 1px solid var(--line-subtle);
}

@container (min-width: 820px) {
  .showcase-pane-left {
    border-bottom: 0;
    border-right: 1px solid var(--line-subtle);
  }
}

.showcase-pane-right {
  background: #fcfdff;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pane-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

.step-dot-ai {
  background: var(--rose-soft);
  color: var(--rose);
}

.step-dot-fix {
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-missed {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.status-partial {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.status-won {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.status-partial {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

/* Mockup ChatGPT Buyer Bubble */
.chat-scene {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buyer-bubble {
  align-self: flex-end;
  max-width: 92%;
  padding: 11px 15px;
  border-radius: 16px 16px 4px 16px;
  background: var(--bg-muted);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.48;
}

.ai-reply-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.ai-badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10a37f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.ai-reply-excerpt {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.comp-mark {
  display: inline-block;
  padding: 0 6px;
  margin-inline: 1px 0;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow-xs);
}

.cited-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.cited-strip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cited-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cited-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.cited-chip-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cited-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cited-chip-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-diagnosis-note {
  margin-top: auto;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  font-size: 12.5px;
  line-height: 1.5;
  color: #881337;
}

.hero-diagnosis-note.is-partial {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: #78350f;
}

.cited-chip:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-xs);
}

.domain-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.cited-chip-domain {
  font-weight: 650;
  color: var(--ink);
}

.cited-chip-role {
  color: var(--muted);
  font-size: 11.5px;
}

/* Right Card: Editorial Before -> After Rewrite (NOT Git Diff!) */
.editorial-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.target-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.target-url-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 6px;
}

.editorial-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editorial-before {
  background: #fafafa;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.editorial-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.editorial-before .editorial-tag {
  color: var(--muted);
}

.editorial-before .editorial-headline {
  font-size: 14px;
  font-weight: 650;
  text-decoration: line-through;
  text-decoration-color: rgba(190, 18, 60, 0.38);
  color: var(--muted);
}

.editorial-before .editorial-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.editorial-after {
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  border-left: 4px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}

.editorial-after .editorial-tag {
  color: var(--emerald);
}

.editorial-after .editorial-headline {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.editorial-after .editorial-body {
  font-size: 13px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.mini-table-wrap {
  margin-top: 6px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.mini-table th {
  background: var(--bg-subtle);
  color: var(--muted);
  font-weight: 650;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-subtle);
}

.mini-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--ink-secondary);
  vertical-align: top;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.mini-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 550;
  background: rgba(236, 253, 245, 0.45);
}

.pane-foot-note {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Section 2: Contrast — Pure Score Trackers vs OpenGEO
   ========================================================================== */

.band {
  padding-block: 76px;
}

.band-subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--line-subtle);
}

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.55rem, 1.25rem + 1.15vw, 2.25rem);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.section-sub {
  font-size: 15.5px;
  color: var(--muted);
  text-wrap: pretty;
}

.contrast-wrap {
  container-type: inline-size;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 780px) {
  .contrast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 780px) {
    .contrast-grid {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 740px) {
    .contrast-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

.contrast-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contrast-card-old {
  background: var(--surface);
  border: 1px solid var(--line);
}

.contrast-card-new {
  background: var(--surface);
  border: 1.5px solid var(--accent-border);
  box-shadow: 0 20px 44px -22px rgba(79, 70, 229, 0.22);
}

.contrast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contrast-title {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.contrast-price {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--muted);
}

.contrast-card-new .contrast-price {
  background: var(--accent-soft);
  color: var(--accent);
}

.mini-visual {
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
}

.wiggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wiggle-score {
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.wiggle-delta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.wiggle-svg {
  width: 150px;
  height: 44px;
  flex-shrink: 0;
}

.vague-brief-chip {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loop-step {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loop-step-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.li-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.li-icon-bad {
  background: var(--bg-muted);
  color: var(--muted);
}

.li-icon-good {
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* ==========================================================================
   Section 3: Bridge Preview of Full 5-Prompt Report
   ========================================================================== */

.bridge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.bridge-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bridge-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bridge-title {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.bridge-sub {
  font-size: 14px;
  color: var(--muted);
}

.summary-rows {
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 15px 28px;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color 140ms ease;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row:hover {
  background: var(--bg-subtle);
}

.summary-q {
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink);
  flex: 1 1 380px;
}

.summary-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.winner-note {
  font-size: 12.5px;
  color: var(--muted);
}

.bridge-footer {
  padding: 18px 28px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bridge-footer-note {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Section 4: Inline Audit Request CTA (Zero Friction)
   ========================================================================== */

.cta-stage {
  background: var(--obsidian);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-stage);
  container-type: inline-size;
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .cta-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 820px) {
    .cta-layout {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 760px) {
    .cta-layout {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
  }
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-eyebrow {
  font-size: 12.5px;
  font-weight: 650;
  color: #a5b4fc;
}

.cta-heading {
  font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cta-text {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 46ch;
}

.cta-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.cta-form-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
}

/* ==========================================================================
   Form Controls & Accessible Post-Interaction Validation
   ========================================================================== */

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.cta-form-card .field label {
  color: #f8fafc;
}

.cta-form-card .field-hint {
  color: #94a3b8;
}

.field input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
  outline: none;
}

.field input:is(:user-invalid, .user-invalid-fallback) {
  border-color: #e11d48;
  background: #fff1f2;
}

.field input:is(:user-valid, .user-valid-fallback) {
  border-color: #10b981;
}

.error-msg {
  display: none;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: #be123c;
  margin-top: 2px;
}

.cta-form-card .error-msg {
  color: #fda4af;
}

.field input:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: flex;
}

.form-success-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-pill {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
}

.summary-preview {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.cta-form-card .summary-preview {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Footer (Quiet, Dignified Open-Source Link — Zero Marketer Distraction)
   ========================================================================== */

.site-footer {
  padding-block: 28px 36px;
  border-top: 1px solid var(--line-subtle);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  font-weight: 500;
  transition: color 140ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ==========================================================================
   REPORT PAGE (report.html) — Executive Summary + Collapsible Accordion Proof
   ========================================================================== */

.report-page {
  background: var(--bg-subtle);
}

.report-main {
  padding-block: 32px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 13px;
  color: #3730a3;
}

.exec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exec-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.exec-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exec-brand .brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 18px;
}

.exec-brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.exec-brand-meta {
  font-size: 13px;
  color: var(--muted);
}

.exec-diagnosis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 78ch;
}

.exec-headline {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.exec-subline {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.kpi-wrap {
  container-type: inline-size;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 680px) {
    .kpi-grid {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 620px) {
    .kpi-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

.kpi-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.kpi-value {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.kpi-value.is-rose {
  color: var(--rose);
}

.kpi-value.is-accent {
  color: var(--accent);
}

.kpi-value.is-emerald {
  color: var(--emerald);
}

.kpi-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* Competitor Share Bar */
.share-panel {
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.share-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.share-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.share-name {
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-name.is-subject {
  color: var(--accent);
  font-weight: 750;
}

.share-track {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  overflow: hidden;
}

.share-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: #94a3b8;
}

.share-fill.is-subject {
  background: var(--accent);
}

.share-count {
  text-align: right;
  font-weight: 650;
  color: var(--muted);
  font-size: 12.5px;
}

/* Report Tabs */
.report-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  max-width: 100%;
}

.report-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.report-tab:hover {
  color: var(--ink);
}

.report-tab.is-active {
  background: var(--obsidian);
  color: #ffffff;
}

.tab-count {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--muted);
}

.report-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Native <details> Accordion Cards (Per modern-web-guidance accordion guide) */
.prompt-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-accordion > details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.prompt-accordion > details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.prompt-accordion > details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background-color 140ms ease;
}

.prompt-accordion > details > summary::-webkit-details-marker {
  display: none;
}

.prompt-accordion > details > summary:hover {
  background: var(--bg-subtle);
}

/* Custom chevron right next to the label for scannability & magnification accessibility */
.prompt-accordion > details > summary::before {
  content: '';
  inline-size: 16px;
  block-size: 16px;
  flex-shrink: 0;
  background-color: var(--muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E")
    no-repeat center / contain;
  rotate: -90deg;
}

.prompt-accordion > details[open] > summary::before {
  rotate: 0deg;
  background-color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .prompt-accordion > details > summary::before {
    transition: rotate 0.2s ease, background-color 0.2s ease;
  }
}

.prompt-accordion > details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.prompt-accordion > details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .prompt-accordion > details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.26s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.prompt-summary-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.prompt-summary-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}

.prompt-summary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-detail-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagnosis-banner {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.diagnosis-banner strong {
  color: var(--ink);
}

.engine-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.engine-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
}

.engine-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.engine-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.cited-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.cited-detail-card {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 140ms ease;
}

.cited-detail-card:hover {
  border-color: var(--accent-border);
}

.cited-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cited-detail-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.38;
}

.cited-detail-why {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.48;
}

.answer-quote-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}

.answer-prose {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-prose ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Tab 2: Editorial Rewrites */
.rewrite-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.rewrite-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.rewrite-pill:hover {
  border-color: var(--line-strong);
}

.rewrite-pill.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

.rewrite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rewrite-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.rewrite-head-title {
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.rewrite-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.winner-notes-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.winner-note-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-size: 12.8px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.winner-note-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent);
}

.before-after-wrap {
  container-type: inline-size;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 820px) {
  .before-after-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 820px) {
    .before-after-grid {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 760px) {
    .before-after-grid {
      grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }
  }
}

.markdown-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Tab 3: Outreach Cards */
.outreach-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.outreach-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outreach-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.outreach-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.outreach-gap {
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.pitch-box {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pitch-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex: 1 1 260px;
}

.pitch-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  white-space: pre-wrap;
}

/* ==========================================================================
   Native Modal <dialog> (Strictly scoped to dialog[open] + scroll containment)
   ========================================================================== */

dialog.audit-dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-stage);
}

dialog.audit-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog.audit-dialog:modal {
  overscroll-behavior: contain;
}

dialog.audit-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-shell {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.dialog-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.icon-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease;
}

.icon-close-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .container,
  .container-narrow {
    width: calc(100% - 24px);
  }

  .hero-section {
    padding-block: 28px 48px;
  }

  .showcase-pane {
    padding: 18px 16px;
  }

  .summary-row,
  .bridge-header,
  .bridge-footer {
    padding-inline: 18px;
  }

  .loop-steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V2 Upgrades: Dual-Engine Hero Switch, Zero-Setup Strip, Share Popover & Print
   ========================================================================== */

.hero-engine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-badge-dot.is-google {
  background: #2563eb;
}

.time-saved-banner {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Section 3: 3-Column Zero-Setup Deliverables Strip */
.deliverables-wrap {
  container-type: inline-size;
  margin-bottom: 24px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 780px) {
  .deliverables-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 780px) {
    .deliverables-grid {
      grid-template-columns: 1fr;
    }
  }

  @container (min-width: 720px) {
    .deliverables-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

.deliverable-tile {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deliverable-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
}

.deliverable-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.deliverable-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Viewport-Aware Share Popover (report.html) — CSS Anchor Positioning + Fallback
   ========================================================================== */

.share-popover {
  width: min(370px, calc(100vw - 24px));
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-stage);
}

/* Gate anchor positioning rules with @supports so unsupported browsers keep centered top-layer placement */
@supports (position-area: block-end) {
  .share-popover {
    inset: auto;
    margin: 8px 0 0;
    position-area: block-end span-inline-start;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
  }
}

.share-popover:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-popover-head {
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.share-popover-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.share-action-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: background-color 140ms ease;
}

.share-action-item:hover {
  background: var(--bg-subtle);
}

.share-action-item.is-featured {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.share-action-item.is-featured:hover {
  background: #e0e7ff;
}

.share-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.share-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.share-action-label {
  font-size: 13.5px;
  font-weight: 680;
  color: var(--ink);
}

.share-action-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.42;
}

.share-brief-preview {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.share-toast {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

/* Clean Client Mode Header Styling */
.client-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.client-header-sep {
  color: var(--muted-soft);
  font-weight: 400;
}

.client-header-sub {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   Executive 1-Page / Clean PDF Print Stylesheet (@media print)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    font-size: 12px;
    line-height: 1.45;
  }

  .site-header,
  .preview-notice-bar,
  .report-tabs-bar,
  .cta-stage,
  .share-popover,
  .btn,
  .engine-switcher,
  .rewrite-pills,
  dialog {
    display: none !important;
  }

  .container-narrow,
  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-main {
    padding-block: 0 !important;
    gap: 16px !important;
  }

  .exec-card,
  .prompt-accordion > details,
  .rewrite-card,
  .outreach-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
    break-inside: avoid;
  }

  #rpanel-prompts,
  #rpanel-rewrites {
    display: block !important;
  }

  #rpanel-rewrites {
    margin-top: 16px;
  }

  .site-footer {
    border-top: 1px solid #e2e8f0;
    padding-block: 12px 0;
    margin-top: 16px;
  }

  .footer-links {
    display: none !important;
  }
}

/* ==========================================================================
   V3 Visual-First Upgrade: Real Screenshots, Red-Box Overlay & Zero Text Walls
   ========================================================================== */

.visual-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 900px) {
  .visual-showcase-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 900px) {
    .visual-showcase-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @container (min-width: 840px) {
    .visual-showcase-grid {
      grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    }
  }
}

.visual-col {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visual-col-left {
  background: #ffffff;
  border-bottom: 1px solid var(--line-subtle);
}

@container (min-width: 840px) {
  .visual-col-left {
    border-bottom: 0;
    border-right: 1px solid var(--line-subtle);
  }
}

.visual-col-right {
  background: #fbfcff;
}

/* Crisp macOS-style Browser Frame for Both AI Capture & Real Website Screenshot */
.browser-frame {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.browser-chrome {
  height: 36px;
  padding-inline: 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chrome-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.chrome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.chrome-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.chrome-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  flex-shrink: 0;
}

.chrome-toggle-btn {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  transition: background-color 140ms ease, color 140ms ease;
}

.chrome-toggle-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.chrome-toggle-btn.is-active-after {
  background: var(--emerald);
  color: #ffffff;
}

/* Real High-Retina Website Screenshot with Exact Coframe-Style Red Box Overlay */
.shot-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  overflow: hidden;
}

.shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  user-select: none;
}

.shot-callout {
  position: absolute;
  border-radius: 10px;
  border: 2px solid #e11d48;
  background: rgba(225, 29, 72, 0.055);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.shot-callout-tag {
  position: absolute;
  top: -12px;
  left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.shot-callout-tag.is-bottom {
  top: calc(100% + 5px);
  bottom: auto;
  left: auto;
  right: 0;
}

/* Live Interactive "After" Swap Directly Over the Real Screenshot! */
.shot-callout.is-after {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 12px 30px -6px rgba(5, 150, 105, 0.25), 0 0 0 4px rgba(5, 150, 105, 0.14);
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.shot-callout.is-after .shot-callout-tag {
  background: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.shot-after-h1 {
  font-size: clamp(11.5px, 1.25cqi, 15.5px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.shot-after-body {
  font-size: clamp(9.5px, 0.9cqi, 11px);
  line-height: 1.4;
  color: #334155;
}

/* Compact AI Answer Browser Window (Light, Scannable, Zero Wall-of-Text) */
.ai-shot-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background: #ffffff;
}

.ai-prompt-chip {
  align-self: flex-end;
  max-width: 92%;
  padding: 9px 13px;
  border-radius: 14px 14px 4px 14px;
  background: var(--bg-muted);
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.4;
}

.ai-answer-compact {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: #fafbfd;
  border: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ai-answer-lead {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-winner-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-winner-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.38;
}

.ai-winner-rank {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.ai-winner-name {
  font-weight: 720;
  color: var(--ink);
  flex-shrink: 0;
}

.ai-winner-note {
  color: var(--muted);
  font-size: 12.5px;
}

.ai-cited-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
}

.ai-cited-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 2px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: border-color 140ms ease, color 140ms ease;
}

.domain-pill:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Compact Replacement Strip Under the Real Screenshot */
.compact-fix-card {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  border-left: 3.5px solid var(--emerald);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-fix-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-fix-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
}

.compact-fix-headline {
  font-size: 14px;
  font-weight: 720;
  color: var(--ink);
  line-height: 1.32;
}

.compact-fix-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.compact-why-line {
  font-size: 12.5px;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  line-height: 1.45;
}

.compact-why-line.is-partial {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

/* Minimal Section 2 Contrast Punchline */
.contrast-punchline {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* Why OpenGEO: compact preview of the report's audit table */
.mini-audit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  transition: border-color 140ms ease;
}

.mini-audit:hover {
  border-color: var(--accent-border);
}

.mini-audit-caption {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding-inline: 2px;
}

.mini-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
}

.mini-audit-row.is-win {
  background: #f0fdf4;
  border-color: var(--emerald-border);
}

.mini-audit-q {
  font-size: 12.5px;
  font-weight: 680;
  color: var(--ink);
}

.mini-audit-row .status-pill {
  font-size: 11px;
  padding: 2px 8px;
}

.mini-audit-sub {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--muted);
}

.mini-audit-row.is-win .mini-audit-sub {
  color: var(--emerald);
}

/* Report Page V3: Visual Deck Cards (Zero Stacked Wall-of-Text Accordions!) */
.report-deck-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.raw-evidence-details {
  margin-top: 4px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 10px;
}

.raw-evidence-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.raw-evidence-details > summary::-webkit-details-marker {
  display: none;
}

.raw-evidence-details > summary::before {
  content: '';
  inline-size: 13px;
  block-size: 13px;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E")
    no-repeat center / contain;
  rotate: -90deg;
}

.raw-evidence-details[open] > summary::before {
  rotate: 0deg;
}

.raw-evidence-body {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-size: 12.8px;
  line-height: 1.58;
  color: var(--ink-secondary);
}

/* ==========================================================================
   V4 Commercial Value Pills (Plain-English Money) & Exact-Match Subtitle Swap
   ========================================================================== */

.money-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12.5px;
  color: #92400e;
}

.money-bar-strong {
  font-weight: 720;
  color: #78350f;
}

.money-bar-note {
  font-size: 11.5px;
  color: #b45309;
}

.action-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.action-mode-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--line-subtle);
}

.action-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.action-mode-btn:hover {
  color: var(--ink);
}

.action-mode-btn.is-active {
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.roi-tag {
  font-size: 10.5px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
}

.action-mode-btn:not(.is-active) .roi-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Exact same-style surgical subtitle swap (keeps Hero H1 untouched, matches Notion typography) */
.shot-callout.is-surgical-after {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(5, 150, 105, 0.25), 0 0 0 3px rgba(5, 150, 105, 0.14);
  padding: 3px 6px;
  display: flex;
  align-items: center;
}

.shot-callout.is-surgical-after .shot-callout-tag {
  background: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.shot-surgical-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(7.5px, 0.88cqi, 10px);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #191919;
}

.method-footnote {
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.prompt-strip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.prompt-dot-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.prompt-dot-pill.is-missed .dot {
  background: #e11d48;
}

.prompt-dot-pill.is-partial .dot {
  background: #d97706;
}

.prompt-dot-pill.is-won .dot {
  background: #059669;
}

/* ==========================================================================
   V5 Notion 2026 AI Pivot — Reality Split, Citation Landscape & Insert Slot
   ========================================================================== */

.reality-split-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

@media (min-width: 780px) {
  .reality-split-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 12px;
  }
}

.reality-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.35;
}

.reality-chip.is-old {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.reality-chip.is-new {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.reality-chip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reality-chip-label {
  font-weight: 720;
}

.reality-chip-meta {
  font-size: 11.8px;
  opacity: 0.88;
}

.reality-chip-status {
  font-size: 11.5px;
  font-weight: 740;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.reality-chip.is-old .reality-chip-status {
  background: rgba(5, 150, 105, 0.14);
  color: #047857;
}

.reality-chip.is-new .reality-chip-status {
  background: rgba(225, 29, 72, 0.14);
  color: #be123c;
}

/* Report Page: Old Turf vs 2026 Pivot Split Cards */
.pivot-split-wrap {
  container-type: inline-size;
}

.pivot-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .pivot-split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 720px) {
    .pivot-split-grid {
      grid-template-columns: 1fr;
    }
  }
  @container (min-width: 640px) {
    .pivot-split-grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }
  }
}

.pivot-card {
  border-radius: var(--radius-md);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pivot-card.is-old {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pivot-card.is-new {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.pivot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pivot-card-badge {
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.01em;
}

.pivot-card.is-old .pivot-card-badge {
  color: #065f46;
}

.pivot-card.is-new .pivot-card-badge {
  color: #9f1239;
}

.pivot-card-status {
  font-size: 11.5px;
  font-weight: 740;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.pivot-card.is-old .pivot-card-status {
  background: #dcfce7;
  color: #047857;
}

.pivot-card.is-new .pivot-card-status {
  background: #ffe4e6;
  color: #be123c;
}

.pivot-card-metric {
  font-size: 12.5px;
  font-weight: 660;
  color: var(--ink);
}

.pivot-card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Report Page: Compact 4-Bucket Citation Landscape Strip */
.landscape-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landscape-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.landscape-title {
  font-size: 15px;
  font-weight: 740;
  color: var(--ink);
}

.landscape-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.landscape-wrap {
  container-type: inline-size;
}

.landscape-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 780px) {
  .landscape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 780px) {
    .landscape-grid {
      grid-template-columns: 1fr;
    }
  }
  @container (min-width: 680px) {
    .landscape-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @container (min-width: 1020px) {
    .landscape-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}

.landscape-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landscape-card.is-roundup {
  border-color: var(--rose-border);
  box-shadow: 0 10px 24px -18px rgba(225, 29, 72, 0.35);
}

.landscape-card.is-authority {
  background: var(--bg-subtle);
  border-style: dashed;
}

.landscape-tag {
  font-size: 11.5px;
  font-weight: 730;
  color: var(--accent);
}

.landscape-card.is-roundup .landscape-tag {
  color: var(--rose);
}

.landscape-card.is-authority .landscape-tag {
  color: var(--muted);
}

.landscape-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.landscape-domain-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.landscape-action {
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Precision Callout Tag Variants (Zero Overlap on Every Live Screenshot!) */
.shot-callout-tag.is-top {
  top: auto;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
}

.shot-callout-tag.is-bottom-right {
  top: calc(100% + 5px);
  left: auto;
  right: 0;
}

.shot-callout-tag.is-bottom-gap {
  top: calc(100% + 6px);
  left: 66%;
  right: auto;
}

.shot-callout-tag.is-bottom-gap-wide {
  top: calc(100% + 6px);
  left: 72%;
  right: auto;
}

/* Dashed insert slot for Notion AI Meeting Notes eyebrow above witty H1 */
.shot-callout.is-insert-slot {
  border-style: dashed;
  background: rgba(255, 241, 242, 0.45);
}

.shot-callout.is-insert-slot.is-surgical-after {
  border-style: solid;
  background: #ffffff;
  justify-content: center;
  text-align: center;
}

.shot-eyebrow-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(6.8px, 0.72cqi, 8.6px);
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #37352f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-opensource-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cta-opensource-note a {
  color: #ffffff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   V5.1 Tension -> Relief Bridge (Rose Leak #1 -> Emerald Solution #2 -> Bar)
   ========================================================================== */

.step-dot-leak {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.step-dot-fix {
  background: #dcfce7;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.fix-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fix-pane-title {
  color: #065f46;
}

.zero-ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  white-space: nowrap;
}

.relief-bridge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 60%, #eef2ff 100%);
  border-top: 1px solid #a7f3d0;
}

.relief-bridge-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.relief-bridge-title {
  font-size: 13.5px;
  font-weight: 730;
  color: #064e3b;
}

.relief-bridge-sub {
  font-size: 12.2px;
  color: #047857;
}

.relief-bridge-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media print {
  .relief-bridge-bar,
  .auto-play-pill,
  .auto-progress-track {
    display: none !important;
  }
}

/* ==========================================================================
   V6 Ultra-Clean Subtraction + Zero-Click Auto-Motion Showcase
   ========================================================================== */

@keyframes pulseCallout {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(225, 29, 72, 0.26);
  }
}

@keyframes fixWipeReveal {
  0% {
    opacity: 0.25;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes stageSoftIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes autoProgressFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes emeraldPop {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.36);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 6px 18px -6px rgba(5, 150, 105, 0.25), 0 0 0 3px rgba(5, 150, 105, 0.14);
  }
}

.shot-canvas .shot-callout:not(.is-surgical-after) {
  animation: pulseCallout 2.2s ease-in-out infinite;
}

.shot-canvas .shot-callout.is-surgical-after {
  animation: emeraldPop 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shot-canvas .shot-callout.is-surgical-after .shot-surgical-text,
.shot-canvas .shot-callout.is-surgical-after .shot-eyebrow-text {
  animation: fixWipeReveal 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shot-canvas.is-transitioning {
  animation: stageSoftIn 280ms ease-out both;
}

/* Sleek 2px live progress rail inside right browser header */
.auto-progress-track {
  position: relative;
  height: 2px;
  width: 100%;
  background: var(--line-subtle);
  overflow: hidden;
}

.auto-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #059669 100%);
  transform-origin: left center;
  animation: autoProgressFill var(--auto-dur, 3600ms) linear forwards;
}

.auto-progress-fill.is-paused {
  animation-play-state: paused;
}

.auto-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease;
}

.auto-play-pill:hover {
  border-color: var(--accent-border);
  color: var(--ink);
}

.auto-play-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
}

.auto-play-pill.is-paused .auto-play-dot {
  background: var(--muted);
}

/* Single-line slim contrast pill strip (replaces heavy 2-box reality banner!) */
.split-pill-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-subtle);
  font-size: 12px;
}

.split-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.split-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 12px;
}

.split-mini-pill.is-old {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.split-mini-pill.is-new {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.split-vs-dot {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* Single-line compact money pill (replaces 2-line yellow banner!) */
.money-pill-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 660;
  color: #78350f;
}

.money-pill-zero {
  color: #be123c;
  font-weight: 740;
}

/* Single-line action strip under screenshot (replaces 5-line email wall!) */
.compact-action-strip {
  padding: 10px 13px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  border-left: 3px solid var(--emerald);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-action-title {
  font-size: 12.5px;
  font-weight: 680;
  color: var(--ink);
}

.compact-action-title .spark {
  color: var(--emerald);
  margin-right: 4px;
}

.compact-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pitch-drawer {
  border-top: 1px solid var(--line-subtle);
  padding-top: 8px;
}

.pitch-drawer > summary {
  list-style: none;
  font-size: 12px;
  font-weight: 620;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pitch-drawer > summary::-webkit-details-marker {
  display: none;
}

.pitch-drawer-body {
  margin-top: 8px;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--ink-secondary);
  white-space: pre-line;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

/* Report Page V6: Compact Executive Card & Single-Row Source Bar */
.exec-card.is-compact {
  padding: 20px 22px;
  gap: 14px;
}

.exec-card.is-compact .exec-headline {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  line-height: 1.22;
}

.exec-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.source-strip-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

.source-strip-label {
  font-weight: 680;
  color: var(--muted);
  margin-right: 2px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 620;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  border: 1px solid var(--line-subtle);
}

.source-chip.is-hot {
  background: var(--rose-soft);
  border-color: var(--rose-border);
  color: var(--rose);
}

.source-chip.is-skip {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.method-toggle {
  font-size: 11.5px;
  color: var(--muted);
}

.method-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.method-toggle > summary::-webkit-details-marker {
  display: none;
}

.method-toggle > summary:hover {
  color: var(--ink);
}

.method-toggle-body {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .shot-canvas .shot-callout,
  .shot-canvas .shot-callout .shot-surgical-text,
  .shot-canvas .shot-callout .shot-eyebrow-text,
  .shot-canvas.is-transitioning,
  .auto-progress-fill {
    animation: none !important;
  }
}

/* ==========================================================================
   V6.1 Visual Left-Pane Clarity: Dashed Missing Row + Right-Pointing Cite Cue
   ========================================================================== */

.ai-winner-row.is-missing {
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  border: 1px dashed #fda4af;
  align-items: center;
}

.ai-winner-row.is-missing .ai-winner-rank {
  background: #ffe4e6;
  color: #be123c;
}

.ai-winner-row.is-missing .ai-winner-name {
  color: #9f1239;
  text-decoration: line-through;
  text-decoration-color: rgba(190, 18, 60, 0.55);
}

.ai-winner-row.is-missing .ai-winner-note {
  color: #be123c;
  font-weight: 560;
}

.ai-winner-row.is-partial {
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px dashed #fbbf24;
  align-items: center;
}

.ai-winner-row.is-partial .ai-winner-rank {
  background: #fef3c7;
  color: #b45309;
}

.ai-winner-row.is-partial .ai-winner-name {
  color: #92400e;
}

.ai-winner-row.is-partial .ai-winner-note {
  color: #b45309;
  font-weight: 560;
}

.visual-col-left .browser-frame {
  flex: 1;
}

.domain-pill.is-primary-cue {
  border-color: var(--rose-border);
  background: var(--rose-soft);
  color: var(--rose);
  font-weight: 700;
}

/* ==========================================================================
   V7 Auto-Gliding & Draggable Before/After Curtain Slider (Zero Jargon!)
   ========================================================================== */

.curtain-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #ffffff;
  container-type: inline-size;
}

.curtain-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.curtain-layer .shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curtain-layer-after {
  z-index: 3;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}

.curtain-corner-pill {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.curtain-corner-pill.is-before {
  right: 10px;
  background: rgba(255, 241, 242, 0.96);
  border: 1px solid #fecdd3;
  color: #be123c;
}

.curtain-corner-pill.is-after {
  left: 10px;
  background: rgba(236, 253, 245, 0.96);
  border: 1px solid #a7f3d0;
  color: #047857;
}

.curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2.5px;
  background: linear-gradient(180deg, #10b981 0%, #059669 50%, #10b981 100%);
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.55);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
}

.curtain-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #059669;
  color: #047857;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2), 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.curtain-stage:active .curtain-knob {
  transform: translate(-50%, -50%) scale(1.08);
}

.curtain-hint-chip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.curtain-layer .shot-callout {
  animation: none !important;
}

.curtain-layer-after .shot-callout.is-surgical-after {
  animation: none !important;
}

@media print {
  .curtain-divider,
  .curtain-hint-chip {
    display: none !important;
  }
  .curtain-layer-after {
    clip-path: none !important;
  }
}

/* ==========================================================================
   V8 Cold-Stranger-Verified: Readable Diff Strip, Full-Audit Table & Balance
   ========================================================================== */

.readable-diff-card {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.readable-diff-before {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.readable-diff-before strong {
  color: #be123c;
  font-weight: 680;
}

.readable-diff-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.readable-diff-after-text {
  font-size: 12.8px;
  font-weight: 650;
  line-height: 1.4;
  color: #064e3b;
}

.source-chip.is-media {
  background: var(--rose-soft);
  border-color: var(--rose-border);
  color: var(--rose);
}

.source-chip.is-rival {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

/* Report Page: 3-Row Full-Audit Overview Table (Makes Report Distinct from Homepage!) */
.overview-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.overview-table-scroll {
  overflow-x: auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.overview-table th {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.overview-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--ink-secondary);
  vertical-align: middle;
}

.overview-table tbody tr {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.overview-table tbody tr:hover {
  background: var(--bg-subtle);
}

.overview-table tbody tr.is-active-row {
  background: #f5f3ff;
}

.overview-table tbody tr:last-child td {
  border-bottom: 0;
}

.overview-q-title {
  font-weight: 680;
  color: var(--ink);
  display: block;
}

.overview-q-sub {
  font-size: 11.8px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.overview-ad-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 650;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-block;
}

.overview-ad-chip.is-baseline {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.overview-table tbody tr.is-baseline-row {
  background: #f0fdf4;
  cursor: default;
}

.overview-table tbody tr.is-baseline-row:hover {
  background: #ecfdf5;
}

.overview-table tbody tr.is-baseline-row td {
  border-bottom: 1px solid #a7f3d0;
}

.baseline-contrast-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-subtle);
}

.baseline-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.005em;
}

.baseline-pill.is-win {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.baseline-pill.is-gap {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid var(--rose-border);
}

.baseline-vs {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.old-tracker-gaps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.old-tracker-gaps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
}

.old-tracker-gaps .gap-x {
  color: var(--rose);
  font-weight: 800;
  flex-shrink: 0;
}

.open-source-clarity {
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

.open-source-clarity a {
  color: #ffffff;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Language dropdown: show only 🌐 EN ▾ by default (Chinese hidden until opened) */
.lang-menu {
  position: relative;
}

.lang-menu-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--line-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.lang-menu-trigger::-webkit-details-marker {
  display: none;
}

.lang-menu-trigger:hover,
.lang-menu[open] .lang-menu-trigger {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.lang-globe {
  color: var(--muted);
  flex-shrink: 0;
}

.lang-caret {
  font-size: 10px;
  color: var(--muted);
  margin-left: 1px;
}

.lang-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 118px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.lang-menu-panel .lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 560;
  color: var(--ink-secondary);
  text-align: left;
  box-shadow: none;
}

.lang-menu-panel .lang-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.lang-menu-panel .lang-btn.is-active {
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 650;
  box-shadow: none;
}

.lang-menu-panel .lang-check {
  font-size: 11.5px;
  color: var(--accent);
  opacity: 0;
}

.lang-menu-panel .lang-btn.is-active .lang-check {
  opacity: 1;
}

/* Mobile polish: prevent showcase clipping and report header overflow on 390px screens */
.lang-btn {
  white-space: nowrap;
}

.visual-col {
  min-width: 0;
}

@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .report-page #header-promo-cta {
    display: none;
  }

  .pane-head,
  .fix-action-bar,
  .browser-chrome {
    flex-wrap: wrap;
    gap: 6px;
  }

  .scenario-pills {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .diff-after-code,
  .ai-winner-row,
  .ai-prompt-chip {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* ==========================================================================
   Compare Page (/compare) — Side-by-Side 5-Tool Comparison + Responsive Table
   ========================================================================== */
.compare-page .header-nav a.is-active {
  color: var(--ink);
  font-weight: 650;
}

.cmp-container {
  max-inline-size: 1120px;
}

.cmp-hero {
  padding-block: 56px 36px;
  border-bottom: 1px solid var(--line-subtle);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cmp-hero-head {
  max-inline-size: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--emerald-border);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cmp-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.14;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cmp-subtitle {
  margin: 0;
  max-inline-size: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.cmp-verdict-grid {
  margin-block-start: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cmp-verdict-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmp-verdict-card.is-opengeo {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.cmp-verdict-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 650;
}

.cmp-verdict-tag.is-neutral {
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.cmp-verdict-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cmp-verdict-list {
  margin: 4px 0 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.cmp-verdict-list strong {
  color: var(--ink);
}

.cmp-section {
  padding-block: 48px;
}

.cmp-section-head {
  margin-block-end: 22px;
  max-inline-size: 720px;
}

.cmp-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.22;
  font-weight: 720;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.cmp-section-head p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Responsive comparison table (sticky headers + @container stacked cards) */
.cmp-table-wrapper {
  container-type: inline-size;
  overflow: auto;
  max-inline-size: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cmp-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  line-height: 1.52;
  --col-1: "OpenGEO (MIT · $0)";
  --col-2: "Profound";
  --col-3: "Otterly.AI";
  --col-4: "Peec AI";
  --col-5: "Semrush AI";
}

.cmp-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  padding: 15px 14px;
  text-align: start;
  vertical-align: bottom;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line-subtle);
  color: var(--ink);
  font-weight: 700;
}

.cmp-table thead th:last-child,
.cmp-table tbody td:last-child {
  border-inline-end: none;
}

.cmp-table thead th.is-opengeo {
  background: #ecfdf5;
  border-bottom-color: var(--emerald-border);
  color: var(--emerald);
}

.cmp-th-brand {
  display: block;
  font-size: 14.5px;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.cmp-th-sub {
  display: block;
  margin-block-start: 2px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
}

.cmp-table thead th.is-opengeo .cmp-th-sub {
  color: var(--emerald);
}

.cmp-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  min-inline-size: 145px;
  padding: 14px 14px;
  text-align: start;
  vertical-align: top;
  background: var(--surface);
  border-bottom: 1px solid var(--line-subtle);
  border-inline-end: 1px solid var(--line);
  font-weight: 660;
  color: var(--ink);
}

.cmp-table tbody td {
  min-inline-size: 155px;
  padding: 14px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-subtle);
  border-inline-end: 1px solid var(--line-subtle);
  color: var(--ink-secondary);
}

.cmp-table tbody td.is-opengeo {
  background: #f6fef9;
  color: var(--ink);
}

.cmp-table tbody td.is-opengeo strong {
  color: var(--emerald);
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: none;
}

@container (width < 720px) {
  .cmp-table-wrapper {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    inline-size: 100%;
    min-inline-size: 0;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tbody tr {
    margin-block-end: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: clip;
  }

  .cmp-table tbody th {
    position: static;
    background: var(--bg-subtle);
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    padding: 11px 14px;
  }

  .cmp-table tbody td {
    border-inline-end: none;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .cmp-table tbody td::before {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    margin-block-end: 2px;
  }

  .cmp-table tbody td.is-opengeo::before {
    color: var(--emerald);
  }

  .cmp-table tbody td:nth-child(2)::before {
    content: var(--col-1);
  }
  .cmp-table tbody td:nth-child(3)::before {
    content: var(--col-2);
  }
  .cmp-table tbody td:nth-child(4)::before {
    content: var(--col-3);
  }
  .cmp-table tbody td:nth-child(5)::before {
    content: var(--col-4);
  }
  .cmp-table tbody td:nth-child(6)::before {
    content: var(--col-5);
  }
}

/* Proof card band */
.cmp-proof-band {
  padding-block: 16px 40px;
}

.cmp-proof-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.cmp-proof-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.24;
  font-weight: 740;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.cmp-proof-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.cmp-proof-media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* 5 Buyer Q&A sections */
.cmp-qa-wrap {
  max-inline-size: 920px;
}

.cmp-qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmp-qa-item {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.cmp-qa-item h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cmp-qa-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
}

.cmp-qa-item strong {
  color: var(--ink);
}

.cta-oss-row {
  margin-block-start: 16px;
}

@media (max-width: 860px) {
  .cmp-verdict-grid,
  .cmp-proof-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cmp-hero {
    padding-block: 36px 28px;
  }

  .cmp-proof-card,
  .cmp-verdict-card,
  .cmp-qa-item {
    padding: 18px;
  }
}

/* ==========================================================================
   Header Minimal GitHub Icon Link (All Pages: index, report, compare)
   ========================================================================== */
.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 32px;
  min-block-size: 32px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
  flex-shrink: 0;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.header-icon-link:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.header-icon-link svg {
  display: block;
}

@media (pointer: coarse) {
  .header-icon-link {
    min-inline-size: 38px;
    min-block-size: 38px;
  }
}

/* ==========================================================================
   Bright 3-Column Vertical Path Cards (#pricing) + Clean Light Intake Card
   ========================================================================== */
.band-paths {
  padding-block: 44px 20px;
  background: var(--bg);
}

.band-cta-tight {
  padding-block: 12px 56px;
}

.paths-head {
  margin-block-end: 22px;
}

.paths-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .paths-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.path-card:hover {
  border-color: var(--line-strong);
}

.path-card.is-featured {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, #f3fdf7 0%, #ffffff 40%);
  box-shadow: 0 14px 34px -22px rgba(4, 120, 87, 0.22);
}

.path-card.is-managed {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 42%);
}

.path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.path-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.path-badge-oss {
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.path-badge-free {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
}

.path-badge-managed {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.path-title {
  font-size: 17.5px;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.path-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.path-price {
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.path-price-strike {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.path-price-unit {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--muted);
}

.path-contrast-note {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12.2px;
  font-weight: 620;
  line-height: 1.42;
}

.path-desc {
  font-size: 13px;
  line-height: 1.52;
  color: var(--ink-secondary);
}

.path-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.8px;
  line-height: 1.46;
  color: var(--ink-secondary);
}

.path-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.path-list strong {
  color: var(--ink);
  font-weight: 680;
}

.path-check {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
  margin-block-start: 1px;
}

.path-action {
  margin-block-start: auto;
  padding-block-start: 6px;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  line-height: 1.3;
  min-block-size: 40px;
  padding-inline: 14px;
}

.path-btn-managed {
  font-size: 13px;
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.path-btn-managed:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.cta-copy,
.cta-form-card {
  min-inline-size: 0;
}

.audit-form button[type="submit"] {
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  line-height: 1.35;
}

/* Clean Light Intake Stage (Replaces heavy black block on index.html) */
.cta-stage-light {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}

.cta-stage-light .cta-eyebrow {
  color: var(--accent);
}

.cta-stage-light .cta-heading {
  color: var(--ink);
}

.cta-stage-light .cta-text {
  color: var(--ink-secondary);
}

.cta-stage-light .cta-trust-row {
  color: var(--emerald);
  font-weight: 560;
}

.cta-stage-light .open-source-clarity {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.cta-stage-light .open-source-clarity a {
  color: var(--ink);
}

.cta-stage-light .cta-form-card {
  background: var(--surface);
  border: 1.5px solid var(--emerald-border);
  box-shadow: 0 12px 28px -20px rgba(4, 120, 87, 0.22);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cta-stage-light .cta-form-card[data-intent="managed_299"] {
  border-color: var(--accent-border);
  box-shadow: 0 12px 28px -20px rgba(79, 70, 229, 0.24);
}

.cta-stage-light .cta-form-card[data-intent="managed_299"] #inline-submit-btn {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.24);
}

.cta-stage-light .cta-form-card[data-intent="managed_299"] #inline-submit-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.cta-stage-light .cta-form-card .field label {
  color: var(--ink);
}

.cta-stage-light .cta-form-card .error-msg {
  color: var(--rose);
}

.cta-stage-light .cta-form-card .summary-preview {
  background: var(--bg-subtle);
  border-color: var(--line);
  color: var(--ink);
}

.success-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.success-desc {
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Color-Coded Segmented Pill Selector + 3-Step Visual Flow */
.intent-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.intent-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  border: 1px solid var(--line-subtle);
}

.intent-seg-item {
  position: relative;
  min-inline-size: 0;
}

/* Keep native radio permanently sr-only even on focus/active so it never pops into layout */
.intent-seg-radio {
  position: absolute;
  inset: 0;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.intent-seg-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-block-size: 38px;
  padding: 7px 10px;
  border-radius: calc(var(--radius-md) - 3px);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.intent-seg-label:hover {
  color: var(--ink);
}

.intent-seg-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.intent-seg-price {
  font-size: 11.5px;
  font-weight: 650;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
  transition: background-color 150ms ease, color 150ms ease;
}

.intent-seg-item.is-free .intent-seg-radio:checked + .intent-seg-label {
  background: var(--surface);
  border-color: var(--emerald-border);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.intent-seg-item.is-free .intent-seg-radio:checked + .intent-seg-label .intent-seg-dot {
  background: var(--emerald);
}

.intent-seg-item.is-free .intent-seg-radio:checked + .intent-seg-label .intent-seg-price {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.intent-seg-item.is-managed .intent-seg-radio:checked + .intent-seg-label {
  background: var(--surface);
  border-color: var(--accent-border);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.intent-seg-item.is-managed .intent-seg-radio:checked + .intent-seg-label .intent-seg-dot {
  background: var(--accent);
}

.intent-seg-item.is-managed .intent-seg-radio:checked + .intent-seg-label .intent-seg-price {
  background: var(--accent-soft);
  color: var(--accent);
}

.intent-seg-radio:focus-visible + .intent-seg-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.intent-flow-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.intent-flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.intent-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.flow-num {
  inline-size: 17px;
  block-size: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.intent-flow-arrow {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.7;
}

.intent-flow-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--accent);
}

.form-reassurance {
  margin-block-start: -4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 640px) {
  .band-paths {
    padding-block: 36px 16px;
  }

  .path-card {
    padding: 18px;
  }

  .intent-flow-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .intent-flow-arrow {
    display: none;
  }

  .field input {
    font-size: max(1rem, 1em);
  }
}
