/* ============================================================
   Cidade Viva — LP de captação · IDV Villa Urbanismo
   Paleta + fontes extraídas do villaurb.com.br:
   - --primary #005A45 · --accent-rose #CC3366 · --lime #62BB46
   - Poppins (todas pesos) · sem Palmore (era de outro template)
   ============================================================ */

:root {
  /* Verdes oficiais Villa (do logo SVG) */
  --primary:        #005A45;   /* verde Villa principal */
  --primary-deep:   #003E2F;   /* base do stage */
  --primary-hover:  #004A3A;

  /* Lima oficial Villa (do logo SVG) */
  --lime:           #62BB46;
  --lime-soft:      rgba(98, 187, 70, 0.14);

  /* Rosa Villa (de links/destaques do site) */
  --accent:         #CC3366;
  --accent-soft:    #D43E72;
  /* Destaque dos <em> nos títulos — usa o LIMA do logo Villa (não rosa) */
  --accent-text:    #62BB46;

  /* CTA amarelo Villa (de botões do site) */
  --cta-yellow:     #FFB829;

  /* Superfícies — branco puro (Villa é minimalista) */
  --surface:        #FFFFFF;
  --surface-soft:   #F4F6F5;
  --surface-tint:   #F8FAF9;

  /* Texto */
  --ink:            #1F2625;
  --muted:          #69727D;
  --gray:           #6D6E70;
  --white:          #FFFFFF;

  /* Overlay sobre foto — verde Villa forte */
  --overlay-dark:   rgba(0, 90, 69, 0.55);

  /* Bordas e raios */
  --border-soft:    rgba(0, 90, 69, 0.10);
  --border-rose:    rgba(204, 51, 102, 0.18);
  --radius-sm:      4px;
  --radius-md:      14px;
  --radius-lg:      28px;

  --shadow-card:    0 24px 56px -16px rgba(0, 62, 47, 0.45),
                    0 2px 6px -2px rgba(0, 62, 47, 0.18);

  /* Easing Emil Kowalski */
  --ease-out:       cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--primary-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, button, textarea { font: inherit; color: inherit; }

/* ============================================================
   Layout — verde Villa sólido
   ============================================================ */

.stage {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  isolation: isolate;
}

.stage__hero {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/hero-mobile.webp");
  background-size: cover;
  background-position: center 40%;
  filter: saturate(0.88);
}

@media (min-width: 800px) {
  .stage__hero { background-image: url("./assets/hero-desktop.webp"); }
}

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 90, 69, 0.55) 0%, rgba(0, 62, 47, 0.85) 100%),
    rgba(0, 90, 69, 0.40);
}

/* ============================================================
   Card — branco puro Villa-style
   ============================================================ */

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: card-in 520ms var(--ease-out) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Top band — foto do empreendimento + overlay sutil */
.card__topband {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--primary);
  overflow: hidden;
}

.card__topband-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* Bolha branca — assinatura do card, no canto inferior esquerdo */
.card__topband::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--white);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 1;
}

/* Logo do empreendimento — sobre a bolha branca, canto inferior esquerdo */
.card__topband-villa {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  width: auto;
  height: 84px;
  max-width: 140px;
  border-radius: 6px;
  filter: drop-shadow(0 1px 2px rgba(0, 90, 69, 0.15));
}

.card__topband-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__topband-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(98, 187, 70, 0.22);
}

/* Body do card */
.card__body {
  padding: 20px 28px 18px;
}

.card__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 4px;
}

.card__title {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.16;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.card__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-text);
}

.card__lede {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   Progress bar
   ============================================================ */

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.progress__track {
  flex: 1;
  height: 4px;
  background: rgba(0, 90, 69, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--lime);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms var(--ease-out);
  will-change: transform;
}

/* ============================================================
   Steps
   ============================================================ */

#steps { min-height: 244px; }

.step {
  display: none;
  animation: step-in 280ms var(--ease-out) both;
}

.step.is-active { display: block; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__question {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
  margin: 0 0 12px;
}

.step__question--price {
  display: grid;
  gap: 4px;
}

.price-question__headline {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--primary-deep, var(--primary));
}

.price-question__detail {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}

.price-question__ask {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-deep, var(--primary));
}


