/* ═══════════════════════════════════════════════════════════════
   COST SEGREGATION REVIEWS — "The Correspondent"
   Editorial design. Warm paper. Confident serif. Newspaper rules.
   Feels like investigative journalism, not a SaaS comparison tool.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Commissioner:wght@400;500;600;700&display=swap');

:root {
  --ink: #1d1d1f;
  --ink-soft: #3a3a3c;
  --ink-light: #636366;
  --ink-muted: #6e6e73;
  --rule: #c7c7cc;
  --rule-light: #e5e5ea;
  --paper: #ffffff;
  --paper-warm: #f5f5f7;
  --paper-deep: #ededf0;
  --white: #ffffff;
  --accent: #3d5a80;
  --accent-hover: #2c4a6e;
  --accent-shadow: rgba(61, 90, 128, 0.12);
  --accent-glow: rgba(61, 90, 128, 0.06);
  --verdict: #3a7d5c;
  --caution: #c44e2b;
  --star: #d4890e;
  --sidebar-w: 240px;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Commissioner', 'Helvetica Neue', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}
.reveal.visible:nth-child(2) { animation-delay: 0.08s; }
.reveal.visible:nth-child(3) { animation-delay: 0.16s; }
.reveal.visible:nth-child(4) { animation-delay: 0.24s; }
.reveal.visible:nth-child(5) { animation-delay: 0.32s; }
.reveal.visible:nth-child(6) { animation-delay: 0.40s; }
.reveal.visible:nth-child(7) { animation-delay: 0.48s; }
.reveal.visible:nth-child(8) { animation-delay: 0.56s; }
.reveal.visible:nth-child(9) { animation-delay: 0.64s; }
.reveal.visible:nth-child(10) { animation-delay: 0.72s; }

html { scroll-behavior: smooth; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease-out-expo); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Focus states — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 999;
  transition: width 0.15s linear;
  pointer-events: none;
}

::selection { background: #c9d6e5; }


/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.layout { display: flex; min-height: 100dvh; }


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — feels like a book's table of contents
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--paper-warm);
  background-image: none;
  border-right: 2px solid var(--ink);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 2px solid var(--ink);
}
.sidebar-header a { text-decoration: none; display: block; }

.sidebar-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.sidebar-sub {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 18px 0 10px;
}
.sidebar-label {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--rule);
  padding: 0 24px 8px;
  border-bottom: 1px solid var(--rule-light);
  margin: 0 24px 8px 24px;
}
.sidebar a.nav-link {
  display: block;
  padding: 6px 24px;
  font-size: 13.5px;
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s var(--ease-out-expo), padding-left 0.25s var(--ease-out-expo), background 0.25s var(--ease-out-expo);
}
.sidebar a.nav-link:hover {
  color: var(--ink);
  padding-left: 28px;
  text-decoration: none;
  background: rgba(61, 90, 128, 0.06);
  border-right: 2px solid var(--accent);
}
.sidebar a.nav-link.active {
  color: var(--accent);
  font-weight: 700;
  border-right: 2px solid var(--accent);
  background: rgba(61, 90, 128, 0.04);
}


.sidebar::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 40px;
  background: linear-gradient(to top, var(--paper-warm) 0%, transparent 100%);
  pointer-events: none;
  z-index: 101;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 42px;
  height: 42px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.mobile-menu-toggle:active {
  transform: scale(0.94);
}
.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(29,29,31,0.3);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.active {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  background: var(--paper);
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}


/* ═══════════════════════════════════════════════════════════════
   DISCLOSURE BANNER — above the fold, impossible to miss
   ═══════════════════════════════════════════════════════════════ */
.disclosure-banner {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-muted);
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 24px;
}
.disclosure-banner strong {
  color: var(--ink);
}
.disclosure-banner a {
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   CARDS — warm paper with editorial borders
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-top: none;
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  transition: box-shadow 0.35s var(--ease-out-expo);
}
.card:hover {
  box-shadow: 0 8px 30px -12px var(--accent-shadow), 0 1px 3px rgba(0,0,0,0.04);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 2px;
  background: var(--ink);
}
.card:first-child::before {
  left: 0; right: 0;
  height: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY — Fraunces for headlines, Commissioner for body
   ═══════════════════════════════════════════════════════════════ */
h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
p { margin-bottom: 16px; }

.meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-light);
}


/* ═══════════════════════════════════════════════════════════════
   CALLOUT — editorial aside, like a pull quote
   ═══════════════════════════════════════════════════════════════ */
