/* HomePivot — shared design system (warm editorial palette) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primary ink: deep burgundy / aubergine */
  --ink-900: #2e1128;
  --ink-800: #3a1632;
  --ink-700: #4a1d3f;
  --ink-600: #632951;
  --ink-500: #7e3868;

  /* Accent: warm coral / terracotta */
  --coral-600: #c5563a;
  --coral-500: #e26a4a;
  --coral-400: #ef8a6a;
  --coral-100: #fce8df;
  --coral-50: #fdf4ef;

  /* Gold highlight */
  --gold-700: #a07030;
  --gold-600: #c89660;
  --gold-500: #d9af7a;
  --gold-100: #f5e8d4;

  /* Legacy aliases (kept so untouched pages still render while we migrate) */
  --blue-900: #2e1128;
  --blue-800: #3a1632;
  --blue-700: #4a1d3f;
  --blue-600: #632951;
  --blue-500: #c5563a;
  --blue-100: #fce8df;
  --blue-50: #fdf4ef;
  --green-600: #3d6b4a;
  --green-500: #4a8058;
  --green-50: #eef3ef;
  --amber-500: #c89660;
  --amber-50: #f5e8d4;
  --red-500: #a03822;
  --red-50: #fbe8e0;

  /* Warm editorial neutrals */
  --cream: #f8f3ea;
  --cream-deep: #f1e9d8;
  --sand: #f8f3ea;
  --warm-gray: #f1e9d8;
  --text-900: #1a1014;
  --text-700: #4a3a3f;
  --text-500: #7a6455;
  --text-400: #a3907f;
  --white: #ffffff;
  --border: #e7dcc9;
  --border-light: #f1e9d8;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(74,29,63,0.05);
  --shadow-md: 0 6px 18px rgba(74,29,63,0.08);
  --shadow-lg: 0 18px 48px rgba(74,29,63,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, p, li, td, th, dt, dd { overflow-wrap: break-word; word-wrap: break-word; }

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,243,234,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner .logo { text-decoration: none; display: inline-flex; align-items: center; }
.nav-inner .logo img { height: 62px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--coral-600); }
.nav-links a.active { color: var(--coral-600); font-weight: 700; }

.nav-links .btn-primary { color: var(--white); }
.nav-links .btn-primary:hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0.7rem 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.btn-primary { background: var(--coral-500); color: var(--white); }
.btn-primary:hover { background: var(--coral-600); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--ink-700);
  border: 1.5px solid var(--ink-700);
}
.btn-outline:hover { background: var(--ink-700); color: var(--white); }

.btn-lg { padding: 0.95rem 2rem; font-size: 0.95rem; }

.btn-white { background: var(--white); color: var(--ink-700); }
.btn-white:hover { background: var(--cream-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--ink-700); color: var(--white); }
.btn-dark:hover { background: var(--ink-800); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink-700);
  cursor: pointer;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--cream-deep);
  color: var(--ink-900);
  padding: 9rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::after {
  content: none;
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-500);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--coral-600);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--text-400); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 1.25rem;
  padding: 0;
  background: transparent;
  border-left: 3px solid var(--coral-500);
  padding-left: 0.85rem;
}

.page-header h1 {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 900px;
  color: var(--ink-900);
}

.page-header .lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-700);
  max-width: 720px;
}

.page-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-500);
  letter-spacing: 0.03em;
  border-top: 1px dashed var(--border);
  padding-top: 1.25rem;
}

.page-meta span::before { content: ''; }
.page-meta span:not(:first-child)::before { content: '·'; margin-right: 1rem; color: var(--text-400); }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }

.container { max-width: 1220px; margin: 0 auto; }
.container-narrow { max-width: 860px; margin: 0 auto; }

.section-header {
  text-align: left;
  max-width: 760px;
  margin: 0 0 3rem;
  border-left: 3px solid var(--coral-500);
  padding-left: 1.5rem;
}

.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; border-left: 0; padding-left: 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 0.85rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

h2 {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-700);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── PROSE ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.9rem; margin: 3rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; color: var(--ink-900); font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--text-700); }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose strong { color: var(--ink-900); }
.prose a { color: var(--coral-600); text-decoration: underline; text-decoration-color: var(--coral-100); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--coral-500); }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--coral-500);
  background: var(--coral-50);
  color: var(--ink-800);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
}
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px dashed var(--border); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--cream-deep); color: var(--ink-900); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.prose td { color: var(--text-700); }

/* ── CARDS / GRIDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-400);
}

.card .eyebrow-sm {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--text-500); line-height: 1.6; margin: 0; }

.card-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--text-400);
  display: flex;
  gap: 1rem;
}

/* ── REVIEW CARDS ── */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

a.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-400);
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding-right: 3.5rem;
}

.brand-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-700);
  color: var(--white);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card-head .name { font-weight: 700; color: var(--ink-900); font-size: 1rem; }
.review-card-head .tag { font-size: 0.76rem; color: var(--text-500); letter-spacing: 0.05em; text-transform: uppercase; }

.review-score {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1.7rem;
  color: var(--coral-600);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.review-score::after { content: ''; display: block; height: 2px; width: 22px; background: var(--coral-500); margin: 0.15rem auto 0; }
.review-score.mid { color: var(--gold-700); }
.review-score.low { color: var(--text-500); }
.review-score.mid::after { background: var(--gold-600); }
.review-score.low::after { background: var(--text-400); }

.review-card .body { font-size: 0.92rem; color: var(--text-700); line-height: 1.65; margin: 0.5rem 0 1rem; }

.review-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
}

.review-stats b { display: block; color: var(--ink-900); font-size: 1rem; font-family: 'Source Serif 4', 'Georgia', serif; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.01em; text-transform: none; }

