/* ===================================================================
   Competition.polarityparking.com — Base Layout
   Forked from landing/index.html. Minimal: theme, nav, footer, typography.
   Per competition/STYLE.md: fair-comparison voice, trademark disclaimer.
   =================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --green: #5eead4;
  --green-dim: rgba(94, 234, 212, 0.15);
  --pink: #ec4899;
  --pink-dim: rgba(236, 72, 153, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1a1a1f;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --nav-bg: rgba(9,9,11,0.8);
  --logo-filter: invert(1);
  --shadow-heavy: rgba(0,0,0,0.5);
  --noise-opacity: 0.025;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f8f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f3f5;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.1);
  --nav-bg: rgba(255,255,255,0.85);
  --logo-filter: none;
  --shadow-heavy: rgba(0,0,0,0.12);
  --noise-opacity: 0.015;
}

/* System preference fallback when no data-theme attribute set */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg: #ffffff; --bg-subtle: #f8f8fa; --bg-card: #ffffff; --bg-card-hover: #f3f3f5;
    --text: #09090b; --text-secondary: #52525b; --text-muted: #a1a1aa;
    --border: rgba(0,0,0,0.06); --border-strong: rgba(0,0,0,0.1);
    --nav-bg: rgba(255,255,255,0.85); --logo-filter: none;
    --shadow-heavy: rgba(0,0,0,0.12); --noise-opacity: 0.015;
  }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #09090b; --bg-subtle: #0f0f12; --bg-card: #141418; --bg-card-hover: #1a1a1f;
    --text: #fafafa; --text-secondary: #a1a1aa; --text-muted: #71717a;
    --border: rgba(255,255,255,0.06); --border-strong: rgba(255,255,255,0.1);
    --nav-bg: rgba(9,9,11,0.8); --logo-filter: invert(1);
    --shadow-heavy: rgba(0,0,0,0.5); --noise-opacity: 0.025;
  }
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  min-width: 0;
}

/* ===== NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-width: 0; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; min-width: 0; }

/* Nav is sticky (not fixed) — main flows naturally below it, no
   padding-top compensation needed. Matches demo's layout. */
main { position: relative; z-index: 1; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { color: var(--text-secondary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.section-label svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; }

.section-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 640px; line-height: 1.65; }

/* ===== NAV ===== */
/* Matches demo/shared.css exactly — sticky, 14px 24px padding,
   22px logo, same .nav-link primary button style. Change here and
   landing/demo/competition should all stay in sync. */
nav.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
nav.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
nav.nav a { text-decoration: none; color: inherit; }
.nav-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.3s;
}
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-link.primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.nav-link.primary:hover { background: #2563eb; color: #fff; }

/* ===== HAMBURGER ===== */
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 110;
}
.hamburger:hover { background: var(--bg-subtle); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: fit-content;
  min-width: 260px;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 105;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease, background 0.3s;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.menu-overlay.open { transform: translateX(0); }
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.menu-close:hover { background: var(--bg-subtle); }
.menu-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.menu-items { display: flex; flex-direction: column; gap: 2px; }
.menu-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px 4px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}
.menu-item:hover { background: var(--bg-subtle); text-decoration: none; }
.menu-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.menu-item.park-item {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
  width: fit-content;
}
.menu-item.park-item:hover { background: var(--accent); color: #fff; }
.menu-item.park-item svg { stroke: currentColor; }
.menu-item.section-link {
  font-size: 12px;
  font-weight: 400;
  padding: 6px 12px;
  color: var(--text-secondary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: fit-content;
}
.theme-btn {
  width: 30px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.theme-btn:hover { color: var(--text); }
.theme-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.theme-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ===== SECTION NAV CHIPS ===== */
/* Horizontal scrollable chip nav below the hero — matches demo pattern.
   Pages that want chips add <div class="section-nav"> with
   <a class="section-chip" href="#section-id"> entries. */
.section-nav {
  display: flex;
  gap: 6px;
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.section-chip:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.section-chip.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-secondary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 48px;
  text-align: center;
}
.hero .section-label { margin: 0 auto 20px; }
.hero h1 {
  margin-bottom: 18px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .highlight { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== CONTEXT ===== */
.context-section {
  position: relative;
  z-index: 1;
  padding: 16px 0 48px;
}
.context-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.context-box p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.context-box p + p { margin-top: 12px; }

/* ===== CATEGORY MAP (quadrant) ===== */
.map-section {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
}
.map-section .section-label { margin: 0 0 16px; }
.map-section .section-title { margin-bottom: 14px; }
.map-section .section-desc { margin-bottom: 36px; }

.quadrant-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  overflow-x: auto;
  min-width: 0;
}
.quadrant {
  display: block;
  width: 100%;
  height: auto;
  min-width: 560px;
  max-width: 880px;
  margin: 0 auto;
}
.quadrant .axis-line {
  stroke: var(--border-strong);
  stroke-width: 1.2;
}
.quadrant .axis-label {
  fill: var(--text-muted);
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quadrant .axis-end-label {
  fill: var(--text-secondary);
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.quadrant .grid-line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.quadrant .dot {
  fill: var(--text-secondary);
  transition: fill 0.2s;
}
.quadrant .dot-label {
  fill: var(--text);
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}
.quadrant .polarity-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}
.quadrant .polarity-label {
  fill: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.quadrant .polarity-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.4;
}

.quadrant-legend {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.quadrant-legend-item { display: flex; align-items: center; gap: 6px; }
.quadrant-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  display: inline-block;
}
.quadrant-legend-dot.polarity { background: var(--accent); box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); }

/* ===== MATRIX TABLE ===== */
.matrix-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}
.matrix-section .section-label { margin: 0 0 16px; }
.matrix-section .section-title { margin-bottom: 14px; }
.matrix-section .section-desc { margin-bottom: 36px; }

.mx-scroll {
  overflow-x: auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
.mx-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mx-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}
.mx-table-full { min-width: 1100px; }
.mx-table-vs { min-width: 0; }
.mx-table th, .mx-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg-card);
}
.mx-table thead th {
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mx-table tbody tr:last-child th,
.mx-table tbody tr:last-child td {
  border-bottom: none;
}
.mx-table .mx-first {
  position: sticky;
  left: 0;
  z-index: 3;
  color: var(--text);
  font-weight: 600;
  background: var(--bg-card);
  min-width: 180px;
  border-right: 1px solid var(--border);
}
.mx-table thead .mx-first {
  z-index: 4;
  background: var(--bg-subtle);
}
.mx-table .mx-polarity-row th,
.mx-table .mx-polarity-row td {
  background: rgba(59, 130, 246, 0.06);
  color: var(--text);
  font-weight: 500;
}
.mx-table .mx-polarity-row .mx-first {
  background: rgba(59, 130, 246, 0.08);
}
.mx-polarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}
.mx-polarity-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}
.mx-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.mx-no {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
}
.mx-table .mx-polarity-cell {
  background: rgba(59, 130, 246, 0.06);
}
.mx-table .mx-polarity-col {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  font-weight: 700;
}

