/* ============================================================
   MYGREENCARD.COM — MASTER STYLESHEET
   Editorial Luxury / Institutional Trust System
   ============================================================ */

:root {
  --ink: #0e1420;
  --ink-soft: #1a2333;
  --ink-mute: #4a5263;
  --paper: #f5f1ea;
  --paper-warm: #ede6d8;
  --paper-cool: #faf7f1;
  --gold: #b8893a;
  --gold-deep: #8a6428;
  --gold-light: #d4a85a;
  --crimson: #8b2e1f;
  --sage: #4a5d4a;
  --line: rgba(14, 20, 32, 0.12);
  --line-strong: rgba(14, 20, 32, 0.25);
  --shadow-sm: 0 1px 2px rgba(14,20,32,0.04), 0 2px 8px rgba(14,20,32,0.04);
  --shadow-md: 0 4px 12px rgba(14,20,32,0.08), 0 12px 32px rgba(14,20,32,0.06);
  --shadow-lg: 0 8px 24px rgba(14,20,32,0.12), 0 24px 64px rgba(14,20,32,0.08);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --ink: #f5f1ea;
  --ink-soft: #ede6d8;
  --ink-mute: #b5b0a5;
  --paper: #0e1420;
  --paper-warm: #1a2333;
  --paper-cool: #181f2e;
  --line: rgba(245, 241, 234, 0.12);
  --line-strong: rgba(245, 241, 234, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============= TOP BAR ============= */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 32px;
  font-weight: 500;
  position: relative;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-ticker {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.topbar a { color: var(--gold-light); border-bottom: 1px dotted var(--gold-light); }
.topbar span.dot { color: var(--gold-light); }
.topbar .lang-bar { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: 10px; }
.topbar .lang-bar a { opacity: 0.55; transition: opacity 0.2s; border: none; cursor: pointer; padding: 2px 4px; text-decoration: none; }
.topbar .lang-bar a:hover, .topbar .lang-bar a.active { opacity: 1; color: var(--gold-light); }

/* ============= COUNTRY PICKER ============= */
.country-picker {
  position: relative;
  display: inline-block;
}
.country-btn {
  background: rgba(184, 137, 58, 0.12);
  border: 1px solid rgba(184, 137, 58, 0.45);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.country-btn:hover {
  background: rgba(184, 137, 58, 0.22);
  border-color: var(--gold-light);
}
.country-btn .caret {
  font-size: 9px;
  opacity: 0.7;
}
.country-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(14, 20, 32, 0.18);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.country-menu.open {
  display: block;
}
.country-search {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
}
.country-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}
.country-search input:focus {
  outline: none;
  border-color: var(--gold);
}
.country-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}
.country-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  border: none;
  transition: background 0.15s;
}
.country-list a:hover {
  background: var(--paper-warm);
  color: var(--ink);
}
.country-list .cf {
  font-size: 17px;
  line-height: 1;
}
.country-list .country-all {
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
  }
  .topbar-ticker {
    font-size: 10px;
    white-space: normal;
    text-align: center;
  }
  .country-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 320px;
  }
}

/* ============= NAVIGATION ============= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 234, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s;
}
[data-theme="dark"] .nav { background: rgba(14, 20, 32, 0.96); }

.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.logo {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  display: flex; align-items: baseline; gap: 2px;
}
.logo .mark { color: var(--gold); font-style: italic; }
.logo-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  color: var(--gold-deep); text-transform: uppercase;
  margin-left: 8px; align-self: center;
  border-left: 1px solid var(--line); padding-left: 8px;
}

.nav-links {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--ink); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em; cursor: pointer; transition: color 0.2s;
  padding: 6px 0; display: inline-block; position: relative;
}
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s;
}
.nav-links > li > a:hover { color: var(--gold-deep); }
.nav-links > li > a:hover::after { width: 100%; }
.nav-links > li > a.active::after { width: 100%; }

/* Mega menu / dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--paper-cool); border: 1px solid var(--line);
  min-width: 280px; padding: 16px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.25s;
  box-shadow: var(--shadow-lg); z-index: 200;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown.mega {
  min-width: 720px; left: -260px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px;
}
.dropdown-col h6 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 10px; font-weight: 500;
}
.dropdown a {
  display: block; padding: 6px 0; font-size: 13px; color: var(--ink);
  transition: color 0.2s; cursor: pointer;
}
.dropdown a:hover { color: var(--gold-deep); }
.dropdown a strong { font-weight: 600; display: block; margin-bottom: 2px; }
.dropdown a span { font-size: 11px; color: var(--ink-mute); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.theme-toggle, .lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer; color: var(--ink);
  font-size: 14px; transition: all 0.2s;
}
.theme-toggle:hover, .lang-toggle:hover { border-color: var(--gold); }

.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 11px 22px; border: none;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; border-radius: 2px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--ink);
}

/* ============= COMMON COMPONENTS ============= */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }

.section-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: var(--serif); font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold-deep); font-weight: 300; }

.section-desc {
  font-size: 18px; line-height: 1.6; color: var(--ink-mute); max-width: 640px;
}

.section-header { margin-bottom: 64px; max-width: 760px; }

.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 18px 32px; border: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; border-radius: 2px;
  transition: all 0.25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--gold-deep);
  transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.65,0,0.35,1); z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary .arrow { transition: transform 0.3s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent; color: var(--ink);
  padding: 17px 28px; border: 1px solid var(--line-strong);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; border-radius: 2px; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(14,20,32,0.03); }

.btn-gold {
  background: var(--gold); color: var(--ink);
  padding: 16px 28px; border: none; font-weight: 600;
  cursor: pointer; border-radius: 2px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px;
}
.btn-gold:hover { background: var(--gold-light); }

/* ============= HERO ============= */
.hero {
  position: relative; padding: 80px 32px 100px; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(184,137,58,0.08), transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(74,93,74,0.05), transparent 50%),
              var(--paper);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,20,32,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,20,32,0.025) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 80px; align-items: center; position: relative;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 28px; padding: 6px 14px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(184,137,58,0.06);
}
.hero-tag .dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: var(--serif); font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98; font-weight: 400; letter-spacing: -0.035em;
  margin-bottom: 32px; color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--gold-deep); }
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline::after {
  content: ''; position: absolute; bottom: 0.05em; left: 0; right: 0;
  height: 0.08em; background: var(--gold); opacity: 0.4; z-index: -1;
}
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--ink-mute);
  max-width: 560px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(135deg, #fff 0%, var(--paper-cool) 100%);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 40px; box-shadow: var(--shadow-lg); position: relative;
}
[data-theme="dark"] .hero-card { background: linear-gradient(135deg, var(--paper-warm), var(--paper-cool)); }
.hero-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  border-radius: 4px 4px 0 0;
}
.card-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px;
}
.card-title {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.02em;
}
.card-desc { color: var(--ink-mute); font-size: 14px; margin-bottom: 24px; }