/* ── TABLES ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.data-table thead th {
  background: var(--ink-900);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

.data-table tr.featured td { background: var(--coral-50); border-left: 3px solid var(--coral-500); }
.data-table tr.featured td:first-child { border-left: 3px solid var(--coral-500); }

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--coral-100);
  color: var(--coral-600);
  font-family: 'Source Serif 4', 'Georgia', serif;
}

.score-pill.mid { background: var(--gold-100); color: var(--gold-700); }
.score-pill.low { background: var(--cream-deep); color: var(--text-500); }

/* ── BOXES / CALLOUTS ── */
.callout {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  border-left: 4px solid;
  background: var(--cream);
}
.callout.warning { background: var(--gold-100); border-color: var(--gold-600); color: #5a3f1a; }
.callout.info { background: var(--coral-50); border-color: var(--coral-500); color: var(--ink-800); }
.callout.note { background: var(--cream-deep); border-color: var(--text-500); color: var(--ink-900); }
.callout strong { display: block; margin-bottom: 0.35rem; color: var(--ink-900); letter-spacing: -0.01em; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.pros-cons > div {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pros-cons .pros { background: var(--coral-50); border-color: var(--coral-100); }
.pros-cons .cons { background: var(--cream-deep); border-color: var(--border); }

.pros-cons h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.pros h4 { color: var(--coral-600); }
.cons h4 { color: var(--gold-700); }

.pros-cons ul { margin: 0; padding-left: 1.1rem; }
.pros-cons li { font-size: 0.92rem; margin-bottom: 0.5rem; color: var(--text-700); line-height: 1.55; }

/* ── BG VARIANTS ── */
.bg-sand { background: var(--cream); }
.bg-warm { background: var(--cream-deep); }
.bg-blue { background: var(--ink-900); color: var(--cream); }
.bg-blue h2 { color: var(--cream); }
.bg-blue p { color: rgba(248,243,234,0.8); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--ink-900);
  color: rgba(248,243,234,0.7);
  padding: 4.5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo img { height: 76px; }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(248,243,234,0.6);
  margin: 1.25rem 0 1rem;
  max-width: 320px;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-style: italic;
}

.footer-col h4 {
  color: var(--coral-400);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.15rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: rgba(248,243,234,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--coral-400); }

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(248,243,234,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: rgba(248,243,234,0.5);
}

.footer-bottom a { color: rgba(248,243,234,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--coral-400); }

.footer-bottom p { line-height: 1.7; max-width: 760px; }
.footer-bottom .copyright { margin-top: 1rem; }

.disclaimer-full {
  font-size: 0.75rem;
  color: rgba(248,243,234,0.45);
  line-height: 1.7;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  border-top: 1px solid rgba(248,243,234,0.08);
  padding-top: 1.5rem;
  font-style: italic;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--ink-900);
  color: var(--cream);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--coral-500);
}

.cta-strip h2 { color: var(--cream); margin-bottom: 0.75rem; }
.cta-strip p { max-width: 560px; margin: 0 auto 2rem; color: rgba(248,243,234,0.75); font-size: 1.05rem; }

/* ── REVIEW HERO ── */
@media (max-width: 900px) {
  .review-hero { padding: 7rem 1.5rem 3.5rem !important; }
  .rating-box { flex-wrap: wrap; gap: 1rem !important; padding: 1rem 1.25rem !important; max-width: 100%; }
  .rating-num { font-size: 2.4rem !important; }
  .rating-text { flex: 1 1 220px; }
  .at-a-glance { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
  .ag-stat { padding: 0.85rem 0.9rem !important; }
  .ag-stat b { font-size: 1.15rem !important; }
}

@media (max-width: 520px) {
  .review-hero { padding: 6rem 1.1rem 3rem !important; }
  .ag-stat span { font-size: 0.7rem !important; }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  section { padding: 3.5rem 1.5rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .nav-inner { height: 78px; padding: 0 1rem; }
  .nav-inner .logo img { height: 48px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
  .nav-links .btn { justify-content: center; }
  .mobile-toggle { display: block; padding: 0.5rem 0.75rem; min-width: 44px; min-height: 44px; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 0.7rem 0.8rem; }
  .prose table { font-size: 0.85rem; }
  .prose th, .prose td { padding: 0.6rem 0.7rem; }
  .page-header h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .page-header .lede { font-size: 1rem; }
  .cta-strip { padding: 3rem 1.5rem; }
  .cta-strip p { font-size: 0.95rem; }
  footer.site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-brand .logo img { height: 60px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .prose { overflow-wrap: break-word; }
  .prose > table, .prose > .table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  section { padding: 3rem 1.1rem; }
  .page-header { padding: 6rem 1.1rem 2.5rem; }
  .page-header h1 { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .eyebrow { font-size: 0.68rem; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .btn { font-size: 0.88rem; padding: 0.6rem 1.2rem; min-height: 44px; }
  .btn-lg { padding: 0.75rem 1.4rem; font-size: 0.92rem; min-height: 48px; }
  .review-score { position: static; margin-bottom: 0.5rem; display: inline-block; }
  .review-stats { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .card { padding: 1.4rem 1.2rem; }
  .review-card { padding: 1.4rem 1.25rem; }
  .prose p, .prose li { font-size: 0.98rem; }
  .callout { padding: 1rem 1.1rem; font-size: 0.9rem; }
  .cta-strip h2 { font-size: 1.6rem; }
  .page-meta { gap: 0.5rem 1.25rem; font-size: 0.76rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .nav-inner .logo img { height: 44px; }
  .nav-inner { height: 70px; padding: 0 0.85rem; }
  .nav-links { top: 70px; }
  section { padding: 2.5rem 1rem; }
  .page-header { padding: 5.5rem 1rem 2.25rem; }
}
