/* ============================================================
   Alvorá Campos do Sul — LP de captação
   IDV aplicada da marca: amarelo solar, verdes da árvore e texto preto.
   ============================================================ */

/* Fonte Palmore — USADA APENAS na logo do empreendimento */
@font-face {
  font-display: swap;
  font-family: "Palmore";
  font-style: normal;
  font-weight: 300;
  src: url("./assets/Palmore-Light.woff2") format("woff2");
}

:root {
  /* Marca Alvorá */
  --primary:        #15140F;   /* preto quente da tipografia */
  --primary-deep:   #07140D;   /* verde profundo para fundo */
  --primary-hover:  #063C24;
  --leaf:           #91BF1A;
  --leaf-deep:      #068D42;

  /* Amarelo solar da borda da logo */
  --accent:         #F5A51B;
  --accent-soft:    #FFC43D;
  --accent-text:    #068D42;

  /* Superfícies claras */
  --cream:          #FFF8E8;
  --cream-light:    #FFFDF6;
  --cream-deep:     #F1DAA2;

  /* Texto */
  --ink:            #1A1A1A;
  --muted:          #6B624B;
  --white:          #FFFFFF;

  /* Overlay sobre foto — verde botânico forte */
  --overlay-dark:   rgba(7, 20, 13, 0.55);

  /* Bordas e raios */
  --border-soft:    rgba(21, 20, 15, 0.10);
  --border-cream:   rgba(245, 165, 27, 0.28);
  --radius-sm:      4px;
  --radius-md:      14px;
  --radius-lg:      28px;

  --shadow-card:    0 24px 56px -16px rgba(7, 20, 13, 0.45),
                    0 2px 6px -2px rgba(7, 20, 13, 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: "Work Sans", 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 botânico sólido (fiel ao referencial visual)
   ============================================================ */

.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(7, 20, 13, 0.44) 0%, rgba(7, 20, 13, 0.86) 100%),
    rgba(7, 20, 13, 0.34);
}

/* ============================================================
   Card — papel creme luxuoso (não glassmorphism branco)
   ============================================================ */

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--cream);
  border: 1px solid var(--border-cream);
  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 verde botânico sutil */
.card__topband {
  position: relative;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--accent) 0%, var(--leaf) 100%);
  overflow: hidden;
}

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

.card__topband::after {
  /* Selo claro atrás da marca oficial */
  content: "";
  position: absolute;
  left: 4px;
  bottom: -16px;
  width: 136px;
  height: 136px;
  border-radius: 26px;
  background: rgba(255, 248, 232, 0.94);
  box-shadow: 0 18px 36px -20px rgba(7, 20, 13, 0.45);
  pointer-events: none;
}

/* Logo oficial Alvorá */
.card__topband-logo {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  width: 108px;
  height: 108px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--accent);
  box-shadow:
    0 16px 28px -18px rgba(7, 20, 13, 0.72),
    0 0 0 1px rgba(255, 248, 232, 0.82);
}

.card__topband-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__topband-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 248, 232, 0.95);
  border: 1px solid rgba(245, 165, 27, 0.32);
  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(--leaf-deep);
  box-shadow: 0 0 0 3px rgba(245, 165, 27, 0.32);
}

/* 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: "Work Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.16;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.card__title em {
  font-style: italic;
  font-weight: 900;
  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(23, 33, 26, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  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;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  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(--accent-text);
}

.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(--cream-light);
  border: 1.5px solid var(--border-cream);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
  font-size: 14.5px;
  color: var(--ink);
}

.option:hover {
  border-color: rgba(245, 165, 27, 0.58);
  background: rgba(245, 165, 27, 0.08);
}

.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(23, 33, 26, 0.25);
  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(--leaf-deep);
  transform: scale(0);
  transition: transform 160ms var(--ease-out);
}

.option:has(input:checked) {
  border-color: var(--leaf-deep);
  background: rgba(6, 141, 66, 0.09);
  color: var(--primary);
  font-weight: 600;
}

.option:has(input:checked) .option__check { border-color: var(--leaf-deep); }
.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(--cream-light);
  border: 1.5px solid var(--border-cream);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 165, 27, 0.22);
}

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

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

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

/* ============================================================
   Botões — CTA amarelo Alvorá
   ============================================================ */

.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(--accent);
  color: var(--primary);
  flex: 1;
}

.btn-primary:hover { background: var(--accent-soft); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #D8CCA7; 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(--accent); }

.btn .spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(21, 20, 15, 0.35);
  border-top-color: var(--primary);
  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 — Solução Inteligência Imobiliária
   ============================================================ */

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--border-soft);
  background: rgba(245, 165, 27, 0.10);
}

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

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

.card__foot-brand {
  flex-shrink: 0;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 9.5px;
  line-height: 1.2;
  text-align: right;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.card__foot-brand strong {
  display: block;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ============================================================
   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: "Work Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.thanks__title em {
  font-style: italic;
  font-weight: 900;
  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: rgba(6, 141, 66, 0.12);
  color: var(--leaf-deep);
  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: "Work Sans", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: var(--accent-text);
  line-height: 1;
  white-space: nowrap;
}

.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(6, 141, 66, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

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

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

/* ============================================================
   Intro state — luxury botanical
   ============================================================ */

.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: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.intro__title em {
  font-style: italic;
  font-weight: 900;
  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 amarelo top + border-soft bottom */
.intro__hero-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 16px;
  border-top: 1.5px solid var(--accent);
  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: "Work Sans", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--accent-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.intro__hero-stat-label {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  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(--leaf-deep);
  margin-top: -1px;
  flex-shrink: 0;
  background: rgba(6, 141, 66, 0.12);
  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(14, 22, 18, 0.55),
                0 4px 12px -4px rgba(14, 22, 18, 0.25);
  }

  .card__topband { aspect-ratio: 24 / 10; }
  .card__topband-img { object-position: center 55%; }
  .card__topband-logo {
    width: 86px;
    height: 86px;
    left: 14px;
    bottom: 12px;
    border-radius: 18px;
  }
  .card__topband-meta {
    top: 12px; left: 12px;
    padding: 5px 11px;
    font-size: 10.5px;
  }
  .card__topband::after {
    left: 2px; bottom: -14px;
    width: 112px; height: 112px;
    border-radius: 22px;
  }

  .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: 220px; }
  .card__foot-brand { font-size: 9px; letter-spacing: 0.16em; }
  .card__foot-brand strong { font-size: 10.5px; letter-spacing: 0.12em; }

  /* Intro mobile */
  .intro__body { padding: 22px 20px 18px; }
  .intro__title { font-size: 22px; margin-bottom: 5px; line-height: 1.18; }
  .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(245, 165, 27, 0.48),
                0 2px 4px -1px rgba(6, 141, 66, 0.20);
  }
  .intro__cta:active { box-shadow: 0 4px 8px -3px rgba(245, 165, 27, 0.42); }

  /* 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; }
}
