/* ==========================================================================
   THE CONDO TRAP — Site Styles
   WCAG 2.1/2.2 AA Compliant | Premium financial publication theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --bg: #1E293B;
  --surface: #2D3B50;
  --surface-light: #3B4D66;
  --crimson: #D97706;
  --crimson-light: #F59E0B;
  --gold: #F0C040;
  --gold-muted: rgba(240, 192, 64, 0.12);
  --accent-warm: #E8A838;
  --bg-gradient: linear-gradient(180deg, #1E293B 0%, #243447 50%, #1E293B 100%);
  --glass: rgba(45, 59, 80, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --success: #10B981;
  --warning: #F59E0B;
  --amazon: #FF9900;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-crimson: 0 4px 20px rgba(217, 119, 6, 0.25);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */
body.high-contrast {
  --bg: #0F172A;
  --surface: #1E293B;
  --surface-light: #334155;
  --text: #FFFFFF;
  --text-muted: #CBD5E1;
  --border: rgba(255, 255, 255, 0.3);
  --border-strong: rgba(255, 255, 255, 0.5);
  --crimson: #F59E0B;
  --crimson-light: #FBBF24;
  --gold: #FCD34D;
}

@media (prefers-contrast: more) {
  :root {
    --bg: #0F172A;
    --surface: #1E293B;
    --surface-light: #334155;
    --text: #FFFFFF;
    --text-muted: #CCCCCC;
    --border: rgba(255, 255, 255, 0.4);
    --border-strong: rgba(255, 255, 255, 0.6);
    --crimson: #EF4444;
    --gold: #FCD34D;
  }
}

/* ==========================================================================
   Screen Reader Only
   ========================================================================== */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Top Accent Bar (gold-to-amber gradient)
   ========================================================================== */
body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--crimson) 50%, var(--gold) 100%);
  z-index: 10000;
}

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

/* ==========================================================================
   Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-gradient);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
h1 { letter-spacing: 0.5px; }
h2 { letter-spacing: 0.3px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: underline; }
a:hover, a:focus { color: var(--crimson-light); }
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Focus indicators for all interactive elements — WCAG 2.2 SC 2.4.11 */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--crimson);
  color: #fff;
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  background: rgba(45, 59, 80, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
  border-bottom: 2px solid var(--crimson);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-logo {
  color: var(--crimson);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-logo:hover, .nav-logo:focus { color: var(--gold); }

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}
.nav-links a:hover,
.nav-links a:focus { background: var(--surface-light); color: var(--gold); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--crimson); }

.nav-cta {
  background: var(--crimson) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--crimson-light) !important;
  color: #fff !important;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(45, 59, 80, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  transition: all var(--transition);
  line-height: 1.2;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--accent-warm) 100%);
  color: #fff;
  border-color: var(--crimson);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-warm) 0%, var(--gold) 100%);
  border-color: var(--accent-warm);
  color: #fff;
  box-shadow: 0 4px 24px rgba(232, 168, 56, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--gold);
  color: var(--bg);
}

