/* ============================================================
   Mutual Fund Shoppe — sharp minimalist theme (black / white / teal)
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f2;
  --text-muted: #989792;
  --text-faint: #66655f;
  --accent: #3e8577;      /* teal from the tree logo */
  --accent-strong: #57a794;
  --accent-soft: rgba(62, 133, 119, 0.14);
  --header-bg: rgba(10, 10, 11, 0.92);
  --footer-bg: #000;
  --btn-primary-fg: #0a0a0b;
  --map-dot: #26262b;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

/* ---------- Light mode ---------- */
html[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-alt: #efeee9;
  --surface: #ffffff;
  --surface-2: #e6e5e0;
  --border: rgba(20, 20, 18, 0.10);
  --border-strong: rgba(20, 20, 18, 0.24);
  --text: #171611;
  --text-muted: #56554f;
  --text-faint: #8b8a83;
  --accent: #2e7d6f;
  --accent-strong: #25655a;
  --accent-soft: rgba(46, 125, 111, 0.12);
  --header-bg: rgba(247, 246, 243, 0.92);
  --footer-bg: #eceae4;
  --btn-primary-fg: #f7f6f3;
  --map-dot: #dbd9d2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.accent { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Buttons (sharp) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--text);
  color: var(--btn-primary-fg);
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-muted); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 10px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Top bar (stays dark in both themes) ---------- */
.topbar {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: #9b9a95;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-link:hover { color: var(--accent); }
.topbar-divider { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.18); }
.topbar-right { display: flex; gap: 14px; }
.social-link { color: #66655f; display: inline-flex; transition: color 0.2s; }
.social-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 74px;
}
.header-inner .nav { margin-left: auto; }
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 26px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 40px; height: 40px; display: block; flex: none; }
.brand-text {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-inner {
  padding: 120px 0 0;
  max-width: 900px;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  padding-top: 110px;
}
.hero-visual img {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 24px 70px rgba(62, 133, 119, 0.28));
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-sub {
  margin: 30px 0 0;
  max-width: 580px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.hero-stat {
  padding: 30px 28px 36px;
  border-right: 1px solid var(--border);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat-num,
.hero-stat-suffix {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-stat-prefix { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stat-suffix { color: var(--accent); }
.hero-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---------- Ticker ---------- */
.hero-ticker {
  border-top: 1px solid var(--border);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: ticker 32s linear infinite;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-eyebrow.center { text-align: center; }
.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 560px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  display: block;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 28px 30px;
  transition: background 0.25s;
  position: relative;
}
.service-card:hover { background: var(--surface); }
.service-card:hover .card-link { color: var(--accent); }
.service-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 26px;
}
.service-card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; line-height: 1.6; }
.card-link {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 0.2s;
}
.services-cta { margin-top: 40px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.about-copy p { color: var(--text-muted); margin-bottom: 18px; }
.about-copy p strong { color: var(--text); }
.about-copy .section-title { margin-bottom: 28px; }
.about-copy .btn { margin-top: 14px; }
.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.about-panel-item {
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 26px;
}
.about-panel-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.about-panel-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- World map ---------- */
.world { text-align: center; }
.world-map-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.world-map { width: 100%; height: auto; display: block; }
.map-dot { fill: var(--map-dot); }
.map-marker { fill: var(--accent); }
.map-marker-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { opacity: 0.9; r: 5; }
  70% { opacity: 0; r: 22; }
  100% { opacity: 0; r: 22; }
}
.map-label {
  fill: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-label.hq { fill: var(--text); }
.world-legend {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.world-legend li { display: flex; align-items: center; gap: 10px; }
.world-legend .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Team ---------- */
.team-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 20px;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-featured .team-photo { min-height: 340px; }
.team-info { padding: 38px 40px; }
.team-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.team-role {
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.team-creds { margin: 18px 0; display: grid; gap: 8px; }
.team-creds li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.team-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.team-bio { color: var(--text-muted); font-size: 14.5px; line-height: 1.75; margin-top: 14px; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.team-card {
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 190px 1fr;
}
.team-card .team-photo { min-height: 200px; }
.team-card .team-info { padding: 28px 30px; }
.team-card h3 { font-size: 18px; }
.team-card .team-bio { font-size: 13.5px; margin-top: 12px; }
.team-card .team-creds { margin: 12px 0 0; }
.team-grid .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-strong);
  padding: 12px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.store-badge:hover { border-color: var(--accent); background: var(--surface); }
.store-badge svg { flex: none; }
.store-badge span { display: grid; line-height: 1.25; }
.store-badge small {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.store-badge strong { font-size: 16px; }

/* ---------- App ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.app-features { margin: 36px 0 40px; display: grid; gap: 24px; }
.app-features li {
  display: grid;
  gap: 4px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-size: 15px;
}
.app-feature-title { font-weight: 600; color: var(--text); font-size: 16px; }
.app-visual { display: flex; justify-content: center; }
.app-phone-img {
  width: 340px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.4));
}

/* ---------- Compounding calculator ---------- */
.calc-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--border);
  background: var(--surface);
}
.calc-inputs {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
}
.calc-field { margin-bottom: 34px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.calc-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  margin-bottom: 14px;
}
.calc-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.calc-input-row input[type="number"] {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}
.calc-input-row input[type="number"]::-webkit-outer-spin-button,
.calc-input-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input-row input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc-input-row:focus-within { border-color: var(--accent); }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--surface-2);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.calc-results {
  padding: 44px 40px;
  background: var(--bg);
}
.calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 30px;
}
.calc-stat {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.calc-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.calc-stat strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.calc-stat-total { grid-column: 1 / -1; background: var(--accent-soft); }
.calc-stat-total strong { font-size: 30px; color: var(--accent); }
#calcChart { width: 100%; height: auto; display: block; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-label {
  fill: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 11px;
}
.bar-invested { fill: var(--surface-2); }
.bar-growth { fill: var(--accent); }
.calc-legend {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.calc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch { width: 10px; height: 10px; display: inline-block; }
.swatch-invested { background: var(--surface-2); border: 1px solid var(--border-strong); }
.swatch-growth { background: var(--accent); }
.calc-note { margin-top: 16px; font-size: 12px; color: var(--text-faint); }

/* ---------- Testimonials ---------- */
.testimonial-shell { max-width: 800px; margin: 0 auto; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card { flex: 0 0 100%; padding: 4px; }
.testimonial-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 52px 56px;
  text-align: center;
}
.testimonial-quote {
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
}
.testimonial-author { margin-top: 28px; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-meta { font-size: 13px; color: var(--text-faint); margin-top: 3px; }
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.t-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.t-arrow:hover { border-color: var(--accent); color: var(--accent); }
.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 6px;
  height: 6px;
  background: var(--surface-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.t-dot.active { background: var(--accent); transform: scale(1.3); }

/* ---------- Partners ---------- */
.partners { padding: 64px 0; }
.partners .section-eyebrow { margin-bottom: 28px; }
.partners-marquee { overflow: hidden; }
.partners-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-set {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  flex: none;
}
.partner-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  padding: 12px 26px;
  height: 66px;
  filter: grayscale(0.15);
  transition: filter 0.25s, border-color 0.25s;
}
.partner-tile:hover { filter: none; border-color: var(--accent); }
.partner-tile img {
  max-height: 38px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Contact ---------- */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-bottom: none;
  margin-bottom: 0;
}
.contact-channel {
  padding: 30px 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.contact-channel:last-child { border-right: none; }
.contact-channel-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-channel a, .contact-channel span.value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.contact-channel a:hover { color: var(--accent); }
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 40px;
  margin-bottom: 20px;
}
.contact-cta h3 { font-size: 20px; letter-spacing: -0.01em; }
.contact-cta p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; max-width: 480px; }
.contact-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-alt {
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color 0.2s;
}
.cta-alt:hover { color: var(--accent); }
.contact-offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.office-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 38px;
}
.office-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.office-card strong { display: block; font-size: 15.5px; margin-bottom: 8px; }
.office-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.office-card p a:hover { color: var(--accent); }
.office-map {
  margin-top: 22px;
  border: 1px solid var(--border-strong);
}
.office-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.2);
}
html:not([data-theme="light"]) .office-map iframe {
  filter: invert(0.9) hue-rotate(180deg) grayscale(0.3) contrast(0.9);
}

/* ---------- Products page ---------- */
.page-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero p {
  margin-top: 22px;
  color: var(--text-muted);
  max-width: 620px;
  font-size: 17px;
}
.product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.product:last-of-type { border-bottom: none; }
.product-side { position: sticky; top: 110px; align-self: start; }
.product-num {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.product-side h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.product-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
}
.product-body p { color: var(--text-muted); margin-bottom: 16px; font-size: 15.5px; line-height: 1.75; }
.product-body p strong { color: var(--text); }
.product-points {
  margin: 26px 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.product-points li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14.5px;
  position: relative;
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.product-points li strong { color: var(--text); }
.product-cta { margin-top: 28px; }

/* ---------- Legal page ---------- */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.legal-toc a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 9px 18px;
  transition: all 0.2s;
}
.legal-toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal-section {
  max-width: 880px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.legal-section p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-section p strong, .legal-section li strong { color: var(--text); }
.legal-section p a { color: var(--accent); }
.legal-section p a:hover { color: var(--accent-strong); }
.legal-section ul {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.legal-section ul li {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.legal-section .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.footer-about {
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 560px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: 48px 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-contact { max-width: 360px; }
.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer ul { display: grid; gap: 10px; }
.footer ul a, .footer-contact li {
  color: var(--text-faint);
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent); }
.footer-disclaimer {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.footer-disclaimer p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.footer-disclaimer strong { color: var(--text-muted); }
.footer-links-row a {
  color: var(--text-muted);
  margin-left: 6px;
  transition: color 0.2s;
}
.footer-links-row a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .app-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .calc-shell { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .team-featured { grid-template-columns: 1fr; }
  .team-featured .team-photo { max-height: 420px; }
  .contact-offices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-side { position: static; }
}

@media (max-width: 680px) {
  .topbar-note { display: none; }
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 80px; }
  .hero-stats { grid-template-columns: 1fr; border-top: none; margin-top: 56px; }
  .hero-stat { border-right: none; border-top: 1px solid var(--border); padding-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .contact-channel { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-channel:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cta { padding: 26px 24px; }
  .team-card { grid-template-columns: 1fr; }
  .team-card .team-photo { max-height: 360px; }
  .team-info { padding: 26px 24px; }
  .office-card { padding: 28px 24px; }
  .calc-inputs, .calc-results { padding: 30px 24px; }
  .calc-stats { grid-template-columns: 1fr; }
  .calc-stat-total strong { font-size: 26px; }
  .testimonial-inner { padding: 36px 26px; }
  .brand-text { font-size: 15px; }

  .nav-toggle { display: flex; }
  .header-controls { margin-left: auto; }
  .nav {
    position: fixed;
    inset: 116px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 99;
  }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-link:hover { background: var(--surface-2); }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
}
