/* meuanuncio.io — páginas públicas (início, cadastro, termos).
   Tema escuro da própria logo: preto levemente esverdeado, verde elétrico nas ações, azul como faísca. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: oklch(0.14 0.012 160);
  --bg-deep: oklch(0.11 0.01 160);
  --surface: oklch(0.19 0.016 160);
  --surface-2: oklch(0.235 0.018 160);
  --line: oklch(0.33 0.02 160);
  --line-soft: oklch(0.26 0.018 160);
  --text: oklch(0.965 0.008 160);
  --muted: oklch(0.78 0.018 160);
  --green: oklch(0.8 0.19 157);
  --green-deep: oklch(0.62 0.16 157);
  --green-ink: oklch(0.2 0.05 157);
  --blue: oklch(0.7 0.17 250);
  --err: oklch(0.74 0.17 25);
  --bubble-in: oklch(0.235 0.018 160);
  --bubble-out: oklch(0.36 0.09 157);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
body {
  font: 400 1rem/1.6 var(--font-body);
  min-height: 100dvh;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, oklch(0.8 0.19 157 / 0.14), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: oklch(0.88 0.16 157); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- estrutura ---------- */
.shell { width: min(100%, 34rem); margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.top { display: flex; flex-direction: column; gap: 1.25rem; margin: 0.25rem 0 1.5rem; }
.brandbar { display: flex; justify-content: center; }
.brandbar img { display: block; height: 3.25rem; width: auto; }
.foot { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 2rem; }
.foot a { color: var(--muted); }

/* ---------- progresso do cadastro ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; font-size: 0.8125rem; font-weight: 600; color: var(--muted);
  padding-top: 0.75rem;
}
.steps li::before, .steps li::after {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; border-radius: 4px;
}
.steps li::before { right: 0; background: var(--line-soft); }
.steps li::after {
  right: 0; background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}
.steps li.active, .steps li.done { color: var(--text); }
.steps li.done::after { transform: scaleX(1); }
.steps li.active::after { transform: scaleX(0.5); }

/* ---------- blocos do cadastro ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 24px 48px -24px oklch(0 0 0 / 0.6);
}
.card:not([hidden]) { animation: step-in 0.42s var(--ease-expo) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* fala da marca no topo de cada passo, como no WhatsApp */
.say { display: flex; gap: 0.75rem; align-items: flex-end; margin-bottom: 1.25rem; }
.say .av { width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.say .bubble {
  background: var(--bubble-in); border-radius: 18px 18px 18px 6px; padding: 0.75rem 1rem;
  animation: bubble-in 0.5s var(--ease-expo) 0.08s both;
}
.say h1 { font-size: 1.375rem; }
.say p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: bottom left; }
  to { opacity: 1; transform: none; }
}

fieldset { border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.875rem; padding: 0; }
.field { margin-bottom: 1rem; }
.row { display: flex; gap: 0.75rem; }
.grow { flex: 1; min-width: 0; }
.uf { width: 6rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
label .muted { font-weight: 400; }

input, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; min-height: 3rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
input::placeholder { color: oklch(0.66 0.018 160); }
select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9c7b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
input:hover, select:hover { border-color: oklch(0.42 0.03 160); }
input:focus, select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px oklch(0.8 0.19 157 / 0.18);
  background-color: oklch(0.13 0.014 160);
}
.invalid { border-color: var(--err) !important; animation: nudge 0.32s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.err { display: block; color: var(--err); font-size: 0.8125rem; margin-top: 0.35rem; }
.hint { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 0.35rem; min-height: 1.1em; }

.check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; margin-top: 1.5rem; cursor: pointer; }
.check input { width: 1.375rem; height: 1.375rem; min-height: 0; margin: 0.1rem 0 0; padding: 0; flex: none; accent-color: var(--green); }