.btn-amazon {
  background: linear-gradient(135deg, #FF9900 0%, #E88A00 100%);
  color: #000;
  border: 2px solid #FF9900;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-amazon:hover, .btn-amazon:focus {
  background: linear-gradient(135deg, #FFB340 0%, #FF9900 100%);
  border-color: #FFB340;
  color: #000;
  box-shadow: 0 6px 24px rgba(255, 153, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.15rem; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 60%, rgba(185, 28, 28, 0.08) 100%);
  padding: 80px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-warm), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-text h1 .accent { color: var(--crimson); }

.hero-text .hero-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.hero-text .hero-tagline {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cover {
  text-align: center;
  position: relative;
}
.hero-cover img {
  max-height: 450px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Book cover reflection */
.hero-cover::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) scaleY(-1) rotate(2deg);
  width: 280px;
  height: 120px;
  background: inherit;
  opacity: 0.08;
  filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  z-index: 0;
  pointer-events: none;
}
.hero-cover img:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px; }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-cover { order: -1; }
  .hero-cover img { max-height: 300px; margin: 0 auto; }
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 100px 24px;
}
.section-alt {
  background: var(--surface);
}
.section-dark {
  background: linear-gradient(160deg, var(--bg) 0%, rgba(185, 28, 28, 0.05) 100%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header .accent { color: var(--crimson); }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Feature Cards (7 Forces Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-crimson);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Stats Display (The Numbers)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.15);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(217, 119, 6, 0.3), 0 0 40px rgba(217, 119, 6, 0.1);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ==========================================================================
   Data / Comparison Tables
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.data-table caption {
  padding: 16px;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  color: var(--gold);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  background: var(--surface);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.data-table tbody tr {
  transition: background var(--transition);
}
.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.data-table td:last-child {
  text-align: right;
}
.data-table th:last-child {
  text-align: right;
}

.data-table .total-row {
  font-weight: 800;
  color: var(--crimson);
  border-top: 2px solid var(--crimson);
}

.data-table .highlight-col {
  background: rgba(185, 28, 28, 0.06);
}

/* ==========================================================================
   Blog Post Cards Grid
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 480px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--accent-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  border-color: var(--gold);
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-reading-time {
  color: var(--gold);
  font-weight: 600;
}

.blog-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h2 a:hover,
.blog-card h2 a:focus {
  color: var(--crimson-light);
  text-decoration: underline;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--crimson-light);
  text-decoration: none;
  text-transform: capitalize;
}
.blog-tag:hover { background: rgba(185, 28, 28, 0.2); }

/* Blog filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.blog-filter {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  min-height: 36px;
  text-transform: capitalize;
}
.blog-filter:hover,
.blog-filter.active {
  border-color: var(--crimson);
  color: var(--crimson-light);
  background: rgba(185, 28, 28, 0.08);
}

/* ==========================================================================
   Blog Article (single post)
   ========================================================================== */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-header {
  margin-bottom: 36px;
  border-bottom: 2px solid var(--crimson);
  padding-bottom: 24px;
}
.blog-header h1 {
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1.3;
}

.blog-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.blog-reading-time {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

.blog-body.prose h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 36px;
  margin-bottom: 12px;
}

.blog-body.prose h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}

.blog-body.prose p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-body.prose ul, .blog-body.prose ol {
  margin: 16px 0;
  padding-left: 24px;
}
.blog-body.prose li { margin-bottom: 8px; }
.blog-body.prose strong { color: var(--text); }

.blog-body.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-body.prose a { color: var(--gold); }

/* Blog CTA */
.blog-cta {
  background: var(--surface);
  border: 2px solid var(--crimson);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 48px;
  text-align: center;
}
.blog-cta h2 {
  color: var(--text);
  margin-bottom: 12px;
}
.blog-cta p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Blog inline CTA */
.blog-inline-cta {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
  color: var(--text);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-left: 4px solid var(--crimson);
}
.blog-inline-cta p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
}
.blog-inline-cta .btn { white-space: nowrap; }

/* Blog navigation */
.blog-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.blog-nav a {
  font-weight: 600;
  color: var(--gold);
}

/* Related posts */
.blog-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-related h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.blog-related-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.blog-related-list a {
  display: block;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-related-list a:hover {
  border-color: var(--crimson);
  box-shadow: var(--shadow);
}
.blog-related-list strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.blog-related-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list { display: grid; gap: 0; }
.faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: 'Inter', sans-serif;
  min-height: 44px;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.03); color: var(--gold); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-warm);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Plus/minus indicator for FAQ */
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-warm);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 20px 22px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--gold); }

/* ==========================================================================
   Testimonial / Quote Blocks
   ========================================================================== */
