/* ============================================
   BLODSALGO — Product Page Styles
   Institutional dark theme. Conversion-first.
   ============================================ */

/* ── FONTS (inherited from site, declared for standalone) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
ul, ol { list-style: none; }

/* ── TOKENS ── */
:root {
  --bg: #0B0E18;
  --bg-alt: #080A12;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-solid: #111827;
  --bg-card-hover: rgba(15, 23, 42, 0.7);
  --accent: #64FFDA;
  --accent-dim: #4fd1b0;
  --accent-light: #a7ffeb;
  --accent-glow: rgba(100, 255, 218, 0.10);
  --accent-glow-strong: rgba(100, 255, 218, 0.18);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --red: #ef4444;
  --gold: #FFD700;
  --text: #F0F4F8;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --border: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(100, 255, 218, 0.12);
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --max-w: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 900px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.green { color: var(--green); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── ANNOUNCEMENT BAR ── */
.announce {
  background: rgba(100, 255, 218, 0.04);
  border-bottom: 1px solid var(--border-accent);
  padding: 7px 1.5rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.announce a { font-weight: 600; }
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── NAVBAR ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(11, 14, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--text);
  text-transform: uppercase;
}
.nav__logo span { color: var(--accent); }
.nav__back {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.nav__back:hover { color: var(--text); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.nav__cta:hover {
  background: var(--accent-dim);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

/* ── ANALYTICS WIDGET ── */
.analytics-widget {
  background: linear-gradient(170deg, rgba(15,23,42,0.95) 0%, rgba(11,14,24,0.85) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(100,255,218,0.05), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: box-shadow 0.3s;
}
.analytics-widget:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(100,255,218,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── REVIEWS CAROUSEL ── */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
  padding: 0.25rem 0;
}
.reviews-carousel__fade-l,
.reviews-carousel__fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}
.reviews-carousel__fade-l { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.reviews-carousel__fade-r { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.reviews-carousel__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  /* JS-driven smooth scroll — no CSS animation */
}

.review-card-v2 {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(15,23,42,0.7) 0%, rgba(11,14,24,0.5) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
}
.review-card-v2::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(100,255,218,0.04);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
}
.review-card-v2:hover {
  border-color: rgba(100,255,218,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(100,255,218,0.06);
  transform: translateY(-2px);
}
.review-card-v2__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-card-v2__avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(100,255,218,0.18), rgba(100,255,218,0.04));
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.review-card-v2__info {
  flex: 1;
}
.review-card-v2__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.review-card-v2__stars {
  display: flex;
  gap: 2px;
}
.review-card-v2__stars span {
  color: var(--gold);
  font-size: 12px;
}
.review-card-v2__badge {
  font-size: 9px;
  color: var(--gold);
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-card-v2__text {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.review-card-v2__product {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-card-v2__date {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.hero h1 .accent-line {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 0.4rem;
}
.hero__proof {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero__proof a { font-size: 13px; }

/* Price block */
.price-block { margin-bottom: 1.5rem; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price {
  font-size: 52px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1;
}
.price-meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA buttons */
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-dim);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cta-note {
  font-size: 12px;
  color: var(--text-muted);
}
.cta-note a { color: var(--accent); font-size: 12px; }

/* Hero right — product visual */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero__chart {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.hero__chart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(100,255,218,0.03) 100%);
  pointer-events: none;
}
.hero__chart svg { width: 100%; height: 100%; position: relative; z-index: 1; }

.floating-badge {
  position: absolute;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
  z-index: 5;
  animation: float 5s ease-in-out infinite;
}
.floating-badge--top { top: 10px; right: -15px; animation-delay: 0s; }
.floating-badge--bottom { bottom: 15px; left: -15px; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.floating-badge__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
}
.floating-badge__label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── TRUST BAR ── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.75rem 0;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.trust__icon {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

/* ── SECTION COMMONS ── */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.stat-card__value {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
}
.stat-card__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.stat-card__context {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ── METRICS TABLE ── */
.metrics-table {
  width: 100%;
  border-collapse: collapse;
}
.metrics-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.metrics-table td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}
.metrics-table td:last-child {
  text-align: right;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text);
}
.metrics-table tr:last-child td { border-bottom: none; }

/* ── EXPLAIN GRID ── */
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
.explain-item {
  margin-bottom: 1.5rem;
}
.explain-number {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 6px;
}
.explain-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ── EQUITY CHART ── */
.equity-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.equity-svg { width: 100%; height: auto; }
.equity-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--mono);
}

/* ── STEPS (How It Works) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--border-accent); }
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 800;
  color: rgba(100, 255, 218, 0.07);
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── INCLUDED GRID ── */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.included-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.included-card:hover { border-color: var(--border-accent); }
.included-card__icon {
  font-size: 28px;
  margin-bottom: 0.75rem;
}
.included-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.included-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── COMPARISON TABLE ── */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th,
.compare-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}
.compare-table thead th:last-child {
  color: var(--accent);
}
.compare-table .highlight-col {
  background: rgba(100, 255, 218, 0.03);
}
.compare-check { color: var(--green); font-weight: 700; font-size: 16px; }
.compare-x { color: var(--red); font-size: 14px; }
.compare-warn { color: var(--amber); font-size: 13px; }

/* ── REVIEWS ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.review-card__stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.review-card__text {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
.review-card__name {
  font-weight: 600;
  font-size: 13px;
}
.review-card__badge {
  font-size: 11px;
  color: var(--text-muted);
}
.reviews-summary {
  text-align: center;
  margin-bottom: 2rem;
}
.reviews-summary__score {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
}
.reviews-summary__stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 3px;
  margin: 6px 0;
}
.reviews-summary__count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── LICENSING SECTION ── */
.licensing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.licensing-steps {
  counter-reset: lic-step;
}
.lic-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.lic-step__number {
  counter-increment: lic-step;
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.lic-step__content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.lic-step__content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.lic-compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lic-compare__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.lic-compare table {
  width: 100%;
  border-collapse: collapse;
}
.lic-compare th,
.lic-compare td {
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.lic-compare th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lic-compare td:nth-child(2),
.lic-compare td:nth-child(3) { text-align: center; }
.lic-compare th:nth-child(2),
.lic-compare th:nth-child(3) { text-align: center; }

/* ── SETUP TABLE ── */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.setup-table {
  width: 100%;
  border-collapse: collapse;
}
.setup-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.setup-table td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  width: 40%;
}
.setup-table td:last-child { font-weight: 600; }
.setup-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.setup-note h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.setup-note p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-q__icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q__icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 1.25rem;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── CROSS SELL ── */
.crosssell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.crosssell-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.crosssell-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.crosssell-card__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.crosssell-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.crosssell-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.crosssell-card__metric {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0.25rem;
}
.crosssell-card__metric-label {
  font-size: 11px;
  color: var(--text-muted);
}
.crosssell-card__price {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crosssell-card__price-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
}
.crosssell-card__price-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── FINAL CTA ── */
.final-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta__price {
  font-size: 64px;
  font-weight: 900;
  font-family: var(--mono);
  margin: 1.5rem 0 0.5rem;
  position: relative;
}
.final-cta__note {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.final-cta .cta-group {
  justify-content: center;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

/* ── DISCLAIMER ── */
.disclaimer {
  max-width: 700px;
  margin: 2rem auto 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* ── STICKY MOBILE BAR ── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(11, 14, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  padding: 12px 1.5rem;
}
.mobile-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}
.mobile-bar__price {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 22px;
}
.mobile-bar__label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .crosssell-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1rem; padding-top: 10px; }
  .hero { min-height: auto; padding: 12px 0 8px; }
  .hero__visual { order: -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .explain-grid { grid-template-columns: 1fr; }
  .licensing-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }

  /* Hero inline grid override */
  .hero .container { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .hero .container > div:last-child { max-width: 100% !important; margin-left: 0 !important; }

  /* Core Principles 2-col → 1-col */
  .section .container > div[style*="grid-template-columns: 1fr 1fr"],
  .section .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Two Ways to Pay */
  .section .container > div[style*="grid-template-columns: 1fr 1fr;gap:1.5rem"],
  #licensing .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 3-step process → stack */
  div[style*="grid-template-columns:1fr auto 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  div[style*="grid-template-columns:1fr auto 1fr auto 1fr"] > div[style*="font-size:24px"] {
    display: none !important;
  }

  /* What You Get 2-col → 1-col */
  #included .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Backtest/track record 4-col → 2-col */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Total value box - smaller text */
  div[style*="font-size:42px"] { font-size: 28px !important; }
  div[style*="font-size:56px"] { font-size: 36px !important; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .crosssell-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .price { font-size: 40px; }
  .final-cta__price { font-size: 48px; }
  .nav__back { display: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 70px; }

  /* Global mobile overflow prevention */
  html, body { overflow-x: hidden !important; }
  *, *::before, *::after { box-sizing: border-box !important; }
  
  /* Container: force proper width */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Text elements must not exceed parent */
  .container h1, .container h2, .container h3, .container h4,
  .container p, .container span, .container div, .container a,
  .container table, .container ul, .container li {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }
  /* But don't constrain SVGs, images, or canvas */
  .container svg, .container img, .container canvas { max-width: 100% !important; }
  
  /* Force all inline 2-col grids to 1 column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Keep 3-col grids (stats) as 3 cols but constrained */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Prevent section overflow — including decorative elements with negative positioning */
  section, .section, .hero, .trust, footer, .disclaimer,
  .fade-up, [style*="position:relative;overflow:hidden"] {
    overflow: hidden !important;
  }
  /* Kill decorative overflow elements on mobile */
  [style*="right:-50px"], [style*="right: -50px"] {
    display: none !important;
  }
  
  /* All inline max-width containers */
  [style*="max-width:900px"], [style*="max-width:960px"], 
  [style*="max-width:800px"], [style*="max-width:500px"] {
    max-width: 100% !important;
  }
  
  /* Inline width:100% on anything inside container */
  .container > div[style*="width:100%"] { width: 100% !important; }
  
  /* Analytics widget */
  .analytics-widget { overflow: hidden !important; }

  /* Nav fix */
  .nav__cta { font-size: 12px !important; padding: 6px 12px !important; white-space: nowrap !important; }
  .nav__inner { padding: 0 12px !important; }
  .nav__logo { font-size: 16px !important; }

  /* Hero mobile refinements */
  .hero .container { padding: 0.5rem 1rem !important; }
  .hero h1 { font-size: 1.75rem !important; margin-bottom: 6px !important; line-height: 1.2 !important; }
  .hero h1 span { font-size: 0.9rem !important; margin-top: 8px !important; padding-top: 4px !important; display: block !important; }

  /* Product icon + title row */
  .hero .container > div:first-child > div:first-child {
    gap: 0.75rem !important;
  }
  .hero .container > div:first-child > div:first-child img,
  .hero img[style*="width:72px"] {
    width: 52px !important; height: 52px !important; border-radius: 12px !important;
  }

  /* Description text — full wrap, more breathing room */
  .hero p[style*="max-width:500px"] {
    max-width: 100% !important; font-size: 0.9rem !important; line-height: 1.65 !important; margin-bottom: 1.25rem !important;
  }

  /* Stats row in hero */
  .hero div[style*="display:flex;gap:2rem"] {
    gap: 1rem !important; flex-wrap: wrap !important;
  }
  .hero div[style*="font-size:1.6rem"] {
    font-size: 1.2rem !important;
  }

  /* Includes row — stack vertically */
  .hero div[style*="display:flex;align-items:center;gap:0.5rem;margin-bottom:1.25rem;font-size:12px"] {
    flex-wrap: wrap !important; gap: 4px 8px !important; font-size: 11px !important;
  }
  .hero div[style*="display:flex;align-items:center;gap:0.5rem;margin-bottom:1.25rem;font-size:12px"] > span[style*="margin:0 0.25rem"] {
    display: none !important;
  }

  /* CTAs in hero */
  .hero div[style*="display:flex;gap:1rem"][id="buy"],
  .hero div[style*="display:flex;gap:1rem"]:has(.btn--lg) {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .btn--lg { padding: 12px 20px !important; font-size: 14px !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; }

  /* Price in hero */
  .hero span[style*="font-size:2.75rem"] {
    font-size: 2rem !important;
  }

  /* Review carousel in hero — hide on mobile */
  #heroReviewsWrap { display: none !important; }

  /* Mobile sticky bar fix */
  .mobile-bar { display: block !important; }
  .mobile-bar__inner {
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  .mobile-bar__inner .btn { flex-shrink: 0 !important; white-space: nowrap !important; padding: 10px 20px !important; }

  /* Analytics widget chart */
  .analytics-widget div[style*="height:180px"] {
    height: 120px !important;
  }
  .analytics-widget div[style*="font-size:32px"] {
    font-size: 22px !important;
  }

  /* Section padding */
  .section { padding: 60px 0 !important; }
  .section__title { font-size: 1.5rem; }

  /* Stat cards grid */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Explain grid */
  .explain-grid { gap: 2rem; }
  .explain-number { font-size: 1.5rem !important; }

  /* Cards: What You Get */
  #included div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Total value section */
  div[style*="display:flex;align-items:center;justify-content:center;gap:3rem"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  div[style*="font-size:56px"] { font-size: 36px !important; }
  div[style*="font-size:42px"] { font-size: 24px !important; }
  div[style*="font-size:36px"][style*="font-weight:300"] { display: none !important; }

  /* Comparison table scroll */
  .compare-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-width: 100% !important; }
  .compare-table { min-width: 500px; font-size: 12px; }

  /* Two Ways to Pay → 1 col */
  #licensing div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 3 steps → vertical stack */
  div[style*="grid-template-columns:1fr auto 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr auto 1fr auto 1fr"] > div[style*="font-size:24px"] {
    display: none !important;
  }

  /* Setup grid */
  .setup-grid { gap: 1.5rem; }

  /* Cross-sell */
  .crosssell-grid { gap: 1rem; }

  /* Mobile bar */
  .mobile-bar { display: block; }

  /* Trust bar wrap */
  .trust__row { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }

  /* FAQ */
  .faq-q { font-size: 14px; padding: 14px 16px; }
  .faq-a p { font-size: 13px; }
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
