/* ============================================================
   Global Finance — Investment Directory & Planner
   Shared design system
   ============================================================ */

.direct-open-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--blue-100, #e8edff);
  color: var(--navy-950, #0a1128);
  font-size: 0.86rem;
  padding: 10px 44px 10px 16px;
  text-align: center;
  position: relative;
}
.direct-open-banner a { color: var(--blue-600, #2f5dff); font-weight: 700; text-decoration: underline; }
.direct-open-banner #dismissDirectBanner {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 0.9rem; color: var(--navy-950, #0a1128); opacity: 0.6;
}
.direct-open-banner #dismissDirectBanner:hover { opacity: 1; }

:root {
  --navy-950: #0a1128;
  --navy-900: #0f1b3d;
  --navy-800: #16245a;
  --navy-700: #1f3270;
  --blue-600: #2f5dff;
  --blue-500: #4d78ff;
  --blue-100: #e8edff;
  --teal-500: #14b8a6;
  --teal-100: #d8f7f1;
  --gold-500: #d4a72c;
  --gold-100: #fbf3da;
  --red-500: #e0445b;
  --green-600: #1c9d6b;

  --ink-900: #10142b;
  --ink-700: #3a3f5c;
  --ink-500: #6b7090;
  --ink-300: #a8acc4;
  --ink-100: #e6e8f3;
  --bg-page: #f6f7fc;
  --bg-card: #ffffff;

  --risk-low: #1c9d6b;
  --risk-medium: #d4a72c;
  --risk-high: #e0793a;
  --risk-veryhigh: #e0445b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 20, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 20, 43, 0.10);
  --shadow-lg: 0 20px 60px rgba(16, 20, 43, 0.18);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.text-center { text-align: center; }
.muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), #6a3df0); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--navy-900); border: 1.5px solid var(--ink-100); }
.btn-secondary:hover { border-color: var(--blue-500); }
.btn-ghost { background: transparent; color: var(--navy-900); padding: 10px 16px; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Top Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-100); color: var(--blue-600); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(47, 93, 255, 0.18), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -240px; left: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--navy-950); }
.hero h1 span { color: var(--blue-600); }
.hero p.lead { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy-950); }
.hero-stat .label { font-size: 0.82rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  height: 460px;
}
.float-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  width: 230px;
  border: 1px solid var(--ink-100);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 8px;}
.float-card h4 { font-size: 1rem; margin-bottom: 4px; }
.float-card .meta { font-size: 0.78rem; color: var(--ink-500); }
.float-card.c1 { top: 0; left: 30px; }
.float-card.c2 { top: 165px; right: 0; animation-delay: 1.4s; }
.float-card.c3 { top: 330px; left: 60px; animation-delay: 2.8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Category grid (index) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  cursor: pointer;
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.cat-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: var(--blue-100);
}
.cat-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--navy-950); }
.cat-card .count { font-size: 0.84rem; color: var(--ink-500); font-weight: 600; }

/* ---------- Section heading ---------- */
.section-head { max-width: 680px; margin: 0 auto 16px; text-align: center; }
.section-head.left { margin: 0 0 16px; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy-950); }

/* ---------- Strip / band ---------- */
.band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.78); }
.band .btn-primary { background: #fff; color: var(--navy-950); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step-card { text-align: center; padding: 8px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-display);
  margin: 0 auto 16px; font-size: 1.2rem;
}

