/* ============================================================
   SIMULATEUR-LOCATION.COM — v6
   Design: Fresh Sage — Light Mode, Mobile-First
   Fonts: Bricolage Grotesque + Instrument Serif
   ============================================================ */

/* === TOKENS === */
:root {
  --bg:          #F3F8F5;
  --surface:     #FFFFFF;
  --surface-2:   #EDF4F0;
  --surface-3:   #E1EDE6;

  --border:      rgba(18,62,38,0.09);
  --border-2:    rgba(18,62,38,0.14);
  --border-3:    rgba(18,62,38,0.22);

  --text:        #0D1F16;
  --text-2:      #3B5E4A;
  --text-3:      #7A9D8B;

  --accent:      #2E9A58;
  --accent-dim:  rgba(46,154,88,0.10);
  --accent-glow: rgba(46,154,88,0.20);
  --accent-dark: #1E6B3C;

  --green:       #1A8040;
  --green-dim:   rgba(26,128,64,0.09);
  --teal:        #0D7C72;
  --teal-dim:    rgba(13,124,114,0.09);
  --red:         #D0323E;
  --red-dim:     rgba(208,50,62,0.09);

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-full: 9999px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-colored: 0 6px 24px rgba(46,154,88,.22), 0 2px 6px rgba(46,154,88,.10);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

/* === UTILS === */
.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.accent { color: var(--accent); }

/* ============================================================
   HERO — dark green for contrast and brand identity
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #162E1E 0%, #1B4332 45%, #2D6A4F 100%);
  padding: calc(72px + var(--safe-t)) 24px calc(72px + var(--safe-b));
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 20%, rgba(82,183,136,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 80%, rgba(64,145,108,0.12) 0%, transparent 50%),
    radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: auto, auto, 30px 30px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 770px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(82,183,136,0.15);
  border: 1px solid rgba(82,183,136,0.30);
  border-radius: var(--r-full);
  color: #95D5B2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #52B788;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}
.hero h1 {
  font-size: clamp(26px, 5vw, 52px);
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.hero h1 em {
  font-style: italic;
  font-family: 'Instrument Serif', Georgia, serif;
  color: #95D5B2;
}
.platform-cycle {
  display: inline-block;
  color: #95D5B2;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.platform-cycle.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 320px;
}
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.hero-pill {
  padding: 6px 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.hero-pill span { color: #95D5B2; margin-right: 4px; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  background: #52B788;
  color: #0D1F16;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--r-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(82,183,136,0.35), 0 1px 0 rgba(255,255,255,0.25) inset;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease), background 0.2s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 20px;
}
.btn-hero:hover  { background: #6DCBA0; transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 36px rgba(82,183,136,0.4); }
.btn-hero:active { transform: scale(0.96); box-shadow: none; }
.hero-hint { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 4px; }
.hero-arrow {
  margin-top: 40px;
  color: rgba(255,255,255,0.35);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 55%{transform:translateY(10px)} }

/* ============================================================
   SIMULATOR
   ============================================================ */
.simulator-section {
  background: var(--bg);
  padding-bottom: calc(80px + var(--safe-b));
}

/* === STICKY STEP HEADER === */
.step-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(243,248,245,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 10px;
}
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.step-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Step dots — clickable navigation */
.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
.step-dot.done {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  cursor: pointer;
  pointer-events: all;
}
.step-dot.done:hover  { background: var(--accent); color: #fff; transform: scale(1.1); }
.step-dot.done:active { transform: scale(0.92); }
.step-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
  pointer-events: none;
}

.progress-track {
  height: 3px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hidden original stepper — JS still reads it */
.stepper { display: none; }

/* === FORM STEPS === */
.form-step { display: none; }
.form-step.active {
  display: block;
  animation: stepIn 0.28s var(--ease);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-card { background: transparent; padding: 22px 16px 8px; }

/* === STEP TITLE === */
.step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-icon { font-size: 20px; }
.step-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.step-title-row .step-title { margin-bottom: 0; }

/* === FORM GROUPS === */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.optional { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 10px; }
.required-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 7px;
  background: var(--red-dim);
  color: var(--red);
  border-radius: var(--r-sm);
  margin-left: 6px;
  vertical-align: middle;
}

/* === INPUTS === */
input[type="text"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-xs);
}
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder { color: var(--text-3); font-weight: 400; }
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-wrapper { position: relative; }
.input-wrapper input { padding-right: 56px; }
.input-unit {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  pointer-events: none;
}

select {
  width: 100%;
  padding: 14px 42px 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A9D8B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
}
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* === TYPE CARDS === */
.type-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg);
  cursor: pointer;
  min-height: 72px;
  transition: all 0.2s var(--spring);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.type-card:active { transform: scale(0.93); }
