/* ============================================================
   STELCA CONSEILS — Charte graphique « family office »
   Palette héritée de fichespatri.finance, esprit cabinet privé
   ============================================================ */

:root {
  --bg-0: #0B1F1E;
  --bg-1: #0E2725;
  --bg-2: #12302D;
  --bg-3: #163A36;
  --bg-card: #0D2422;
  --border-subtle: rgba(163, 170, 156, 0.07);
  --border: rgba(163, 170, 156, 0.12);
  --border-hover: rgba(228, 173, 63, 0.35);
  --text-1: #F0F2ED;
  --text-2: #A3AA9C;
  --text-3: #7F8D72;
  --text-4: #4A5A42;
  --gold: #E4AD3F;
  --gold-bright: #E7CC8A;
  --gold-pale: #F2E4C3;
  --gold-glow: rgba(228, 173, 63, 0.08);
  --gold-glow-md: rgba(228, 173, 63, 0.15);
  --gold-line: rgba(228, 173, 63, 0.4);
  --tiber: #1D4643;
  --tiber-light: #2A6360;
  --green: #34D399;
  --green-glow: rgba(52, 211, 153, 0.08);
  --red: #F87171;
  --font-display: 'Jost', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-glow-md); color: var(--gold-pale); }

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 31, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 40px; width: auto; display: block;
  filter: brightness(0) invert(0.93);
}
.site-footer .brand-logo { height: 36px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 0;
  background: transparent;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  letter-spacing: 0.02em;
}
.brand-name span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.12em;
  transition: color 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); }
.main-nav a.btn-gold, .main-nav a.btn-gold:hover { color: var(--bg-0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 14px 28px; border-radius: 0; border: 1px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg-0);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  background: transparent; color: var(--text-1);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-bright); }
.btn-sm { padding: 11px 20px; font-size: 11.5px; }
.btn-lg { padding: 16px 34px; font-size: 13px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; color: var(--text-1);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 128px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 0%, rgba(29, 70, 67, 0.5), transparent),
    radial-gradient(ellipse 40% 32% at 82% 12%, rgba(228, 173, 63, 0.045), transparent);
  pointer-events: none;
}
.hero > .container { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 22px; border-radius: 0;
  background: transparent; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 40px;
}
.badge::before {
  content: ''; width: 22px; height: 1px;
  background: var(--gold);
}
.badge::after {
  content: ''; width: 22px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 500; line-height: 1.12; letter-spacing: 0.01em;
  margin-bottom: 30px;
}
.hero h1 .gold, .hero h1 .gold-grad { color: var(--gold-bright); font-style: italic; }

.hero .lead {
  max-width: 620px; margin: 0 auto 46px;
  font-size: clamp(15.5px, 1.9vw, 17.5px); color: var(--text-2); font-weight: 500;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-reassure {
  font-size: 12.5px; color: var(--text-3); font-weight: 500;
  margin-bottom: 78px;
}
.assurance h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 8px;
}

.hero-stats {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 900px; margin: 0 auto;
}
.stat { flex: 1 1 200px; padding: 34px 20px; border-right: 1px solid var(--border-subtle); }
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display); font-size: 40px; font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.01em; line-height: 1;
}
.stat .label {
  font-size: 11.5px; color: var(--text-2); font-weight: 600; margin-top: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---------- Sections ---------- */
section { padding: 104px 0; position: relative; }
section.alt { background: var(--bg-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section-head h2, .section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 500;
  letter-spacing: 0.005em; line-height: 1.12;
  margin-bottom: 18px;
}
.section-head p { color: var(--text-2); font-size: 16px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.grid-3 > .card { border: none; border-radius: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 38px 34px;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--bg-2); }

.card .icon {
  width: 46px; height: 46px; border-radius: 0;
  background: transparent; border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--gold);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-display); font-size: 23px; font-weight: 600;
  letter-spacing: 0.01em; margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--text-2); }
.card .link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; font-weight: 700; font-size: 11.5px; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: gap 0.25s var(--ease);
}
.card .link:hover { gap: 12px; }

