/* =============================================================
   EcoMutuelle — Premium landing styles
   Design system: emerald teal + warm amber accent + soft neutrals
   ============================================================= */

:root {
  /* Brand */
  --c-brand:        #0F766E;   /* teal-700 */
  --c-brand-dk:     #0B5953;
  --c-brand-lt:     #14B8A6;   /* teal-500 */
  --c-brand-soft:   #ECFDF5;   /* mint-50 */
  --c-brand-tint:   #D1FAE5;
  --c-accent:       #F59E0B;   /* amber-500 */
  --c-accent-dk:    #B45309;

  /* Surfaces */
  --c-bg:           #F6F8FA;
  --c-bg-grad:      radial-gradient(1200px 600px at 100% -10%, rgba(20,184,166,.10), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(245,158,11,.06), transparent 55%),
                    linear-gradient(180deg, #F6F8FA 0%, #EEF2F5 100%);
  --c-card:         #FFFFFF;
  --c-surface-2:    #F8FAFB;

  /* Text */
  --c-ink:          #0B1220;
  --c-ink-2:        #1F2937;
  --c-text:         #1F2937;
  --c-mute:         #5B6573;
  --c-mute-2:       #9CA3AF;

  /* Borders */
  --c-border:       #E5E9EE;
  --c-border-2:     #DDE2E8;
  --c-border-focus: var(--c-brand);

  /* Feedback */
  --c-ok:           #059669;
  --c-ok-bg:        #ECFDF5;
  --c-err:          #DC2626;
  --c-err-bg:       #FEF2F2;
  --c-warn:         #F59E0B;

  /* Type scale */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-22: 22px;
  --fs-26: 26px;
  --fs-32: clamp(26px, 5vw, 34px);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-sm: 0 2px 6px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .03);
  --sh-md: 0 10px 24px -6px rgba(15, 23, 42, .08), 0 4px 8px -2px rgba(15, 23, 42, .04);
  --sh-lg: 0 24px 48px -12px rgba(15, 23, 42, .14), 0 8px 16px -4px rgba(15, 23, 42, .06);
  --sh-glow: 0 0 0 6px rgba(15, 118, 110, .12);
  --sh-brand: 0 8px 20px -4px rgba(15, 118, 110, .35);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 360ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  background-image: var(--c-bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
  min-height: 100vh;
}
a { color: var(--c-brand); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-brand-dk); text-decoration: underline; }
button { font-family: inherit; }
img, svg { display: block; }
input, button, textarea, select { font: inherit; color: inherit; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.hdr-inner {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 600; }
.logo:hover { text-decoration: none; color: var(--c-ink); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-lt) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.logo-text { font-size: var(--fs-18); letter-spacing: -0.01em; }
.logo-text-bold { font-weight: 700; color: var(--c-brand); }

.hdr-trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-13); color: var(--c-mute); font-weight: 500;
  padding: 6px 10px; background: var(--c-brand-soft); color: var(--c-brand-dk);
  border-radius: var(--r-full);
}
.hdr-trust svg { stroke: currentColor; }

.hdr-progress {
  height: 3px; background: var(--c-border); position: relative; overflow: hidden;
}
.hdr-progress-bar {
  position: absolute; inset: 0 50% 0 0;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-brand-lt) 100%);
  border-radius: 0 999px 999px 0;
  transition: right var(--t-slow) var(--ease-out);
}

/* ---------- Container ---------- */
.container { max-width: 640px; margin: 0 auto; padding: 24px 20px; }

/* ---------- Trust signals row ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
  animation: fadeUp 360ms var(--ease-out) both;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: var(--fs-13); font-weight: 500; color: var(--c-ink-2);
  box-shadow: var(--sh-xs);
}
.trust-pill svg { color: var(--c-brand); }

/* ---------- Steps indicator ---------- */
.steps {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  animation: fadeUp 420ms var(--ease-out) both;
}
.step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-13); font-weight: 500; color: var(--c-mute);
  flex-shrink: 0;
}
.step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-border);
  font-size: 12px; font-weight: 600; color: var(--c-mute);
  transition: all var(--t-base) var(--ease);
}
.step.active .step-dot {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff;
  box-shadow: var(--sh-glow);
}
.step.active { color: var(--c-ink); font-weight: 600; }
.step.done .step-dot { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.step.done { color: var(--c-brand-dk); }
.step-label {
  white-space: nowrap;
}
.step-bar {
  flex: 1 1 auto; height: 2px;
  background: var(--c-border); border-radius: 999px;
  min-width: 12px; overflow: hidden;
}
.step-bar-fill {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-lt));
  animation: barFill 600ms var(--ease-out) both;
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero { margin-bottom: 24px; animation: fadeUp 500ms var(--ease-out) both; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.04));
  color: var(--c-accent-dk); border: 1px solid rgba(245,158,11,.25);
  font-size: var(--fs-12); font-weight: 600; letter-spacing: .01em;
  margin-bottom: 12px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(245,158,11,.25); animation: pulse 1.8s var(--ease) infinite; }