.quote-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}
.quote-block p {
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.quote-block cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

/* ==========================================================================
   Book / Companion Cards
   ========================================================================== */
.book-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.book-card {
  flex: 0 1 380px;
  max-width: 420px;
}

.book-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.book-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.book-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.book-card .book-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.book-card .book-tagline {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

/* ==========================================================================
   Tools Cards
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

.tool-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tool-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.tool-card h3 a {
  color: var(--gold);
}
.tool-card .tool-chapter {
  font-size: 0.78rem;
  color: var(--crimson-light);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Content Pages (About, Privacy, Accessibility, Preview)
   ========================================================================== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h1 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 40px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--crimson);
  padding-bottom: 8px;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.page-content li {
  margin-bottom: 8px;
  color: var(--text);
}

.page-content a { color: var(--gold); }

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--surface);
  color: var(--text-muted);
  padding: 48px 24px 24px;
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-warm), transparent);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h2 {
  color: var(--crimson-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-author { color: var(--gold); font-weight: 600; }

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover, .footer-col a:focus { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-compliance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-compliance::before {
  content: '\2713';
  font-size: 0.8rem;
}

/* Companion book card in footer */
.companion-book-card {
  margin-bottom: 8px;
}
.companion-book-card a {
  display: block;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.companion-book-card a:hover {
  border-color: var(--accent-warm);
  background: rgba(45, 59, 80, 0.9);
}
.companion-book-card strong {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.companion-book-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  color: var(--text);
  padding: 16px 24px;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1; }
.cookie-inner a { color: var(--gold); }
.cookie-buttons {
  display: flex;
  gap: 8px;
}
.cookie-accept {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  min-height: 44px;
}
.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}

/* ==========================================================================
   Floating Accessibility Button
   ========================================================================== */
/* a11y-floating-btn is now inside .floating-stack-right as .fc-a11y-btn — see below */
.a11y-floating-btn { display: none; } /* hidden — replaced by fc-a11y-btn in stack */

.fc-a11y-btn {
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.fc-a11y-btn:hover {
  background: var(--gold);
  color: #000;
  transform: scale(1.05);
}
.fc-a11y-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.fc-a11y-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ==========================================================================
   Page Hero (used on non-homepage pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Book Preview / Chapter Excerpt
   ========================================================================== */
.chapter-excerpt {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}
.chapter-excerpt .chapter-number {
  color: var(--crimson);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.chapter-excerpt h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 24px;
}
.chapter-excerpt p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 18px;
}
.chapter-excerpt .excerpt-fade {
  position: relative;
  overflow: hidden;
  max-height: 300px;
}
.chapter-excerpt .excerpt-fade::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(transparent, var(--bg));
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page {
  text-align: center;
  padding: 100px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.error-page .error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 16px;
}
.error-page p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(232, 168, 56, 0.04) 50%, rgba(185, 28, 28, 0.08) 100%);
  border-top: none;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-warm), transparent);
}
.final-cta h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Social Proof Bar (Data Sources)
   ========================================================================== */
.social-proof {
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.6);
}

.social-proof-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.social-proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.social-proof-logos span {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.social-proof-logos span:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   Section Dividers (angled transitions)
   ========================================================================== */
.section-divider {
  height: 48px;
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.section-divider-reverse::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

/* Subtle wave divider between sections */
.section + .section-alt,
.section-alt + .section {
  position: relative;
}

.section + .section-alt::before,
.section-alt + .section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--glass-border) 20%, var(--border) 50%, var(--glass-border) 80%, transparent 100%);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .a11y-floating-btn,
  .a11y-dialog,
  .reading-guide,
  .scroll-arrow,
  .skip-link,
  .blog-inline-cta,
  .nav-toggle,
  .hero-buttons,
  .blog-cta,
  .final-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .page-content,
  .blog-article {
    max-width: 100%;
    padding: 0;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #ccc;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-crimson { color: var(--crimson); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ==========================================================================
   Scroll-to-Top Arrow (inside floating-stack-right)
   ========================================================================== */
.scroll-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), opacity 0.3s ease;
  box-shadow: var(--shadow);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow:hover {
  background: var(--surface-light);
  border-color: var(--gold);
  transform: scale(1.05);
}

.scroll-arrow:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.scroll-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .scroll-arrow {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .a11y-floating-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Accessibility Dialog (full panel)
   ========================================================================== */
.a11y-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.a11y-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.a11y-dialog-inner {
  padding: 28px 24px;
}

.a11y-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--crimson);
}

.a11y-dialog-header h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0;
}

.a11y-dialog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.a11y-dialog-close:hover {
  color: var(--text);
  background: var(--surface-light);
}

.a11y-control-group {
  margin-bottom: 20px;
}

.a11y-control-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Toggle Switch (pill shape) */
.a11y-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--surface-light);
  border: 2px solid var(--border-strong);
  border-radius: 28px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.a11y-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.a11y-toggle[aria-checked="true"] {
  background: var(--crimson);
  border-color: var(--crimson);
}

.a11y-toggle[aria-checked="true"]::after {
  transform: translateX(24px);
  background: #fff;
}

/* Text Size Buttons (radio group) */
.a11y-size-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.a11y-size-btn {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.a11y-size-btn:hover {
  border-color: var(--gold);
}

.a11y-size-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* Accessibility Statement Block (inside dialog) */
.a11y-statement-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-height: 200px;
  overflow-y: auto;
}

