/* =================================================================
   THE RESALE TRAP — Design System
   Light, editorial, architectural. Terracotta + slate.
   Unique from all other Trap Series sites (which are dark-themed).
   ================================================================= */

:root {
  /* Warm earth palette */
  --terra: #B7472A;
  --terra-light: #D4654A;
  --terra-dark: #8C3520;
  --slate: #2B3A4E;
  --slate-light: #3E5168;
  --cream: #FBF7F2;
  --cream-dark: #F0EBE3;
  --warm-white: #FEFCF9;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --text-muted: #8E8E8E;
  --border: #E0D8CF;
  --border-light: #EDE8E2;
  --amazon: #FF9900;
  --success: #2D7A4F;
  --white: #FFFFFF;

  /* Spacing & layout */
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1100px;
  --transition: 0.2s ease;
  --shadow: 0 2px 12px rgba(43,58,78,0.08);
  --shadow-lg: 0 8px 30px rgba(43,58,78,0.12);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terra-dark); }
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; }
ul { padding-left: 20px; }

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--terra);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }
.visually-hidden, .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;
}
:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 2px;
}

/* --- Top accent line --- */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light), var(--slate));
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 3px;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}
.site-logo:hover { color: var(--terra); }
.logo-icon { border-radius: 3px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--terra); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px auto;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
}
.btn-primary:hover { background: var(--terra-dark); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--terra);
  border: 2px solid var(--terra);
}
.btn-secondary:hover { background: var(--terra); color: var(--white); }
.btn-amazon {
  background: var(--amazon);
  color: var(--white);
  font-weight: 700;
}
.btn-amazon:hover { background: #e68a00; color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-slate {
  background: var(--slate);
  color: var(--white);
}
.btn-slate:hover { background: var(--slate-light); color: var(--white); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--slate) 0%, #1F2D3D 100%);
  color: var(--white);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(183,71,42,0.9);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 12px;
}
.hero h1 .text-terra { color: var(--terra-light); }
.hero-subtitle {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}
.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.hero-cover {
  position: relative;
  text-align: center;
}
.hero-cover img {
  width: 100%;
  max-height: 450px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.hero-cover img:hover { transform: scale(1.03) rotate(-1deg); }

/* --- Sections --- */
.section {
  padding: 80px 24px;
}
.section-alt { background: var(--warm-white); }
.section-cream { background: var(--cream-dark); }
.section-dark {
  background: var(--slate);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header .section-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}
.overline {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}

/* --- Stats Strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}
.stat-item { }
.stat-number {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* --- Feature Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* --- Data Tables --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
th {
  background: var(--slate);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}
tr:nth-child(even) { background: var(--cream); }
tr:hover { background: rgba(183,71,42,0.04); }
.highlight-col { background: rgba(183,71,42,0.13) !important; font-weight: 600; border-left: 3px solid var(--terra); }
th.highlight-col { background: var(--terra) !important; color: var(--white); font-weight: 700; letter-spacing: 0.02em; }
.check { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.highlight-col .check { color: var(--terra); font-size: 1.15rem; }
.cross { color: #b0b0b0; }
.partial { color: var(--terra-light); }

/* --- Comparison Section --- */
.compare-table { margin-top: 24px; }

/* --- FAQ --- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  font-family: Georgia, serif;
  min-height: 44px;
  gap: 16px;
}
.faq-question:hover { color: var(--terra); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 24px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Companion Books --- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.book-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.book-card:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.book-card .book-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}
.book-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.book-card .book-tagline {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.book-card .btn { width: 100%; }

/* --- Signup / CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* --- Page Hero (non-homepage) --- */
.page-hero {
  background: var(--slate);
  color: var(--white);
  padding: 60px 24px 48px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: 2.2rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.page-hero .overline { color: var(--terra-light); }

/* --- Page Content --- */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-content h2 {
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.page-content ul { margin-bottom: 16px; }
.page-content li { margin-bottom: 8px; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  min-height: 44px;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  outline: 3px solid rgba(183,71,42,0.15);
}

/* --- Footer --- */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.8);
  padding: 56px 24px 32px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-heading {
  font-family: Georgia, serif;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col li a { font-size: 0.88rem; }
.footer-wcag {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-disclaimer {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-disclaimer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}
.footer-disclaimer a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-disclaimer a:hover { color: rgba(255,255,255,0.8); }

/* --- Floating Stack --- */
.floating-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.float-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
  box-shadow: var(--shadow);
}
.back-to-top { opacity: 0; pointer-events: none; transition: opacity var(--transition); }

/* --- Contact Stack Button & Panel --- */
.contact-stack-btn { background: var(--terra); color: var(--white); border-color: var(--terra); }
.contact-stack-btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: var(--white); }
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 992;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-overlay.overlay-visible { opacity: 1; pointer-events: auto; }
.contact-panel {
  position: fixed;
  top: 0; bottom: 0; right: -420px;
  width: 400px;
  max-width: 100vw;
  background: var(--warm-white);
  z-index: 993;
  overflow-y: auto;
  padding: 32px 28px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  border-left: 3px solid var(--terra);
}
.contact-panel.panel-open { right: 0; }
.contact-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.contact-panel-header h2 { margin: 0; font-size: 1.3rem; }
.contact-panel-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Accessibility Panel --- */
.a11y-dialog {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--warm-white);
  border: none;
  border-left: 3px solid var(--terra);
  padding: 32px 24px;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  margin: 0;
  max-height: 100vh;
}
.a11y-dialog::backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); }
.a11y-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.a11y-dialog-header h2 { margin: 0; font-size: 1.2rem; }
.a11y-dialog-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  min-width: 44px;
  min-height: 44px;
}
.a11y-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.a11y-label { font-weight: 600; font-size: 0.92rem; }
.a11y-size-group { display: flex; gap: 6px; }
.a11y-size-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.a11y-size-btn[aria-checked="true"] {
  border-color: var(--terra);
  background: rgba(183,71,42,0.08);
  color: var(--terra);
}
.a11y-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.a11y-toggle-track {
  display: block;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background var(--transition);
}
.a11y-toggle[aria-checked="true"] .a11y-toggle-track { background: var(--terra); }
.a11y-toggle-thumb {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.a11y-toggle[aria-checked="true"] .a11y-toggle-thumb { transform: translateX(22px); }
.a11y-statement { font-size: 0.82rem; color: var(--text-muted); margin-top: 20px; }

/* --- Reading Guide --- */
.reading-guide {
  display: none;
  position: fixed;
  left: 0; right: 0;
  height: 3px;
  background: rgba(183,71,42,0.35);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(183,71,42,0.2);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--slate);
  color: var(--white);
  padding: 16px 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.8); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner[hidden] { display: none; }