.callout {
  background: transparent;
  border-left: none;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--rule-light);
  padding: 20px 0;
  font-size: 15px;
  font-style: italic;
  margin: 28px 0;
  line-height: 1.7;
  color: var(--ink-soft);
}
.callout strong { font-style: normal; color: var(--accent); }
.callout a { font-style: normal; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   REVIEW CARDS — the main attraction
   ═══════════════════════════════════════════════════════════════ */
.review-card {
  border: 1px solid var(--rule-light);
  border-top: 3px solid var(--accent);
  overflow: hidden;
  margin: 32px 0;
  background: var(--white);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -16px var(--accent-shadow), 0 2px 6px rgba(0,0,0,0.04);
}
.review-card.featured {
  border: 2px solid var(--accent);
  border-top: 3px solid var(--accent);
  box-shadow: 0 6px 24px -8px var(--accent-shadow);
}
.review-card.featured:hover {
  box-shadow: 0 16px 48px -12px rgba(61, 90, 128, 0.18);
}
.review-card.featured .rc-header {
  padding: 14px 22px;
  background: var(--accent);
}
.review-card.featured .rc-badge {
  font-size: 26px;
  letter-spacing: -0.2px;
}
.review-card.featured .rc-rating-score {
  font-size: 26px;
}

/* Header bar — newspaper-style rank strip */
.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--paper);
}
.rc-badge {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.2px;
}
.rc-rating { display: flex; align-items: center; gap: 8px; }
.rc-rating-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rc-rating-score {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--paper);
}
.rc-stars {
  color: var(--star);
  font-size: 14px;
  letter-spacing: 1.5px;
}

/* Two-column body */
.rc-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
}
.rc-left {
  padding: 22px 24px;
  border-right: 1px solid var(--rule-light);
}
.rc-right {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper-warm);
}

.rc-provider-name {
  display: none;
}
.rc-provider-name a { color: var(--ink); text-decoration: none; }
.rc-provider-name a:hover { color: var(--accent); text-decoration: none; }

.rc-url {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* Tags — small, muted, editorial */
.rc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.rc-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-light);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rc-tag:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* Screenshot — framed like a pasted clipping */
.rc-screenshot {
  margin-top: 10px;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 3px 4px 0px var(--rule);
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}
.review-card:hover .rc-screenshot {
  box-shadow: 6px 8px 0px var(--rule);
  transform: translate(-2px, -2px);
}
.rc-screenshot picture { display: block; }
.rc-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}
.rc-screenshot:hover img {
  transform: scale(1.02);
}

/* Specs — structured data on the warm side */
.rc-specs {
  font-size: 14px;
  line-height: 1.65;
}
.rc-specs dt {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 12px;
}
.rc-specs dt:first-child { margin-top: 0; }
.rc-specs dd {
  color: var(--ink-soft);
  margin-bottom: 2px;
  font-weight: 500;
}
.rc-specs .good {
  color: var(--verdict);
  font-weight: 700;
  background: rgba(58, 125, 92, 0.06);
  padding: 1px 6px;
  margin-left: -6px;
  display: inline-block;
}

.rc-visit-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule-light);
  transition: color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
  display: inline-block;
}
.rc-visit-link:hover {
  transform: translateX(3px);
  text-decoration: none;
}
.rc-visit-link:active {
  transform: translateX(3px) translateY(1px);
}

/* Tabs — accent strip, editorial */
.rc-tabs {
  display: flex;
  background: var(--accent);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rc-tabs::-webkit-scrollbar { display: none; }
.rc-tab {
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(248,245,240,0.4);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s var(--ease-out-expo), background 0.25s var(--ease-out-expo);
  position: relative;
}
.rc-tab:hover {
  color: rgba(248,245,240,0.85);
  background: rgba(255,255,255,0.06);
}
.rc-tab:active {
  transform: translateY(1px);
}
.rc-tab.active {
  color: var(--paper);
  box-shadow: inset 0 -3px 0 var(--paper);
  background: rgba(255,255,255,0.08);
}

/* Panels */
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.rc-panel {
  display: none;
  padding: 22px 26px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-light);
}
.rc-panel.active {
  display: block;
  animation: panelFadeIn 0.3s var(--ease-out-expo) forwards;
}

/* Pros/Cons — newspaper column feel */
.rc-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rc-pros-cons h4 {
  font-family: var(--serif);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-bottom: 6px;
}
.rc-pros-cons .good h4 {
  color: var(--verdict);
  border-bottom: 2px solid var(--verdict);
}
.rc-pros-cons .bad h4 {
  color: var(--caution);
  border-bottom: 2px solid var(--caution);
}
.rc-pros-cons ul { list-style: none; padding: 0; }
.rc-pros-cons li {
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.55;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule-light);
}
.rc-pros-cons li:last-child { border-bottom: none; }
.rc-pros-cons .good li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--verdict);
  font-weight: 700;
  font-size: 12px;
}
.rc-pros-cons .bad li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--caution);
  font-weight: 700;
  font-size: 12px;
}

/* Who it's for */
.wif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wif-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
}
.wif-item h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.wif-item p { font-size: 13px; color: var(--ink-light); margin: 0; }