/* ============================================================
   Radio options
   ============================================================ */

.options { display: grid; gap: 7px; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
  font-size: 14.5px;
  color: var(--ink);
}

.option:hover {
  border-color: rgba(0, 90, 69, 0.40);
  background: rgba(0, 90, 69, 0.04);
}

.option input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}

.option__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 90, 69, 0.30);
  background: var(--white);
  display: grid;
  place-items: center;
  transition: all 160ms var(--ease-out);
}

.option__check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 160ms var(--ease-out);
}

.option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(0, 90, 69, 0.07);
  color: var(--primary);
  font-weight: 600;
}

.option:has(input:checked) .option__check { border-color: var(--primary); }
.option:has(input:checked) .option__check::after { transform: scale(1); }

/* ============================================================
   Inputs
   ============================================================ */

.field { display: block; margin: 0 0 12px; }

.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 90, 69, 0.14);
}

.field input::placeholder { color: #A8B0AE; }

.field__error {
  display: none;
  margin: 6px 2px 0;
  font-size: 12px;
  color: #C8324B;
}

.field.has-error input { border-color: #C8324B; }
.field.has-error .field__error { display: block; }

/* ============================================================
   Botões — verde Villa primário
   ============================================================ */

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease-out), transform 100ms var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  flex: 1;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #9AB0A8; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  height: 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.btn-ghost:hover { color: var(--primary); }

.btn .spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Footer — Villa Urbanismo · captação Solução
   ============================================================ */

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-tint);
}

.card__foot p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 280px;
}

.card__foot a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   Thank-you states
   ============================================================ */

.thanks { display: none; animation: step-in 480ms var(--ease-out) both; }
.thanks.is-visible { display: block; }
.form-wrap.is-hidden { display: none; }

.thanks__body { padding: 32px 28px 24px; text-align: left; }

.thanks__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.thanks__eyebrow--muted { color: var(--muted); }

.thanks__title {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.thanks__title em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-text);
}