/* ---------- Profil / method ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.steps { display: grid; gap: 0; }
.step {
  display: flex; gap: 26px; padding: 30px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 0;
  background: transparent; border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 19px;
  font-style: italic;
}
.step h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0; padding: 48px;
  position: relative;
}
.profile-card::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px; background: var(--gold);
}
.profile-avatar { position: relative; overflow: hidden; }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar {
  width: 84px; height: 84px; border-radius: 0;
  background: transparent;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--gold);
  margin-bottom: 26px;
}
.profile-card h3 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 4px; }
.profile-card .role {
  color: var(--gold); font-weight: 700; font-size: 11px; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.profile-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 14px; }
.profile-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.check-list { list-style: none; display: grid; gap: 0; margin-top: 30px; }
.check-list li {
  display: flex; gap: 16px; align-items: baseline;
  font-size: 15px; color: var(--text-2); font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid var(--border-subtle);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '—'; flex-shrink: 0;
  color: var(--gold); font-weight: 400;
}

/* ---------- Simulateurs ---------- */
.sim-page { padding-top: 150px; padding-bottom: 90px; }
.sim-page .section-head { margin-bottom: 40px; }

.tool-switch {
  display: flex; justify-content: flex-start; gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle);
  max-width: 980px; margin: 0 auto 54px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tool-switch::-webkit-scrollbar { display: none; }
.tool-switch a {
  flex: 1 0 auto; text-align: center;
  padding: 14px 18px;
  background: var(--bg-card);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.tool-switch a:hover { color: var(--gold-bright); }
.tool-switch a.current { background: var(--bg-2); color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }

.sim-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

.sim-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0; padding: 38px;
}
.sim-form h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 26px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}

.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 9px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 7px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 0; padding: 13px 16px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--text-1);
  outline: none; transition: border-color 0.25s var(--ease);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-line); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23A3AA9C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.range-row { display: flex; align-items: center; gap: 14px; }
input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 2px; border-radius: 0;
  background: var(--bg-3); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 0;
  background: var(--gold); cursor: pointer;
  transform: rotate(45deg);
}
.range-val { min-width: 64px; text-align: right; font-weight: 600; color: var(--gold-bright); font-family: var(--font-display); font-size: 19px; }

.sim-results { position: sticky; top: 110px; display: grid; gap: 18px; }
.result-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 0; padding: 38px 32px; text-align: center;
}
.result-hero .label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.result-hero .value {
  font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 48px); font-weight: 500;
  color: var(--gold-bright); letter-spacing: 0.01em; line-height: 1.08;
}
.result-hero .sub { font-size: 13.5px; color: var(--text-2); margin-top: 12px; }

.result-rows { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; padding: 8px 28px; }
.result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.result-row:last-child { border-bottom: none; }
.result-row .k { color: var(--text-2); font-weight: 500; }
.result-row .v { font-weight: 600; font-family: var(--font-display); font-size: 19px; white-space: nowrap; }
.result-row .v.gold { color: var(--gold-bright); }
.result-row .v.green { color: var(--green); }
.result-row .v.red { color: var(--red); }

.compare-bars { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; padding: 28px; }
.cbar { margin-bottom: 20px; }
.cbar:last-child { margin-bottom: 0; }
.cbar .cbar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; margin-bottom: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.cbar .cbar-head .amount { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-1); text-transform: none; letter-spacing: 0.01em; }
.cbar .track { height: 6px; border-radius: 0; background: var(--bg-1); overflow: hidden; }
.cbar .fill { height: 100%; border-radius: 0; background: var(--tiber-light); transition: width 0.6s var(--ease); }
.cbar.gold .fill { background: var(--gold); }

.notice {
  background: transparent; border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--gold-line);
  border-radius: 0; padding: 18px 22px;
  font-size: 12.5px; color: var(--text-3); line-height: 1.6;
}

.sim-cta {
  margin-top: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0; padding: 30px; text-align: center;
}
.sim-cta p { font-family: var(--font-display); font-size: 20px; color: var(--text-1); font-weight: 500; margin-bottom: 18px; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 0;
  padding: 72px 40px; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: 0.005em; margin-bottom: 16px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 34px; font-size: 15.5px; }

.portrait-band {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-line);
  margin: 0 auto 22px; display: block;
}

