/* ==========================================================================
   InvestingSage — Shared Design System
   Brand: navy / forest-green gem mark, gold divider, editorial serif accent
   ========================================================================== */

:root {
  --navy-900: #0f2038;
  --navy-800: #16294a;
  --navy-700: #1d3a63;
  --navy-600: #274a7a;
  --green-700: #1f4d3d;
  --green-600: #2f6b52;
  --green-500: #3f8064;
  --green-400: #6fae8c;
  --gold-500: #b7975a;
  --gold-400: #cdb27e;
  --bg-page: #f6f7f9;
  --bg-panel: #ffffff;
  --bg-tint: #eef2f0;
  --border: #e1e5ea;
  --text-dark: #182333;
  --text-body: #3d4653;
  --text-muted: #6b7480;
  --text-inverse: #f2f5f4;
  --danger: #b3402f;
  --ok: #2f6b52;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 32, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 32, 56, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 32, 56, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
ul { padding-left: 1.2em; }
img { max-width: 100%; display: block; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.serif-accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  background: linear-gradient(100deg, var(--green-700), var(--green-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Top utility / disclosure strip ---------- */
.disclosure-strip {
  background: var(--navy-900);
  color: var(--text-inverse);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 16px;
}
.disclosure-strip a { color: var(--gold-400); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  --brand-logo-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: calc(var(--brand-logo-height) * 2.29);
  max-width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand img {
  height: var(--brand-logo-height);
  width: auto;
  mix-blend-mode: multiply;
}
.brand-tagline {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--green-700);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .tag {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--green-600);
  text-transform: uppercase;
  margin-top: 1px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.main-nav a {
  color: var(--text-body);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-body); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--green-700) 130%);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(111,174,140,0.25), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #d5dde3; font-size: 1.08rem; max-width: 46ch; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(183,151,90,0.12);
  border: 1px solid rgba(183,151,90,0.35);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card { background: rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 16px; border: 1px solid rgba(255,255,255,0.1); }
.stat-card .num { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-card .lbl { font-size: 0.75rem; color: #b9c4cd; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Sections ---------- */
section.section { padding: 72px 0; }
section.section.tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { background: rgba(47,107,82,0.08); color: var(--green-700); border-color: rgba(47,107,82,0.25); }

/* ---------- Pathway / Feature cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pathway-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.pathway-card.research { background: linear-gradient(150deg, #10233d, #1d3a63); color: #fff; }
.pathway-card.advisory { background: linear-gradient(150deg, #1a3a2e, #2f6b52); color: #fff; }
.pathway-card h3 { color: #fff; font-size: 1.5rem; }
.pathway-card p { color: rgba(255,255,255,0.85); }
.pathway-card .tag-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.pathway-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.pathway-card ul li { padding: 6px 0 6px 26px; position: relative; color: rgba(255,255,255,0.92); font-size: 0.92rem; }
.pathway-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-400); font-weight: 700; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tint);
  color: var(--green-700);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ---------- Badges / tags / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: rgba(47,107,82,0.1); color: var(--green-700); }
.badge-grey { background: rgba(90,100,110,0.12); color: #5a646e; }
.badge-gold { background: rgba(183,151,90,0.15); color: #8a6c2f; }
.badge-navy { background: rgba(29,58,99,0.1); color: var(--navy-700); }
.badge-lock { background: rgba(179,64,47,0.1); color: var(--danger); }

/* ---------- Report / feed cards ---------- */
.report-card { display: flex; flex-direction: column; height: 100%; }
.report-card .meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.report-card h3 { margin-bottom: 6px; }
.report-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tabs button {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-body);
}
.filter-tabs button.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.pricing-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow-lg); }
.pricing-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900); font-size: 0.68rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pricing-card .price { font-family: 'Poppins', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--navy-900); margin: 10px 0 4px; }
.pricing-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; text-align: left; margin: 22px 0; }
.pricing-card ul li { padding: 7px 0 7px 26px; position: relative; font-size: 0.9rem; border-bottom: 1px dashed var(--border); }
.pricing-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }

/* ---------- Timeline (onboarding) ---------- */
.timeline { position: relative; margin: 40px 0; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green-600), var(--navy-700)); }
.timeline-step { position: relative; padding: 0 0 36px 62px; }
.timeline-step .num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; border: 4px solid var(--bg-page);
}
.timeline-step:nth-child(odd) .num { background: var(--green-700); }