.type-card.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-colored);
}
.type-card.active::after {
  content: '✓';
  position: absolute; top: 5px; right: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.type-card-icon { font-size: 22px; line-height: 1; }
.type-card-label { font-size: 10px; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.type-card.active .type-card-label { color: var(--accent-dark); }
@media (max-width: 420px) { .type-cards { grid-template-columns: repeat(3, 1fr); } }

/* === TOGGLE GROUP === */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 4px;
}
.toggle-btn {
  padding: 11px 16px;
  background: transparent; border: none;
  border-radius: calc(var(--r-md) - 3px);
  color: var(--text-2);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.toggle-btn.active {
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

/* === SLIDERS === */
.slider-wrapper { display: flex; align-items: center; gap: 14px; }
.slider {
  -webkit-appearance: none; appearance: none;
  flex: 1;
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46,154,88,0.3), 0 0 0 3px rgba(46,154,88,0.15);
  transition: transform 0.15s var(--spring), box-shadow 0.15s;
}
.slider::-webkit-slider-thumb:active {
  transform: scale(1.35);
  box-shadow: 0 2px 14px rgba(46,154,88,0.4), 0 0 0 8px rgba(46,154,88,0.12);
}
.slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%; border: none;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(46,154,88,0.25);
  cursor: pointer;
}
.slider-value {
  min-width: 44px; text-align: right;
  font-size: 15px; font-weight: 800;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* === SEASON BLOCKS === */
.season-block {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
}
.season-block:last-of-type { margin-bottom: 12px; }
.season-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.season-header strong { font-size: 14px; font-weight: 700; color: var(--text); }
.season-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.season-dot.high { background: #EF4444; box-shadow: 0 0 5px rgba(239,68,68,0.4); }
.season-dot.mid  { background: #F59E0B; box-shadow: 0 0 5px rgba(245,158,11,0.4); }
.season-dot.low  { background: #3B82F6; box-shadow: 0 0 5px rgba(59,130,246,0.4); }
.season-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.season-fields .form-group { margin-bottom: 0; }
.season-fields .form-group label { font-size: 10px; margin-bottom: 8px; }
.season-fields .form-group.half { margin-bottom: 0; }

/* === WARNING === */
.warning {
  padding: 10px 14px;
  background: #FFFBEB;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--r-md);
  color: #92400E;
  font-size: 13px; font-weight: 600;
  margin-top: 8px;
}
.warning.hidden { display: none; }

/* === CONCIERGE === */
.concierge-group {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.concierge-cost {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.concierge-cost.hidden { display: none; }

/* === CHARGES GRID === */
.charges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.preset-charge {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 12px 12px 10px;
  margin-bottom: 0 !important;
  box-shadow: var(--shadow-xs);
}
.preset-charge label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-3); margin-bottom: 8px !important;
}
.preset-charge input {
  padding: 10px 46px 10px 12px !important;
  font-size: 16px !important;
  font-weight: 700;
  color: var(--text);
}
.preset-charge .input-unit { font-size: 11px; right: 10px; }

/* === REMOVE CHARGE === */
.btn-remove-charge {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text-3);
  font-size: 10px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn-remove-charge:hover { background: var(--red-dim); border-color: rgba(208,50,62,0.25); color: var(--red); }

/* === CUSTOM CHARGES === */
.custom-charge {
  display: grid;
  grid-template-columns: 1fr 80px 80px 36px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.custom-charge input { padding: 11px 12px; font-size: 14px; }
.custom-charge select { padding: 11px 28px 11px 12px; background-position: right 8px center; font-size: 13px; }

/* === ADD CHARGE BUTTON === */
.btn-add-charge {
  width: 100%; padding: 13px;
  background: transparent;
  border: 2px dashed var(--border-3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  margin-bottom: 20px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn-add-charge:hover, .btn-add-charge:active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === FIELD ERROR === */
.field-error {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 8px 12px;
  background: var(--red-dim);
  border-radius: var(--r-sm);
  color: var(--red);
  font-size: 13px; font-weight: 600;
}
.field-error.hidden { display: none; }

/* === STEP NAVIGATION === */
.step-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 24px; padding-bottom: 8px;
}

/* === BUTTONS === */
.btn-back {
  padding: 15px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  min-height: 52px;
  box-shadow: var(--shadow-xs);
}
.btn-back:hover  { border-color: var(--border-3); color: var(--text); }
.btn-back:active { transform: scale(0.96); }

.btn-next,
.btn-calculate {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 15px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-colored);
  transition: all 0.2s var(--spring);
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
}
.btn-next:hover, .btn-calculate:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,154,88,.28);
}
.btn-next:active, .btn-calculate:active { transform: scale(0.96); box-shadow: none; }
.btn-arrow { font-style: normal; }

#step-1 .step-nav { grid-template-columns: 1fr; }
#step-1 .btn-next {
  width: 100%;
  padding: 17px 24px;
  font-size: 16px;
  border-radius: var(--r-lg);
}

.btn-skip {
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--text-3);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-skip:hover { color: var(--text-2); border-color: var(--border-3); }

/* ============================================================
   ADSENSE
   ============================================================ */
.adsense-wrapper { padding: 8px 16px; max-width: 640px; margin: 0 auto; }

/* ============================================================
   RESULTS — no italic
   ============================================================ */
.results-section { background: var(--bg); padding-bottom: 56px; }
.results-section.hidden { display: none; }

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 16px 0; gap: 12px; flex-wrap: wrap;
}
.results-header h2 {
  font-size: clamp(18px, 5vw, 24px);
  color: var(--text); letter-spacing: -0.03em;
}

.toggle-period {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-full);
  padding: 4px; gap: 2px;
  box-shadow: var(--shadow-xs);
}
.period-btn {
  padding: 6px 16px; background: transparent; border: none;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s var(--ease);
  white-space: nowrap; min-height: 34px;
  -webkit-tap-highlight-color: transparent;
}
.period-btn.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-colored); }

