/* ============================================================
   wireframingtools.org — Global Stylesheet
   Design: Dark premium theme, vibrant accents, animations
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary: #6C63FF;
  --primary-dark: #4B44CC;
  --primary-light: #8B85FF;
  --secondary: #FF6584;
  --accent-teal: #43D9AD;
  --accent-orange: #FF8C42;
  --accent-yellow: #FFD166;
  --accent-pink: #FF6B9D;

  --bg-base: #0D0C1D;
  --bg-surface: #14122B;
  --bg-card: #1C1A36;
  --bg-card-hover: #221F42;
  --bg-light: #F5F4FF;
  --bg-white: #FFFFFF;

  --text-primary: #EEEEFF;
  --text-secondary: #9896B8;
  --text-muted: #8A88AA;
  --text-dark: #1A1831;

  --border-subtle: rgba(108, 99, 255, 0.15);
  --border-medium: rgba(108, 99, 255, 0.3);
  --border-bright: rgba(108, 99, 255, 0.6);

  --gradient-hero: linear-gradient(135deg, #0D0C1D 0%, #1A0E3D 50%, #0D1A3D 100%);
  --gradient-card: linear-gradient(135deg, #1C1A36, #221F42);
  --gradient-primary: linear-gradient(135deg, #6C63FF, #8B85FF);
  --gradient-secondary: linear-gradient(135deg, #FF6584, #FF8C42);
  --gradient-teal: linear-gradient(135deg, #43D9AD, #2CC4A0);
  --gradient-rainbow: linear-gradient(135deg, #6C63FF 0%, #FF6584 33%, #FF8C42 66%, #43D9AD 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
  --shadow-glow-teal: 0 0 40px rgba(67, 217, 173, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.8; }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary); }

strong, b { color: var(--text-primary); font-weight: 600; }

code {
  font-family: var(--font-mono);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-teal);
}

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; color: var(--text-secondary); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 12, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(13, 12, 29, 0.97);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Brand ── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Animated SVG logo in navbar */
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  /* Re-trigger animation on hover by swapping src */
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

/* Replay animation on hover — swap src to force SVG reload */
.navbar-brand:hover .brand-logo {
  filter: drop-shadow(0 0 6px rgba(108,99,255,0.5));
  transition: filter 0.3s ease;
}

.brand-dot { color: var(--primary-light); }

/* ── Nav links (desktop) ── */
.navbar-nav,
.navbar-links {
  display: flex;            /* ALWAYS flex on desktop */
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.navbar-nav li,
.navbar-links li { list-style: none; }

.navbar-nav a,
.navbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.navbar-nav a .nav-icon,
.navbar-links a .nav-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.navbar-nav a:hover,
.navbar-links a:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.12);
}

.navbar-nav a.active,
.navbar-links a.active {
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.15);
  font-weight: 600;
}

/* ── Nav CTA ── */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Hamburger (mobile only) ── */
.navbar-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--transition-fast);
}

.navbar-menu-btn:hover {
  background: rgba(108,99,255,0.1);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-spring);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-teal {
  background: var(--gradient-teal);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(67, 217, 173, 0.3);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67, 217, 173, 0.5);
  color: var(--text-dark);
}

.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* ---------- Badges & Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary { background: rgba(108, 99, 255, 0.15); color: var(--primary-light); border: 1px solid rgba(108, 99, 255, 0.3); }
.badge-teal { background: rgba(67, 217, 173, 0.12); color: var(--accent-teal); border: 1px solid rgba(67, 217, 173, 0.3); }
.badge-orange { background: rgba(255, 140, 66, 0.12); color: var(--accent-orange); border: 1px solid rgba(255, 140, 66, 0.3); }
.badge-pink { background: rgba(255, 101, 132, 0.12); color: var(--secondary); border: 1px solid rgba(255, 101, 132, 0.3); }
.badge-yellow { background: rgba(255, 209, 102, 0.12); color: var(--accent-yellow); border: 1px solid rgba(255, 209, 102, 0.3); }
.badge-new { background: var(--gradient-secondary); color: white; }
.badge-free { background: rgba(67, 217, 173, 0.2); color: var(--accent-teal); }
.badge-ai { background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(255,101,132,0.2)); color: var(--primary-light); border: 1px solid rgba(108,99,255,0.3); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-card);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-base);
}

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

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