.hero h1 {
  font-size: var(--fs-32);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--c-ink);
  font-weight: 700;
}
.hero .grad {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-lt) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.hero .lead { color: var(--c-mute); margin: 0; font-size: var(--fs-16); line-height: 1.6; }
.hero .lead strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Summary card ---------- */
.summary {
  position: relative;
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  animation: fadeUp 560ms var(--ease-out) both;
  overflow: hidden;
}
.summary::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-lt));
}
.summary-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.summary-eyebrow {
  display: block;
  font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-mute); font-weight: 600; margin-bottom: 2px;
}
.summary-hd h2 { font-size: var(--fs-18); margin: 0; color: var(--c-ink); font-weight: 600; letter-spacing: -0.01em; }
.summary-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-ok-bg); color: var(--c-ok);
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: var(--fs-12); font-weight: 600;
  border: 1px solid rgba(5,150,105,.2);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.grid .it {
  background: var(--c-surface-2);
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
}
.grid .it:hover { border-color: var(--c-border); background: #fff; }
.grid .it .k {
  font-size: 11px; text-transform: uppercase; color: var(--c-mute);
  letter-spacing: .06em; font-weight: 600;
}
.grid .it .v {
  font-size: var(--fs-15); font-weight: 600; color: var(--c-ink);
  margin-top: 4px; word-break: break-word; line-height: 1.3;
}

/* ---------- Form ---------- */
.form {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-md);
  animation: fadeUp 620ms var(--ease-out) both;
}
.form-hd { margin-bottom: 20px; }
.form-eyebrow {
  display: inline-block;
  font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-brand); font-weight: 700; margin-bottom: 4px;
}
.form-hd h2 {
  font-size: var(--fs-22); margin: 0 0 6px; color: var(--c-ink);
  font-weight: 700; letter-spacing: -0.015em;
}
.form-hd p { font-size: var(--fs-14); color: var(--c-mute); margin: 0; }

