/* Compare Page Styles */

/*
 * Homepage hides desktop .nav-items until .scrolled. On compare we still want links visible
 * at scroll 0; after that, compare.js uses the same hide-until-400px / show-when-scrolled behavior
 * as homepage.js (see handleCompareScroll).
 */
@media (min-width: 768px) {
  body.page-compare .nav:not(.scrolled) .nav-items {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Slightly larger logo than homepage when scrolled (optional polish) */
  body.page-compare .nav.scrolled .nav-logo {
    height: 2.5rem;
  }
}

/* ── Hero ─────────────────────────────────────────── */
.compare-hero {
  min-height: 100vh;
  box-sizing: border-box;
  padding: max(5.5rem, env(safe-area-inset-top, 0px)) 1.5rem 2.5rem;
  text-align: center;
  background: #030712;
  background-image:
    radial-gradient(at 15% 20%, rgba(199, 31, 13, 0.22) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(250, 204, 21, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 45%, rgba(234, 146, 30, 0.12) 0px, transparent 45%),
    radial-gradient(at 25% 70%, rgba(199, 31, 13, 0.1) 0px, transparent 40%),
    radial-gradient(at 75% 70%, rgba(250, 204, 21, 0.1) 0px, transparent 40%),
    radial-gradient(at 60% 30%, rgba(253, 224, 71, 0.08) 0px, transparent 35%),
    radial-gradient(at 40% 55%, rgba(251, 191, 36, 0.06) 0px, transparent 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.compare-hero-content {
  /* Wider measure so the hero blurb wraps to ~3 lines on desktop */
  max-width: min(52rem, 100%);
  margin: 0 auto;
  width: 100%;
}

.compare-hero-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.compare-hero-image {
  position: relative;
  width: clamp(230px, 32vw, 345px);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(199, 31, 13, 0.25)) drop-shadow(0 4px 15px rgba(234, 179, 8, 0.2));
  animation: compare-hero-gloves-pulse 2.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes compare-hero-gloves-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-hero-image {
    animation: none;
  }
}

.compare-hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 auto 1rem;
}

.compare-hero-logo {
  height: clamp(22px, 4vw, 30px);
  width: auto;
  display: block;
}

.compare-hero-logo--vidday {
  height: clamp(20px, 3.6vw, 28px);
}

.compare-hero-vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.compare-hero-title {
  font-family: 'Newsreader', serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: min(52rem, 100%);
  text-align: center;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
}

@media (min-width: 769px) {
  .compare-hero-image {
    width: clamp(200px, 26vw, 300px);
  }

  .compare-hero-title {
    font-size: 2.875rem;
  }
}

.compare-hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.compare-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.compare-hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.compare-hero-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 1px;
}

.compare-hero-rating strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* ── Shared ────────────────────────────────────────── */
.compare-container {
  max-width: 1125px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.page-compare .compare-container {
  max-width: 1200px;
}

.compare-section-title {
  font-family: 'Newsreader', serif;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.75rem;
}

.compare-section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Verdict intro: wider measure so the paragraph doesn’t feel cramped */
.compare-value-props .compare-section-subtitle {
  max-width: 52rem;
}

/* Uppercase labels above section headlines (compare page) — button red, tight to heading */
body.page-compare .compare-section-eyebrow {
  display: block;
  text-align: center;
  font-family: 'Roboto Flex', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c71f0d;
  margin: 0 auto 0.35rem;
}

body.page-compare .compare-section-eyebrow--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.35rem;
}

/* ── Buttons ──────────────────────────────────────── */
.compare-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.compare-btn-primary {
  background: linear-gradient(135deg, #c71f0d 0%, #d62916 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(199, 31, 13, 0.3);
}

.compare-btn-primary:hover {
  background: linear-gradient(135deg, #a01808 0%, #c71f0d 100%);
  box-shadow: 0 6px 20px rgba(199, 31, 13, 0.4);
  transform: translateY(-1px);
}

.compare-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.compare-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Value Props / Side-by-side (soft orbs — cousin to .compare-invitations, cooler / flipped) ─ */
.compare-value-props {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: #eef1f7;
  background-image:
    radial-gradient(ellipse 68% 52% at 90% 18%, rgba(99, 102, 241, 0.1) 0%, transparent 56%),
    radial-gradient(ellipse 58% 48% at 10% 82%, rgba(199, 31, 13, 0.09) 0%, transparent 54%),
    radial-gradient(ellipse 48% 44% at 42% 38%, rgba(45, 212, 191, 0.06) 0%, transparent 52%),
    linear-gradient(198deg, #fafbfe 0%, #eceff6 42%, #f4f6fb 100%);
}

.compare-value-props .compare-container {
  position: relative;
  z-index: 1;
}

/* Lead block: slightly wider tracking; same size as other eyebrows */
.compare-value-props .compare-section-eyebrow--lead {
  letter-spacing: 0.14em;
  font-size: inherit;
  margin-bottom: 0.35rem;
}

.compare-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1125px;
  margin: 0 auto;
}

.compare-side-col {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
}

.compare-side-header {
  text-align: center;
  padding-bottom: 1.75rem;
  margin: 0 -2.5rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.compare-side-logo {
  height: 38px;
}

.compare-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-side-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 0;
}

.compare-side-list li:last-child {
  padding-bottom: 0;
}

.compare-side-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.compare-side-star {
  width: 100%;
  height: 100%;
}

/* Verdict sparkles: VidDay column — soft gray (reference-style “disabled”) */
.compare-side-icon-muted {
  color: #a3aecc;
}

.compare-side-icon-muted .compare-side-star path {
  fill: currentColor;
}

/* Verdict sparkles: Tribute column — brand fill */
.compare-side-icon-accent {
  color: #c71f0d;
}

.compare-side-icon-accent .compare-side-star path {
  fill: currentColor;
}

.compare-side-icon-warn {
  color: #ef4444;
}

.compare-side-icon-neutral {
  color: #9ca3af;
}

.compare-side-meta {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #030712;
}

.compare-side-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* Glass + brand red → amber/yellow (aligned with hero / table accents) */
.compare-side-pill--winner {
  color: #7f1d1d;
  /* Readable on white cards — warm stroke + inner glass rim */
  border: 1px solid rgba(199, 31, 13, 0.38);
  background: linear-gradient(
    125deg,
    rgba(199, 31, 13, 0.22) 0%,
    rgba(234, 88, 12, 0.14) 38%,
    rgba(253, 224, 71, 0.2) 72%,
    rgba(254, 249, 195, 0.26) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(199, 31, 13, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 2px 12px rgba(199, 31, 13, 0.12);
}

.compare-side-pill--competitor {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

.compare-side-pricing {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.compare-side-pricing strong {
  color: #030712;
}

.compare-blocks-stack .compare-blocks-grid + .compare-blocks-grid {
  margin-top: 1.25rem;
}

.compare-side-list strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #030712;
  margin-bottom: 0.3rem;
}

.compare-side-list p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* VidDay column: de-emphasized — regular weight, semi-transparent text */
.compare-side-vidday .compare-side-list strong {
  font-weight: 400;
  color: rgba(3, 7, 18, 0.52);
}

.compare-side-vidday .compare-side-icon {
  opacity: 0.55;
}

.compare-side-vidday .compare-side-pricing {
  color: rgba(55, 65, 81, 0.55);
}

.compare-side-vidday .compare-side-pricing strong {
  font-weight: 400;
  color: rgba(3, 7, 18, 0.52);
}

/* ── Feature highlight blocks (section: clean white; cards keep soft gradient glass) ─ */
.compare-features-blocks {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: #ffffff;
}

.compare-features-blocks .compare-container {
  position: relative;
  z-index: 1;
}

/* One 3-column grid: top row = Video Book (span 2) + theme (col 3); bottom row = three equal cards — right edges align */
.compare-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.compare-block-wide {
  grid-column: span 2;
}

.compare-block {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
}

.compare-block-wide .compare-block-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); /* 60% content / 40% image */
  align-items: stretch;
  min-height: 0;
}

.compare-block-wide .compare-block-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Wide card: copy top, CTA bottom (matches tall image column) */
.compare-block-wide .compare-block-text--cta-bottom {
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  /* Match bottom inset to top (1.75rem) — overrides .compare-block-text 1rem bottom */
  padding: 1.75rem;
}

.compare-block-wide .compare-block-text--cta-bottom .compare-block-text-lead {
  flex-shrink: 0;
}

.compare-block-wide .compare-block-text--cta-bottom .compare-block-cta-btn {
  flex-shrink: 0;
  margin-top: auto;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.compare-block-wide .compare-block-text--cta-bottom .compare-block-cta-btn:hover {
  background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.compare-block-wide .compare-block-img {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.compare-block-text {
  padding: 1.75rem 1.75rem 1rem;
}

.compare-block-text h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #030712;
  margin-bottom: 0.5rem;
}

.compare-block-text p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
}

.compare-block-img {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
  display: flex;
}

.compare-block-img .compare-placeholder-img {
  width: 100%;
  min-height: 160px;
  border-radius: 8px;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.compare-block-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.compare-block-photo--sharp {
  border-radius: 0;
}

.compare-block-wide .compare-block-img--photo {
  align-self: stretch;
}

.compare-block-wide .compare-block-img--photo .compare-block-photo {
  min-height: 0;
  max-height: min(320px, 50vh);
}

/* Standard cards: theme / product shots — cap height so the grid stays balanced */
.compare-block:not(.compare-block-wide) .compare-block-img--photo .compare-block-photo {
  max-height: min(280px, 42vh);
  object-fit: contain;
  object-position: top center;
}

/* ── Comparison Table — dark layout (orb stack aligned with homepage / pricing hero) ─ */
.compare-table-section {
  padding: 6rem 0;
  background-color: #030712;
  background-image:
    radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 40% 80%, rgba(251, 191, 36, 0.12) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(252, 211, 77, 0.08) 0px, transparent 45%),
    radial-gradient(at 70% 45%, rgba(59, 130, 246, 0.1) 0px, transparent 48%),
    radial-gradient(at 15% 65%, rgba(251, 191, 36, 0.07) 0px, transparent 46%);
}

.compare-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: 3rem;
  align-items: start;
}

.compare-table-left {
  position: sticky;
  top: 136px;
}

.compare-table-headline {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 2.9vw, 2.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
}

/* Soft red → amber/yellow gradient on accent (lighter stops for dark section) */
.compare-table-headline-accent {
  display: inline;
  background: linear-gradient(
    120deg,
    #fecdd3 0%,
    #fbc9a8 28%,
    #fde0a8 55%,
    #fef3d1 82%,
    #fefce8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.compare-table-left-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

/* Press logos below comparison table — centered band, no label / divider */
.compare-table-press--after-table {
  margin-top: 5.75rem;
  padding-top: 0;
  border-top: none;
  max-width: min(46rem, 92%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.compare-table-press--after-table .compare-table-press-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.15rem, 4.75vw, 3.25rem);
  width: 100%;
  margin: 0;
  padding: 0;
  opacity: 0.55;
}

.compare-table-press--after-table .compare-table-press-logos img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(16px, 2.2vw, 26px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}

.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.compare-table th,
.compare-table td {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.compare-table-feature-header {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 40%;
  text-align: left;
}

.compare-table-brand-header {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  width: 30%;
  text-align: center;
}

.compare-table-brand-header .compare-table-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.compare-table-logo {
  height: 18px;
}

.compare-table-competitor {
  color: #ffffff;
  font-size: 1rem;
}

.compare-table td:first-child {
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  text-align: center;
  font-weight: 500;
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Flex on inner wrapper — never on <td>, or table column layout breaks */
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
  vertical-align: middle;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
}

.compare-table-cell-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.compare-table-cell-inner .compare-table-icon {
  flex-shrink: 0;
}

/* Muted vs neon — easier on dark glass */
.compare-check {
  color: #7dd3a8;
}

.compare-cross {
  color: #e8a09d;
}

.compare-table-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.compare-partial {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.compare-neutral {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600 !important;
}

.compare-coming-soon {
  text-align: center;
  vertical-align: middle;
}

.compare-soon-pill {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: 9999px;
  background: #ffffff;
  color: #030712;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
}

/* ── Differentiator scroll section (sticky headings + scroll-linked panels) ─ */
.compare-differentiators {
  padding: 6rem 0;
  background: #ffffff;
}

.compare-diff-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-diff-scroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.compare-diff-nav {
  position: sticky;
  /* Keep the heading stack roughly vertically centered in the viewport */
  top: calc(50svh - 11rem);
  top: calc(50vh - 11rem);
  padding-right: 0.5rem;
}

.compare-diff-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-diff-nav-list li {
  border-bottom: 1px solid #e5e7eb;
}

.compare-diff-nav-list li:last-child {
  border-bottom: none;
}

.compare-diff-nav-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1.1rem 0.35rem 1.1rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Newsreader', serif;
  font-size: clamp(1.45rem, 2.55vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: #9ca3af;
  transition: color 0.25s ease, transform 0.2s ease;
  border-radius: 2px;
}

.compare-diff-nav-item:hover {
  color: #6b7280;
}

.compare-diff-nav-item:focus-visible {
  outline: 2px solid #c71f0d;
  outline-offset: 3px;
}

.compare-diff-nav-item.is-active {
  color: #030712;
}

.compare-diff-panels {
  min-width: 0;
}

.compare-diff-step {
  position: relative;
  scroll-margin-top: clamp(5rem, 14vh, 8rem);
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  box-sizing: border-box;
}

.compare-diff-step:last-child {
  padding-bottom: 2rem;
}

.compare-diff-step .compare-section-eyebrow {
  margin: 0 0 0.5rem;
}

.compare-diff-step-heading {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.05rem, 4.35vw, 2.95rem);
  font-weight: 500;
  line-height: 1.12;
  color: #030712;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.compare-diff-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1rem;
}

.compare-diff-text p:last-child {
  margin-bottom: 0;
}

/* Bold / strong in body copy: use heading ink (#030712), not muted paragraph gray */
body.page-compare .compare-diff-text p strong,
body.page-compare .compare-diff-text p b,
body.page-compare .compare-block-text p strong,
body.page-compare .compare-block-text p b,
body.page-compare .compare-section-subtitle strong,
body.page-compare .compare-section-subtitle b,
body.page-compare .compare-faq-answer strong,
body.page-compare .compare-faq-answer b,
body.page-compare .compare-invite-card p strong,
body.page-compare .compare-invite-card p b {
  color: #030712;
}

.compare-diff-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #c71f0d;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.compare-diff-link:hover {
  color: #a01808;
}

.compare-diff-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  background: #030712;
  color: #ffffff;
  font-family: 'Roboto Flex', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.compare-diff-btn:hover {
  background: #1f2937;
  color: #ffffff;
}

.compare-placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf1 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
}

.compare-placeholder-img span {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .compare-diff-scroll-layout {
    grid-template-columns: 1fr;
  }

  .compare-diff-nav {
    display: none;
  }

  /* Equal space above & below each divider (border sits between matching padding) */
  .compare-diff-step {
    min-height: 0;
    padding: 1.375rem 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .compare-diff-step:first-child {
    padding-top: 0;
  }

  .compare-diff-step:last-child {
    min-height: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .compare-diff-step-heading {
    margin-bottom: 0.75rem;
    font-size: 1.65rem;
    max-width: none;
  }
}

/* ── Invitation Grid (soft orbs + glass cards) ─────── */
.compare-invitations {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: #eef0f7;
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 15%, rgba(199, 31, 13, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 78%, rgba(251, 191, 36, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 50% 45% at 48% 42%, rgba(129, 140, 248, 0.08) 0%, transparent 55%),
    linear-gradient(165deg, #f8f9fd 0%, #eef1f8 45%, #f1f3f9 100%);
}

.compare-invitations .compare-container {
  position: relative;
  z-index: 1;
}

.compare-invite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.compare-invite-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 24px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compare-invite-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 40px rgba(199, 31, 13, 0.08),
    0 8px 24px rgba(15, 23, 42, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .compare-invite-card {
    transition: none;
  }

  .compare-invite-card:hover {
    transform: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .compare-invite-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
  }
}

/* Same glass + gradient surface as .compare-side-pill--winner (verdict column) */
.compare-invite-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  color: #7f1d1d;
  border: 1px solid rgba(199, 31, 13, 0.38);
  background: linear-gradient(
    125deg,
    rgba(199, 31, 13, 0.22) 0%,
    rgba(234, 88, 12, 0.14) 38%,
    rgba(253, 224, 71, 0.2) 72%,
    rgba(254, 249, 195, 0.26) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(199, 31, 13, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 2px 12px rgba(199, 31, 13, 0.12);
  margin-bottom: 1rem;
}

.compare-invite-icon svg {
  display: block;
  flex-shrink: 0;
}

.compare-invite-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #030712;
}

.compare-invite-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── FAQ (flat grid, compare page) — dark band ─────── */
body.page-compare .compare-faq {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  background-color: #030712;
  background-image:
    radial-gradient(at 18% 12%, rgba(199, 31, 13, 0.14) 0px, transparent 48%),
    radial-gradient(at 82% 88%, rgba(251, 191, 36, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 40%, rgba(59, 130, 246, 0.06) 0px, transparent 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-compare .compare-faq-inner {
  max-width: 1320px;
  margin: 0 auto;
}

body.page-compare .compare-faq-header {
  text-align: center;
  max-width: min(52rem, 100%);
  margin: 0 auto 3.5rem;
}

body.page-compare .compare-faq-header .compare-section-eyebrow {
  margin-bottom: 0.35rem;
}

body.page-compare .compare-faq-title {
  margin: 0 0 1rem;
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  color: #f8fafc;
}

body.page-compare .compare-faq-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
}

body.page-compare .compare-faq-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.15em;
}

body.page-compare .compare-faq-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

body.page-compare .compare-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2.25rem;
  align-items: start;
}

body.page-compare .compare-faq-item {
  margin: 0;
}

body.page-compare .compare-faq-question {
  margin: 0 0 0.65rem;
  font-family: 'Roboto Flex', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
}

body.page-compare .compare-faq-answer {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
}

body.page-compare .compare-faq .compare-faq-answer strong,
body.page-compare .compare-faq .compare-faq-answer b {
  color: #f1f5f9;
}

@media (max-width: 900px) {
  body.page-compare .compare-faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2rem;
  }
}

@media (max-width: 560px) {
  body.page-compare .compare-faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body.page-compare .compare-faq-header {
    margin-bottom: 2.5rem;
  }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .compare-blocks-grid {
    grid-template-columns: 1fr;
  }

  .compare-block-wide {
    grid-column: span 1;
  }

  .compare-block-wide .compare-block-inner {
    grid-template-columns: 1fr;
  }

  .compare-block-wide .compare-block-img {
    padding: 0 1.5rem 1.5rem;
  }

}

@media (max-width: 768px) {
  .compare-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(4.75rem, env(safe-area-inset-top, 0px)) 1.25rem 1.5rem;
  }

  .compare-hero-image {
    width: min(78vw, 255px);
  }

  .compare-hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .compare-hero-subtitle {
    font-size: 1rem;
  }

  /* Less vertical air between major bands on phone */
  .compare-value-props,
  .compare-features-blocks,
  .compare-table-section,
  .compare-differentiators,
  .compare-invitations {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  body.page-compare .compare-faq {
    padding: clamp(2.5rem, 7vw, 3.25rem) clamp(1.25rem, 4vw, 2rem);
  }

  body.page-compare .compare-faq-header {
    margin-bottom: 2.25rem;
  }

  body.page-compare .compare-faq-title {
    line-height: 1.15;
  }

  .compare-section-subtitle {
    margin-bottom: 2rem;
  }

  .compare-side-by-side {
    grid-template-columns: 1fr;
  }

  .compare-side-col {
    padding: 1.75rem;
  }

  /* Match negative margin to column padding so border-bottom stays flush with card edges */
  .compare-side-header {
    margin: 0 -1.75rem 1.25rem;
  }

  .compare-blocks-grid {
    grid-template-columns: 1fr;
  }

  .compare-block-wide {
    grid-column: span 1;
  }

  .compare-invite-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-section-title {
    font-size: 1.9375rem;
    line-height: 1.15;
  }

  .compare-diff-step-heading {
    font-size: 1.6rem;
    line-height: 1.15;
  }

  .compare-table-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .compare-table-left {
    position: static;
    text-align: center;
  }

  .compare-table-headline {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.18;
  }

  .compare-table-wrapper {
    margin: 0 -1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .compare-block-wide .compare-block-text--cta-bottom .compare-block-cta-btn {
    display: none;
  }

  .compare-table-press--after-table {
    display: none;
  }
}

@media (max-width: 480px) {
  .compare-hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .compare-value-props,
  .compare-features-blocks,
  .compare-table-section,
  .compare-differentiators,
  .compare-invitations {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  body.page-compare .compare-faq {
    padding: 2.25rem 1.25rem;
  }

  .compare-section-title {
    line-height: 1.12;
  }

  .compare-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .compare-btn {
    width: 100%;
    text-align: center;
  }

  .compare-invite-grid {
    grid-template-columns: 1fr;
  }
}
