/* Site público. Os tokens repetem web/src/index.css (um teste confere os valores). */
@font-face { font-family: "Geist"; src: url("/_site/fonts/geist-latin-wght-normal.woff2?v=19f9c925") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/_site/fonts/geist-mono-latin-wght-normal.woff2?v=684ad5b5") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #FAFAF7; --card: #FFFFFF; --fg: #0A0A0A; --muted: #4F534B; --subtle: #62665E;
  --border: #E3E4DC; --input: #D6D8CF; --ring: #62665E; --chip: #F3F4EC;
  --hl: #E6FF4D; --ink: #0A0A0A; --ok: #1F9D6B; --warn-bg: #F3E6D3; --warn-fg: #7A4A1E;
  --term-bg: #0A0A0A; --term-line: #1F1F1F; --term-btn: #333333; --term-fg: #D4D4D4; --term-mute: #8F8F8F;
  --logo-tile: #0A0A0A; --logo-line: #FAFAF7; --logo-mid: #E6FF4D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512; --card: #181C18; --fg: #F2F4EE; --muted: #B4B9AE; --subtle: #90968A;
    --border: #2A302A; --input: #363C35; --ring: #62665E; --chip: #1E231E;
    --ok: #A8EBC9; --warn-bg: #2B231A; --warn-fg: #E3B98A;
    --term-bg: #0C0E0C; --term-line: #2A302A; --term-btn: #363C35;
    --logo-tile: #E6FF4D; --logo-line: #0A0A0A; --logo-mid: #6B7A00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 "Geist", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, pre { margin: 0; }
code, pre, .mono { font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* cabeçalho */
.top { border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.logo { width: 28px; height: 28px; flex: none; }
.logo .lt { fill: var(--logo-tile); }
.logo .ll { fill: var(--logo-line); }
.logo .lm { fill: var(--logo-mid); }
.nav-wide { display: none; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-wide a, .menu a { text-decoration: none; }
.nav-wide a:hover, .menu a:hover, [aria-current="page"] { color: var(--fg); }
.actions { margin-left: auto; display: flex; gap: 8px; }
.menu { order: 3; width: 100%; font-size: 14px; }
.menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); }
.menu nav { display: flex; flex-direction: column; padding-bottom: 8px; }
.menu nav a { min-height: 44px; display: flex; align-items: center; color: var(--muted); }

/* botões */
.btn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 500 14px/1 "Geist", sans-serif; cursor: pointer; }
.btn.dark { background: var(--fg); color: var(--bg); }
.btn.line { background: var(--card); border-color: var(--input); color: var(--fg); }
.btn.line:hover { border-color: var(--ring); }
.btn.plain:hover { background: var(--chip); }
.btn.big { height: 48px; padding: 0 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: #4a4f48; color: #D4D4D4; cursor: default; }

/* hero */
.hero { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pill { align-self: flex-start; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
mark { background: var(--hl); color: #0A0A0A; padding: 0 0.12em; border-radius: 6px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.note { font-size: 13px; color: var(--subtle); }
.note:empty { display: none; }
.hero-demo { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.how { font-size: 14px; color: var(--muted); }

/* conversa de exemplo no hero */
.chat { margin: 0; border-radius: 16px; background: var(--card); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18); }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--subtle); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.chat-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; font-size: 15px; line-height: 1.55; }
.msg { margin: 0; }
.msg.me { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--fg); color: var(--bg); }
.msg.ai { display: flex; flex-direction: column; gap: 8px; color: var(--fg); }
.msg.ai ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.msg.ai strong { color: var(--fg); font-weight: 600; }
.tool { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--chip); font-size: 12px; color: var(--muted); }
.tool span { color: var(--fg); }

/* como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--hl); color: #0A0A0A; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps strong { font-size: 17px; font-weight: 600; }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* seções */
.section { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); }
h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.tools { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tools > div { background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tools code { font-size: 14px; font-weight: 500; }
.tools p { font-size: 14px; line-height: 1.55; color: var(--subtle); }
.metrics { display: grid; grid-template-columns: 1fr; gap: 24px; }
.metrics > div { display: flex; flex-direction: column; gap: 4px; }
.num { font-size: 36px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.cap { font-size: 14px; color: var(--subtle); }
.sub { font-size: 12px; color: var(--subtle); }
.small { font-size: 13px; color: var(--subtle); }

.plans { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 480px; }
.plan { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.plan-h { display: flex; flex-direction: column; gap: 6px; }
.plan-n { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan-d { font-size: 14px; color: var(--subtle); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .num { font-size: 40px; }
.per { font-size: 14px; color: var(--subtle); }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.chip { height: 22px; padding: 0 8px; border-radius: 6px; background: var(--chip); color: var(--muted); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; }

/* faixa de privacidade (escura nos dois temas) */
.band.dark { background: var(--term-bg); border-color: var(--term-line); color: var(--term-fg); }
.band.dark h2 { color: #F2F4EE; max-width: 720px; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pillars > div { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--term-line); border-radius: 16px; }
.pillars strong { font-size: 17px; font-weight: 600; color: #F2F4EE; }
.pillars p { font-size: 15px; line-height: 1.55; color: var(--term-fg); }
.more { font-size: 15px; }
.more a { color: var(--hl); text-underline-offset: 3px; }

/* preço em faixa própria, centralizado */
.price-band .section { align-items: center; text-align: center; }
.plan.featured { width: 100%; max-width: 440px; text-align: left; border: 2px solid var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18); }
.plan.featured .chip { align-self: flex-start; background: var(--hl); color: #0A0A0A; }
.plan.featured li::before { content: "✓"; margin-right: 10px; color: var(--ok); font-weight: 600; }

/* rodapé */
.foot { border-top: 1px solid var(--border); }
.foot-in { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--subtle); }

/* páginas internas */
.page { padding-top: 40px; padding-bottom: 64px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.page-t { font-size: clamp(2rem, 5vw, 2.75rem); }
.page .lead { font-size: 17px; max-width: none; }
.prose h2 { margin-top: 24px; font-size: 24px; }
.prose h3 { margin-top: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.prose p, .prose li, .prose dd { color: var(--muted); line-height: 1.6; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose a { text-underline-offset: 2px; }
.prose code { font-size: 0.9em; padding: 1px 5px; border-radius: 6px; background: var(--chip); color: var(--fg); }
.toc { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.code { padding: 16px; border-radius: 12px; background: var(--term-bg); color: var(--term-fg); border: 1px solid var(--term-line); overflow-x: auto; font-size: 13px; line-height: 1.7; }
.defs { display: flex; flex-direction: column; gap: 4px; }
.defs dt { margin-top: 12px; font-size: 14px; font-weight: 500; }
.routes { padding-left: 20px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; }
.state { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ring); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn-fg); }
.rows { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.rows th, .rows td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.rows tr:last-child th, .rows tr:last-child td { border-bottom: 0; }
.rows th { font-weight: 400; color: var(--muted); }
.rows td { text-align: right; }
.page.wide { max-width: 1040px; padding-top: 0; }
.dev { display: flex; flex-direction: column; gap: 24px; }
.dev-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.side { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.side a { color: var(--muted); text-decoration: none; }
.side a:hover { color: var(--fg); }
.url-row { display: flex; flex-direction: column; gap: 8px; }
.url-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.url-box code { flex: 1 1 240px; padding: 0; background: none; font-size: 14px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.site-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 14px; white-space: nowrap; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .bar { flex-wrap: wrap; }
  .nav-wide { display: flex; flex-wrap: wrap; }
  .menu { display: none; }
  .btn { height: 40px; }
  .btn.big { height: 48px; }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  h2 { font-size: 40px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .tools > div:last-child { grid-column: span 2; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .plan { padding: 32px; }
  .price .num { font-size: 44px; }
  .foot-in { flex-direction: row; justify-content: space-between; }
  .page { padding-top: 56px; }
}
@media (min-width: 1024px) {
  .dev { flex-direction: row; align-items: flex-start; gap: 48px; }
  .side { flex: 0 0 200px; flex-direction: column; position: sticky; top: 24px; }
  .dev-body { flex: 1 1 0; max-width: 720px; }
  .hero { padding-top: 96px; padding-bottom: 72px; flex-direction: row; align-items: center; gap: 56px; }
  .hero-text, .hero-demo { flex: 1 1 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tools { grid-template-columns: repeat(5, 1fr); }
  .tools > div:last-child { grid-column: auto; }
  .section { padding-top: 88px; padding-bottom: 88px; }
}
@media (max-width: 639px) {
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .copy { transition: border-color 0.15s, background-color 0.15s; }
}

/* modal de entrada */
#modal-entrar { border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--fg); padding: 32px 28px 28px; max-width: 420px; width: calc(100% - 32px); display: flex; flex-direction: column; gap: 20px; }
#modal-entrar::backdrop { background: rgb(0 0 0 / 0.45); backdrop-filter: blur(2px); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; border: none; background: none; cursor: pointer; color: var(--muted); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--chip); color: var(--fg); }
#modal-entrar h2 { font-size: 22px; letter-spacing: -0.03em; }
.modal-copy { font-size: 15px; line-height: 1.6; color: var(--muted); }
.modal-invite { font-size: 13px; color: var(--subtle); }
.modal-invite:empty { display: none; }
.modal-foot { border-top: 1px solid var(--border); padding-top: 16px; }
.modal-foot p { font-size: 12px; line-height: 1.5; color: var(--subtle); text-align: center; }
.modal-foot a { text-underline-offset: 2px; }
