:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --text: #16181d;
  --muted: #5d6270;
  --line: #e5e2d8;
  --brand: #0a8f5a;
  --brand-ink: #ffffff;
  --brand-soft: #e3f4ec;
  --accent: #f2c230;
  --danger: #c2413b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --surface: #171a1d;
    --surface-2: #1f2327;
    --text: #eceef1;
    --muted: #9aa1ab;
    --line: #2a2f35;
    --brand: #22c083;
    --brand-ink: #06120c;
    --brand-soft: #12281f;
    --accent: #f2c230;
    --danger: #ef6b64;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }

/* Topo */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-icon { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .05s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: 48px 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block-start: 24px; gap: 32px; } }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 20px; }
h1 .pt { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
kbd { font-family: var(--mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }

/* Demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-app { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-body { padding: 22px; min-height: 250px; display: flex; flex-direction: column; gap: 16px; }
.demo-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.demo-speech { font-size: 15px; color: var(--muted); font-style: italic; min-height: 48px; }
.demo-output { font-size: 17px; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud { align-self: center; display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; opacity: 0; transition: opacity .2s; }
.hud.on { opacity: 1; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.bars { display: flex; gap: 2px; align-items: center; height: 18px; }
.bars i { width: 3px; background: #fff; border-radius: 2px; animation: wave 0.9s ease-in-out infinite; }
.bars i:nth-child(2n) { animation-delay: .15s; } .bars i:nth-child(3n) { animation-delay: .3s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .bars i, .caret { animation: none; } }

/* Seções */
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 40em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.icon { font-size: 22px; margin-bottom: 10px; display: block; }

/* Exemplos */
.examples { display: grid; gap: 14px; }
.example { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.example .pt { color: var(--muted); font-style: italic; }
.example .arrow { color: var(--brand); font-weight: 800; }
.example .app { display: block; font-size: 12px; font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; font-weight: 700; }
@media (max-width: 720px) { .example { grid-template-columns: 1fr; } .example .arrow { transform: rotate(90deg); justify-self: start; } }

/* Preços */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card h3 { margin: 0; font-size: 18px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-note { color: var(--muted); font-size: 14px; min-height: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.price-card li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.pay-methods { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Formulários */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); margin: 24px 0 64px; }
.panel h1 { font-size: 30px; margin-bottom: 8px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
input:focus-visible, .btn:focus-visible, summary:focus-visible, .plan-option:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.code-input { font-family: var(--mono); font-size: 24px !important; letter-spacing: 10px; text-align: center; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.plan-option { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; margin: 0; font-weight: 400; }
.plan-option input { margin-right: 8px; accent-color: var(--brand); }
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan-option strong { display: block; font-size: 18px; margin-top: 4px; }
.plan-option span { color: var(--muted); font-size: 13px; }
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.msg.info { background: var(--brand-soft); color: var(--brand); }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.status-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0; }
.status-grid dt { color: var(--muted); }
.status-grid dd { margin: 0; font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.hidden { display: none !important; }

/* Rodapé */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .row { justify-content: space-between; }
footer a { color: var(--muted); }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); }

/* Zona de perigo (excluir conta) */
.danger-zone { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 16px; }
.danger-zone summary { color: var(--danger); font-size: 15px; }