/* === BANNER CASHFLOW === */
.results-banner {
  margin: 14px 16px;
  padding: 24px 20px;
  background: linear-gradient(140deg, #1B4332 0%, #2D6A4F 60%, #3A7D58 100%);
  border-radius: var(--r-2xl);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 8px 32px rgba(27,67,50,0.25);
}
.results-banner::before {
  content: '';
  position: absolute; top: -50px; left: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(82,183,136,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.banner-blob, .banner-blob2 { display: none; }

.banner-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.banner-kpi-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
/* No italic — bold grotesque */
.banner-amount {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(36px, 9vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.banner-amount.negative { color: #FCA5A5; }

.banner-right {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.banner-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.banner-stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.45); }
.banner-stat-val { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.banner-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.15); }

/* === METRIC CARDS === */
.metrics-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 16px; margin-bottom: 12px;
}
.mcard {
  padding: 18px 16px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mcard::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  opacity: 0.10; transform: translate(30%, -30%);
}
.mcard--green  { border-left: 3px solid var(--green); }
.mcard--green::before { background: var(--green); }
.mcard--teal   { border-left: 3px solid var(--teal); }
.mcard--teal::before  { background: var(--teal); }
.mcard-icon { font-size: 18px; margin-bottom: 8px; }
/* No italic — bold grotesque */
.mcard-value {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.mcard--teal .mcard-value { color: var(--teal); }
.mcard-value.negative { color: var(--red); }
.mcard-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }

/* === CHARGES DETAIL === */
.charges-detail-card {
  margin: 0 16px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.charges-detail-card h3 {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-3); padding: 14px 16px 0;
}
.charge-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-2); gap: 8px;
}
.charge-row.total {
  font-weight: 800; font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border-top: 1.5px solid var(--border-2);
}
.charge-amount { font-weight: 700; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.charge-row.total .charge-amount { color: var(--text); }

/* === CHARTS === */
.charts-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 10px; padding: 0 16px; margin-bottom: 12px;
}
@media (min-width: 540px) { .charts-grid { grid-template-columns: 1fr 1fr; } }
.chart-card {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-xl); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.chart-card h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 14px; }
.chart-wrapper { position: relative; height: 190px; }

