/* ============ DESIGN TOKENS ============ */
:root {
  --bg:           #F6EFE6;
  --bg-tint-1:    rgba(214,142,110,.16);
  --bg-tint-2:    rgba(226,196,158,.22);
  --surface:      #FFFCF7;
  --surface-2:    #F0E5D6;
  --surface-3:    #FBF5EC;
  --ink:          #2C2520;
  --ink-soft:     #7A6E62;
  --ink-faint:    #A89A8B;
  --line:         #E7DBCA;
  --line-strong:  #DBCBB4;
  --accent:       #BE6347;
  --accent-2:     #D98C5F;
  --accent-soft:  #F3E2D6;
  --accent-rgb:   190,99,71;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --radius:       18px;
  --radius-lg:    26px;
  --radius-pill:  999px;
  --shadow-card:  0 14px 50px -22px rgba(92,56,32,.40);
  --shadow-soft:  0 6px 26px -14px rgba(92,56,32,.34);
  --shadow-accent:0 18px 40px -16px rgba(190,99,71,.55);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: var(--accent); }

/* ============ BG TEXTURE ============ */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient::before {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(48% 40% at 16% 8%, var(--bg-tint-1), transparent 70%),
    radial-gradient(52% 46% at 92% 100%, var(--bg-tint-2), transparent 72%);
}
.ambient::after {
  content: "";
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(120,90,60,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,90,60,.05) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.noise { display: none; }

/* ============ TOP PROGRESS BAR (hidden) ============ */
.progress-wrap { display: none; }

/* ============ HEADER ============ */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 44px;
}
.brand {
  display: flex; align-items: center; gap: 13px;
  color: inherit; text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 22px;
  box-shadow: var(--shadow-soft);
}
.brand-mark span { display: block; }
.brand-name {
  font-weight: 800; font-size: 16px; letter-spacing: .01em; line-height: 1.1; display: block;
}
.brand-name b { font-weight: 800; }
.brand-tag {
  font-size: 10.5px; letter-spacing: .22em; color: var(--ink-faint);
  text-transform: uppercase; display: block; margin-top: 3px;
}
.step-counter {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--ink-soft);
}
.step-counter b { color: var(--accent); font-weight: 800; }

/* ============ STAGE ============ */
.stage {
  position: relative; z-index: 2;
  min-height: 100vh;
  padding: 110px 44px 170px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ============ SCREENS ============ */
.screen {
  width: 100%; max-width: 1180px; margin: 0 auto;
  animation: rise .45s cubic-bezier(.2,.7,.2,1);
}
.screen:not(.active) { display: none; }
.screen.active { display: block; }

/* ============ EYEBROW / BADGE ============ */
.q-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.q-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ============ QUESTION LAYOUT ============ */
.q-wrap {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.q-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px,4.4vw,56px); line-height: 1.06;
  letter-spacing: -.012em; margin: 24px 0 0; color: var(--ink);
}
.q-title em, .q-title span { color: var(--accent); font-style: italic; }
.q-subtitle {
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  max-width: 560px; margin: 16px auto 0; font-weight: 500;
}

/* ============ HERO ============ */
.screen.hero.active {
  display: grid !important;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center;
}
.hero-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--surface-2);
  aspect-ratio: 7/6; max-height: min(58vh, 520px);
}
.hero-art .custom-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art .flag, .hero-art .hero-meta,
.hero-art .car-shadow, .hero-art .car { display: none; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--accent-soft) 100%);
  z-index: 0;
}
.hero-art:has(.custom-art)::after { display: none; }

.hero-copy { max-width: 560px; }
.hero-copy .eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.hero-copy .eyebrow::before {
  content: ""; width: 34px; height: 2px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}
