/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1f2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --text: #1a1f2e;
  --text-muted: #5a6477;
  --border: #e4e8ef;
  --primary: #0a4d8c;
  --primary-dark: #073a6b;
  --accent: #c8a050;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(10, 30, 60, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 30, 60, 0.1);
}

body.dark {
  --bg: #0e1320;
  --bg-alt: #161c2d;
  --text: #e8ecf3;
  --text-muted: #9aa4b8;
  --border: #2a3245;
  --primary: #4a90d9;
  --primary-dark: #3a7ec0;
  --accent: #d4b06a;
  --card-bg: #161c2d;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: var(--bg);
  color: var(--text);
}

body { background: var(--bg); color: var(--text); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
body.dark .site-header { background: rgba(14, 19, 32, 0.95); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-text { color: var(--text); font-size: 1.05rem; }

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--primary); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(10, 77, 140, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 { max-width: 900px; margin: 0 auto 1.25rem; }
.hero h1 .accent { color: var(--primary); }
.hero-sub {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.credentials {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.credentials strong { color: var(--text); }

/* ---------- About ---------- */
.about { padding: 5rem 0; background: var(--bg); }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Services / Strategy ---------- */
.services { padding: 5rem 0; background: var(--bg-alt); }
.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}
.services h2, .fees h2, .compliance h2, .team h2 { text-align: center; }
.eyebrow.center { display: block; text-align: center; margin: 0 auto 1rem; width: fit-content; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(10, 77, 140, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Vision / Goal mini-cards (inside About) ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.vm-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.25rem;
}
.vm-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.vm-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Team ---------- */
.team { padding: 5rem 0; background: var(--bg); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.member {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.member h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.member-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.member-creds {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.member-creds li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
}
.member-creds li::before {
  content: "▸ ";
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Fees ---------- */
.fees { padding: 5rem 0; background: var(--bg); }
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing.pricing-single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.pricing.pricing-single .plan.featured { transform: none; }
.pricing.pricing-single .plan.featured:hover { transform: translateY(-4px); }
.pricing.pricing-five {
  grid-template-columns: repeat(5, 1fr);
}
.pricing.pricing-five .plan.featured { transform: none; }
.pricing.pricing-five .plan.featured:hover { transform: translateY(-4px); }
.fee-note {
  max-width: 620px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.plan {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.plan.featured:hover { transform: scale(1.03) translateY(-4px); }
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
}
.price span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.plan-meta {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.plan ul,
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  flex: 1;
}
.plan li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.plan li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- Compliance ---------- */
.compliance { padding: 5rem 0; background: var(--bg-alt); }
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.comp-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.comp-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.comp-card h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.comp-card p { font-size: 0.85rem; margin: 0; }
.disclaimer {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.disclaimer strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact { padding: 5rem 0; background: var(--bg); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 0.5rem;
}
.contact-list strong { color: var(--text); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-success {
  color: #27ae60;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0;
}
body.dark .form-success { color: #2ecc71; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }
.footer-blurb { font-size: 0.9rem; margin-top: 0.75rem; }

.copyright {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Research / Google Sheets ---------- */
.research { padding: 5rem 0; background: var(--bg); }
.research h2 { text-align: center; }

.sheet-ui {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Tab bar */
.sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
  overflow-x: auto;
}
.sheet-tab {
  padding: 0.75rem 1.4rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.sheet-tab:hover { color: var(--text); }
.sheet-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
  background: var(--card-bg);
}

/* Table area */
.sheet-body { padding: 0; }

.sheet-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sheet-error {
  padding: 2rem;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1.6;
}
body.dark .sheet-error { color: #e57373; }
.sheet-empty {
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sheet-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sheet-table thead {
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 1;
}
.sheet-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.sheet-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.sheet-table tbody tr:last-child td { border-bottom: none; }
.sheet-table tbody tr:hover { background: rgba(10, 77, 140, 0.04); }
body.dark .sheet-table tbody tr:hover { background: rgba(74, 144, 217, 0.06); }

.sheet-count {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  border-top: 1px solid var(--border);
  margin: 0;
}
.sheet-title {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.zero-badge {
  display: inline-block;
  background: rgba(39, 174, 96, 0.12);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.dark .zero-badge {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.25);
}
.cell-dash {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Disclaimer Bar ---------- */
.disclaimer-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer-bar strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards, .pricing { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-4px); }
  .compliance-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0 3rem; }
}
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .compliance-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .credentials { gap: 1rem; flex-direction: column; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Insights ---------- */
.insights { padding: 5rem 0; }
.insights-tabs {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0 1.75rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.insight-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.insight-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.insight-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.insight-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.insight-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.insights-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insights-tabs { gap: 0.5rem; }
}