/* === TAX BLOCK === */
.tax-block {
  margin: 0 16px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tax-block h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); padding: 14px 16px 0; }
.tax-grid { display: flex; flex-direction: column; }
.tax-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border); gap: 8px;
}
.tax-label { font-size: 13px; color: var(--text-2); }
.tax-value { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tax-item.highlight { background: var(--accent-dim); }
.tax-item.highlight .tax-label { color: var(--text); font-weight: 700; font-size: 14px; }
/* No italic */
.tax-item.highlight .tax-value {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--accent-dark);
}

/* === AFFILIATION === */
.affiliation-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 10px; padding: 0 16px; margin-bottom: 12px;
}
.affiliation-block {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-xl); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-xs);
}
.affiliation-block p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.affiliation-block strong { color: var(--text); font-weight: 700; }
.btn-affiliation {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: all 0.18s var(--ease);
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
}
.btn-affiliation:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-dim); }

/* === EXPORT === */
.export-block {
  margin: 0 16px 20px;
  background: linear-gradient(140deg, #1B4332 0%, #2D6A4F 100%);
  border-radius: var(--r-2xl); padding: 22px;
  box-shadow: 0 8px 32px rgba(27,67,50,0.2);
  position: relative; overflow: hidden;
}
.export-block::before {
  content: '';
  position: absolute; top: -40px; right: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.export-block h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em; }
.export-block p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.export-form { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.export-form input[type="email"] {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.export-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); font-weight: 400; }
.export-form input[type="email"]:focus { border-color: #52B788; box-shadow: 0 0 0 3px rgba(82,183,136,0.2); }
.btn-export {
  padding: 15px 20px;
  background: #52B788; border: none;
  border-radius: var(--r-md); color: #0D1F16;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer; transition: all 0.2s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn-export:hover  { background: #6DCBA0; transform: translateY(-1px); }
.btn-export:active { transform: scale(0.97); }
.export-block small { display: block; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.35); position: relative; z-index: 1; }
@media (min-width: 460px) {
  .export-form { flex-direction: row; }
  .export-form input[type="email"] { flex: 1; }
}

/* ============================================================
   SEO SECTION
   ============================================================ */
.seo-section { background: #fff; border-top: 1px solid var(--border); padding: 48px 0; }
.seo-content { display: flex; flex-direction: column; gap: 0; padding: 0 16px; }
.intro-seo-block {
  margin-bottom: 32px; padding: 16px;
  background: var(--surface-2); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  font-size: 14px; color: var(--text-2); line-height: 1.7;
}
.intro-seo-block strong { color: var(--text); font-weight: 600; }
.seo-article { margin-bottom: 32px; }
.seo-article h2 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em; }
.seo-article p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.seo-article ul { list-style: none; padding: 0; margin: 10px 0; }
.seo-article ul li {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
  padding: 9px 0 9px 20px; position: relative;
  border-bottom: 1px solid var(--border);
}
.seo-article ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.seo-article strong { color: var(--text); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1B4332; padding: 32px 0 calc(32px + var(--safe-b)); }
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center; padding: 0 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { font-size: 12px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-nav a:hover { color: #95D5B2; }
.legal-section { margin-top: 24px; padding: 20px 16px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.legal-section h2 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.legal-section p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; margin-bottom: 8px; }

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .hero, .step-header, .simulator-section, .adsense-wrapper,
  .affiliation-grid, .export-block, .seo-section, .site-footer { display: none !important; }
  body { background: white; color: #000; }
  .results-section { display: block !important; }
  .results-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 640px) {
  .form-card { padding: 28px 24px 16px; }
  .charges-grid { grid-template-columns: 1fr 1fr 1fr; }
  .banner-amount { font-size: 52px; }
}
@media (max-width: 480px) {
  .banner-right { flex-direction: column; gap: 8px; align-items: flex-end; }
  .banner-divider { display: none; }
  .results-banner { flex-direction: column; align-items: flex-start; }
}