/* ---------- botões ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  width: 100%; min-height: 3.25rem; margin-top: 1.25rem; padding: 0 1.25rem;
  border: 0; border-radius: 999px;
  background: var(--green); color: var(--green-ink);
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px oklch(0.8 0.19 157 / 0.7);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { background: oklch(0.85 0.18 157); color: var(--green-ink); box-shadow: 0 14px 34px -12px oklch(0.8 0.19 157 / 0.85); }
.btn:active { transform: scale(0.97); }
.btn[hidden], .divider[hidden] { display: none; }
.btn[disabled] { cursor: progress; color: transparent; }
.btn[disabled]::after {
  content: ""; position: absolute; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2.5px solid var(--green-ink); border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn[disabled] svg { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.secondary, .btn.google {
  background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none;
}
.btn.secondary:hover, .btn.google:hover { background: var(--surface-2); color: var(--text); border-color: oklch(0.45 0.03 160); }
.btn.secondary[disabled]::after, .btn.google[disabled]::after { border-color: var(--text); border-right-color: transparent; }
.btn.google svg { width: 1.25rem; height: 1.25rem; }
.btn.whatsapp svg { width: 1.375rem; height: 1.375rem; }
.link {
  display: block; width: 100%; margin-top: 0.75rem; background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.5rem;
}
.link:hover { color: var(--text); }

.divider { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.8125rem; margin: 1.25rem 0 0.25rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.msg { margin: 0.875rem 0 0; font-size: 0.9375rem; color: var(--muted); min-height: 1.4em; }
.msg.error { color: var(--err); }
#otp-code { font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.35em; text-align: center; }

/* ---------- escolha de como entrar ---------- */
.choices { display: grid; gap: 0.75rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: 0.875rem; width: 100%; text-align: left;
  padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-deep);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.15s var(--ease);
  animation: bubble-in 0.45s var(--ease-expo) both;
}
.choice + .choice { animation-delay: 0.08s; }
.choice:hover { border-color: var(--green); background: oklch(0.8 0.19 157 / 0.06); }
.choice:active { transform: scale(0.98); }
.choice-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface-2); flex: none; }
.choice-ico svg { width: 1.375rem; height: 1.375rem; }
.choice-ico.mail { color: var(--green); }
.choice-txt { display: grid; gap: 0.1rem; flex: 1; }
.choice-txt strong { font-size: 1rem; }
.choice-txt small { color: var(--muted); font-size: 0.8125rem; }
.choice .soon-badge { display: none; margin: 0; }
.choice.unavailable { cursor: not-allowed; opacity: 0.55; }
.choice.unavailable:hover { border-color: var(--line); background: var(--bg-deep); }
.choice.unavailable .soon-badge { display: inline-block; }

