/* =============================================
   IBM PLEX SANS IMPORT
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
  --white: #ffffff;
  --surface: #f5f5f5;
  --ink: #1f1f1f;
  --ink-muted: #555555;
  --ink-faint: #888888;
  --border: rgba(31, 31, 31, 0.15);
  --border-strong: rgba(31, 31, 31, 0.4);
  --primary: #1f1f1f;
  --primary-hover: #3a3a3a;
  --accent: #2c6fad;
  --accent-hover: #1d5490;
  --radius: 4px;
  --rail-width: 260px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Elevation shadows - 4 levels */
  --shadow-sm: 0 1px 3px rgba(31,31,31,0.08), 0 1px 2px rgba(31,31,31,0.06);
  --shadow-md: 0 4px 12px rgba(31,31,31,0.10), 0 2px 6px rgba(31,31,31,0.06);
  --shadow-lg: 0 8px 24px rgba(31,31,31,0.12), 0 4px 10px rgba(31,31,31,0.08);
  --shadow-xl: 0 16px 48px rgba(31,31,31,0.16), 0 8px 20px rgba(31,31,31,0.10);
}

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

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-hover); }

ul, ol { padding-left: 1.25rem; }

/* =============================================
   ELEVATION CLASSES
   ============================================= */
.elevation-1 { box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.elevation-2 { box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.elevation-3 { box-shadow: var(--shadow-lg); position: relative; z-index: 3; }
.elevation-4 { box-shadow: var(--shadow-xl); position: relative; z-index: 4; }

/* =============================================
   SITE SHELL (fixed left rail)
   ============================================= */
.site-shell {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   RAIL HEADER (top bar on mobile, left rail on desktop)
   ============================================= */
.rail-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-mark {
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* NAV TOGGLE */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HEADER CTA BUTTONS */
.rail-cta-group {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.875rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.cta-signup {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--white);
}
.cta-signup:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}

.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.cta-login:hover {
  border-color: var(--white);
  color: var(--white);
}

/* =============================================
   LEFT RAIL NAV (desktop)
   ============================================= */
.rail-nav {
  position: fixed;
  top: 64px;
  left: 0;
  width: var(--rail-width);
  height: calc(100vh - 64px);
  background: var(--ink);
  padding: 1.5rem 0;
  overflow-y: auto;
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.rail-nav.is-open {
  transform: translateX(0);
}

.rail-nav-list {
  list-style: none;
  padding: 0;
}

.rail-nav-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  padding: 0 1.25rem 0.75rem;
}

.rail-nav-list dd {
  margin: 0;
}

.rail-nav-list dd a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: 44px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.rail-nav-list dd a:hover,
.rail-nav-list dd a[aria-current="page"] {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--white);
}

/* =============================================
   PAGE CANVAS
   ============================================= */
.page-canvas {
  flex: 1;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
  background: var(--surface);
}

/* Desktop: shift canvas right when rail is open */
@media (min-width: 1024px) {
  .rail-nav {
    transform: translateX(0);
  }
  .nav-toggle {
    display: none;
  }
  .page-canvas {
    margin-left: var(--rail-width);
  }
  .rail-header {
    width: var(--rail-width);
    position: fixed;
    top: 0;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem 1.25rem 1.5rem;
    gap: 0;
  }
  .rail-brand {
    margin-bottom: 2rem;
    width: 100%;
  }
  .brand-name {
    max-width: none;
    font-size: 1rem;
  }
  .rail-cta-group {
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    padding-bottom: 1rem;
  }
  .cta {
    width: 100%;
    justify-content: center;
  }
  .rail-nav {
    top: 0;
    left: var(--rail-width);
    width: 0;
    display: none;
  }
}

/* Simpler desktop approach - rail-header IS the left rail */
@media (min-width: 1024px) {
  .site-shell {
    flex-direction: row;
  }
  .rail-header {
    width: var(--rail-width);
    min-height: 100vh;
    height: auto;
    right: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
  }
  .brand-name {
    font-size: 0.9375rem;
    max-width: 160px;
    white-space: normal;
    line-height: 1.3;
  }
  .nav-toggle { display: none; }
  .rail-nav {
    display: block;
    transform: translateX(0);
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-width);
    height: 100vh;
    padding-top: 220px;
    z-index: 100;
    box-shadow: none;
  }
  .rail-cta-group {
    flex-direction: column;
    width: 100%;
    position: absolute;
    bottom: 2rem;
    left: 0;
    padding: 0 1.5rem;
    gap: 0.5rem;
  }
  .page-canvas {
    margin-left: var(--rail-width);
    margin-top: 0;
    width: calc(100% - var(--rail-width));
  }
}

/* =============================================
   INNER CANVAS (non-home pages)
   ============================================= */
.inner-canvas {}

/* =============================================
   HERO (home)
   ============================================= */
.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,31,31,0.85) 0%, rgba(31,31,31,0.4) 100%);
  z-index: 1;
}