/* ---------- Directory page layout ---------- */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.filters-panel h3 { font-size: 1rem; margin-bottom: 14px; }
.filter-group { margin-bottom: 22px; }
.filter-group > label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-500); display: block; margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1.5px solid var(--ink-100);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--blue-500); }
.chip.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.search-box {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-100);
  font-size: 0.95rem;
  background: #fff;
}
.search-box:focus { outline: none; border-color: var(--blue-500); }
.select-box {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-100);
  font-size: 0.88rem;
  background: #fff;
  color: var(--ink-900);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-bar .count { font-weight: 700; color: var(--navy-950); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.inv-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.inv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.inv-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.inv-card .cat-pill {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--blue-100); color: var(--blue-600); padding: 4px 10px; border-radius: 999px;
}
.inv-card .region-pill {
  font-size: 0.68rem; font-weight: 700; color: var(--ink-500); background: var(--ink-100); padding: 4px 10px; border-radius: 999px;
}
.inv-card h4 { font-size: 1.02rem; margin-bottom: 4px; color: var(--navy-950); }
.inv-card .subgroup { font-size: 0.76rem; color: var(--ink-500); margin-bottom: 10px; font-weight: 600; }
.inv-card .desc { font-size: 0.88rem; color: var(--ink-700); margin-bottom: 14px; min-height: 60px; }
.trait-row { display: flex; flex-wrap: wrap; gap: 6px; }
.trait {
  font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 4px;
}
.trait.risk-low { background: var(--teal-100); color: var(--green-600); }
.trait.risk-medium { background: var(--gold-100); color: #8a6500; }
.trait.risk-high { background: #ffe8df; color: #b6491f; }
.trait.risk-veryhigh { background: #ffe1e6; color: var(--red-500); }
.trait.neutral { background: var(--ink-100); color: var(--ink-700); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.load-more-wrap { text-align: center; margin-top: 28px; }

/* ---------- Planner ---------- */
.planner-shell {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-100);
  padding: 44px;
  max-width: 860px;
  margin: 0 auto;
}
.progress-track {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.progress-track::before {
  content: "";
  position: absolute;
  top: 16px; left: 0; right: 0;
  height: 3px;
  background: var(--ink-100);
  z-index: 0;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1; background: var(--bg-card); flex: 1;
}
.progress-step .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink-100); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  transition: all 0.2s;
}
.progress-step.active .dot, .progress-step.done .dot { background: var(--blue-600); color: #fff; }
.progress-step .lbl { font-size: 0.74rem; color: var(--ink-500); font-weight: 600; text-align: center; }
.progress-step.active .lbl { color: var(--blue-600); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-100); font-size: 0.95rem; background: #fbfbfe;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.form-field .hint { font-size: 0.76rem; color: var(--ink-500); margin-top: 5px; }

.slider-field { margin-bottom: 26px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.slider-head label { font-weight: 700; font-size: 0.92rem; color: var(--navy-950); }
.slider-head .val { font-size: 0.82rem; font-weight: 700; color: var(--blue-600); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; }
.slider-field input[type="range"] {
  width: 100%; height: 6px; border-radius: 999px; background: var(--ink-100);
  -webkit-appearance: none; appearance: none; margin-top: 4px;
}
.slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-600); cursor: pointer; box-shadow: 0 2px 6px rgba(47,93,255,0.4);
  border: 3px solid #fff;
}
.slider-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); cursor: pointer; border: 3px solid #fff;
}
.slider-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-300); margin-top: 4px; }

.step-actions { display: flex; justify-content: space-between; margin-top: 36px; }

.gender-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gender-row.stacked { flex-direction: column; }
.gender-opt {
  flex: 1; min-width: 100px; text-align: center; padding: 12px;
  border: 1.5px solid var(--ink-100); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 0.88rem;
}
.gender-opt.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------- Current holdings breakdown (Step 2) ---------- */
.holdings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; margin-bottom: 6px; }
.holdings-total {
  font-weight: 700; font-size: 0.95rem; color: var(--navy-950);
  background: #fbfbfe; border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 8px;
}
.holdings-total span { color: var(--blue-600); }

/* ---------- Portfolio score card (Step 3 results) ---------- */
.score-card {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 28px; color: #fff;
}
.score-circle {
  flex-shrink: 0; width: 86px; height: 86px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 3px solid var(--blue-500);
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.score-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.score-max { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.score-body { flex: 1; min-width: 0; }
.score-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.score-breakdown { display: flex; flex-direction: column; gap: 4px; }
.score-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.78); }
.score-row .pts { font-weight: 700; color: #fff; flex-shrink: 0; }

/* ---------- Lifestyle goal slider graphics (Step 3 pref panel) ---------- */
.lifestyle-field { border-top: 1px dashed var(--ink-100); padding-top: 20px; margin-top: 4px; }
.lifestyle-display {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-sm); padding: 10px 12px;
}
.lifestyle-display .emoji { font-size: 1.8rem; line-height: 1; }
.lifestyle-display .ld-name { font-weight: 700; font-size: 0.88rem; color: var(--navy-950); display: block; }
.lifestyle-display .ld-caption { font-size: 0.74rem; color: var(--ink-500); }