.thanks__lede {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.thanks__cta {
  width: 100%;
  height: 52px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.thanks__sectionlabel {
  margin: 26px 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Factlist */
.factlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.factrow {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.factrow:last-child { border-bottom: none; }

.factrow__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.factrow__icon svg { width: 14px; height: 14px; }

.factrow__label { font-size: 13.5px; color: var(--ink); line-height: 1.3; }

.factrow__value {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.factrow__icon  { order: 1; }
.factrow__label { order: 2; }
.factrow__value { order: 3; justify-self: end; }

.thanks__oneliner {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: rgba(0, 90, 69, 0.04);
  border-left: 3px solid var(--lime);
  border-radius: 0 8px 8px 0;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.btn-ghost-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   Intro state — Villa minimalista (branco + verde)
   ============================================================ */

.intro { display: block; animation: step-in 480ms var(--ease-out) both; }
.intro.is-hidden { display: none; }

.intro__body {
  padding: 24px 28px 20px;
}

.intro__title {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro__title em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-text);
}

.intro__lede {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

/* Hero stat — divisor verde Villa top + border-soft bottom */
.intro__hero-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 16px;
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.intro__hero-stat-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.intro__hero-stat-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.intro__hero-stat-value {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.intro__hero-stat-label {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  text-wrap: balance;
}

/* Bullets */
.intro__bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.intro__bullet {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
  opacity: 0;
  animation: bullet-in 420ms var(--ease-out) forwards;
}

.intro__bullet:nth-child(1) { animation-delay: 220ms; }
.intro__bullet:nth-child(2) { animation-delay: 300ms; }
.intro__bullet:nth-child(3) { animation-delay: 380ms; }
.intro__bullet:nth-child(4) { animation-delay: 460ms; }

@keyframes bullet-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intro__bullet-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: -1px;
  flex-shrink: 0;
  background: var(--lime-soft);
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
}

.intro__cta {
  width: 100%;
  height: 50px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

/* ============================================================
   Mobile tweaks
   ============================================================ */

@media (max-width: 600px) {
  .stage { padding: 14px 18px; }
  .card {
    border-radius: 22px;
    box-shadow: 0 30px 60px -18px rgba(0, 62, 47, 0.55),
                0 4px 12px -4px rgba(0, 62, 47, 0.25);
  }

  .card__topband { aspect-ratio: 24 / 10; }
  .card__topband-img { object-position: center 55%; }
  .card__topband::after {
    left: -110px; bottom: -130px;
    width: 260px; height: 260px;
  }
  .card__topband-villa { left: 18px; bottom: 14px; height: 72px; max-width: 120px; }
  .card__topband-meta {
    top: 12px; left: 12px;
    padding: 5px 11px;
    font-size: 10.5px;
  }

  .card__body { padding: 18px 20px 16px; }
  .card__eyebrow { margin-bottom: 5px; font-size: 10.5px; letter-spacing: 0.14em; }
  .card__title { font-size: 21px; margin-bottom: 4px; line-height: 1.18; }
  .card__lede { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }

  .progress { margin-bottom: 14px; gap: 8px; }
  .progress__track { height: 4px; }

  #steps { min-height: 232px; }
  .step__question { font-size: 15.5px; margin-bottom: 10px; line-height: 1.32; }
  .price-question__headline { font-size: 17px; }
  .price-question__detail { font-size: 12.5px; }
  .price-question__ask { font-size: 14.5px; }
  .options { gap: 6px; }
  .option { padding: 10px 13px; font-size: 14px; }
  .option__check { width: 18px; height: 18px; }
  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="email"] { height: 44px; font-size: 16px; }

  .actions { margin-top: 14px; }
  .btn { height: 46px; padding: 0 18px; font-size: 11px; }
  .btn-ghost { height: 32px; font-size: 10.5px; }

  .card__foot { padding: 11px 18px; }
  .card__foot p { font-size: 10.5px; line-height: 1.4; max-width: 280px; }

  /* Intro mobile */
  .intro__body { padding: 22px 20px 18px; }
  .intro__title { font-size: 24px; margin-bottom: 5px; line-height: 1.16; }
  .intro__lede { font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }

  .intro__hero-stat { gap: 6px; padding: 12px 0 14px; margin-bottom: 16px; }
  .intro__hero-stat-kicker { font-size: 10.5px; letter-spacing: 0.14em; }
  .intro__hero-stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .intro__hero-stat-value { font-size: 40px; line-height: 0.95; }
  .intro__hero-stat-label { font-size: 13px; line-height: 1.4; max-width: 30ch; }

  .intro__bullets { gap: 10px; margin-bottom: 20px; }
  .intro__bullet { font-size: 13px; grid-template-columns: 24px 1fr; gap: 11px; }
  .intro__bullet-icon { width: 24px; height: 24px; padding: 4px; }

  .intro__cta {
    height: 52px;
    font-size: 12px;
    letter-spacing: 0.12em;
    box-shadow: 0 8px 18px -6px rgba(0, 90, 69, 0.45),
                0 2px 4px -1px rgba(0, 90, 69, 0.18);
  }
  .intro__cta:active { box-shadow: 0 4px 8px -3px rgba(0, 90, 69, 0.4); }

  /* Thanks mobile */
  .thanks__body { padding: 22px 20px 16px; }
  .thanks__eyebrow { margin-bottom: 6px; }
  .thanks__title { font-size: 26px; margin-bottom: 8px; }
  .thanks__lede { font-size: 14px; margin-bottom: 16px; }
  .thanks__cta { height: 48px; font-size: 11.5px; }
  .thanks__sectionlabel { margin: 18px 0 6px; }
  .factrow { padding: 7px 0; }
  .factrow__icon { width: 24px; height: 24px; }
  .factrow__icon svg { width: 12px; height: 12px; }
  .factrow__value { font-size: 17px; }
  .factrow__label { font-size: 12.5px; }
  .thanks__oneliner { margin-top: 16px; padding: 10px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