.hero-bg-numeral {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 3rem 2.5rem 3rem;
  max-width: 680px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  margin: 2rem 2rem 3rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--white);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--surface);
  color: var(--ink);
}

/* =============================================
   INNER HERO (non-home)
   ============================================= */
.inner-hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 3rem 2.5rem 2.5rem;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.inner-hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.inner-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.inner-hero-copy h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.ranking-hero,
.faq-hero,
.compare-hero,
.about-hero,
.privacy-hero {
  min-height: 220px;
}

.compare-tag,
.faq-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--white); }

/* =============================================
   REVIEW HERO
   ============================================= */
.review-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.review-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.review-hero-media .review-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.review-hero-copy {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 760px;
}

.review-hero-copy h1 {
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.review-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* =============================================
   LAYOUT WITH ASIDE
   ============================================= */
.layout-with-aside {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: flex-start;
}

.content-aside {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-right: 2rem;
  z-index: 2;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.aside-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.aside-toc,
.aside-links {
  list-style: none;
  padding: 0;
}

.aside-toc li + li,
.aside-links li + li {
  margin-top: 0.25rem;
}

.aside-toc a,
.aside-links a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.625rem;
  min-height: 36px;
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.aside-toc a:hover,
.aside-links a:hover {
  border-left-color: var(--accent);
  color: var(--accent-hover);
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* =============================================
   ARTICLE / SECTION STRUCTURE
   ============================================= */
.content-article {}
.prose-section {}

.prose-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  position: relative;
  z-index: 1;
}

.prose-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.35;
}

.prose-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose-body ul,
.prose-body ol {
  margin-bottom: 1rem;
}

.prose-body li {
  margin-bottom: 0.375rem;
}

.prose-body a {
  color: var(--accent);
  text-decoration: underline;
}

.prose-body strong { font-weight: 600; }

.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.prose-body th {
  background: var(--surface);
  font-weight: 600;
  padding: 0.625rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

.prose-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.prose-body tr:nth-child(even) td {
  background: rgba(245,245,245,0.5);
}

/* =============================================
   BYLINE
   ============================================= */
.byline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.625rem;
  font-weight: 400;
}

.byline time {
  color: rgba(255,255,255,0.75);
}

/* =============================================
   STAGE CHIP
   ============================================= */
.stage-chip {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  margin-bottom: 0.625rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-strong);
}

/* =============================================
   CHILD CARDS (home)
   ============================================= */
.cards-section {
  margin-top: 2rem;
}

.child-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.child-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.child-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.child-card-inner {
  padding: 1.5rem;
}

.card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.child-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.child-card-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.child-card-date {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1px;
  min-height: 44px;
  line-height: 1;
}

.card-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =============================================
   RANKING TABLE
   ============================================= */
.ranking-section {
  margin-top: 2rem;
}