.metrics-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-bottom: 28px;
}
.metric { background: var(--paper-cool); padding: 20px 18px; }
[data-theme="dark"] .metric { background: var(--paper-warm); }
.metric-num {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.metric-num .unit { font-size: 14px; color: var(--gold-deep); font-style: italic; }
.metric-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-mute); font-weight: 500;
}
.start-quiz-btn {
  width: 100%; background: var(--ink); color: var(--paper);
  padding: 18px; border: none; font-family: var(--sans);
  font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 2px;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.start-quiz-btn:hover { background: var(--gold-deep); }

.trust-strip {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; font-size: 12px; color: var(--ink-mute);
}
.avatar-stack { display: flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--paper-cool); margin-left: -8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white; font-weight: 600;
}
.avatar:first-child { margin-left: 0; }
.avatar:nth-child(2) { background: linear-gradient(135deg, var(--sage), #2d3a2d); }
.avatar:nth-child(3) { background: linear-gradient(135deg, var(--crimson), #5a1e14); }
.avatar:nth-child(4) { background: linear-gradient(135deg, var(--ink-soft), var(--ink)); }

/* ============= TICKER ============= */
.ticker {
  background: var(--ink); color: var(--paper);
  padding: 18px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-track {
  display: flex; gap: 48px; animation: scroll 60s linear infinite; white-space: nowrap;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker-item .gold { color: var(--gold-light); }
.ticker-item .green { color: #6bcc7e; }
.ticker-item .sep { color: rgba(255,255,255,0.2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============= GRIDS ============= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.grid-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 80px;
  align-items: start; max-width: 1100px; margin: 0 auto; padding: 0 32px;
}

/* ============= CARDS ============= */
.card {
  background: var(--paper-cool); border: 1px solid var(--line);
  padding: 32px 28px; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
[data-theme="dark"] .card { background: var(--paper-warm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card-eyebrow-mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--gold-deep); margin-bottom: 16px; text-transform: uppercase;
}
.card h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.2;
}
.card p {
  font-size: 14px; line-height: 1.65; color: var(--ink-mute); margin-bottom: 20px;
}
.card-link {
  font-size: 13px; font-weight: 600; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

.card-icon {
  width: 48px; height: 48px; border-radius: 4px;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 20px;
}

/* Pathway cards */
.pathway {
  background: var(--paper-cool); padding: 40px 32px;
  border: 1px solid var(--line); position: relative;
  transition: all 0.3s; overflow: hidden;
}
[data-theme="dark"] .pathway { background: var(--paper-warm); }
.pathway::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.pathway:hover::before { transform: scaleX(1); }
.pathway:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pathway.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pathway.featured::before { background: var(--gold-light); transform: scaleX(1); }
.pathway-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--gold-deep); margin-bottom: 24px;
}
.pathway.featured .pathway-num { color: var(--gold-light); }
.pathway-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--gold); color: var(--ink);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; font-weight: 600;
}
.pathway h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.1;
}
.pathway-investment {
  font-family: var(--mono); font-size: 13px; color: var(--gold-deep); margin-bottom: 20px;
}
.pathway.featured .pathway-investment { color: var(--gold-light); }
.pathway p {
  font-size: 14px; line-height: 1.65; color: var(--ink-mute); margin-bottom: 28px;
}
.pathway.featured p { color: rgba(245,241,234,0.75); }
.pathway-stats {
  display: flex; gap: 32px; margin-bottom: 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.pathway.featured .pathway-stats { border-top-color: rgba(255,255,255,0.1); }
.stat-block .stat-value {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em; display: block; margin-bottom: 2px;
}
.stat-block .stat-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.pathway.featured .stat-block .stat-label { color: rgba(245,241,234,0.5); }
.pathway-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  cursor: pointer; transition: all 0.2s;
}
.pathway.featured .pathway-link { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.pathway-link:hover { gap: 16px; }

/* ============= COMPARISON TABLE ============= */
.comparison-table {
  background: var(--paper-cool); border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 32px;
}
[data-theme="dark"] .comparison-table { background: var(--paper-warm); }
.comparison-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row.header { background: var(--ink); color: var(--paper); }
.comparison-row.header .cell {
  font-family: var(--serif); font-size: 18px; font-weight: 500; padding: 24px 20px;
}
.comparison-row .cell {
  padding: 20px; border-right: 1px solid var(--line);
  font-size: 14px; display: flex; align-items: center;
}
.comparison-row .cell:last-child { border-right: none; }
.comparison-row .cell.label { background: var(--paper-warm); font-weight: 600; }
.cell.highlight { background: rgba(184,137,58,0.08); font-weight: 600; }
.cell-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
}
.cell-tag.green { background: rgba(74,93,74,0.15); color: var(--sage); }
.cell-tag.gold { background: rgba(184,137,58,0.15); color: var(--gold-deep); }
.cell-tag.red { background: rgba(139,46,31,0.12); color: var(--crimson); }

/* ============= PAGE HERO ============= */
.page-hero {
  padding: 80px 32px 60px;
  background: var(--paper-cool); border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .page-hero { background: var(--paper-warm); }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-mute); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { color: var(--line-strong); }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(40px, 5vw, 64px);
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.05;
  margin-bottom: 20px; max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.page-hero-desc {
  font-size: 19px; color: var(--ink-mute); max-width: 760px; line-height: 1.55;
}
.page-hero-meta {
  display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-mute); font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.page-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============= ARTICLE ============= */
.page-content { padding: 80px 0; }

.article {
  font-size: 17px; line-height: 1.75; color: var(--ink);
}
.article h2 {
  font-family: var(--serif); font-size: 36px; font-weight: 500;
  letter-spacing: -0.02em; margin: 56px 0 20px; line-height: 1.15;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin: 36px 0 14px; letter-spacing: -0.015em;
}
.article p { margin-bottom: 20px; }
.article a {
  color: var(--gold-deep); text-decoration: underline;
  text-decoration-color: rgba(184,137,58,0.3);
  text-underline-offset: 3px;
}
.article a:hover { text-decoration-color: var(--gold-deep); }
.article ul, .article ol { margin: 0 0 24px 0; padding-left: 24px; }
.article li { margin-bottom: 10px; line-height: 1.65; }
.article blockquote {
  border-left: 3px solid var(--gold); padding: 8px 0 8px 24px;
  margin: 32px 0; font-family: var(--serif); font-size: 22px;
  font-style: italic; color: var(--ink-mute); line-height: 1.4;
}
.article table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 14px; background: var(--paper-cool); border: 1px solid var(--line);
}
[data-theme="dark"] .article table { background: var(--paper-warm); }
.article th {
  background: var(--ink); color: var(--paper);
  padding: 14px 16px; text-align: left;
  font-family: var(--serif); font-size: 15px; font-weight: 500;
}
.article td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.article tr:last-child td { border-bottom: none; }
.article img { margin: 24px 0; border-radius: 4px; }

.callout {
  background: var(--paper-cool); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 24px 28px; margin: 32px 0;
}
[data-theme="dark"] .callout { background: var(--paper-warm); }
.callout.warning { border-left-color: var(--crimson); }
.callout.tip { border-left-color: var(--sage); }
.callout-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 8px; font-weight: 600;
}
.callout.warning .callout-label { color: var(--crimson); }
.callout.tip .callout-label { color: var(--sage); }
.callout p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ============= SIDEBAR ============= */
.sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--ink); color: var(--paper);
  padding: 28px; margin-bottom: 20px; border-radius: 4px;
}
.sidebar-card.light {
  background: var(--paper-cool); color: var(--ink); border: 1px solid var(--line);
}
[data-theme="dark"] .sidebar-card.light { background: var(--paper-warm); }
.sidebar-card h4 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 8px; line-height: 1.2; letter-spacing: -0.01em;
}
.sidebar-card p {
  font-size: 13px; line-height: 1.55; margin-bottom: 16px;
  color: rgba(245,241,234,0.7);
}
.sidebar-card.light p { color: var(--ink-mute); }
.sidebar-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; border: none;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: 2px; transition: all 0.2s;
  width: 100%;
}
.sidebar-cta:hover { background: var(--paper); }
.sidebar-stats { display: grid; gap: 14px; }
.sidebar-stat {
  padding: 14px 0; border-bottom: 1px solid rgba(245,241,234,0.1);
}
.sidebar-card.light .sidebar-stat { border-bottom-color: var(--line); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat .label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,241,234,0.5); margin-bottom: 4px; font-weight: 600;
}
.sidebar-card.light .sidebar-stat .label { color: var(--ink-mute); }
.sidebar-stat .value {
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
}