.hero-copy h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px,4.8vw,66px); line-height: 1.04;
  letter-spacing: -.012em; margin: 0 0 22px;
}
.hero-copy h1 em { color: var(--accent); font-style: italic; }
.hero-copy p {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 30px; font-weight: 500; max-width: 500px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.hero-actions .gift-pill { flex-shrink: 0; }
.hero-actions .cta { flex-shrink: 0; white-space: nowrap; }
.gift-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1.5px dashed var(--accent-2);
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); box-shadow: var(--shadow-soft);
}
.gift-icon { font-size: 16px; line-height: 1; }
.gift-text { display: flex; flex-direction: column; }
.gift-text small { font-size: 10px; letter-spacing: .18em; opacity: .7; }
.gift-text strong { font-size: 14px; }
.cta {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 17px 30px; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-accent); border: none; cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(190,99,71,.6); }
.cta-arrow { font-size: 18px; transition: transform .2s; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ============ OPTION CARDS (year / timing) ============ */
.options-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 18px; margin-top: 46px; width: 100%;
}
.opt {
  position: relative; text-align: left;
  padding: 24px 22px; min-height: 150px;
  border-radius: var(--radius); background: var(--surface);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.opt:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.opt.selected { border-color: var(--accent); background: var(--surface-3); box-shadow: var(--shadow-card); }
.opt-top { display: flex; align-items: center; justify-content: space-between; }
.opt-meta {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.opt.selected .opt-meta { color: var(--accent); }
.opt-mark {
  width: 24px; height: 24px; border-radius: 8px;
  border: 1.6px solid var(--line-strong);
  display: grid; place-items: center; transition: all .2s; flex-shrink: 0;
}
.opt-mark.round { border-radius: 50%; }
.opt.selected .opt-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-mark svg { opacity: 0; transition: opacity .15s; width: 14px; height: 14px; }
.opt.selected .opt-mark svg { opacity: 1; }
.opt-mark.round svg { display: none; }
.opt-mark.round::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: transparent; transition: background .2s; display: block;
}
.opt.selected .opt-mark.round::after { background: #fff; }
.opt-label {
  font-family: var(--serif); font-weight: 600;
  font-size: 30px; line-height: 1.1; color: var(--ink);
}
[data-kind="timing"] .opt-label { font-size: 22px; line-height: 1.2; }

/* ============ RADIO ROWS (deposit / monthly_payment) ============ */
.deposit-grid {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 44px; max-width: 720px; width: 100%;
}
.deposit-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft); cursor: pointer; text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.deposit-opt:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.deposit-opt.selected { border-color: var(--accent); background: var(--surface-3); box-shadow: var(--shadow-card); }
.deposit-opt span {
  font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--ink);
}
.deposit-opt i {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1.8px solid var(--line-strong); display: block;
  position: relative; transition: border-color .2s;
}
.deposit-opt.selected i { border-color: var(--accent); }
.deposit-opt i::after {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); transition: transform .2s;
}
.deposit-opt.selected i::after { transform: translate(-50%,-50%) scale(1); }