.ranking-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ranking-table thead th {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.ranking-table tbody tr:hover {
  background: rgba(245,245,245,0.7);
}

.ranking-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.rank-num { width: 60px; }
.rank-date { white-space: nowrap; font-size: 0.8125rem; color: var(--ink-muted); }
.rank-action { white-space: nowrap; }

/* =============================================
   FAQ STYLES
   ============================================= */
.faq-body :is(h2, h3) {
  margin-top: 2rem;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 1.5rem;
}

.author-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.author-card {}

.author-meta {
  margin-bottom: 0.75rem;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-style: italic;
}

.author-bio {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.65;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  color: var(--white);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  padding: 3rem 2.5rem 2rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.footer-col dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col dd {
  margin: 0;
}

.footer-col dd a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.3rem 0;
  min-height: 44px;
  transition: color 0.15s;
  line-height: 1.35;
}

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

.footer-rg {
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 2.5rem;
}

.footer-rg p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 800px;
}

.footer-bottom {
  padding: 0.875rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   HOME MAIN CONTENT
   ============================================= */
.main-content .content-article .prose-section,
.main-content .content-article .cards-section {
  max-width: 900px;
  margin: 0 auto;
}

/* For home layout (no aside) */
.main-content {
  padding: 0;
}

/* =============================================
   HOME PAGE SPECIFIC
   ============================================= */
.hero-home + .main-content,
.hero ~ .main-content {
  padding: 2.5rem 2rem;
}

/* =============================================
   PARALLAX (CSS-only hint; JS does the real work)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-img {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .child-card,
  .cta,
  .btn-primary,
  .rail-nav,
  .toggle-bar {
    transition: none !important;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet / small desktop */
@media (max-width: 1023px) {
  .page-canvas {
    margin-left: 0;
    margin-top: 64px;
  }
  .rail-nav {
    top: 64px;
    height: calc(100vh - 64px);
    left: 0;
  }
  .layout-with-aside {
    flex-direction: column;
  }
  .content-aside {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .aside-card {
    flex: 1 1 200px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .rail-header {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 0.75rem;
    max-width: 90px;
  }
  .cta {
    font-size: 0.75rem;
    padding: 0 0.625rem;
    min-height: 44px;
  }
  .rail-cta-group {
    gap: 0.375rem;
  }
  .hero {
    min-height: 55vh;
  }
  .hero-copy {
    margin: 1rem;
    padding: 1.5rem;
  }
  .hero-copy h1 {
    font-size: 1.5rem;
  }
  .layout-with-aside {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .content-aside {
    flex-direction: column;
  }
  .aside-card {
    padding: 1rem;
  }
  .prose-body {
    padding: 1.25rem 1rem;
  }
  .prose-body h2 {
    font-size: 1.1875rem;
  }
  .inner-hero,
  .ranking-hero,
  .faq-hero,
  .compare-hero,
  .about-hero,
  .privacy-hero {
    padding: 2rem 1rem 1.5rem;
    min-height: 150px;
  }
  .inner-hero-copy h1 {
    font-size: 1.375rem;
  }
  .review-hero-copy {
    padding: 1.5rem 1rem;
  }
  .review-hero-copy h1 {
    font-size: 1.25rem;
  }
  .footer-inner {
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem;
  }
  .footer-rg,
  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .child-card-grid {
    grid-template-columns: 1fr;
  }
  .author-section {
    padding: 1.25rem 1rem;
  }
  .ranking-table {
    font-size: 0.875rem;
  }
  .ranking-table td,
  .ranking-table th {
    padding: 0.625rem 0.75rem;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  body { font-size: 16px; }
  .rail-cta-group { gap: 0.25rem; }
  .cta { padding: 0 0.5rem; font-size: 0.6875rem; }
  .brand-name { max-width: 70px; font-size: 0.6875rem; }
}

/* =============================================
   HEADING DECORATION SPANS
   Content headings that use <span> inside h2/h3
   ============================================= */
.section-heading > span,
.aside-heading > span,
.author-heading > span {
  display: inline;
}

/* Decorative rule under section headings */
.section-heading > span::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--ink);
  margin-top: 0.375rem;
  border-radius: 1px;
}

/* =============================================
   RAIL NAV OVERLAY (mobile backdrop)
   ============================================= */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(31,31,31,0.5);
  z-index: 140;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.is-visible {
  display: block;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}