/* ═══════════════════════════════════════════════════════════════
   TABLES — editorial data, not spreadsheet
   ═══════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px -4px;
  padding: 0 4px;
}
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 18px 0;
}
.simple-table th {
  text-align: left;
  font-family: var(--serif);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  padding: 10px 10px;
  border-bottom: 2px solid var(--ink);
}
.simple-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink-soft);
}
.simple-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.simple-table tbody tr {
  transition: background 0.25s var(--ease-out-expo), border-left-color 0.25s var(--ease-out-expo);
  border-left: 3px solid transparent;
}
.simple-table tbody tr:hover {
  background: var(--paper-deep);
  border-left-color: var(--accent);
}
.simple-table tbody tr:active {
  background: #e2e5ea;
}
.simple-table a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.simple-table a:hover { color: var(--accent); text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════
   FAQ — editorial Q&A
   ═══════════════════════════════════════════════════════════════ */
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
  transition: background 0.2s;
}
details[open] {
  padding-bottom: 20px;
}
details:hover {
  background: var(--accent-glow);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '+';
  display: inline-block;
  width: 20px;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 18px;
  transition: transform 0.3s var(--ease-spring);
}
details[open] summary::before {
  content: '\2212';
  transform: rotate(180deg);
}
details p {
  margin-top: 10px;
  font-size: 14.5px;
  padding-left: 20px;
  color: var(--ink-soft);
}
details[open] p {
  animation: panelFadeIn 0.3s var(--ease-out-expo) forwards;
}


/* ═══════════════════════════════════════════════════════════════
   REVIEW ENTRIES (legacy — used in some table layouts)
   ═══════════════════════════════════════════════════════════════ */
.review-entry {
  border-bottom: 1px solid var(--rule-light);
  padding: 22px 0;
}
.review-entry:first-child { padding-top: 0; }
.review-entry:last-child { border-bottom: none; }

