/* ==========================================================================
   CompAndGo (compandgo.com) — Institutional European Legal-Tech Stylesheet
   Zero external fonts · Zero CDNs · Crisp Stripe / Linear inspired UI
   ========================================================================== */

:root {
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-50: #EEF2FF;
  --indigo-200: #C7D2FE;

  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-500: #10B981;
  --emerald-50: #ECFDF5;
  --emerald-200: #A7F3D0;

  --amber-700: #B45309;
  --amber-50: #FFFBEB;
  --amber-200: #FDE68A;

  --rose-700: #BE123C;
  --rose-600: #E11D48;
  --rose-50: #FFF1F2;
  --rose-200: #FECDD3;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 10px -4px rgba(15, 23, 42, 0.04);

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: clip;
}

button,
input {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--emerald-200);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.privacy-pill:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.lang-switcher {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: var(--text-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 44px 0 28px;
}

.hero-inner {
  max-width: 820px;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-emerald {
  color: var(--emerald-600);
}

.icon-muted {
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
}

/* ==========================================================================
   Sections & Panels
   ========================================================================== */

.section {
  padding: 28px 0 56px;
}

.section-alt {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 740px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Calculator Controls
   ========================================================================== */

.controls-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px 24px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-span-7 {
  grid-column: span 7;
}

.control-span-5 {
  grid-column: span 5;
}

.control-span-4 {
  grid-column: span 4;
}

.control-span-3 {
  grid-column: span 3;
}

.control-span-full {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

.control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.numeric-readout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-number-input {
  width: 112px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.inline-number-input:focus {
  background: var(--surface);
  border-color: var(--indigo-600);
}

.readout-unit {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Custom Range Slider */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    var(--indigo-600) 0%,
    var(--indigo-600) var(--fill-pct, 10%),
    #E2E8F0 var(--fill-pct, 10%),
    #E2E8F0 100%
  );
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--indigo-600);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--indigo-600);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

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

.preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.preset-chip.is-active {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-700);
}

.combined-traffic {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Domains Stepper */
.domain-summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--indigo-700);
  font-variant-numeric: tabular-nums;
}

.stepper-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-input {
  width: 54px;
  height: 34px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range-slider-compact {
  flex: 1;
  min-width: 72px;
}

/* Segmented Controls */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 3px;
}

.segmented-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.segmented-btn:hover {
  color: var(--text-primary);
}

.segmented-btn.is-active {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.savings-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}

/* Subpages Compact Control */
.subpages-hint-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.subpages-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.subpage-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}

.subpage-chip {
  padding: 6px 9px;
}

.subpages-number-input {
  width: 72px;
  height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex-shrink: 0;
  -moz-appearance: textfield;
}

.subpages-number-input::-webkit-outer-spin-button,
.subpages-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.subpages-number-input:focus {
  background: var(--surface);
  border-color: var(--indigo-600);
}

/* Checkbox Cards */
.checkbox-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.checkbox-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.checkbox-card:has(.checkbox-input:checked) {
  border-color: var(--indigo-600);
  background: var(--indigo-50);
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.checkbox-box svg {
  width: 11px;
  height: 11px;
}

.checkbox-input:checked + .checkbox-box {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: #FFFFFF;
}

.checkbox-input:focus-visible + .checkbox-box {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
}

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

.checkbox-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.checkbox-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Recommendation Banner
   ========================================================================== */

.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--emerald-50) 0%, #F0FDF4 100%);
  border: 1px solid var(--emerald-200);
  margin-bottom: 20px;
}

.verdict-icon {
  color: var(--emerald-600);
  margin-top: 2px;
  flex-shrink: 0;
}

.verdict-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verdict-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-700);
}

.verdict-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ==========================================================================
   Comparison Cards Grid
   ========================================================================== */

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

.cmp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cmp-card.is-winner {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 1px var(--emerald-500), var(--shadow-md);
}

.cmp-card.is-disabled {
  background: #F8FAFC;
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
}

.cmp-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-winner {
  background: var(--emerald-600);
  color: #FFFFFF;
}