/* ============ SLIDER ============ */
.slider-stage { margin-top: 54px; max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
.slider-rail { position: relative; height: 54px; }
.slider-rail::before {
  content: ""; position: absolute; top: 24px; left: 0; right: 0; height: 6px;
  border-radius: 6px; background: var(--surface-2);
}
.slider-rail .tick { display: none; }
.slider-fill {
  position: absolute; top: 24px; left: 0; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); pointer-events: none;
}
.slider-thumb {
  position: absolute; top: 9px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 5px solid var(--accent);
  box-shadow: var(--shadow-accent); cursor: pointer;
  transform: translateX(-50%); transition: transform .12s;
}
.slider-thumb:hover { transform: translateX(-50%) scale(1.08); }
.slider-bubble {
  position: absolute; top: -20px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: var(--shadow-accent);
}
.slider-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--accent);
}
.slider-ends { display: flex; justify-content: space-between; margin-top: 10px; }
.slider-ends span {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
.slider-ends span b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 22px; letter-spacing: 0; color: var(--ink-soft);
  margin-top: 2px; text-transform: none;
}
.slider-presets { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.preset {
  padding: 11px 22px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  box-shadow: var(--shadow-soft); cursor: pointer; transition: all .18s;
}
.preset:hover { border-color: var(--line-strong); color: var(--ink); }
.preset.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============ BRAND / MODEL SCREEN ============ */
.brand-screen.active {
  display: grid !important;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px; align-items: center;
}
.brand-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--surface-2);
  aspect-ratio: 5/6; max-height: min(62vh, 560px);
}
.brand-art .stars, .brand-art .milky, .brand-art .mountains,
.brand-art .jeep, .brand-art .brand-chip { display: none; }
.brand-art .custom-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--accent-soft) 100%);
  z-index: 0;
}
.brand-art:has(.custom-art)::after { display: none; }
.brand-form { max-width: 600px; }
.brand-form .q-badge { margin-bottom: 0; }
.brand-form .q-title { text-align: left; margin-bottom: 16px; }
.brand-form .q-subtitle { text-align: left; margin: 0 0 4px; }
.text-input {
  width: 100%; padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 17px; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-soft); outline: none; margin-top: 30px;
  transition: border-color .2s, box-shadow .2s;
}
.text-input::placeholder { color: var(--ink-faint); }
.text-input:focus { border-color: var(--accent); box-shadow: var(--shadow-card); }
.suggestions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 16px; }
.suggestion {
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
  box-shadow: var(--shadow-soft); cursor: pointer; transition: all .18s;
}
.suggestion:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============ TEXT QUESTION (purpose / messenger) ============ */
.text-question .text-answer {
  width: 100%; max-width: 820px; background: transparent; border: none;
  border-bottom: 2px solid var(--line-strong); padding: 14px 4px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px,3vw,38px); color: var(--ink);
  outline: none; text-align: center; transition: border-color .25s; margin-top: 40px;
}
.text-question .text-answer::placeholder { color: var(--ink-faint); }
.text-question .text-answer:focus { border-color: var(--accent); }

