/* Kodeira — estilos base. Sem fontes externas (privacidade + performance). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e3e8ef;
  --brand: #0d9488;
  --brand-2: #7c3aed;
  --brand-ink: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --bg-alt: #10172a; --surface: #141c33; --text: #e8ecf5;
    --muted: #9aa4b8; --line: #243050; --brand: #2dd4bf; --brand-2: #a78bfa;
    --brand-ink: #04121a; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --bg-alt: #10172a; --surface: #141c33; --text: #e8ecf5;
  --muted: #9aa4b8; --line: #243050; --brand: #2dd4bf; --brand-2: #a78bfa;
  --brand-ink: #04121a; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px;
  padding: .85em 1.4em; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--sm { padding: .55em 1em; font-size: .9rem; }
.btn--full { width: 100%; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } .topbar .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(800px 400px at 85% 10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent), radial-gradient(600px 300px at 10% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent); }
.hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; } .phone { display: none; } }

/* Mock de celular */
.phone { justify-self: center; width: 260px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px; background: #0b1020; box-shadow: var(--shadow), 0 30px 60px rgba(124, 58, 237, .25); }
.phone__screen { height: 100%; border-radius: 30px; background: var(--bg-alt); padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mock-bar { height: 14px; width: 55%; border-radius: 8px; background: var(--line); }
.mock-card { height: 70px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mock-card--a { height: 110px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; }
.mock-card--b { height: 50px; }
.mock-row { display: flex; gap: 10px; }
.mock-row span { flex: 1; height: 54px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mock-tab { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--line); }
.mock-tab i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.mock-tab i:first-child { background: var(--brand); }

/* Seções */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.sub { color: var(--muted); margin: 0 0 36px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card--seg { cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; font: inherit; color: inherit; }
.card--seg:hover { border-color: var(--brand); transform: translateY(-2px); }
.card--seg .ico { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.card--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.card ul { padding-left: 1.1em; color: var(--muted); margin: 12px 0 0; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Configurador */
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 700; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); user-select: none; transition: all .15s; }
.chip span em { font-style: normal; color: var(--muted); font-size: .82em; margin-left: 4px; }
.chip input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.summary { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.summary dl { margin: 0 0 12px; }
.summary dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__logo { color: var(--text); height: 40px; width: auto; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(5, 10, 25, .6); }
.modal__box { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.modal input:not([type=checkbox]) { font: inherit; padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.modal .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Páginas legais */
.legal { padding: 48px 0 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Pré-lançamento */
.pill { display: inline-block; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; padding: .2em .7em; border-radius: 999px; margin-right: 8px; letter-spacing: .08em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--brand); font-weight: 600; }
.form-msg.err { color: #dc2626; }