/* --- Sticky Buy Bar --- */
.sticky-buy-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 89;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.sticky-buy-bar.sticky-visible { transform: translateY(0); }
.sticky-buy-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-buy-text {
  font-size: 0.9rem;
  color: var(--text);
}

/* --- High Contrast Mode --- */
body.high-contrast {
  --cream: #000;
  --cream-dark: #000;
  --warm-white: #000;
  --white: #000;
  --text: #fff;
  --text-light: #ddd;
  --charcoal: #fff;
  --border: #fff;
  --border-light: #666;
  --terra: #FF7755;
  --shadow-card: none;
  --shadow: none;
  background: #000;
  color: #fff;
}
body.high-contrast a { text-decoration: underline; }
body.high-contrast .site-header,
body.high-contrast .card,
body.high-contrast .book-card {
  border-color: #fff;
}
body.high-contrast th { background: #333; }
body.high-contrast td { border-color: #666; }

/* --- Reduce Motion --- */
body.reduce-motion,
body.reduce-motion * {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Highlight Links --- */
body.highlight-links a {
  background: rgba(183,71,42,0.12);
  outline: 2px solid var(--terra);
  outline-offset: 2px;
  text-decoration: underline;
}

/* --- Cost Gap reveal --- */
.cost-reveal {
  text-align: center;
  padding: 64px 24px;
}
.cost-big-number {
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 8px;
}
.cost-context {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* --- State Ranking Grid --- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}
.state-chip {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.state-chip.top-10 { border-color: var(--success); color: var(--success); background: rgba(45,122,79,0.05); }
.state-chip.bottom-10 { border-color: var(--terra); color: var(--terra); background: rgba(183,71,42,0.05); }

/* --- Part Roadmap --- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  counter-reset: part;
}
.roadmap-step {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  counter-increment: part;
  position: relative;
  transition: all var(--transition);
}
.roadmap-step:hover { border-color: var(--terra); transform: translateY(-2px); }
.roadmap-step::before {
  content: counter(part, upper-roman);
  display: block;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 10px;
}
.roadmap-step h3 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.roadmap-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  color: var(--white);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1002;
}
.announcement-bar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
.announcement-bar a:hover {
  color: var(--cream);
}
.announcement-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: color var(--transition);
}
.announcement-dismiss:hover {
  color: var(--white);
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: var(--amazon);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  margin: 0 0 12px;
  padding: 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Newsletter --- */
.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 44px;
  transition: border-color var(--transition);
}
.newsletter-input::placeholder {
  color: rgba(255,255,255,0.5);
}
.newsletter-input:focus {
  border-color: var(--terra-light);
  outline: 3px solid rgba(212,101,74,0.3);
  background: rgba(255,255,255,0.15);
}

/* --- Reading Order Timeline --- */
.reading-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.reading-order-step {
  text-align: center;
  padding: 16px 20px;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-width: 120px;
  transition: all var(--transition);
}
.reading-order-step:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
}
.reading-order-current {
  border-color: var(--terra);
  background: rgba(183,71,42,0.06);
  box-shadow: var(--shadow);
}
.reading-order-number {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 4px;
}
.reading-order-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.reading-order-title {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.reading-order-arrow {
  font-size: 1.5rem;
  color: var(--terra-light);
  font-weight: 700;
}

/* --- Blog Grid & Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.blog-card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.blog-card-body {
  padding: 28px 24px;
}
.blog-card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--charcoal);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--terra);
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.meta-sep {
  color: var(--border);
}

/* --- Category Badges --- */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.category-building { background: rgba(45,122,79,0.1); color: var(--success); }
.category-insurance { background: rgba(183,71,42,0.1); color: var(--terra); }
.category-states { background: rgba(43,58,78,0.1); color: var(--slate); }
.category-maintenance { background: rgba(183,71,42,0.08); color: var(--terra-dark); }
.category-investing { background: rgba(255,153,0,0.1); color: #b36b00; }
.category-data { background: rgba(43,58,78,0.08); color: var(--slate-light); }

/* --- Category Filter Tabs --- */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.category-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.category-tab:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.category-tab.active {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

/* --- Blog Post Page --- */
.post-header {
  background: var(--slate);
  color: var(--white);
  padding: 60px 24px 48px;
}
.post-header .container {
  max-width: 760px;
  margin: 0 auto;
}
.post-header h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
.post-header .blog-meta {
  color: rgba(255,255,255,0.6);
}
.post-header .category-badge {
  margin-bottom: 14px;
}
.post-breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.post-breadcrumb a {
  color: rgba(255,255,255,0.6);
}
.post-breadcrumb a:hover {
  color: var(--white);
}
.post-breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 6px;
}
.post-breadcrumb span[aria-current] {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.post-content h2 {
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  font-size: 1.4rem;
}
.post-content h3 {
  margin-top: 32px;
  color: var(--terra-dark);
}
.post-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content ul, .post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-content strong {
  color: var(--charcoal);
}
.post-content blockquote {
  border-left: 3px solid var(--terra);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.post-cta {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
}
.post-cta h3 {
  margin-top: 0;
  color: var(--charcoal);
}

.post-nav {
  padding: 32px 24px 60px;
  max-width: 760px;
  margin: 0 auto;
}

/* --- Glossary --- */
.glossary-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.glossary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all var(--transition);
}
.glossary-nav a:hover {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.glossary-list {
  max-width: 760px;
}
.glossary-letter {
  font-size: 1.6rem;
  color: var(--terra);
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.glossary-letter:first-child {
  margin-top: 0;
}
.glossary-term {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.glossary-term h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.glossary-term p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 48px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-cover { order: -1; }
  .hero-cover img { max-width: 250px; margin: 0 auto; }
  .hero .btn-group { justify-content: center; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
  .main-nav.nav-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .card-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 24px; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .sticky-buy-text { font-size: 0.8rem; }
  .contact-panel { width: 100vw; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .reading-order { gap: 8px; }
  .reading-order-step { min-width: 100px; padding: 12px 14px; }
  .reading-order-arrow { font-size: 1.2rem; }
  .newsletter-row { flex-direction: column; }
  .post-header h1 { font-size: 1.6rem; }
  .announcement-bar { font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cost-big-number { font-size: 3rem; }
  .state-grid { grid-template-columns: repeat(5, 1fr); }
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox-overlay.lightbox-visible { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2.5rem;
  cursor: pointer; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* --- Contact Page --- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.contact-form-col form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.contact-info-col h2 {
  font-size: 1.3rem;
  margin-top: 0;
  border: none;
  padding: 0;
}
.contact-info-col h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 8px;
}
.contact-info-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.contact-info-col li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.contact-info-col li::before {
  content: "\2022";
  color: var(--terra);
  font-weight: 700;
  margin-right: 8px;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 24px;
}
.contact-email-link:hover { color: var(--terra-dark); }
.companion-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.companion-links li { margin-bottom: 6px; }
.companion-links li::before {
  content: "\2192";
  color: var(--terra);
  margin-right: 8px;
}
.companion-links a {
  font-size: 0.92rem;
}
@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Calculator --- */
.calculator-section {
  padding: 60px 24px 80px;
  background: var(--warm-white);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.calc-heading {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--charcoal);
}
.calc-sliders {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.calc-slider-group {
  margin-bottom: 22px;
}
.calc-slider-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.calc-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terra);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background var(--transition);
}
.calc-slider-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terra);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--terra-dark);
}
.calc-slider-row input[type="range"]::-moz-range-thumb:hover {
  background: var(--terra-dark);
}
.calc-slider-row input[type="range"]:focus-visible {
  outline: 3px solid rgba(183,71,42,0.3);
  outline-offset: 2px;
}
.calc-value {
  min-width: 90px;
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terra);
  font-family: Georgia, serif;
}
.calc-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Calculator Results */
.calc-results {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}
.calc-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.calc-result-card:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.calc-result-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}
.calc-result-number {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
}
.calc-result-gap {
  background: rgba(183,71,42,0.06);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
  border-bottom: none;
}
.calc-gap-number {
  font-size: 1.8rem;
  color: var(--terra);
}
.calc-breakdown-heading {
  font-size: 1rem;
  margin-top: 28px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  color: var(--charcoal);
}
.calc-breakdown {
  display: grid;
  gap: 12px;
}
.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}
.calc-breakdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 120px;
}
.calc-breakdown-values {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.calc-bv-new strong { color: var(--success); }
.calc-bv-resale strong { color: var(--terra); }
.calc-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Calculator responsive */
@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-results {
    position: static;
  }
}
@media (max-width: 480px) {
  .calc-breakdown-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-gap-number {
    font-size: 1.4rem;
  }
  .calculator-section {
    padding: 40px 16px 60px;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .floating-stack,
  .sticky-buy-bar, .cookie-banner,
  .contact-panel, .contact-overlay, .cta-section,
  .announcement-bar, .category-filter,
  .lightbox-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: #f5f5f5; color: #000; }
  .hero h1 { color: #000; }
  a { text-decoration: underline; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