/* ============= TAGS ============= */
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tag {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute);
}

/* ============= FAQ ============= */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--serif); font-size: 22px;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  user-select: none; transition: color 0.2s;
}
.faq-question:hover { color: var(--gold-deep); }
.faq-icon {
  font-size: 24px; font-family: var(--serif); color: var(--gold-deep);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 20px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
  font-size: 16px; line-height: 1.7; color: var(--ink-mute);
}
.faq-item.open .faq-answer { max-height: 800px; margin-top: 16px; }

/* ============= TESTIMONIAL ============= */
.testimonial-section {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.testimonial-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.testimonial-quote {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300; font-style: italic; line-height: 1.25;
  letter-spacing: -0.015em; margin-bottom: 40px;
  position: relative; padding-left: 40px;
}
.testimonial-quote::before {
  content: '"'; position: absolute; left: -10px; top: -20px;
  font-size: 120px; color: var(--gold);
  font-family: var(--serif); line-height: 1; opacity: 0.6;
}
.testimonial-attr { display: flex; align-items: center; gap: 16px; }
.testimonial-attr .avatar {
  width: 56px; height: 56px; margin: 0; font-size: 18px;
  border: 2px solid var(--gold);
}
.attr-name { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.attr-detail {
  font-size: 13px; color: rgba(245,241,234,0.6);
  font-family: var(--mono); letter-spacing: 0.05em;
}

/* ============= LEAD CAPTURE ============= */
.lead-section {
  position: relative; padding: 120px 32px;
  background: radial-gradient(ellipse at top right, rgba(184,137,58,0.12), transparent 60%), var(--ink);
  color: var(--paper); overflow: hidden;
}
.lead-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,241,234,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(245,241,234,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.lead-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; position: relative;
}
.lead-text h2 {
  font-family: var(--serif); font-size: clamp(36px, 4vw, 52px);
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.05;
  margin-bottom: 24px;
}
.lead-text h2 em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.lead-text p {
  font-size: 17px; line-height: 1.6;
  color: rgba(245,241,234,0.75); margin-bottom: 32px;
}
.lead-features { list-style: none; display: grid; gap: 16px; }
.lead-features li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: rgba(245,241,234,0.85);
}
.lead-features .icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: rgba(184,137,58,0.2); border: 1px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--gold-light); margin-top: 1px;
}