/* ---------- Table ---------- */
table.data-table { width: 100%; border-collapse: collapse; background: var(--bg-panel); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data-table th, table.data-table td { padding: 13px 16px; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--navy-900); color: #fff; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td.pos { color: var(--ok); font-weight: 600; }
table.data-table td.neg { color: var(--danger); font-weight: 600; }

/* ---------- Forms ---------- */
.form-panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.92rem; font-family: inherit; background: #fcfcfd;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green-600); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* ---------- Chart container ---------- */
.chart-box { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.legend-row { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; font-size: 0.82rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ---------- Disclosure / alert boxes ---------- */
.alert-box { border-radius: var(--radius-md); padding: 18px 20px; font-size: 0.88rem; border: 1px solid; }
.alert-box.info { background: rgba(29,58,99,0.06); border-color: rgba(29,58,99,0.25); color: var(--navy-700); }
.alert-box.warn { background: rgba(183,151,90,0.1); border-color: rgba(183,151,90,0.4); color: #8a6c2f; }
.disclosure-box { background: var(--bg-tint); border-left: 4px solid var(--green-600); padding: 16px 20px; font-size: 0.82rem; color: var(--text-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 30px; }

/* ---------- Grievance escalation ---------- */
.escalation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.escalation-grid .card { border-top: 4px solid var(--navy-700); }
.escalation-grid .card:nth-child(2) { border-top-color: var(--gold-500); }
.escalation-grid .card:nth-child(3) { border-top-color: var(--green-600); }
.step-number { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--bg-tint); -webkit-text-stroke: 1.5px var(--navy-700); margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: #cdd6dc; padding: 56px 0 24px; margin-top: 60px; }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer a { color: #b9c4cd; font-size: 0.88rem; display: block; margin-bottom: 8px; }
footer.site-footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.78rem; color: #8a97a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 32px; }
.footer-legal { font-size: 0.76rem; color: #8a97a3; line-height: 1.7; }

/* ---------- Lock overlay (paywall) ---------- */
.lock-overlay {
  position: relative;
}
.lock-overlay .locked-content { filter: blur(3.5px); user-select: none; pointer-events: none; opacity: 0.7; }
.lock-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(246,247,249,0.55); text-align: center; padding: 20px; border-radius: var(--radius-md);
}
.lock-cta .lock-icon { font-size: 2rem; color: var(--navy-700); margin-bottom: 10px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.small { font-size: 0.82rem; }
.divider-gold { height: 2px; width: 60px; background: var(--gold-500); margin: 16px auto; border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .escalation-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .hamburger { display: block; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .brand img { height: var(--brand-logo-height); max-width: 100%; }
}
@media (max-width: 900px) {
  nav.main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 14px; }
}

/* ---------- Mobile-first refinements ---------- */
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .disclosure-strip { padding: 6px 12px; font-size: 0.68rem; line-height: 1.35; }
  .nav-row { min-height: 60px; padding: 8px 16px; position: relative; }
  .brand { min-width: 0; }
  .brand { --brand-logo-height: 54px; }
  .brand img { max-width: 100%; }
  .brand-tagline { font-size: 0.64rem; }
  .nav-cta { gap: 0; }
  .nav-cta .btn { display: none; }
  .hamburger { display: block; width: 44px; height: 44px; padding: 0; font-size: 1.5rem; }
  nav.main-nav.open { top: 100%; padding: 12px 16px 16px; gap: 2px; box-shadow: var(--shadow-md); }
  nav.main-nav.open a { width: 100%; padding: 12px 8px; border-bottom: 1px solid var(--border); }
  nav.main-nav.open a:last-child { border-bottom: 0; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding: 52px 16px 56px; gap: 28px; }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: 10px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-card .num { font-size: 1.25rem; }
  section.section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; text-align: left; }
  .grid-2, .grid-3, .grid-4 { gap: 16px; }
  .card, .pathway-card { padding: 20px; }
  .pathway-card { border-radius: var(--radius-md); }
  .btn { min-height: 44px; padding: 10px 16px; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { padding: 10px 9px; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
  .form-actions, .form-row, .flex-between { align-items: stretch; }
  .form-actions .btn, .form-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer.site-footer { padding: 40px 0 20px; margin-top: 40px; }
  .footer-bottom { flex-direction: column; margin-top: 28px; gap: 6px; }
  .hero-inner, .container, section.section, .card, .form-panel, .grid-2, .grid-3, .grid-4,
  .footer-grid, .flex-between, .form-grid-2, .form-row, .hero-actions { min-width: 0; max-width: 100%; }
  .hero-inner > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .footer-grid > *, .form-grid-2 > * { min-width: 0; }
  .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .hero-actions .btn, .card .btn { max-width: 100%; }
  .stat-card .num, h1, h2, h3, h4, p, li, td, th, label, a { overflow-wrap: anywhere; }
  .filter-tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  pre, code { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
  iframe, video, canvas, svg { max-width: 100%; }
}