/* ===== COMPETITOR CARDS ===== */
.cards-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}
.cards-section .section-label { margin: 0 0 16px; }
.cards-section .section-title { margin-bottom: 14px; }
.cards-section .section-desc { margin-bottom: 36px; }

.vs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  min-width: 0;
}
.vs-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 0;
}
.vs-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.vs-card-head {
  margin-bottom: 14px;
}
.vs-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.vs-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.vs-card-oneliner {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.vs-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vs-card-arrow { transition: transform 0.2s; }
.vs-card:hover .vs-card-arrow { transform: translateX(4px); }

/* ===== HONORABLE MENTIONS ===== */
.hm-header {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.hm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
}
.hm-name {
  font-weight: 600;
  color: var(--text);
}
.hm-note {
  color: var(--text-muted);
}
.hm-note::before {
  content: "•";
  margin: 0 6px 0 4px;
  color: var(--text-muted);
}

/* ===== WHERE POLARITY IS DIFFERENT ===== */
.diff-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}
.diff-section .section-label { margin: 0 0 16px; }
.diff-section .section-title { margin-bottom: 14px; }
.diff-section .section-desc { margin-bottom: 36px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  min-width: 0;
}
.diff-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}
.diff-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.diff-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.diff-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diff-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.diff-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== WHEN NOT FOR YOU ===== */
.not-for-you-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}
.not-for-you-section .section-label { margin: 0 auto 16px; }
.not-for-you-section .section-title { margin-bottom: 28px; text-align: center; }
.not-for-you-section .section-label { display: inline-flex; }

.not-for-you-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  min-width: 0;
}
.nfy-card {
  padding: 22px 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.nfy-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--pink-dim);
  color: var(--pink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.nfy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  z-index: 1;
  padding: 80px 0 96px;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent-dim) 50%,
    transparent
  );
}
.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}
.final-cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== INLINE LINK ===== */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s;
}
.inline-link:hover { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 36px; }
  .hero-sub { font-size: 16px; }
  .context-box { padding: 22px 20px; }
  .quadrant-wrap { padding: 20px 12px 16px; }
  .mx-table th, .mx-table td { padding: 10px 12px; font-size: 12px; }
  .mx-table .mx-first { min-width: 140px; }
  .vs-card { padding: 20px; }
  .diff-card { padding: 22px 20px; }
  .nfy-card { padding: 18px; }
  .final-cta { padding: 56px 0 72px; }
}