.lead-form {
  background: rgba(245,241,234,0.04);
  border: 1px solid rgba(245,241,234,0.1);
  padding: 40px; border-radius: 4px; backdrop-filter: blur(10px);
}
.lead-form-title {
  font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 6px;
}
.lead-form-sub {
  font-size: 13px; color: rgba(245,241,234,0.6); margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(245,241,234,0.6);
  margin-bottom: 8px; font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(245,241,234,0.05);
  border: 1px solid rgba(245,241,234,0.15);
  border-radius: 2px; font-family: var(--sans); font-size: 14px;
  color: var(--paper); transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(245,241,234,0.08);
}
.form-group input::placeholder { color: rgba(245,241,234,0.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit {
  width: 100%; background: var(--gold); color: var(--ink);
  padding: 18px; border: none; border-radius: 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; margin-top: 16px;
}
.form-submit:hover { background: var(--paper); transform: translateY(-1px); }
.form-disclaimer {
  font-size: 11px; color: rgba(245,241,234,0.4);
  margin-top: 16px; line-height: 1.5;
}

/* ============= QUIZ MODAL ============= */
.quiz-overlay {
  position: fixed; inset: 0;
  background: rgba(14,20,32,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; animation: fadeIn 0.3s;
}
.quiz-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quiz-modal {
  background: var(--paper); width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto; border-radius: 4px;
  position: relative; animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.quiz-header {
  background: var(--ink); color: var(--paper);
  padding: 28px 36px; display: flex;
  justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
.quiz-progress-text {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-light);
}
.quiz-close {
  background: none; border: none; color: var(--paper);
  font-size: 24px; cursor: pointer;
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s;
}
.quiz-close:hover { background: rgba(255,255,255,0.1); }
.quiz-progress-bar {
  height: 3px; background: rgba(245,241,234,0.1);
  position: relative; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; background: var(--gold); width: 0%; transition: width 0.4s;
}
.quiz-body { padding: 48px 36px; }
.quiz-step { display: none; animation: fadeStep 0.4s; }
.quiz-step.active { display: block; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-q-number {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold-deep); margin-bottom: 14px; text-transform: uppercase;
}
.quiz-question {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px;
}
.quiz-helper {
  font-size: 14px; color: var(--ink-mute); margin-bottom: 32px;
}
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  background: var(--paper-cool);
  border: 1.5px solid var(--line); padding: 18px 22px;
  cursor: pointer; border-radius: 3px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
[data-theme="dark"] .quiz-option { background: var(--paper-warm); }
.quiz-option:hover {
  border-color: var(--gold); background: rgba(184,137,58,0.04); transform: translateX(2px);
}
.quiz-option.selected {
  border-color: var(--ink); background: var(--ink); color: var(--paper);
}
.quiz-option .check {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.quiz-option.selected .check { background: var(--gold); border-color: var(--gold); }
.quiz-option.selected .check::after { content: '✓'; color: var(--ink); font-size: 12px; font-weight: 700; }
.quiz-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid var(--line); border-radius: 3px;
  font-family: var(--sans); font-size: 16px; background: var(--paper-cool);
  color: var(--ink); transition: border 0.2s;
}
[data-theme="dark"] .quiz-input { background: var(--paper-warm); }
.quiz-input:focus { outline: none; border-color: var(--ink); }
.quiz-actions { display: flex; justify-content: space-between; margin-top: 36px; gap: 12px; }
.quiz-back {
  background: none; border: none; color: var(--ink-mute);
  cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.quiz-back:hover { color: var(--ink); }
.quiz-next {
  background: var(--ink); color: var(--paper);
  padding: 14px 28px; border: none; border-radius: 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
}
.quiz-next:hover { background: var(--gold-deep); }
.quiz-next:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;
}
.quiz-result { text-align: center; padding: 20px 0; }
.result-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; background: rgba(74,93,74,0.12); color: var(--sage);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; border-radius: 999px; margin-bottom: 24px; font-weight: 600;
}
.result-badge.high { background: rgba(184,137,58,0.15); color: var(--gold-deep); }
.result-badge.elite { background: rgba(139,46,31,0.12); color: var(--crimson); }
.result-title {
  font-family: var(--serif); font-size: 36px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
}
.result-desc {
  font-size: 16px; color: var(--ink-mute); margin-bottom: 32px;
  line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto;
}
.result-meta {
  background: var(--paper-cool); border: 1px solid var(--line);
  padding: 24px; margin-bottom: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left;
}
[data-theme="dark"] .result-meta { background: var(--paper-warm); }
.result-meta-item .label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px; font-weight: 500;
}
.result-meta-item .value {
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
}

/* ============= AD PLACEHOLDERS ============= */
.ad-slot {
  border: 1px dashed var(--line-strong);
  padding: 20px; text-align: center; margin: 32px 0;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--paper-cool); border-radius: 2px;
}
[data-theme="dark"] .ad-slot { background: var(--paper-warm); }
.ad-slot.large { padding: 80px 20px; }

/* ============= FOOTER ============= */
footer {
  background: var(--ink); color: var(--paper);
  padding: 80px 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-disclaimer {
  background: rgba(245,241,234,0.03); border-left: 2px solid var(--gold);
  padding: 16px 20px; margin-bottom: 32px;
  font-size: 12px; line-height: 1.6;
  color: rgba(245,241,234,0.55);
  font-family: var(--serif); font-style: italic;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,241,234,0.1); margin-bottom: 32px;
}
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo .mark { color: var(--gold-light); }
.footer-tagline {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: rgba(245,241,234,0.6); margin-top: 16px; max-width: 320px; line-height: 1.5;
}
.footer-newsletter { margin-top: 24px; }
.footer-newsletter input {
  width: 100%; padding: 12px 14px;
  background: rgba(245,241,234,0.05); border: 1px solid rgba(245,241,234,0.15);
  color: var(--paper); border-radius: 2px;
  font-family: var(--sans); font-size: 13px; margin-bottom: 8px;
}
.footer-newsletter button {
  width: 100%; padding: 12px;
  background: var(--gold); color: var(--ink); border: none; border-radius: 2px;
  font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.footer-newsletter button:hover { background: var(--gold-light); }
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 20px; font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
  color: rgba(245,241,234,0.7); font-size: 14px; transition: color 0.2s; cursor: pointer;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(245,241,234,0.4); flex-wrap: wrap; gap: 16px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ============= CHATBOT ============= */
.chatbot-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: all 0.3s;
}
.chatbot-fab:hover { background: var(--gold-deep); transform: scale(1.05); }
.chatbot-fab::before {
  content: ''; position: absolute; top: 4px; right: 4px;
  width: 10px; height: 10px; background: var(--gold);
  border: 2px solid var(--ink); border-radius: 50%;
}

.chatbot-window {
  position: fixed; bottom: 96px; right: 24px;
  width: 380px; max-width: calc(100vw - 48px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow-lg); z-index: 501;
  display: none; flex-direction: column;
}
.chatbot-window.active { display: flex; }
.chatbot-header {
  background: var(--ink); color: var(--paper);
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
}
.chatbot-header h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0;
}
.chatbot-header .status {
  font-size: 11px; color: var(--gold-light); display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); letter-spacing: 0.1em;
}
.chatbot-header .status::before {
  content: ''; width: 6px; height: 6px; background: #6bcc7e; border-radius: 50%;
}
.chatbot-close {
  background: none; border: none; color: var(--paper); cursor: pointer; font-size: 20px;
}
.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  background: var(--paper-cool); display: flex; flex-direction: column; gap: 12px;
}
[data-theme="dark"] .chatbot-messages { background: var(--paper-warm); }
.chat-msg {
  max-width: 85%; padding: 12px 16px; border-radius: 4px;
  font-size: 14px; line-height: 1.5;
}
.chat-msg.bot {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); align-self: flex-start;
}
.chat-msg.user {
  background: var(--ink); color: var(--paper); align-self: flex-end;
}
.chatbot-suggestions {
  padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--line);
}
.chat-suggestion {
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  cursor: pointer; transition: all 0.2s;
}
.chat-suggestion:hover { border-color: var(--gold); color: var(--gold-deep); }
.chatbot-input-row { padding: 12px 20px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.chatbot-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line);
  background: var(--paper-cool); color: var(--ink); border-radius: 2px; font-size: 14px;
}
[data-theme="dark"] .chatbot-input-row input { background: var(--paper-warm); }
.chatbot-input-row button {
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border: none; border-radius: 2px; cursor: pointer; font-size: 13px;
}