/* ---------- janela do e-mail (sobe de baixo no celular) ---------- */
.sheet {
  width: min(100%, 30rem); max-width: 100%; margin: auto auto 0; padding: 1.75rem 1.25rem 1.5rem;
  border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 1.5rem 1.5rem 0 0;
  background: var(--surface); color: var(--text);
  box-shadow: 0 -20px 60px -20px oklch(0 0 0 / 0.7);
}
@media (min-width: 600px) { .sheet { margin: auto; border-bottom: 1px solid var(--line-soft); border-radius: 1.5rem; } }
.sheet[open] { animation: sheet-up 0.42s var(--ease-expo) both; }
.sheet::backdrop { background: oklch(0.08 0.01 160 / 0.72); backdrop-filter: blur(3px); }
.sheet[open]::backdrop { animation: fade-in 0.3s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-grip { width: 2.5rem; height: 4px; border-radius: 4px; background: var(--line); margin: -0.75rem auto 1rem; }
@media (min-width: 600px) { .sheet-grip { display: none; } }
.sheet-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.sheet-close:hover { background: var(--surface-2); color: var(--text); }
.sheet-close svg { width: 1.25rem; height: 1.25rem; }
.sheet h2 { font-size: 1.375rem; padding-right: 2.5rem; }
.sheet .muted { margin: 0.35rem 0 1rem; font-size: 0.9375rem; }
#form-codigo:not([hidden]) { animation: step-in 0.35s var(--ease-expo) both; }

/* ---------- seletor em janela (substitui o <select> nativo) ---------- */
.picker {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%;
  min-height: 3rem; padding: 0.7rem 0.9rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--bg-deep);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.picker:hover { border-color: oklch(0.42 0.03 160); }
.picker:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px oklch(0.8 0.19 157 / 0.18); }
.picker.empty .picker-val { color: oklch(0.66 0.018 160); }
.picker-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-chev { width: 0.75rem; height: 0.5rem; flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.picker[aria-expanded="true"] .picker-chev { transform: rotate(180deg); }

.pick-list {
  display: grid; gap: 0.5rem; margin: 0 -0.25rem; padding: 0.25rem;
  max-height: min(58dvh, 28rem); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.opt {
  display: flex; align-items: center; gap: 0.875rem; min-height: 3.25rem; padding: 0.75rem 1rem;
  border: 1px solid var(--line-soft); border-radius: 999px; background: var(--bg-deep);
  font-size: 1rem; font-weight: 500; cursor: pointer; margin: 0;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.12s var(--ease);
  animation: bubble-in 0.35s var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 25ms);
}
.opt:hover { border-color: oklch(0.45 0.03 160); }
.opt:active { transform: scale(0.98); }
.opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.opt-mark {
  position: relative; flex: none; width: 1.375rem; height: 1.375rem; border: 2px solid var(--line);
  border-radius: 50%; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.opt.multi .opt-mark { border-radius: 0.45rem; }
.opt-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--green-ink); transform: scale(0); transition: transform 0.2s var(--ease-expo);
}
.opt.multi .opt-mark::after {
  width: 0.7rem; height: 0.4rem; border-radius: 0; background: none;
  border: solid var(--green-ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-15%) rotate(-45deg) scale(0);
}
.opt:has(input:checked) { border-color: var(--green); background: oklch(0.8 0.19 157 / 0.1); }
.opt:has(input:checked) .opt-mark { border-color: var(--green); background: var(--green); }
.opt:has(input:checked) .opt-mark::after { transform: scale(1); }
.opt.multi:has(input:checked) .opt-mark::after { transform: translateY(-15%) rotate(-45deg) scale(1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt.all { border-style: dashed; }
.sheet { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; }
#pick-done { position: sticky; bottom: 0; }

/* ---------- planos ---------- */
.plans { display: grid; gap: 0.75rem; margin-top: 0.25rem; }
.plan {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  background: var(--bg-deep);
  animation: bubble-in 0.45s var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.plan.selected {
  border-color: var(--green);
  background: linear-gradient(160deg, oklch(0.8 0.19 157 / 0.12), transparent 60%), var(--bg-deep);
  box-shadow: 0 0 0 3px oklch(0.8 0.19 157 / 0.14);
}
.plan.selected h2::after {
  content: "seu plano"; margin-left: 0.5rem; vertical-align: 0.15em;
  font: 700 0.6875rem/1 var(--font-body); color: var(--green-ink); background: var(--green);
  padding: 0.25rem 0.5rem; border-radius: 999px;
}
.plan.soon { opacity: 0.62; }
.plan h2 { font-size: 1.125rem; }
.plan ul { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.875rem; color: var(--muted); }
.plan .price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-top: 0.5rem; }

/* ---------- concluído ---------- */
.done { text-align: center; padding-top: 2rem; overflow: hidden; }
.done h1 { font-size: 1.75rem; margin-top: 0.5rem; }
.done p { color: var(--muted); margin: 0.625rem auto 0; max-width: 28ch; }
.ok { position: relative; width: 5.5rem; height: 5.5rem; margin: 0 auto 0.75rem; }
.ok svg { width: 100%; height: 100%; }
.ok .ring { fill: none; stroke: var(--green); stroke-width: 4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 0.7s var(--ease-expo) 0.1s forwards; }
.ok .tick { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.45s var(--ease-expo) 0.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ok i {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 2px; opacity: 0;
  background: var(--green); animation: burst 0.9s var(--ease-expo) 0.6s both;
}
.ok i:nth-of-type(3n) { background: var(--blue); }
.ok i:nth-of-type(1) { --x: -64px; --y: -38px; --r: 40deg; }
.ok i:nth-of-type(2) { --x: 58px; --y: -46px; --r: -20deg; }
.ok i:nth-of-type(3) { --x: -72px; --y: 20px; --r: 80deg; }
.ok i:nth-of-type(4) { --x: 70px; --y: 26px; --r: 130deg; }
.ok i:nth-of-type(5) { --x: -30px; --y: -70px; --r: 10deg; }
.ok i:nth-of-type(6) { --x: 30px; --y: -72px; --r: 60deg; }
.ok i:nth-of-type(7) { --x: -48px; --y: 60px; --r: 200deg; }
.ok i:nth-of-type(8) { --x: 44px; --y: 64px; --r: 170deg; }
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
}

/* ---------- página inicial ---------- */
.home .shell { width: min(100%, 72rem); padding-inline: clamp(1rem, 4vw, 2.5rem); }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.home-top img { height: 2.75rem; width: auto; display: block; }
.home-top .pill {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.home-top .pill:hover { background: var(--surface-2); border-color: var(--green); color: var(--text); }

.hero { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: clamp(2.35rem, 6.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); margin-top: 1.25rem; max-width: 36ch; line-height: 1.55; }
.hero .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 2rem; }
.hero .cta .btn { width: auto; min-height: 3.5rem; padding: 0 1.75rem; font-size: 1.0625rem; margin: 0; }
.hero .cta small { color: var(--muted); font-size: 0.875rem; }
.hero-copy > * { animation: rise 0.8s var(--ease-expo) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* celular com a conversa: é o produto funcionando */
.phone {
  position: relative; width: min(100%, 23rem); margin: 0 auto;
  border-radius: 2.25rem; padding: 0.625rem;
  background: linear-gradient(160deg, oklch(0.3 0.02 160), oklch(0.16 0.012 160));
  box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.8), 0 0 0 1px oklch(1 0 0 / 0.06) inset;
  animation: rise 0.9s var(--ease-expo) 0.12s both;
  isolation: isolate;
}
.phone::before {
  content: ""; position: absolute; inset: -18% -20% auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, oklch(0.8 0.19 157 / 0.28), transparent);
  filter: blur(10px);
}
.screen { border-radius: 1.75rem; overflow: hidden; background: oklch(0.16 0.014 160); }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; background: oklch(0.21 0.02 160); }
.chat-head img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.chat-head strong { display: block; font-size: 0.9375rem; }
.chat-head span { font-size: 0.75rem; color: var(--green); }
.chat {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.875rem 1.25rem; min-height: 25rem;
  background:
    radial-gradient(circle at 20% 10%, oklch(1 0 0 / 0.025) 0 2px, transparent 3px) 0 0 / 22px 22px,
    oklch(0.16 0.014 160);
}
.b {
  max-width: 82%; padding: 0.55rem 0.8rem; border-radius: 14px; font-size: 0.875rem; line-height: 1.45;
  animation: pop 0.45s var(--ease-expo) both; animation-delay: var(--d);
}
.b.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.b.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.b .t { display: block; text-align: right; font-size: 0.6875rem; color: oklch(0.85 0.02 160 / 0.85); margin-top: 0.15rem; }
.b .t .seen { color: var(--blue); letter-spacing: -0.2em; margin-left: 0.25rem; }
.b.voice { display: flex; align-items: center; gap: 0.6rem; }
.b.voice .play { width: 10px; height: 12px; background: var(--text); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.wave { display: flex; align-items: center; gap: 2px; height: 1.25rem; }
.wave i { width: 3px; border-radius: 3px; background: oklch(0.9 0.05 157); }
.wave i:nth-child(1) { height: 40%; }
.wave i:nth-child(2) { height: 80%; }
.wave i:nth-child(3) { height: 55%; }
.wave i:nth-child(4) { height: 100%; }
.wave i:nth-child(5) { height: 65%; }
.wave i:nth-child(6) { height: 35%; }
.wave i:nth-child(7) { height: 90%; }
.wave i:nth-child(8) { height: 50%; }
.wave i:nth-child(9) { height: 75%; }
.wave i:nth-child(10) { height: 30%; }
.wave i:nth-child(11) { height: 60%; }
.wave i:nth-child(12) { height: 45%; }
/* ordem da conversa (a CSP da página não aceita style="" no HTML) */
.chat [data-step="1"] { --d: .6s; }
.chat [data-step="2"] { --d: 1.2s; }
.chat [data-step="3"] { --d: 2.2s; }
.chat [data-step="4"] { --d: 3s; }
.chat [data-step="5"] { --d: 3.5s; }
.chat [data-step="6"] { --d: 4.6s; }
.chat [data-step="7"] { --d: 5.6s; }
.b.proposal { padding: 0.75rem 0.85rem; }
.b.proposal strong { display: block; font-family: var(--font-display); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.b.proposal dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; margin: 0.35rem 0; font-size: 0.8125rem; }
.b.proposal dt { color: var(--muted); }
.b.proposal dd { margin: 0; }
.b.proposal .code { font-weight: 700; color: var(--green); }
.typing {
  align-self: flex-start; display: flex; gap: 4px; padding: 0.7rem 0.85rem; background: var(--bubble-in);
  border-radius: 14px; border-bottom-left-radius: 4px; overflow: hidden;
  animation: typing-life 1.1s var(--ease) both; animation-delay: var(--d);
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 0.5s ease-in-out var(--d) 2; }
.typing i:nth-child(2) { animation-delay: calc(var(--d) + 0.12s); }
.typing i:nth-child(3) { animation-delay: calc(var(--d) + 0.24s); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* o "digitando…" aparece e some no próprio lugar, sem empurrar a conversa */
@keyframes typing-life {
  0% { opacity: 0; max-height: 3rem; }
  15%, 80% { opacity: 1; max-height: 3rem; }
  100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: -0.5rem; }
}

.how { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line-soft); }
.how h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); max-width: 18ch; }
.how ol { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.75rem; counter-reset: step; }
@media (min-width: 760px) { .how ol { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.how li { counter-increment: step; }
.how li::before {
  content: counter(step); display: block; font: 800 3.5rem/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px var(--green); margin-bottom: 0.75rem;
}
.how h3 { font-size: 1.25rem; }
.how p { color: var(--muted); margin-top: 0.4rem; max-width: 34ch; }

.promise { padding: clamp(2.5rem, 6vw, 4rem) 0; display: grid; gap: 1.5rem; align-items: start; border-top: 1px solid var(--line-soft); }
@media (min-width: 760px) { .promise { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.promise h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.promise li { display: flex; gap: 0.75rem; font-size: 1.0625rem; }
.promise li svg { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; color: var(--green); }

.closer {
  margin: 1rem 0 0; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: 1.75rem; background: var(--green); color: var(--green-ink);
  display: grid; gap: 1.25rem; align-items: center;
}
@media (min-width: 760px) { .closer { grid-template-columns: 1fr auto; } }
.closer h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.03em; }
.closer p { margin-top: 0.4rem; font-size: 1.0625rem; color: oklch(0.28 0.06 157); }
.closer .btn { width: auto; margin: 0; background: var(--green-ink); color: var(--text); box-shadow: 0 14px 30px -14px oklch(0 0 0 / 0.6); padding: 0 1.75rem; }
.closer .btn:hover { background: oklch(0.14 0.03 157); color: var(--text); }

/* ---------- termos e privacidade ---------- */
.doc { line-height: 1.75; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { color: oklch(0.88 0.012 160); max-width: 68ch; }
.doc p + p { margin-top: 0.75rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .muted { color: var(--muted); margin-top: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .typing { display: none; }
}