.fieldset { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Floating label fields */
.field {
  position: relative; display: block;
}
.field input {
  width: 100%;
  padding: 22px 14px 8px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-16);
  background: #fff;
  color: var(--c-ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: transparent; }
.field input:hover { border-color: var(--c-border-2); }
.field input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}
.field-label {
  position: absolute;
  left: 14px; top: 15px;
  font-size: var(--fs-15);
  color: var(--c-mute);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  background: linear-gradient(180deg, transparent 50%, #fff 50%);
  padding: 0 4px; margin-left: -4px;
}
.field input:focus + .field-label,
.field input:not(:placeholder-shown) + .field-label {
  transform: translateY(-13px) scale(.78);
  color: var(--c-brand);
  font-weight: 600;
}
.field input[type=date] {
  padding-top: 22px; padding-bottom: 8px;
}
.field input[type=date]::-webkit-calendar-picker-indicator {
  opacity: .55; cursor: pointer;
  filter: invert(.35) sepia(1) saturate(2) hue-rotate(135deg);
}
.field-hint {
  display: block; margin-top: 6px; padding: 0 4px;
  font-size: var(--fs-12); color: var(--c-mute);
}
.field-error {
  display: none; margin-top: 6px; padding: 0 4px;
  font-size: var(--fs-12); color: var(--c-err); font-weight: 500;
}
.field.has-error input { border-color: var(--c-err); background: var(--c-err-bg); }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.field.has-error .field-error { display: block; }
.field.has-error .field-hint { display: none; }
.field.is-valid input { border-color: var(--c-ok); }
.field.is-valid::after {
  content: ""; position: absolute; right: 14px; top: 20px;
  width: 18px; height: 18px;
  background: var(--c-ok);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 12px no-repeat;
  border-radius: 50%;
  animation: pop var(--t-base) var(--ease-out);
}

/* Optional adv block (address) */
.adv {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin: 4px 0 8px;
  overflow: hidden;
  transition: background var(--t-fast) var(--ease);
}
.adv summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-14); font-weight: 600; color: var(--c-brand-dk);
  transition: background var(--t-fast) var(--ease);
}
.adv summary::-webkit-details-marker { display: none; }
.adv summary:hover { background: rgba(15, 118, 110, .04); }
.adv summary em { font-style: normal; color: var(--c-mute); font-weight: 500; }
.adv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-brand);
  color: var(--c-brand);
  transition: transform var(--t-base) var(--ease);
}
.adv[open] .adv-icon { transform: rotate(45deg); background: var(--c-brand); color: #fff; }
.adv-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Consent ---------- */
.consent-block { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--c-border); }
.consent-title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-15); font-weight: 600; color: var(--c-ink);
  margin: 0 0 12px;
}
.consent-title svg { color: var(--c-brand); }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin: 6px -12px;
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  color: var(--c-ink-2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.consent:hover { background: var(--c-surface-2); }
.consent input[type=checkbox] {
  position: absolute; opacity: 0; pointer-events: none;
}
.consent-box {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--c-border-2);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0; margin-top: 2px;
  transition: all var(--t-fast) var(--ease);
}
.consent input[type=checkbox]:checked + .consent-box {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff;
  box-shadow: var(--sh-glow);
}
.consent input[type=checkbox]:focus-visible + .consent-box {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .25);
}
.consent-txt { line-height: 1.5; }
.consent-txt em { color: var(--c-accent-dk); font-style: normal; font-weight: 600; }
.consent a { font-weight: 500; }

/* ---------- Submit button ---------- */
.btn {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--fs-16); font-weight: 600; letter-spacing: .005em;
  color: #fff;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dk) 100%);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: var(--sh-brand);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
  margin-top: 18px;
  overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-brand-lt), var(--c-brand));
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px -6px rgba(15, 118, 110, .45); }
.btn:hover:not(:disabled)::before { opacity: 1; }
.btn:active:not(:disabled) { transform: translateY(0); filter: brightness(.96); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(15, 118, 110, .35), var(--sh-brand); }
.btn:disabled { opacity: .85; cursor: not-allowed; }
.btn-icon { display: inline-flex; transition: transform var(--t-base) var(--ease); }
.btn:hover:not(:disabled) .btn-icon { transform: translateX(3px); }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading .btn-txt { opacity: .7; }
.btn.loading .btn-icon { display: none; }
.btn.loading .btn-spinner { display: inline-block; }

.legal {
  font-size: var(--fs-12); color: var(--c-mute);
  margin-top: 14px; text-align: center; line-height: 1.5;
}

/* ---------- Error banner ---------- */
.err {
  display: none;
  background: var(--c-err-bg);
  border: 1px solid rgba(220, 38, 38, .25);
  border-left: 3px solid var(--c-err);
  color: var(--c-err);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  margin: 12px 0 0;
  animation: shake .4s var(--ease);
}
.err.show { display: block; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 30%);
  display: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.sticky-cta.show { opacity: 1; }
.sticky-cta .btn { margin-top: 0; pointer-events: auto; }
.btn-sticky { padding: 14px 18px; font-size: var(--fs-15); }
.btn-sticky svg { transition: transform var(--t-base) var(--ease); }
.btn-sticky:hover svg { transform: translateX(3px); }