.a11y-statement-block h3 {
  font-size: 0.85rem;
  color: var(--gold);
  margin: 12px 0 6px;
}

.a11y-statement-block ul {
  margin: 8px 0;
  padding-left: 20px;
}

.a11y-statement-block li {
  margin-bottom: 4px;
}

.a11y-statement-block a {
  color: var(--gold);
}

/* ==========================================================================
   Reading Guide Overlay
   ========================================================================== */
.reading-guide {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(240, 192, 64, 0.1);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  pointer-events: none;
  z-index: 9999;
  transition: top 0.05s linear;
}

body.reading-guide-active .reading-guide {
  display: block;
}

/* ==========================================================================
   Link Highlighting Mode
   ========================================================================== */
body.highlight-links a {
  background: rgba(240, 192, 64, 0.15);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  outline: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 2px;
  padding: 0 2px;
}

/* ==========================================================================
   Reduce Motion (manual toggle)
   ========================================================================== */
body.reduce-motion,
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ==========================================================================
   General Blockquotes (outside blog prose)
   ========================================================================== */
blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-required {
  color: var(--crimson);
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.2);
  outline: none;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Floating Button Stack + Chat Panel + Contrast Toggle
   ========================================================================== */
.floating-stack-right {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9000;
}

.fc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
  transition: all var(--transition);
}
.fc-btn:hover {
  background: var(--crimson-light);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.5);
}
.fc-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.fc-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-btn .fc-icon-close { display: none; }
.fc-btn.fc-active .fc-icon-msg { display: none; }
.fc-btn.fc-active .fc-icon-close { display: block; }
.fc-btn.fc-active {
  background: var(--surface);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fc-contrast-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.fc-contrast-btn:hover {
  background: var(--surface-light);
  border-color: var(--gold);
  transform: scale(1.05);
}
.fc-contrast-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.fc-contrast-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-contrast-btn .hc-icon-on { display: none; }
body.high-contrast .fc-contrast-btn .hc-icon-off { display: none; }
body.high-contrast .fc-contrast-btn .hc-icon-on { display: block; }
body.high-contrast .fc-contrast-btn {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* Floating Contact Panel (slide-in from right) */
.fc-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  z-index: 9500;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.fc-panel.fc-open { transform: translateX(0); }
.fc-panel-inner { padding: 32px 24px 48px; }
.fc-panel-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.fc-panel-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 6px;
}
.fc-panel-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.fc-form .fc-field { margin-bottom: 16px; }
.fc-form .fc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.fc-form .fc-field input,
.fc-form .fc-field textarea,
.fc-form .fc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.fc-form .fc-field input:focus,
.fc-form .fc-field textarea:focus,
.fc-form .fc-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.2);
}
.fc-form .fc-field textarea { min-height: 90px; resize: vertical; }
.fc-submit {
  width: 100%;
  padding: 12px;
  background: var(--crimson);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}
.fc-submit:hover { background: var(--crimson-light); }
.fc-submit:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.fc-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.fc-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fc-overlay.fc-open { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .floating-stack-right { bottom: 16px; right: 16px; gap: 8px; }
  .fc-btn { width: 48px; height: 48px; }
  .fc-contrast-btn { width: 40px; height: 40px; }
  .fc-panel { width: 100vw; max-width: 100vw; }
}

/* ==========================================================================
   Competition Comparison Table
   ========================================================================== */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: fixed;
}
.compare-table th, .compare-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table th {
  background: var(--surface);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}
.compare-table th.compare-highlight {
  background: rgba(217, 119, 6, 0.15);
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  min-width: 200px;
}
.compare-table td.compare-highlight {
  background: rgba(217, 119, 6, 0.06);
}
.compare-table tbody tr:hover td {
  background: var(--surface-light);
}
.compare-table tbody tr:hover td.compare-highlight {
  background: rgba(217, 119, 6, 0.12);
}
.compare-yes {
  color: var(--success);
  font-weight: 700;
  font-size: 1.15rem;
}
.compare-no {
  color: #EF4444;
  font-weight: 700;
  font-size: 1.15rem;
}
.compare-partial {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
}
.compare-table small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .compare-table td:first-child { min-width: 140px; }
}