/* ============= TOAST ============= */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: var(--paper);
  padding: 14px 24px; border-radius: 2px; font-size: 14px;
  z-index: 2000; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
  transition: transform 0.4s; max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============= MOBILE MENU ============= */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--paper); z-index: 200; padding: 80px 32px;
  flex-direction: column; gap: 16px; overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 24px; color: var(--ink);
  font-weight: 400; letter-spacing: -0.01em; cursor: pointer;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; font-size: 28px; cursor: pointer; color: var(--ink);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
.fade-in-up-1 { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.fade-in-up-2 { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.fade-in-up-3 { animation: fadeInUp 0.6s ease-out 0.3s backwards; }

/* ============= MOBILE ============= */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links > li > a { font-size: 13px; }
  .dropdown.mega { left: -180px; }
}

@media (max-width: 968px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 24px 64px; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .lead-inner { grid-template-columns: 1fr; gap: 48px; }
  .lead-section { padding: 64px 24px; }
  .grid-sidebar { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-pad { padding: 64px 0; }
  .container, .container-narrow { padding: 0 24px; }

  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row .cell { border-right: none; border-bottom: 1px solid var(--line); }
  .comparison-row.header { display: none; }
  .comparison-row .cell::before {
    content: attr(data-label);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--gold-deep); font-weight: 600; margin-right: 12px; min-width: 90px;
  }

  .quiz-modal { max-height: 100vh; border-radius: 0; }
  .quiz-body { padding: 32px 24px; }
  .quiz-form-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .result-meta { grid-template-columns: 1fr; }
  .testimonial-quote { padding-left: 0; font-size: 24px; }
  .testimonial-quote::before { display: none; }
  .article h2 { font-size: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 48px 24px 40px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .pathway-stats { flex-wrap: wrap; gap: 20px; }
  .nav-inner { padding: 14px 20px; }
  .logo { font-size: 22px; }
  .logo-tag { display: none; }
  .chatbot-window { right: 12px; left: 12px; bottom: 80px; width: auto; }
  .chatbot-fab { right: 16px; bottom: 16px; }
}

/* ============= SEARCH OVERLAY ============= */
.search-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.search-toggle:hover {
  background: var(--paper-warm);
  border-color: var(--gold);
}

#mgcSearchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 32, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  padding: 80px 20px 20px;
  overflow-y: auto;
}
#mgcSearchOverlay.active { display: block; }

.mgc-search-modal {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: mgcSearchPop 0.2s ease-out;
}
@keyframes mgcSearchPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mgc-search-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 8px 16px;
}
.mgc-search-header input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  color: var(--ink);
}
.mgc-search-header button {
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
}