/* ---------- Live preferences + results workshop (Step 3) ---------- */
.live-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.pref-panel {
  background: #fbfbfe;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.pref-panel h4 { font-size: 1rem; margin-bottom: 4px; }
.live-results { min-width: 0; }
.plan-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.chart-wrap { background: #fbfbfe; border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--ink-100); }
.alloc-list { display: flex; flex-direction: column; gap: 10px; }
.alloc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: #fbfbfe; border: 1px solid var(--ink-100); }
.alloc-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.alloc-row .name { flex: 1; font-weight: 600; font-size: 0.88rem; }
.alloc-row .pct { font-weight: 800; color: var(--navy-950); font-size: 0.95rem; }
.alloc-row .amt { font-size: 0.78rem; color: var(--ink-500); display: block; }

.disclaimer-box {
  background: var(--gold-100); border: 1px solid #f0dba0; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 0.85rem; color: #6b5300; margin: 24px 0;
}
.backend-note {
  background: var(--blue-100); border: 1px solid #c7d4ff; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 0.85rem; color: #1f3aa8; margin: 24px 0;
}

.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.summary-card { background: #fbfbfe; border: 1px solid var(--ink-100); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.summary-card .v { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--navy-950); }
.summary-card .l { font-size: 0.74rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; }

.suggested-instruments { margin-top: 30px; }
.sugg-bucket { margin-bottom: 26px; }
.sugg-bucket h4 { font-size: 0.95rem; margin-bottom: 10px; }
.sugg-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg-chip { background: var(--bg-card); border: 1px solid var(--ink-100); border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 600; color: var(--ink-700); }

/* Fund example cards (with alpha/beta/expense ratio detail) */
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fund-card {
  background: var(--bg-card); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.fund-card .fund-name { font-weight: 700; font-size: 0.92rem; color: var(--navy-950); line-height: 1.3; }
.fund-card .fund-type { font-size: 0.75rem; color: var(--ink-500); font-weight: 600; }
.fund-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }
.fund-metric { display: flex; flex-direction: column; background: #fbfbfe; border-radius: 7px; padding: 6px 8px; }
.fund-metric .k { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); font-weight: 700; }
.fund-metric .v { font-size: 0.86rem; font-weight: 700; color: var(--navy-950); }
.fund-card .fund-min { font-size: 0.74rem; color: var(--ink-500); }
.fund-illustrative-tag { font-size: 0.66rem; color: var(--ink-300); font-style: italic; }

/* ---------- Print-only PDF report ---------- */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  #printReport, #printReport * { visibility: visible; }
  #printReport {
    display: block !important;
    position: absolute; top: 0; left: 0; width: 100%;
    padding: 24px; font-family: var(--font-body); color: #111;
  }
  #printReport h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
  #printReport .pr-meta { font-size: 0.85rem; color: #555; margin-bottom: 18px; }
  #printReport table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 0.85rem; }
  #printReport th, #printReport td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; }
  #printReport .pr-disclaimer { font-size: 0.78rem; color: #444; border-top: 1px solid #ccc; padding-top: 10px; margin-top: 14px; }
  #printReport h3 { font-size: 1.05rem; margin: 18px 0 8px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 56px 0 28px; margin-top: 60px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { color: rgba(255,255,255,0.65); display: block; margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .directory-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; max-height: none; }
  .results-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .pref-panel { position: static; max-height: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .holdings-grid { grid-template-columns: 1fr; }
  .score-card { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .band { padding: 32px 20px; }
}