.badge-wp {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.badge-subtle {
  background: var(--indigo-50);
  color: var(--indigo-700);
  border: 1px solid var(--indigo-200);
}

.badge-annual {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cmp-name {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cmp-tagline {
  margin: 4px 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 35px;
}

/* Price Block */
.price-block {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.price-kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.price-annual-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
}

.price-annual {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.price-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-monthly-eq {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.price-monthly-eq strong {
  color: var(--text-primary);
}

/* Recommended Plan Pill */
.plan-row {
  margin-bottom: 12px;
}

.plan-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.plan-name-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Breakdown Box */
.breakdown-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.breakdown-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  font-size: 11.5px;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--text-secondary);
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}

.breakdown-line strong {
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}

.breakdown-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.breakdown-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.breakdown-note {
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px dashed var(--border-strong);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.breakdown-note.is-warning {
  color: var(--amber-700);
}

.breakdown-note.is-insight {
  color: var(--indigo-700);
}

/* Feature Checklist on Card */
.feature-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feature-item-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feat-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.feat-yes {
  color: var(--emerald-600);
}

.feat-no {
  color: #94A3B8;
}

.feat-partial {
  color: var(--amber-700);
}

.feature-status-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

/* Disabled WP-only State */
.wp-only-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px;
  margin: 8px 0 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.wp-only-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.wp-only-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* CTA Buttons */
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
  margin-top: auto;
}

.card-cta-primary {
  background: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
}

.card-cta-primary:hover {
  background: #1E293B;
}

.cmp-card.is-winner .card-cta-primary {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
}

.cmp-card.is-winner .card-cta-primary:hover {
  background: var(--emerald-700);
}

.card-cta-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.card-cta-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.card-cta-disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  pointer-events: none;
  cursor: not-allowed;
}

/* Inline Affiliate Disclosure — Quiet, compliant single-line caption */
.disclosure-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 2px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.disclosure-bar .icon-sm {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.disclosure-bar p {
  margin: 0;
}

.disclosure-bar strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature B: 10-Point Compliance Self-Audit & Jurisdiction Selector
   ========================================================================== */

.audit-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.audit-section-header {
  margin-bottom: 0;
  flex: 1;
  min-width: 280px;
}

.jurisdiction-selector {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.jurisdiction-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.jurisdiction-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.jurisdiction-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.jurisdiction-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.jurisdiction-btn.is-active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.scoreboard-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 18px;
}

.score-ring-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

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

.score-ring-track {
  stroke: #E2E8F0;
}

.score-ring-fill {
  stroke: var(--indigo-600);
  transition: stroke-dashoffset 0.35s ease, stroke 0.25s ease;
}

.score-ring-fill.is-low {
  stroke: var(--emerald-600);
}

.score-ring-fill.is-moderate {
  stroke: #D97706;
}

.score-ring-fill.is-high {
  stroke: var(--rose-600);
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-percent {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.score-percent.is-pending {
  color: var(--text-muted);
  font-weight: 600;
}

.scoreboard-info {
  flex: 1;
  min-width: 0;
}

.scoreboard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.score-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.risk-pending {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.risk-low {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}

.risk-moderate {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-200);
}

.risk-high {
  background: var(--rose-50);
  color: var(--rose-700);
  border: 1px solid var(--rose-200);
}

.answered-pill {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.scoreboard-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scoreboard-hint {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--indigo-600);
  font-weight: 500;
}

.scoreboard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-outline,
.btn-ghost {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo-600);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--indigo-50);
}

/* Audit Items List */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease;
}

.audit-row.is-yes {
  border-left: 3px solid var(--emerald-500);
}

.audit-row.is-no {
  border-left: 3px solid var(--rose-600);
}

.audit-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.audit-row-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.audit-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  margin-top: 2px;
  flex-shrink: 0;
}

.audit-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audit-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-primary);
}

.audit-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.audit-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.audit-toggle-group {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.audit-btn {
  min-width: 62px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.audit-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.audit-btn-yes.is-selected {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #FFFFFF;
}

.audit-btn-no.is-selected {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: #FFFFFF;
}

/* Collapsible 1-Line Fix Drawer */
.fix-drawer {
  margin-top: 12px;
  margin-left: 44px;
  border-radius: var(--radius-sm);
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  overflow: hidden;
}

.fix-drawer-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-700);
  cursor: pointer;
  user-select: none;
}

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

.fix-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.16s ease;
}

.fix-drawer[open] .fix-chevron {
  transform: rotate(180deg);
}

.fix-drawer-body {
  padding: 0 12px 10px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.audit-legal-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 2px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.audit-legal-note .icon-sm {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.audit-legal-note p {
  margin: 0;
}

.audit-legal-note strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer & Legal Disclaimers
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.footer-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.footer-heading {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-link-btn {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--indigo-600);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: var(--indigo-700);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Native Dialog Modal (Zero-Tracking Privacy Notice)
   ========================================================================== */

.privacy-modal {
  width: min(500px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
  background: var(--surface);
  color: var(--text-primary);
}

.privacy-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.modal-inner {
  padding: 22px 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-list li::before {
  content: "✓";
  color: var(--emerald-600);
  font-weight: 800;
  flex-shrink: 0;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
}

.btn-primary-sm {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--text-primary);
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary-sm:hover {
  background: #1E293B;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-span-5,
  .control-span-3 {
    grid-column: span 6;
  }

  .control-span-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .topbar-nav {
    display: none;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }

  .control-span-7,
  .control-span-5,
  .control-span-4,
  .control-span-3 {
    grid-column: auto;
  }

  .jurisdiction-selector {
    width: 100%;
  }

  .jurisdiction-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jurisdiction-btn {
    text-align: center;
    white-space: normal;
  }

  .checkbox-cards {
    grid-template-columns: 1fr;
  }

  .scoreboard-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .scoreboard-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .privacy-pill {
    display: none;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .segmented-btn {
    white-space: normal;
    text-align: center;
    font-size: 12px;
    padding: 7px 6px;
  }

  .subpages-control-row {
    flex-wrap: wrap;
  }

  .audit-row-main {
    flex-direction: column;
  }

  .audit-toggle-group {
    width: 100%;
    margin-left: 0;
  }

  .audit-btn {
    flex: 1;
  }

  .fix-drawer {
    margin-left: 0;
  }

  .controls-panel {
    padding: 18px;
  }

  .verification-badge {
    border-radius: var(--radius-md);
    line-height: 1.4;
  }
}