.mgc-search-meta {
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}

.mgc-search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.mgc-search-result {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.1s;
}
.mgc-search-result:hover { background: var(--paper-warm); }
.mgc-search-result-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.mgc-search-result-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}
.mgc-search-result-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .search-toggle { display: none; }
  #mgcSearchOverlay { padding-top: 40px; }
  .mgc-search-header input { font-size: 16px; }
}

/* ============= COOKIE BANNER ============= */
#mgcCookieBanner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 18px 22px;
  z-index: 9990;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  font-family: 'Inter Tight', sans-serif;
}
#mgcCookieBanner.show { opacity: 1; transform: translateY(0); }

.mgc-cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mgc-cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245,241,234,0.92);
}
.mgc-cookie-text a {
  color: var(--gold-light);
  text-decoration: underline;
}
.mgc-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.mgc-cookie-btn-primary,
.mgc-cookie-btn-secondary {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.mgc-cookie-btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: none;
}
.mgc-cookie-btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(245,241,234,0.3);
}
.mgc-cookie-btn-primary:hover { background: var(--gold-light); }
.mgc-cookie-btn-secondary:hover { background: rgba(245,241,234,0.08); }

@media (max-width: 600px) {
  .mgc-cookie-inner { flex-direction: column; align-items: stretch; }
  .mgc-cookie-actions { width: 100%; }
  .mgc-cookie-btn-primary, .mgc-cookie-btn-secondary { flex: 1; }
}