/* ============ FINAL FORM ============ */
.final-form { max-width: 560px; margin: 40px auto 0; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-grid .text-input { margin-top: 0; }
.phone-row { display: flex; gap: 12px; }
.country {
  display: flex; align-items: center; gap: 9px; padding: 0 20px;
  border-radius: var(--radius); background: var(--surface);
  border: 1.5px solid var(--line); font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-soft); white-space: nowrap; font-size: 16px;
}
.flag-ua {
  width: 24px; height: 16px; border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex-shrink: 0;
}
.flag-ua::before { content: ""; flex: 1; background: #3b6cd4; display: block; }
.flag-ua::after  { content: ""; flex: 1; background: #f0c419; display: block; }
.privacy {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 6px;
  font-size: 13px; color: var(--ink-soft); line-height: 1.5; font-weight: 500; cursor: pointer;
}
.privacy input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.privacy-box {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  border: 1.6px solid var(--line-strong); display: grid; place-items: center;
  margin-top: 1px; transition: all .18s; background: var(--surface);
}
.privacy input:checked ~ .privacy-box { background: var(--accent); border-color: var(--accent); }
.privacy input:checked ~ .privacy-box::after {
  content: ""; display: block; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.privacy-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-message { min-height: 20px; font-size: 13px; text-align: center; margin-top: 10px; font-weight: 600; color: var(--ink-soft); }
.form-message.error { color: #c0392b; }

/* ============ BOTTOM BAR ============ */
.footer-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 18px 44px 24px; gap: 20px;
}
.footer-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 60%, transparent); pointer-events: none;
}
.nav-btn.back {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  box-shadow: var(--shadow-soft); cursor: pointer; transition: all .18s;
}
.nav-btn.back:hover { color: var(--ink); transform: translateX(-2px); }
.nav-btn.back:disabled { display: none; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gift-mini {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1.5px dashed var(--accent-2);
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.gift-mini::before { content: "♡"; font-size: 14px; }
.pips { display: flex; gap: 7px; }
.pips i {
  display: block; width: 34px; height: 5px; border-radius: 5px;
  background: var(--surface-2); transition: background .35s, width .35s;
}
.pips i.done   { background: var(--accent-2); }
.pips i.active { background: var(--accent); width: 46px; }
.nav-btn.next {
  justify-self: end;
  width: 62px; height: 62px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 24px; border: none; cursor: pointer;
  box-shadow: var(--shadow-accent); transition: transform .18s, box-shadow .18s;
}
.nav-btn.next:hover { transform: translateY(-3px) scale(1.04); }

/* Submit CTA — hidden everywhere except final step */
.submit-cta { display: none; }
body.final-step .submit-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  height: 62px; padding: 0 28px; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  border: none; cursor: pointer; box-shadow: var(--shadow-accent);
  transition: transform .18s, box-shadow .18s;
}
body.final-step .submit-cta:hover { transform: translateY(-2px); }
body.final-step .submit-cta svg { display: none; }
body.final-step .submit-cta::after { content: "→"; font-size: 20px; }
body.final-step .nav-btn.next { display: none; }

/* Hero screen — hide footer entirely */
body.step-0 .footer-nav { display: none; }
body.step-0 .stage { padding-bottom: 40px; }

/* ============ THANK YOU PAGE ============ */
.thank-you-page { background: var(--bg); }
.thank-you { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; }
.thank-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 50px 54px; max-width: 440px; width: 100%; text-align: center;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.thank-mark {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 22px;
}
.thank-mark svg { width: 32px; height: 32px; }
.thank-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.thank-card h1 {
  font-family: var(--serif); font-weight: 600; font-size: 34px;
  margin: 0 0 20px; color: var(--ink); line-height: 1.15;
}
.thank-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.thank-steps span {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--ink-soft); font-weight: 500;
}
.thank-steps b {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--accent); min-width: 28px;
}
.thank-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 26px; }
.thank-actions { display: flex; justify-content: center; }
.telegram-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; box-shadow: var(--shadow-accent);
  transition: transform .18s;
}
.telegram-cta:hover { transform: translateY(-2px); color: #fff; }

/* ============ ANIMATIONS ============ */

/* Screen entrance — rise + fade already on .screen */
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulseSoft {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50% { box-shadow: 0 18px 50px -12px rgba(190,99,71,.7); }
}

/* Stagger children on screen enter */
.screen.active .q-badge        { animation: fadeIn .4s .05s both; }
.screen.active .q-title        { animation: rise .45s .1s both; }
.screen.active .q-subtitle     { animation: fadeIn .4s .18s both; }
.screen.active .options-grid   { animation: rise .45s .22s both; }
.screen.active .deposit-grid   { animation: rise .45s .22s both; }
.screen.active .slider-stage   { animation: rise .45s .22s both; }
.screen.active .text-answer    { animation: rise .4s .22s both; }
.screen.active .final-form     { animation: rise .45s .18s both; }

/* Hero stagger */
.screen.hero.active .hero-art      { animation: scaleIn .55s .05s both; }
.screen.hero.active .hero-copy .eyebrow { animation: slideRight .4s .1s both; }
.screen.hero.active .hero-copy h1  { animation: rise .5s .18s both; }
.screen.hero.active .hero-copy p   { animation: fadeIn .4s .28s both; }
.screen.hero.active .hero-actions  { animation: rise .4s .36s both; }

/* Brand screen stagger */
.brand-screen.active .brand-art    { animation: scaleIn .55s .05s both; }
.brand-screen.active .brand-form   { animation: rise .45s .15s both; }

/* CTA pulse when visible */
.hero-actions .cta { animation: pulseSoft 3s 1.2s ease-in-out infinite; }
.hero-actions .cta:hover { animation: none; }

/* Option card select bounce */
.opt { transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.opt.selected { animation: scaleIn .2s both; }

/* Footer slide up on first appearance */
.footer-nav { animation: rise .4s .1s both; }

/* Progress segment transition (already in CSS, ensure smooth) */
.pips i { transition: background .4s ease, width .4s cubic-bezier(.4,0,.2,1); }

/* Slider bubble smooth */
.slider-bubble { transition: left .08s linear; }
.slider-fill   { transition: width .08s linear; }
.slider-thumb  { transition: left .08s linear, transform .12s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .screen.hero.active { grid-template-columns: 1fr; gap: 24px; }
  .brand-screen.active { grid-template-columns: 1fr; gap: 24px; }
  .hero-art  { aspect-ratio: 4/3; max-height: min(40vh,320px); border-radius: 16px; }
  .brand-art { aspect-ratio: 4/3; max-height: min(36vh,280px); order: -1; border-radius: 16px; }
  .options-grid { grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
  .stage     { padding: 90px 18px 160px; justify-content: flex-start; padding-top: 100px; }
  .chrome    { padding: 14px 18px; }
  .footer-nav { padding: 12px 18px 18px; gap: 12px; }
  .hero-copy h1 { font-size: clamp(28px,7vw,48px); }
  .hero-copy p  { font-size: 15px; margin-bottom: 22px; }
  .hero-actions { gap: 10px; }
  .gift-pill { padding: 9px 14px; font-size: 11px; }
  .cta       { padding: 14px 20px; font-size: 15px; }
  .deposit-opt span { font-size: 22px; }
  .opt-label { font-size: 22px; }
  .opt       { padding: 18px 16px; min-height: 120px; }
  .q-title   { font-size: clamp(26px,6.5vw,44px); }
  .deposit-grid { max-width: 100%; }
  .slider-stage { max-width: 100%; }
  .gift-mini { font-size: 10px; padding: 8px 14px; }
  .nav-btn.back { padding: 10px 16px; font-size: 13px; }
  .nav-btn.next { width: 52px; height: 52px; font-size: 20px; }
  body.final-step .submit-cta { height: 52px; padding: 0 20px; font-size: 15px; }
  .step-counter { font-size: 12px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
}
@media (max-width: 480px) {
  /* Hero actions: wrap gracefully on very small screens */
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .cta { width: 100%; justify-content: center; }
  .hero-actions .gift-pill { width: 100%; justify-content: center; }
  /* Options */
  .options-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt-label { font-size: 19px; }
  .opt-meta { font-size: 9px; }
  /* Deposit rows */
  .deposit-opt { padding: 18px 20px; }
  .deposit-opt span { font-size: 20px; }
  /* Text input */
  .text-input { padding: 16px 18px; font-size: 16px; }
  /* Final form */
  .final-form { margin-top: 24px; }
  .thank-card { padding: 36px 28px; }
  /* Footer: compact icon-only nav, progress pips hidden (like reference design) */
  .footer-center { display: none; }
  .footer-nav {
    grid-template-columns: unset;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px 20px; gap: 12px;
  }
  .nav-btn.back {
    width: 48px; height: 48px; border-radius: 50%;
    padding: 0; font-size: 0; gap: 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .nav-btn.back::before { content: "←"; font-size: 18px; }
  .nav-btn.next { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
  body.final-step .submit-cta { height: 48px; padding: 0 18px; font-size: 13px; }

  /* More compact stage on mobile — content fits without excess scroll */
  .stage { padding: 78px 18px 96px; }
  body.step-0 .stage { padding-bottom: 28px; }
}
@media (max-height: 720px) {
  .stage     { padding-top: 86px; padding-bottom: 140px; }
  .hero-art  { max-height: min(40vh,260px); }
  .brand-art { max-height: min(46vh,300px); }
  .options-grid { margin-top: 22px; }
  .deposit-grid { margin-top: 20px; }
  .slider-stage { margin-top: 26px; }
  .q-title   { margin-top: 16px; }
  .q-subtitle { margin-top: 10px; }
}
