/* ===== VIDEO TOOL BATTLE — DESIGN SYSTEM ===== */

/* --- Google Fonts (loaded from HTML <link>) ---
   Primary: Inter (body) — clean, modern, professional
   Display: Outfit (headings) — bold, geometric, tech-forward
*/

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Core palette — Light */
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f8;
  --bg-elevated: #ffffff;
  --bg-hero: linear-gradient(135deg, #0f0c29 0%, #1a1145 40%, #302b63 70%, #24243e 100%);

  --text-primary: #0d0f1a;
  --text-secondary: #4a4e69;
  --text-muted: #7c7f96;
  --text-inverse: #ffffff;

  --accent: #6c5ce7;
  --accent-hover: #5a4bd1;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --accent-2: #00cec9;
  --accent-3: #fd79a8;
  --accent-success: #00b894;
  --accent-warning: #fdcb6e;

  --border: rgba(13, 15, 26, 0.08);
  --border-hover: rgba(13, 15, 26, 0.16);
  --shadow-sm: 0 2px 8px rgba(13, 15, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(13, 15, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 15, 26, 0.12);
  --shadow-glow: 0 8px 32px var(--accent-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 72px;
  --page-max: 1200px;
  --page-padding: 24px;
}

/* === DARK MODE === */
[data-theme="dark"] {
  --bg-primary: #0d0f1a;
  --bg-secondary: #161829;
  --bg-tertiary: #1e2035;
  --bg-elevated: #1e2035;

  --text-primary: #e8e9f0;
  --text-secondary: #a0a3bd;
  --text-muted: #6b6e8a;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* === LAYOUT === */
.page-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* === STICKY HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 15, 26, 0.85);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Dark mode toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  background: var(--bg-hero);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.3), transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.2), transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-normal);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hero-search input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.hero-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  pointer-events: none;
}

.hero-search input {
  padding-right: 56px;
}

.hero-search .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(108, 92, 231, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.hero-search .search-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Trust metrics */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.trust-item .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === CATEGORY FILTERS === */
.filter-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  transition: background var(--transition-normal);
}

.filter-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-body);
}

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

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* === BATTLE SECTION === */
.battles-section {
  padding: 56px 0 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.section-header h2 {
  color: var(--text-primary);
}

.section-header .count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* === BATTLE GRID === */
.battle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* === BATTLE CARD === */
.battle-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.battle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.battle-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.battle-card:hover::before {
  opacity: 1;
}

.battle-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.battle-card.featured::before {
  opacity: 1;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

/* Card header */
.card-matchup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-family: var(--font-display);
}

.tool-icon.tool-a {
  color: var(--accent);
  border-color: rgba(108, 92, 231, 0.3);
  background: rgba(108, 92, 231, 0.08);
}

.tool-icon.tool-b {
  color: var(--accent-2);
  border-color: rgba(0, 206, 201, 0.3);
  background: rgba(0, 206, 201, 0.08);
}

.tool-name-a {
  color: var(--accent);
  font-weight: 700;
}

.tool-name-b {
  color: var(--accent-2);
  font-weight: 700;
}

.vs-text {
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 2px;
}

.vs-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent);
  border: 1px solid rgba(108, 92, 231, 0.12);
}

.tag.gen { background: rgba(108, 92, 231, 0.08); color: var(--accent); border-color: rgba(108, 92, 231, 0.12); }
.tag.edit { background: rgba(0, 206, 201, 0.08); color: var(--accent-2); border-color: rgba(0, 206, 201, 0.12); }
.tag.avatar { background: rgba(253, 121, 168, 0.08); color: var(--accent-3); border-color: rgba(253, 121, 168, 0.12); }
.tag.enterprise { background: rgba(0, 184, 148, 0.08); color: var(--accent-success); border-color: rgba(0, 184, 148, 0.12); }

/* Score bars */
.card-scores {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  width: 56px;
  flex-shrink: 0;
}

.score-bars {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
}

