/* =====================================================
   ClubTech Compare — Main Stylesheet
   G2 / Capterra-style review site aesthetic
   ===================================================== */

/* --- Reset & Base ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-blue:   #1a56db;
  --brand-dark:   #1e2a3a;
  --brand-green:  #057a55;
  --accent-amber: #d97706;
  --accent-red:   #dc2626;
  --bg:           #f8fafc;
  --bg-white:     #ffffff;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       8px;
  --radius-lg:    14px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:        1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography ------------------------------------- */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .5rem;
}

/* --- Navigation ------------------------------------- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--brand-blue); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg); color: var(--brand-blue); text-decoration: none; }
.nav-links a.active { color: var(--brand-blue); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s;
}

/* --- Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover { background: #1446b4; color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}
.btn-outline:hover { background: var(--brand-blue); color: #fff; text-decoration: none; }

.btn-green {
  background: var(--brand-green);
  color: #fff;
}
.btn-green:hover { background: #046040; color: #fff; text-decoration: none; }

.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }

/* --- Hero ------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6e 60%, #1a56db 100%);
  color: #fff;
  padding: 80px 0 64px;
}
.hero-content { max-width: 680px; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: .88; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { font-size: .85rem; opacity: .75; }
.hero-stat strong { font-size: 1.4rem; display: block; opacity: 1; color: #fff; }

/* --- Category Cards --------------------------------- */
.section { padding: 64px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); max-width: 580px; }

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

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.icon-blue  { background: #eff6ff; }
.icon-green { background: #f0fdf4; }
.icon-amber { background: #fffbeb; }
.icon-purple{ background: #faf5ff; }

.card h3 { margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
.card .arrow-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* --- Comparison Table ------------------------------- */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: .9rem;
}

.comparison-table thead th {
  background: var(--brand-dark);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; min-width: 160px; }
.comparison-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.comparison-table tbody tr:hover { background: #f8fafc; }
.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.check    { color: var(--brand-green); font-size: 1rem; }
.cross    { color: var(--accent-red);  font-size: 1rem; }
.partial  { color: var(--accent-amber); font-size: .85rem; font-weight: 600; }

.platform-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-recommended { background: #eff6ff; color: var(--brand-blue); }
.badge-top-pick    { background: #f0fdf4; color: var(--brand-green); }

/* --- Score Pill ------------------------------------- */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-dark);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.score-pill.high   { background: var(--brand-green); }
.score-pill.medium { background: var(--accent-amber); }
.score-pill.low    { background: var(--accent-red); }

/* --- Star Ratings ----------------------------------- */
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 1px; }
.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.rating-value { font-weight: 700; }
.rating-count { color: var(--text-muted); }

/* --- Review Card ------------------------------------ */
.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.review-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.review-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.platform-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.platform-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border-radius: 10px;
}
/* Multi-select quiz options */
.quiz-options.multi-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-options.multi-select .quiz-option { position: relative; }
.quiz-options.multi-select .quiz-option.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  background: var(--brand-blue);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 600px) { .quiz-options.multi-select { grid-template-columns: 1fr; } }
.review-card-body { padding: 20px 24px; }
.review-card-body ul { list-style: none; margin-bottom: 16px; }
.review-card-body ul li {
  padding: 4px 0;
  font-size: .875rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.review-card-body ul li::before { content: "✓"; color: var(--brand-green); font-weight: 700; }

.review-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Pros / Cons ------------------------------------ */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pros-box, .cons-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.pros-box h4 { color: var(--brand-green); margin-bottom: 12px; }
.cons-box h4 { color: var(--accent-red); margin-bottom: 12px; }
.pros-cons-list { list-style: none; }
.pros-cons-list li {
  padding: 5px 0;
  font-size: .9rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pros-cons-list .icon { flex-shrink: 0; margin-top: 1px; }

/* --- Rating Bar ------------------------------------- */
.rating-bars { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.rating-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
}
.rating-bar-label { color: var(--text-muted); }
.rating-bar-track {
  background: var(--border);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--brand-blue);
  transition: width .6s ease;
}
.rating-bar-value { font-weight: 700; text-align: right; }

/* --- Quiz ------------------------------------------- */
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.quiz-progress-dot {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--border);
  transition: background .3s;
}
.quiz-progress-dot.done { background: var(--brand-blue); }

.quiz-question { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-white);
}
.quiz-option:hover { border-color: var(--brand-blue); background: #eff6ff; }
.quiz-option.selected { border-color: var(--brand-blue); background: #eff6ff; }
.quiz-option-icon { font-size: 1.4rem; flex-shrink: 0; }
.quiz-option-text strong { display: block; font-size: .95rem; }
.quiz-option-text span { font-size: .8rem; color: var(--text-muted); }

.quiz-nav { display: flex; justify-content: space-between; margin-top: 24px; }

.quiz-result { text-align: center; }
.quiz-result h2 { margin-bottom: 8px; }
.quiz-result p  { color: var(--text-muted); margin-bottom: 32px; }
.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin-bottom: 32px; }
.result-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.result-card.top-pick { border-color: var(--brand-blue); }
.result-card .rank { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; color: var(--brand-blue); }
.result-card h3 { margin-bottom: 4px; }
.result-card p  { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }

/* --- Lead Capture / CTA Banner ---------------------- */
.cta-banner {
  background: linear-gradient(135deg, #1a3a6e, #1a56db);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 0 auto;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { opacity: .85; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.cta-banner input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: .95rem;
  outline: none;
}
.cta-banner input[type="email"]:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.3); }

/* --- Contact / Inline Form -------------------------- */
.lead-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand-blue); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Breadcrumb ------------------------------------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  padding: 14px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-blue); text-decoration: none; }
.breadcrumb span { color: var(--text-light); }