/* ============= LOADING STATES ============= */
.mgc-skeleton {
  background: linear-gradient(90deg, var(--paper-warm) 0%, var(--rule) 50%, var(--paper-warm) 100%);
  background-size: 200% 100%;
  animation: mgcShimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes mgcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mgc-skeleton-text { height: 14px; margin-bottom: 10px; }
.mgc-skeleton-title { height: 28px; margin-bottom: 14px; max-width: 70%; }
.mgc-skeleton-card { padding: 24px; border-radius: 8px; background: var(--paper-warm); margin: 16px 0; }

.mgc-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--rule);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mgcSpin 0.8s linear infinite;
}
@keyframes mgcSpin { to { transform: rotate(360deg); } }

/* Page transition fade-in */
body { animation: mgcFadeIn 0.3s ease-out; }
@keyframes mgcFadeIn { from { opacity: 0.8; } to { opacity: 1; } }

/* Image loading placeholder */
img[loading="lazy"] {
  background: var(--paper-warm);
  min-height: 50px;
}

/* iframe loading state (for YouTube embeds) */
iframe[loading="lazy"] {
  background: var(--ink);
}

/* Top progress bar for slow page loads */
#mgcProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 99999;
  transition: width 0.3s ease, opacity 0.5s ease;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
#mgcProgressBar.active { opacity: 1; }