.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-number { font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.review-rating { color: var(--star); font-size: 16px; letter-spacing: 2px; }
.review-rating span { font-size: 13px; color: var(--ink-muted); margin-left: 4px; }
.review-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.review-name a { color: var(--ink); text-decoration: none; }
.review-name a:hover { color: var(--accent); }
.review-site { font-size: 12px; color: var(--ink-muted); margin-bottom: 10px; }
.review-screenshot { margin: 12px 0; border: 1px solid var(--rule); overflow: hidden; }
.review-screenshot img { width: 100%; height: auto; display: block; }
.review-quick { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-light); margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.review-quick strong { color: var(--ink); }
.review-quick .highlight { color: var(--verdict); font-weight: 700; }
.review-text { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.review-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; font-size: 13.5px; }
.review-pros-cons h4 { font-family: var(--serif); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; padding-bottom: 4px; }
.review-pros-cons .good h4 { color: var(--verdict); border-bottom: 2px solid var(--verdict); }
.review-pros-cons .bad h4 { color: var(--caution); border-bottom: 2px solid var(--caution); }
.review-pros-cons ul { list-style: none; }
.review-pros-cons li { padding: 4px 0 4px 16px; position: relative; line-height: 1.5; }
.review-pros-cons .good li::before { content: '\2713'; position: absolute; left: 0; color: var(--verdict); font-weight: 700; font-size: 12px; }
.review-pros-cons .bad li::before { content: '\2717'; position: absolute; left: 0; color: var(--caution); font-weight: 700; font-size: 12px; }
.review-verdict { background: var(--paper-deep); border-left: 4px solid var(--ink); padding: 14px 18px; font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.review-verdict strong { color: var(--ink); }


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 48px 32px 36px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(248,245,240,0.45);
  background: var(--ink);
  margin-left: var(--sidebar-w);
  border-top: 3px solid var(--accent);
}
.site-footer strong {
  color: rgba(248,245,240,0.75);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: -0.2px;
}
.site-footer a {
  color: rgba(248,245,240,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: rgba(248,245,240,0.9); text-decoration: underline; text-underline-offset: 3px; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    top: 12px;
    left: 12px;
  }
  .mobile-overlay { display: block; pointer-events: none; }
  .mobile-overlay.active { pointer-events: auto; }

  .sidebar {
    display: block;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-out-expo);
    box-shadow: none;
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  }
  .main { margin-left: 0; }
  .site-footer { margin-left: 0; padding: 36px 20px 28px; }
  .content { padding: 64px 18px 60px; }
  h1 { font-size: 26px; line-height: 1.2; }
  h2 { font-size: 21px; }
  .card { padding: 20px 18px; }
  .card::before { left: 18px; right: 18px; }

  /* Review cards — stack layout */
  .rc-body { grid-template-columns: 1fr; }
  .rc-left { border-right: none; border-bottom: 1px solid var(--rule-light); padding: 18px 16px; }
  .rc-right { background: var(--paper-warm); padding: 18px 16px; }
  .rc-header { padding: 10px 16px; }
  .rc-badge { font-size: 18px; }
  .rc-rating-score { font-size: 18px; }

  /* Tabs — scrollable with fade hint */
  .rc-tabs {
    flex-wrap: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .rc-tab { padding: 11px 16px; font-size: 11.5px; }
  .rc-panel { padding: 18px 16px; }

  .rc-pros-cons { grid-template-columns: 1fr; gap: 16px; }
  .wif-grid { grid-template-columns: 1fr; }
  .review-pros-cons { grid-template-columns: 1fr; }
  .review-quick { flex-direction: column; gap: 6px; }

  /* Tables — horizontal scroll on mobile */
  .simple-table { min-width: 520px; }
  .rc-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Form — bigger touch targets */
  .card input,
  .card select,
  .card textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  /* Disable hover transforms on touch */
  .review-card:hover { transform: none; box-shadow: none; }
  .review-card.featured:hover { box-shadow: 0 6px 24px -8px var(--accent-shadow); }

  /* Details/FAQ — remove hover expand on touch */
  details:hover {
    background: transparent;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Disclosure banner */
  .disclosure-banner { font-size: 13px; padding: 14px 16px; }
}

/* Larger phones (376-480px) */
@media (min-width: 376px) and (max-width: 480px) {
  .content { padding: 64px 18px 60px; }
  .rc-pros-cons { grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-pros-cons { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 26px; }
}

/* Small phones (≤375px) */
@media (max-width: 375px) {
  .content { padding: 60px 14px 48px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  .card { padding: 16px 14px; }
  .card::before { left: 14px; right: 14px; }
  .rc-header { padding: 8px 12px; }
  .rc-badge { font-size: 16px; }
  .rc-rating-score { font-size: 16px; }
  .rc-left { padding: 14px 12px; }
  .rc-right { padding: 14px 12px; }
  .rc-panel { padding: 14px 12px; }
  .rc-tab { padding: 10px 12px; font-size: 11px; }
  .disclosure-banner { font-size: 12.5px; padding: 12px 14px; }
  .mobile-quick-nav a { font-size: 11px; padding: 5px 10px; }
  .jump-links { font-size: 12px; gap: 8px; }
}

/* Tablet tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
  .content { max-width: 680px; padding: 36px 24px 60px; }
  .rc-body { grid-template-columns: 1.3fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE QUICK NAV — sticky property type pills
   ═══════════════════════════════════════════════════════════════ */
.mobile-quick-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-quick-nav {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .mobile-quick-nav::-webkit-scrollbar { display: none; }
  .mobile-quick-nav a {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light);
    background: var(--paper-warm);
    border: 1px solid var(--rule-light);
    padding: 6px 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .mobile-quick-nav a:hover,
  .mobile-quick-nav a:active {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
    text-decoration: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   JUMP LINKS — above-the-fold navigation
   ═══════════════════════════════════════════════════════════════ */
.jump-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 13.5px;
}
.jump-label {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
}
.jump-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.jump-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .jump-links { gap: 12px; flex-wrap: wrap; font-size: 13px; }
  .jump-label { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP — appears after scrolling
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), box-shadow 0.2s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: var(--ink-light);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-shadow);
}
.back-to-top:active {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FILTER BAR — company search
   ═══════════════════════════════════════════════════════════════ */
.filter-bar {
  margin: 12px 0 6px;
}
.filter-bar input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
.filter-bar input::placeholder {
  color: var(--ink-muted);
}


/* ═══════════════════════════════════════════════════════════════
   FORM INPUT POLISH
   ═══════════════════════════════════════════════════════════════ */
#submit-form input,
#submit-form select,
#submit-form textarea {
  transition: border-color 0.2s, box-shadow 0.2s;
}
#submit-form input:focus,
#submit-form select:focus,
#submit-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
#submit-form button[type="submit"] {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#submit-form button[type="submit"]:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px var(--accent-shadow);
}
#submit-form button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px var(--accent-shadow);
}


/* ═══════════════════════════════════════════════════════════════
   VISIT LINK ARROW ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.rc-visit-link::after {
  content: '';
  display: inline-block;
  transition: transform 0.2s var(--ease-out-expo);
}
.rc-visit-link:hover::after {
  transform: translateX(2px);
}


/* ═══════════════════════════════════════════════════════════════
   CALLOUT — refined pull quote styling
   ═══════════════════════════════════════════════════════════════ */
.callout strong::after {
  content: '';
  display: inline;
}


/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidebar,
  .mobile-menu-toggle,
  .mobile-overlay,
  .reading-progress,
  .back-to-top { display: none !important; }
  .main { margin-left: 0 !important; }
  .site-footer { margin-left: 0 !important; }
  .review-card { break-inside: avoid; }
}