/* ---------- Contact ---------- */
.contact-info { display: grid; gap: 0; }
.contact-item {
  display: flex; gap: 18px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--border-subtle);
}
.contact-item:first-child { padding-top: 0; }
.contact-item .ci-icon {
  width: auto; height: auto; border: none; background: transparent;
  color: var(--gold); font-size: 14px; flex-shrink: 0;
}
.contact-item h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-3); margin-bottom: 5px;
}
.contact-item p, .contact-item a { font-size: 15px; color: var(--text-1); font-weight: 500; }
.contact-item a:hover { color: var(--gold-bright); }

/* ---------- App section ---------- */
.phone-mock {
  width: 250px; margin: 0 auto;
  border-radius: 40px; border: 1px solid var(--border-hover);
  background: var(--bg-1);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.phone-screen {
  border-radius: 30px; overflow: hidden; background: var(--bg-0);
  border: 1px solid var(--border-subtle);
  padding: 22px 16px 30px; min-height: 420px;
}
.phone-notch { width: 90px; height: 22px; background: var(--bg-1); border-radius: 999px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-1);
  padding: 64px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 {
  font-size: 11px; font-weight: 700; margin-bottom: 18px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid a, .footer-grid p { font-size: 13.5px; color: var(--text-2); }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-legal {
  border-top: 1px solid var(--border-subtle); padding-top: 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border-subtle); }
details.faq { border-bottom: 1px solid var(--border-subtle); }
details.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  transition: color 0.25s var(--ease);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; color: var(--gold); font-family: var(--font-body); font-weight: 400; font-size: 22px;
  flex-shrink: 0; transition: transform 0.3s var(--ease);
}
details.faq[open] summary { color: var(--gold-bright); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 4px 26px; color: var(--text-2); font-size: 15px; max-width: 680px; }

/* ---------- Diagnostic ---------- */
.diag-wrap { max-width: 720px; margin: 0 auto; }
.diag-progress { height: 2px; background: var(--bg-3); margin-bottom: 40px; }
.diag-progress .bar { height: 100%; background: var(--gold); transition: width 0.4s var(--ease); }
.diag-step-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 16px;
}
.diag-q {
  font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 500;
  line-height: 1.2; margin-bottom: 12px;
}
.diag-hint { color: var(--text-3); font-size: 14px; margin-bottom: 30px; }
.diag-options { display: grid; gap: 10px; margin-bottom: 34px; }
.diag-opt {
  text-align: left; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 17px 20px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text-1);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.diag-opt:hover { border-color: var(--gold-line); background: var(--bg-2); }
.diag-opt.selected { border-color: var(--gold); background: var(--bg-2); box-shadow: inset 2px 0 0 var(--gold); }
.diag-nav { display: flex; justify-content: space-between; align-items: center; }
.diag-back { background: none; border: none; color: var(--text-3); font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; padding: 10px 0; }
.diag-back:hover { color: var(--text-1); }
.pillar-score { margin-bottom: 22px; }
.pillar-score .ps-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pillar-score .ps-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.pillar-score .ps-val { font-family: var(--font-display); font-size: 17px; color: var(--gold-bright); }
.priority-card {
  border: 1px solid var(--border); border-left: 2px solid var(--gold);
  background: var(--bg-card); padding: 22px 24px; margin-bottom: 14px;
}
.priority-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.priority-card p { font-size: 14px; color: var(--text-2); }

/* ---------- Mode application (PWA installée) ---------- */
html { -webkit-text-size-adjust: 100%; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  display: none;
  background: rgba(11, 31, 30, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; max-width: 560px; margin: 0 auto; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 0 9px;
  color: var(--text-3);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--gold); }

body.app-mode { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
body.app-mode .tabbar { display: block; }
body.app-mode .main-nav, body.app-mode .nav-toggle { display: none !important; }
body.app-mode .site-header { padding-top: env(safe-area-inset-top); }
body.app-mode .site-header .container { justify-content: center; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .sim-layout { grid-template-columns: 1fr; }
  .sim-results { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    padding: 12px 28px 22px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--border-subtle); font-size: 12.5px; }
  .main-nav .btn { margin-top: 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 76px; }
  section { padding: 76px 0; }
  .stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 48px 26px; }
  .profile-card { padding: 34px 26px; }
}