/* ---------- Success ---------- */
.success {
  padding: 24px 0;
  animation: fadeUp 400ms var(--ease-out) both;
}
.success-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-lt), var(--c-accent));
}
.check {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.check::before, .check::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c-brand-tint);
  animation: ripple 1.6s var(--ease-out) infinite;
}
.check::after { animation-delay: .8s; }
.check svg .check-c {
  stroke: var(--c-brand); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 152; stroke-dashoffset: 152;
  animation: drawC 600ms var(--ease-out) 100ms forwards;
}
.check svg .check-p {
  stroke: var(--c-brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawP 400ms var(--ease-out) 700ms forwards;
}
.success-eyebrow {
  display: inline-block;
  font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-ok); font-weight: 700; margin-bottom: 6px;
  padding: 4px 10px; background: var(--c-ok-bg); border-radius: var(--r-full);
}
.success-card h2 {
  font-size: var(--fs-26); margin: 0 0 10px; color: var(--c-ink);
  font-weight: 700; letter-spacing: -0.015em;
}
.success-card p { color: var(--c-mute); margin: 0 0 18px; line-height: 1.6; }
.success-card p strong { color: var(--c-ink); }
.success-next {
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 22px 0 16px;
}
.success-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; }
.success-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-brand);
  color: var(--c-brand); font-weight: 700; font-size: var(--fs-13);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-step strong { display: block; color: var(--c-ink); font-size: var(--fs-14); font-weight: 600; }
.success-step small { display: block; color: var(--c-mute); font-size: var(--fs-13); margin-top: 1px; }
.mini { font-size: var(--fs-12); color: var(--c-mute-2); margin-top: 8px !important; }

/* ---------- Footer ---------- */
.ftr {
  max-width: 640px; margin: 36px auto 0;
  padding: 24px 20px 12px;
  border-top: 1px solid var(--c-border);
}
.ftr-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.ftr-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-ink); font-weight: 600;
}
.ftr-brand .logo-mark { width: 24px; height: 24px; border-radius: 7px; }
.ftr-cred { font-size: var(--fs-12); color: var(--c-mute); margin: 0; max-width: 480px; line-height: 1.5; }
.ftr-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center;
  font-size: var(--fs-12); color: var(--c-mute);
}
.ftr-links a { color: var(--c-mute); }
.ftr-links a:hover { color: var(--c-brand); }
.ftr-links strong { color: var(--c-ink); font-weight: 700; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,.05); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes ripple {
  0% { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes drawC { to { stroke-dashoffset: 0; } }
@keyframes drawP { to { stroke-dashoffset: 0; } }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .container { padding: 20px 16px; }
  .hero h1 { font-size: 26px; line-height: 1.18; }
  .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form { padding: 20px 16px; }
  .summary { padding: 18px 16px; }
  .step-label { display: none; }
  .step.active .step-label { display: inline; font-weight: 600; }
  .step-bar { min-width: 16px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 90px; }
  .hdr-trust span { display: none; }
  .hdr-trust { padding: 6px; }
  .ftr-links { font-size: 11px; gap: 6px 12px; }
}
@media (min-width: 521px) {
  .container { padding: 36px 24px 24px; }
  .hero { padding: 8px 0 4px; }
  .hero h1 { font-size: 34px; }
}
@media (min-width: 720px) {
  .container { max-width: 720px; }
  .summary { padding: 24px; }
  .form { padding: 32px; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0B1220;
    --c-bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(20,184,166,.12), transparent 60%),
                 radial-gradient(900px 500px at -10% 10%, rgba(245,158,11,.05), transparent 55%),
                 linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
    --c-card: #111B2C;
    --c-surface-2: #16213A;
    --c-ink: #F1F5F9;
    --c-ink-2: #E2E8F0;
    --c-text: #CBD5E1;
    --c-mute: #94A3B8;
    --c-mute-2: #64748B;
    --c-border: #1E2A44;
    --c-border-2: #2A3756;
    --c-brand-soft: rgba(20,184,166,.12);
    --c-brand-tint: rgba(20,184,166,.25);
    --c-ok-bg: rgba(5,150,105,.12);
    --c-err-bg: rgba(220,38,38,.10);
  }
  .hdr { background: rgba(11, 18, 32, .82); border-color: var(--c-border); }
  .trust-pill { background: var(--c-card); }
  .field input { background: var(--c-surface-2); color: var(--c-ink); }
  .field-label { background: linear-gradient(180deg, transparent 50%, var(--c-surface-2) 50%); }
  .consent-box { background: var(--c-surface-2); }
  .step-dot { background: var(--c-surface-2); }
  .grid .it:hover { background: var(--c-surface-2); }
  .sticky-cta { background: linear-gradient(180deg, rgba(11,18,32,0), rgba(11,18,32,.95) 30%); }
  .adv summary:hover { background: rgba(20,184,166,.08); }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