.card-content { position: relative; }

/* ---------- Score / Rating ---------- */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid currentColor;
  flex-shrink: 0;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
}

.score-badge .score-num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.score-badge .score-denom {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.65;
  line-height: 1;
  display: block;
}

/* colour variants */
.score-excellent {
  color: var(--accent-teal);
  background: rgba(67, 217, 173, 0.08);
  border-color: var(--accent-teal);
  box-shadow: 0 0 18px rgba(67, 217, 173, 0.2);
}
.score-great {
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(108, 99, 255, 0.2);
}
.score-good {
  color: var(--accent-orange);
  background: rgba(255, 140, 66, 0.08);
  border-color: var(--accent-orange);
  box-shadow: 0 0 18px rgba(255, 140, 66, 0.15);
}

@media (max-width: 480px) {
  .score-badge          { width: 70px; height: 70px; }
  .score-badge .score-num   { font-size: 1.25rem; }
  .score-badge .score-denom { font-size: 0.62rem; }
}

.score-bar-wrap { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 100px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); width: 0; }
.score-bar.primary { background: var(--gradient-primary); }
.score-bar.teal { background: var(--gradient-teal); }
.score-bar.orange { background: linear-gradient(90deg, var(--accent-orange), #FFAA70); }
.score-bar.pink { background: linear-gradient(90deg, var(--secondary), var(--accent-pink)); }

.star-rating { display: flex; gap: 3px; }
.star { color: var(--accent-yellow); font-size: 1.1rem; }
.star.half { opacity: 0.5; }

/* ---------- Tool Card (review format) ---------- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.tool-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.tool-card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tool-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  font-weight: 800;
}

.tool-card-meta { flex: 1; }
.tool-card-meta h3 { margin-bottom: 4px; }
.tool-card-meta .tool-tagline { font-size: 0.9rem; color: var(--text-muted); }
.tool-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.tool-card-body { padding: 24px 28px; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.score-item label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-item .score-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th {
  background: var(--bg-surface);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.comparison-table tr:hover td { background: rgba(108, 99, 255, 0.05); }

.comparison-table .tool-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-yes { color: var(--accent-teal); font-size: 1.1rem; }
.check-no { color: var(--text-muted); font-size: 1.1rem; }
.check-partial { color: var(--accent-yellow); font-size: 1.1rem; }
.check-star { font-size: 0.85rem; }

/* ---------- Chart containers ---------- */
.chart-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.chart-wrap {
  position: relative;
  height: 380px;   /* default height — inline style overrides for specific charts */
}

.chart-wrap canvas {
  display: block;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.chart-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.chart-wrap {
  position: relative;
  height: 320px;
}

.chart-wrap canvas { max-height: 100%; }

/* ---------- Stat Cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--primary-light); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-spring);
  color: var(--primary-light);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(108, 99, 255, 0.25); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { padding-bottom: 20px; }

.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 1200px; }
.faq-question svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  padding: 5px;
  box-sizing: content-box;
  background: rgba(108, 99, 255, 0.10);
  border-radius: 50%;
  color: var(--primary-light);
  transition: transform 0.3s ease, background 0.2s ease;
}
.faq-question:hover svg { background: rgba(108, 99, 255, 0.22); }
.faq-item.open .faq-question svg { transform: rotate(180deg); background: rgba(108, 99, 255, 0.22); }

/* ---------- Pro/Con Lists ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pros, .cons {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.pros { border-left: 3px solid var(--accent-teal); }
.cons { border-left: 3px solid var(--secondary); }

.pros h4 { color: var(--accent-teal); margin-bottom: 10px; font-size: 0.9rem; }
.cons h4 { color: var(--secondary); margin-bottom: 10px; font-size: 0.9rem; }

.pros li, .cons li { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px; }

.pros li::marker { content: "✓ "; color: var(--accent-teal); }
.cons li::marker { content: "✗ "; color: var(--secondary); }

/* ---------- Section Layouts ---------- */
.section { padding: 48px 0; }
.section-sm { padding: 24px 0; }
.section-lg { padding: 80px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header { margin-bottom: 36px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }
.section-header.centered .section-label::after { content: ''; display: block; width: 20px; height: 2px; background: var(--gradient-primary); border-radius: 2px; }

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 12px;
}

.section-header.centered p { margin: 12px auto 0; }

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ---------- Wireframe Illustrations (CSS-drawn) ---------- */
.wireframe-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}

.wf-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.wf-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-dot.red { background: #FF5F57; }
.wf-dot.yellow { background: #FFBD2E; }
.wf-dot.green { background: #27C93F; }

.wf-url-bar {
  flex: 1;
  height: 18px;
  background: var(--border-subtle);
  border-radius: 100px;
  margin-left: 6px;
  animation: wf-pulse 2s ease-in-out infinite;
}

.wf-nav { display: flex; gap: 8px; margin-bottom: 10px; }
.wf-nav-item { height: 8px; border-radius: 4px; background: var(--border-subtle); }

.wf-hero {
  height: 80px;
  background: linear-gradient(135deg, var(--border-subtle), var(--border-medium));
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wf-shimmer 2s ease-in-out infinite alternate;
}

.wf-hero-text { width: 60%; height: 10px; background: rgba(255,255,255,0.12); border-radius: 4px; }

.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.wf-card-block { height: 50px; background: var(--border-subtle); border-radius: var(--radius-sm); }

.wf-text-lines { display: flex; flex-direction: column; gap: 5px; }
.wf-line { height: 6px; background: var(--border-subtle); border-radius: 4px; }

.wf-annotation {
  position: absolute;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.wf-annotation-line {
  height: 1px;
  width: 40px;
  background: var(--primary-light);
  opacity: 0.5;
}

.wf-annotation-text {
  font-size: 0.65rem;
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Mobile wireframe */
.wireframe-mobile {
  width: 160px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: 20px;
  padding: 12px 10px;
  position: relative;
}

.wf-mobile-notch {
  width: 50px;
  height: 8px;
  background: var(--border-medium);
  border-radius: 4px;
  margin: 0 auto 10px;
}

.wf-mobile-header {
  height: 24px;
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.wf-mobile-content { display: flex; flex-direction: column; gap: 6px; }
.wf-mobile-img { height: 60px; background: linear-gradient(135deg, var(--border-subtle), var(--border-medium)); border-radius: var(--radius-sm); }
.wf-mobile-line { height: 5px; background: var(--border-subtle); border-radius: 4px; }
.wf-mobile-btn { height: 20px; background: rgba(108, 99, 255, 0.2); border-radius: 100px; margin-top: 4px; }

/* ---------- Animations ---------- */
@keyframes wf-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes wf-shimmer {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.5); }
}

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* ---------- Highlight / Callout ---------- */
.callout {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-teal {
  background: rgba(67, 217, 173, 0.06);
  border-color: rgba(67, 217, 173, 0.3);
  border-left-color: var(--accent-teal);
}

.callout-orange {
  background: rgba(255, 140, 66, 0.06);
  border-color: rgba(255, 140, 66, 0.3);
  border-left-color: var(--accent-orange);
}

.callout-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.callout-teal .callout-title { color: var(--accent-teal); }
.callout-orange .callout-title { color: var(--accent-orange); }

.callout p { font-size: 0.92rem; margin: 0; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-direction: column; gap: 0; }

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.tab-btn.active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Table of Contents ---------- */
.toc,
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(108,99,255,0.3) transparent;
}

/* "ON THIS PAGE" header */
.toc-title,
.toc-card > h4,
.toc-card > h3 {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--text-muted) !important;
  margin: 0 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* TOC list */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toc-list li { margin-bottom: 0; }

.toc-list a {
  display: block;
  padding: 7px 10px 7px 12px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.45;
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.07);
  border-left-color: rgba(108, 99, 255, 0.4);
}

.toc-list a.active {
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.1);
  border-left-color: var(--primary);
  font-weight: 600;
}

.toc-list .toc-sub {
  padding-left: 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toc-list .toc-sub.active {
  color: var(--primary-light);
}

/* ---------- Article Layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr; /* sidebar LEFT, content RIGHT */
  gap: 48px;
  align-items: start;
  /* When NOT inside .container, act as its own: */
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 60px;
}

/* When article-layout IS inside .container, remove duplicate spacing */
.container > .article-layout {
  max-width: 100%;
  padding: 40px 0 60px;
  margin-left: 0;
  margin-right: 0;
}

/* Sidebar must STRETCH to full column height so sticky card has room to scroll */
.toc-sidebar,
.article-sidebar {
  align-self: stretch;  /* override grid's align-items:start for this cell only */
  position: relative;   /* establish containing block for absolute children */
  order: -1;            /* always render LEFT regardless of DOM source order */
  grid-column: 1;       /* explicitly assign to first column */
}

.article-content,
main.article-content,
article.article-content {
  grid-column: 2;       /* always render RIGHT regardless of DOM source order */
  order: 0;
}

.article-content {
  min-width: 0; /* prevent grid blowout */
  /* Fluid readable measure: never too wide or too narrow */
  width: 100%;
}

/* Paragraphs and lists constrained for optimal reading comfort */
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote {
  max-width: 72ch; /* ~72 characters — proven readable measure */
}

.article-content h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.article-content p { margin-bottom: 18px; font-size: 0.97rem; }

.article-content ul,
.article-content ol { margin-bottom: 18px; }

.article-content li { margin-bottom: 8px; font-size: 0.95rem; }

/* article intro paragraph */
.article-intro {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* page hero used by inner pages */
.page-hero {
  background: var(--gradient-hero);
  padding: 120px 0 52px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout:has(.callout-icon) {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ---------- Feature Flags / Checkmarks ---------- */
.feature-list { list-style: none; padding: 0; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Pricing Tag ---------- */
.pricing-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.price-free {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-teal);
}

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

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumb-current { color: var(--text-secondary); }

/* ---------- Newsletter / CTA Box ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 { margin-bottom: 12px; }
.cta-box p { margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.email-input::placeholder { color: var(--text-muted); }
.email-input:focus { border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

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

.footer-brand { max-width: 290px; }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col h4 .footer-col-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
}

.footer-links a .fl-icon {
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-links a:hover .fl-icon { opacity: 1; }

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(138,136,170,0.4);
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--primary-light); }

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(138,136,170,0.4);
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--primary-light); text-decoration-color: rgba(139,133,255,0.6); }

/* ---------- Particle BG ---------- */
.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: particle-float linear infinite;
  opacity: 0;
}

/* ---------- Gradient Text ---------- */
.text-gradient {
  background: var(--gradient-rainbow);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-teal {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.w-full { width: 100%; }
.relative { position: relative; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 40px 0;
}

.bg-surface { background: var(--bg-surface); }

/* ── Inner-page image blocks injected by workflow ── */
/* Constrain them inside article-content so they don't blow past the grid */
.article-content > div[style*="border-radius:16px"],
.article-content > div[style*="border-radius: 16px"] {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid var(--border-subtle) !important;
  margin: 28px 0 !important;
}

.article-content > div[style*="border-radius:16px"] img,
.article-content > div[style*="border-radius: 16px"] img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover;
  display: block;
}

/* ── Section image figure (homepage) ── */
.img-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: 0 0 32px;
}
.img-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.img-banner figcaption {
  padding: 10px 18px;
  background: var(--bg-card);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .img-banner img { height: 200px; }
  .article-content > div[style*="border-radius:16px"] img,
  .article-content > div[style*="border-radius: 16px"] img { height: 180px !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
  .container > .article-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 900px) {
  .article-layout,
  .container > .article-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
  }
  .toc-sidebar,
  .article-sidebar { display: none; }
  .article-content,
  main.article-content,
  article.article-content { grid-column: 1; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }

  /* hide nav links, show hamburger on mobile */
  .navbar-nav,
  .navbar-links { display: none !important; }
  .navbar-menu-btn { display: flex !important; }

  /* mobile dropdown */
  .navbar-nav.mobile-open,
  .navbar-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(13,12,29,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-medium);
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .navbar-nav.mobile-open a,
  .navbar-links.mobile-open a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .tool-card-header { flex-direction: column; }
  .comparison-table-wrap { border-radius: var(--radius-sm); }
}

/* ═══════════════════════════════════════════
   SUBPAGE RESPONSIVE — hero, tables, grids
   ═══════════════════════════════════════════ */

/* Fluid typography — scale h1 smoothly from 1.9rem (320px) to 3.2rem (1200px) */
h1 {
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 3.2rem);
}
h2 {
  font-size: clamp(1.35rem, 2.8vw + 0.4rem, 2rem);
}
h3 {
  font-size: clamp(1.1rem, 2vw + 0.3rem, 1.4rem);
}

/* Body text: comfortable reading width, scales with container */
.article-content p,
.article-content li {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.05rem);
  line-height: 1.78;
}

/* ── Hero review (review pages) ── */
.hero-review {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  position: relative;
}

.hero-vs,
.about-hero {
  position: relative;
}

.hero-score-wrap {
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
}

.score-number-large {
  font-size: clamp(3rem, 10vw, 5rem);
}

/* ── All tables: horizontal scroll on small screens ── */
table {
  width: 100%;
}

.pricing-table,
.comparison-table,
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Restore display for wider screens */
@media (min-width: 768px) {
  .pricing-table,
  .comparison-table,
  table {
    display: table;
    overflow-x: visible;
  }
}

/* ── Image blocks: reduce fixed heights on mobile ── */
@media (max-width: 600px) {
  [style*="height:300px"],
  [style*="height: 300px"] {
    height: 200px !important;
  }
  [style*="height:400px"],
  [style*="height: 400px"] {
    height: 220px !important;
  }
  [style*="height:500px"],
  [style*="height: 500px"] {
    height: 240px !important;
  }
  [style*="height:280px"],
  [style*="height: 280px"] {
    height: 180px !important;
  }
}

/* ── Score grid / score rows ── */
@media (max-width: 640px) {
  .hero-score-wrap { flex-direction: column; align-items: center; text-align: center; }
  .hero-summary { text-align: left; }

  .score-row,
  [style*="grid-template-columns: 180px"] {
    grid-template-columns: 1fr 1fr !important;
    font-size: 0.85rem;
  }

  /* Pricing & feature grids */
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Pros/cons stacked */
  .pros-cons-grid,
  .who-grid {
    grid-template-columns: 1fr !important;
  }

  /* Container padding on mobile */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Verdict / callout boxes */
  .verdict-box { padding: 20px 18px; }
  .callout { padding: 16px 18px; }
}

/* ── Footer responsive ── */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { max-width: 100%; }
}

/* ── Navbar brand on very small screens ── */
@media (max-width: 360px) {
  .navbar-brand { font-size: 0.95rem; }
  .brand-icon { display: none; }
}