/* --- Page Hero (inner pages) ----------------------- */
.page-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 48px 0;
}
.page-hero .eyebrow { color: #93c5fd; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { opacity: .8; max-width: 620px; }

/* --- Sidebar Layout --------------------------------- */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.sidebar-card h4 { margin-bottom: 16px; }

/* --- Score Overview (review pages) ----------------- */
.score-overview {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 32px;
}
.big-score {
  text-align: center;
  flex-shrink: 0;
}
.big-score .number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dark);
}
.big-score .out-of { font-size: .8rem; color: var(--text-muted); }
.big-score .label  { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* --- Highlight Box ---------------------------------- */
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: .9rem;
}
.highlight-box strong { display: block; margin-bottom: 4px; }

/* --- Chips / Tags ----------------------------------- */
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
}
.chip-blue { border-color: #93c5fd; color: var(--brand-blue); background: #eff6ff; }

/* --- Divider ---------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --- Footer ----------------------------------------- */
.site-footer {
  background: var(--brand-dark);
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: .875rem; margin-top: 12px; opacity: .75; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 8px; }
.footer-col h5 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .875rem; color: #94a3b8; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #64748b;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; text-decoration: none; }
.disclosure-notice {
  font-size: .75rem;
  color: #475569;
  margin-top: 12px;
  max-width: 700px;
  line-height: 1.5;
}

/* --- Utility ---------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.bg-white { background: var(--bg-white); }
.rounded { border-radius: var(--radius); }
.border { border: 1px solid var(--border); }
.p-6  { padding: 24px; }
.p-8  { padding: 32px; }

/* --- Responsive ------------------------------------- */
@media (max-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
}
/* old mobile block removed — consolidated below */

/* =====================================================
   MOBILE & TABLET IMPROVEMENTS
   ===================================================== */

/* --- Tablet (max 900px) ----------------------------- */
@media (max-width: 900px) {
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .comparison-table { font-size: .82rem; }
  .comparison-table td, .comparison-table th { padding: 10px 12px; }
  .rating-bar-row { grid-template-columns: 130px 1fr 36px; }
  .cta-banner { padding: 36px 28px; }
  .page-hero { padding: 36px 0; }
}

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

  /* ── Mobile nav complete fix ── */
  .site-header { position: relative; }
  .nav-inner { display: flex; align-items: center; padding: 0 16px; height: 64px; gap: 0; }
  .nav-logo { flex: 1; font-size: 1.1rem; }
  .nav-cta { display: none !important; }
  .hamburger { display: flex !important; flex-direction: column; justify-content: center; gap: 5px; margin-left: 12px; padding: 8px; flex-shrink: 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    flex-direction: column;
    z-index: 999;
    padding: 8px 0;
    gap: 0;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 20px; font-size: 1rem; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links li:last-child a { border-bottom: none; }

  /* Typography scale-down */
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero p { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 20px; margin-top: 28px; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 24px; }

  /* Card grid — single column on phone */
  .card-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Comparison table — horizontal scroll with hint */
  .comparison-wrap { margin: 0 -16px; border-radius: 0; border-left: none; border-right: none; }
  .comparison-table { font-size: .78rem; min-width: 600px; }
  .comparison-table td, .comparison-table th { padding: 9px 10px; }
  .comparison-table td:first-child { white-space: normal; min-width: 110px; }
  .platform-logo-placeholder { width: 28px; height: 28px; font-size: .7rem; border-radius: 6px; }

  /* Review cards */
  .review-card-header { padding: 16px 16px 12px; }
  .review-card-body { padding: 14px 16px; }
  .review-card-footer { padding: 12px 16px; flex-direction: column; gap: 8px; }
  .review-card-footer .btn { width: 100%; justify-content: center; }

  /* Score overview on review pages */
  .score-overview { flex-direction: column; gap: 16px; padding: 20px; }
  .big-score .number { font-size: 3rem; }

  /* Rating bars */
  .rating-bar-row { grid-template-columns: 100px 1fr 32px; gap: 8px; font-size: .8rem; }
  .rating-bar-label { font-size: .75rem; }

  /* Pros/cons */
  .pros-cons-grid { grid-template-columns: 1fr; gap: 12px; }
  .pros-box, .cons-box { padding: 14px; }

  /* Page hero */
  .page-hero { padding: 28px 0; }
  .page-hero h1 { font-size: 1.5rem; }

  /* CTA Banner */
  .cta-banner { padding: 28px 16px; border-radius: var(--radius); }
  .cta-banner .email-form { flex-direction: column; gap: 10px; }
  .cta-banner .email-form .btn { width: 100%; justify-content: center; }

  /* Sidebar — stacks below content on mobile */
  .content-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .sidebar-card { position: static; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom div { flex-wrap: wrap; gap: 12px; }

  /* Quiz */
  .quiz-option { padding: 12px 14px; gap: 10px; }
  .quiz-option-icon { font-size: 1.2rem; }
  .quiz-option-text strong { font-size: .875rem; }
  .quiz-question { font-size: 1.1rem; }
  .quiz-nav .btn { padding: 11px 18px; font-size: .875rem; }
  .result-cards { grid-template-columns: 1fr; }

  /* Form rows */
  .form-row { grid-template-columns: 1fr; }

  /* Scroll hint on table */
  .comparison-wrap::before {
    content: '← Scroll to see all →';
    display: block;
    text-align: center;
    font-size: .72rem;
    color: var(--text-muted);
    padding: 6px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  /* Buttons full width in certain contexts */
  .btn-full-mobile { width: 100%; justify-content: center; }

  /* Nav */


  /* Sidebar quiz CTA buttons */
  #demo .btn { width: auto; min-width: 200px; }
}

/* --- Small phones (max 380px) ----------------------- */
@media (max-width: 380px) {
  h1 { font-size: 1.45rem; }
  .btn { padding: 9px 16px; font-size: .85rem; }
  .cta-banner { padding: 20px 12px; }
}

/* How it works steps — mobile */
@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr !important; gap: 8px !important; }
  .how-steps > div { padding: 16px !important; border: 1px solid var(--border); border-radius: var(--radius); }
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr !important; }
}
/* Trust bar — wrap nicely on mobile */
@media (max-width: 640px) {
  .trust-bar-inner { gap: 12px !important; justify-content: flex-start !important; overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 4px; }
}

/* --- FAQ Accordion ---------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; background: var(--bg-white); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; font-size: .95rem; font-weight: 600; color: var(--text);
  text-align: left; gap: 12px; transition: background .15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question[aria-expanded="true"] { background: #eff6ff; color: var(--brand-blue); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; color: var(--brand-blue); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: var(--bg);
}
.faq-answer p { padding: 0 24px 18px; font-size: .9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 640px) {
  .faq-question { padding: 14px 16px; font-size: .875rem; }
  .faq-answer p { padding: 0 16px 14px; }
}

/* Mobile nav toggle — triggered by JS adding nav-open to site-header */
.nav-open .nav-links { display: flex !important; flex-direction: column; }