/* ===== FADE-UP SCROLL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
/* Targets .footer class (injected via shared.js renderFooter) not the
   bare <footer> element. Matches demo/shared.css pattern. */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-width: 0; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: var(--logo-filter);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; min-width: 0; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-divider { border-top: 1px solid var(--border); margin: 24px 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}
.footer-trademark {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

@media (max-width: 640px) {
  nav.nav { padding: 12px 16px; }
  .section { padding: 56px 0; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===================================================================
   VS-PAGE LAYOUT (/vs/<slug>.html)
   Used by competitor detail pages. 12 sections: breadcrumb, header,
   snapshot grid, strengths/differences side-by-side, vs-matrix,
   decision guide, sources, compare-others, CTA.
   =================================================================== */

/* Sticky nav doesn't require padding-top compensation on /vs/ pages */
.vs-page-main { padding-top: 0; }

.vs-breadcrumb {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.vs-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.vs-breadcrumb a:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.vs-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* Header */
.vs-header {
  padding: 32px 0 48px;
}
.vs-header .vs-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pink-dim);
  color: var(--pink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.vs-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.vs-header h1 .vs-versus { color: var(--text-muted); font-weight: 500; margin: 0 12px; }
.vs-header h1 .vs-polarity { color: var(--accent); }
.vs-header p.vs-lede {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

/* Snapshot grid — 6 data cells from data.js */
.vs-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  min-width: 0;
  margin-bottom: 72px;
}
.vs-snap-cell {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.vs-snap-cell:nth-child(3n) { border-right: none; }
@media (max-width: 900px) {
  .vs-snap-cell { border-right: none; }
}
.vs-snap-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.vs-snap-value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Strengths vs Differences — side-by-side cards */
.vs-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}
.vs-panel {
  padding: 28px 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.vs-panel h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.vs-panel h3 .vs-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vs-panel-strengths h3 .vs-panel-dot { background: var(--text-secondary); }
.vs-panel-diff h3 .vs-panel-dot { background: var(--accent); box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); }
.vs-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vs-panel li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.vs-panel li:first-child { border-top: none; }
.vs-panel li::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  border-radius: 2px;
  margin-top: 6px;
  height: 1em;
  background: var(--text-muted);
}
.vs-panel-diff li::before { background: var(--accent); }

/* Vs matrix (Matrix.renderVs render target) */
.vs-matrix-section {
  margin-bottom: 72px;
}
.vs-matrix-section .section-label { margin: 0 0 16px; }
.vs-matrix-section .section-title { margin-bottom: 14px; font-size: 24px; }
.vs-matrix-section .section-desc { margin-bottom: 28px; font-size: 15px; }
.mx-table.mx-table-vs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.mx-table.mx-table-vs th, .mx-table.mx-table-vs td {
  padding: 14px 20px;
  font-size: 14px;
}
.mx-table.mx-table-vs thead th {
  position: static;
  background: var(--bg-subtle);
}

/* Decision guide */
.vs-decision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}
.vs-decision-card {
  padding: 32px 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.vs-decision-card .vs-choice-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.vs-decision-card.vs-choice-polarity .vs-choice-tag {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.3);
}
.vs-decision-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Sources */
.vs-sources {
  padding: 28px 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 72px;
  min-width: 0;
}
.vs-sources h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.vs-sources ol {
  list-style: decimal inside;
  padding: 0;
  margin: 0;
}
.vs-sources li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0;
  word-break: break-word;
}
.vs-sources a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s;
}
.vs-sources a:hover { border-bottom-color: var(--accent); }

/* Compare against others */
.vs-compare-others {
  margin-bottom: 56px;
}
.vs-compare-others h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.vs-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  min-width: 0;
}
.vs-other-link {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}
.vs-other-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.vs-other-link .vs-other-arrow { color: var(--accent); }

/* Section headers on vs pages */
.vs-section-header {
  margin-bottom: 24px;
}
.vs-section-header .section-label { margin: 0 0 12px; }
.vs-section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .vs-header { padding: 24px 0 32px; }
  .vs-header h1 .vs-versus { display: block; margin: 4px 0; }
  .vs-snap-cell { padding: 16px 18px; }
  .vs-panel { padding: 22px 20px; }
  .vs-decision-card { padding: 24px 22px; }
  .vs-sources { padding: 22px 20px; }
  .vs-snapshot, .vs-side-by-side, .vs-matrix-section, .vs-decision, .vs-sources, .vs-compare-others {
    margin-bottom: 48px;
  }
}
