@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-400-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F3EFE7;
  --bg-elev: #FFFCF7;
  --ink: #161411;
  --muted: #5E584F;
  --line: #DDD6C8;
  --accent: #C2410C;
  --accent-hover: #A3360A;
  --accent-soft: #F6E4DA;
  --danger: #8F1D1D;
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --header-h: 4.25rem;
  --shadow: 0 1px 0 rgba(22, 20, 17, 0.04);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.9rem 1.25rem;
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.ig-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.05rem;
}

.ig-link:hover { border-bottom-color: var(--ink); }

main {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  flex: 1;
  padding-top: 0.75rem;
}

.screen.is-active { display: flex; }

#screen-hero,
#screen-thanks {
  justify-content: space-between;
  min-height: calc(100dvh - var(--header-h) - 2rem);
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.hero-copy { max-width: 26rem; }

#screen-thanks .thanks-copy { max-width: 22rem; }

#screen-thanks h1 {
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.hero-visual,
.thanks-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0.35rem 0;
}

.hero-svg {
  width: 100%;
  max-width: 26rem;
  height: auto;
  overflow: visible;
}

.thanks-visual img {
  width: 100%;
  max-width: 26rem;
  height: auto;
  border-radius: 16px;
  display: block;
}

.hero-svg .msg-in,
.hero-svg .msg-out,
.hero-svg .agent-pulse {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes heroIn {
  0%, 6% { opacity: 0; transform: translateX(-16px); }
  18%, 80% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(-8px); }
}

@keyframes heroOut {
  0%, 28% { opacity: 0; transform: translateX(16px); }
  40%, 80% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(8px); }
}

@keyframes heroPulse {
  0%, 18% { transform: scale(0.86); opacity: 0.45; }
  36% { transform: scale(1.08); opacity: 0.9; }
  58%, 100% { transform: scale(0.94); opacity: 0.5; }
}

@keyframes heroSpark {
  0%, 24% { transform: scale(1) rotate(0deg); }
  36% { transform: scale(1.12) rotate(12deg); }
  50%, 100% { transform: scale(1) rotate(0deg); }
}

.hero-svg .in-1 { animation: heroIn 6s ease-in-out infinite; }
.hero-svg .in-2 { animation: heroIn 6s ease-in-out 0.35s infinite; }
.hero-svg .out-1 { animation: heroOut 6s ease-in-out infinite; }
.hero-svg .out-2 { animation: heroOut 6s ease-in-out 0.28s infinite; }
.hero-svg .agent-pulse { animation: heroPulse 6s ease-in-out infinite; }
.hero-svg .agent path {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroSpark 6s ease-in-out infinite;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 8.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 6.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn:focus-visible,
.opt:focus-visible,
.btn-back:focus-visible,
.ig-link:focus-visible,
.brand:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.trust {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}

.progress-wrap { margin-bottom: 1.15rem; }

.progress {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.step-meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}

.question-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  overflow-y: auto;
}

.opt {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.7rem 0.85rem;
  text-align: left;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.opt-icon {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.opt-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.opt-label { flex: 1; }

.opt:hover { border-color: var(--ink); }
.opt:active { transform: translateY(1px); }
.opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.opt.is-selected .opt-icon {
  background: var(--accent);
  color: #fff;
}

.other-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label,
.consent {
  font-size: 0.92rem;
  font-weight: 500;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.05rem;
}

input::placeholder { color: #9A9388; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0.35rem 0 0.5rem;
}

.consent input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

.btn-back {
  appearance: none;
  align-self: flex-start;
  margin-top: 1.1rem;
  padding: 0.45rem 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-back:hover { color: var(--ink); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .site-header, main { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-copy { max-width: 28rem; }
  #screen-thanks .thanks-copy { max-width: 24rem; }
  .btn, .btn-whatsapp { width: auto; min-width: 16rem; align-self: flex-start; }
}

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

  .hero-svg .msg-in,
  .hero-svg .msg-out,
  .hero-svg .agent-pulse,
  .hero-svg .agent path {
    opacity: 1 !important;
    transform: none !important;
  }
}