.score-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-bar {
  flex: 1;
  height: 7px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-bar-fill.a { background: var(--accent); }
.score-bar-fill.b { background: var(--accent-2); }

.score-pct {
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}

.score-pct.a { color: var(--accent); }
.score-pct.b { color: var(--accent-2); }

.score-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* Verdict */
.card-verdict {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Card actions */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* === PRICING SNAPSHOT === */
.pricing-section {
  padding: 64px 0;
  background:
    radial-gradient(1200px 420px at 50% -180px, rgba(108, 92, 231, 0.08), transparent 70%),
    var(--bg-primary);
  border-top: 1px solid var(--border);
}

.pricing-shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.pricing-header {
  margin-bottom: 0;
}

.section-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pricing-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(700px, 100%);
}

.pricing-kpi {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 62px;
}

.pricing-kpi-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.pricing-kpi-value {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.pricing-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-status[hidden] {
  display: none;
}

.pricing-status.is-error {
  border-color: rgba(255, 90, 95, 0.35);
  background: rgba(255, 90, 95, 0.08);
  color: var(--text-primary);
}

.pricing-table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.pricing-table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: var(--bg-tertiary);
}

.pricing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.pricing-pagination .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.pricing-page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.pricing-page-btn.active {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.16);
  color: var(--text-primary);
}

.pricing-rank {
  width: 52px;
  color: var(--text-muted);
  font-weight: 700;
}

.pricing-tool-name {
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.24);
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
}

.pricing-price.is-missing {
  border-color: rgba(255, 90, 95, 0.25);
  background: rgba(255, 90, 95, 0.1);
  font-weight: 600;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.pricing-fineprint {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pricing-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-kpis {
    grid-template-columns: 1fr;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 11px 10px;
    font-size: 0.84rem;
  }

  .pricing-pagination {
    flex-wrap: wrap;
  }
}

/* === TRUST SECTION === */
.trust-section {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.trust-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === FAQ SECTION === */
.faq-section {
  padding: 64px 0;
  background: var(--bg-primary);
}

.faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition-fast);
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item p strong {
  color: var(--text-primary);
}

/* === NEWSLETTER === */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-hero);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4), transparent 70%);
  pointer-events: none;
}

.newsletter-box h2 {
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.newsletter-box p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

/* Extra padding on battle pages so footer clears the sticky verdict bar */
.battle-page ~ .site-footer {
  padding-bottom: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

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

.affiliate-disclosure {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.85;
}

.affiliate-disclosure a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.affiliate-disclosure a:hover {
  color: var(--accent);
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  display: none;
}

.no-results.visible {
  display: block;
}

.no-results .emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Lift above sticky verdict bar on battle pages */
.battle-page ~ .back-to-top {
  bottom: 90px;
  z-index: 90;
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --page-padding: 16px;
    --header-height: 64px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }

  .trust-strip { gap: 24px; }
  .trust-item .num { font-size: 1.3rem; }

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-matchup {
    flex-wrap: wrap;
  }

  .hero-search input {
    padding: 14px 16px 14px 44px;
    font-size: 0.9rem;
  }
}

/* === BATTLE PAGE SPECIFICS === */
.battle-page { padding-top: 32px; padding-bottom: 80px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent);
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover { opacity: 0.7; }

.breadcrumb .sep { opacity: 0.4; }

.battle-header {
  margin-bottom: 36px;
}

.battle-header h1 {
  margin-bottom: 12px;
}

.battle-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0, 184, 148, 0.08);
  color: var(--accent-success);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 184, 148, 0.12);
}

/* Verdict box */
.verdict-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.verdict-box strong {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

.verdict-box p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* Quick Answer — AI search optimized */
.quick-answer {
  background: rgba(0, 206, 201, 0.06);
  border: 1px solid rgba(0, 206, 201, 0.15);
  border-left: 5px solid var(--accent-2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.quick-answer strong {
  color: var(--accent-2);
  margin-right: 4px;
}

/* Comparison table — battle page */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-tertiary);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table .winner-cell {
  font-weight: 700;
  color: var(--accent-success);
}

/* Pros section */
.pros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}

.pros-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.pros-card h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pros-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pros-card li::before {
  content: '✓';
  color: var(--accent-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA section on battle page */
.cta-section {
  text-align: center;
  padding: 40px 0;
}

.cta-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pricing sources section on battle pages */
.battle-sources {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.battle-sources h2 {
  margin-bottom: 8px;
}

.battle-sources-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.battle-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.battle-source-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.battle-source-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.battle-source-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battle-source-links a {
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.battle-source-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.battle-sources-stamp {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Related battles */
.related-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Sticky verdict (battle page) */
.sticky-verdict {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 80;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  backdrop-filter: blur(20px);
}

.sticky-verdict.visible {
  transform: translateY(0);
}

.sticky-verdict p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .pros-grid { grid-template-columns: 1fr; }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .sticky-verdict {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .sticky-verdict p {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* === VISIBILITY HELPER (sr-only) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
