@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Site institucional — mesmo sistema visual do app (Manrope + DM Mono, verde-limão).
   Modo claro é o padrão; o escuro vale com <html data-theme="dark"> (botão no topo,
   escolha guardada no navegador — ver site.js). */
:root {
  color-scheme: light;
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-2: #f0f4eb;
  --line: #e1e7dc;
  --line-2: #d0d8cb;
  --text: #121a15;
  --muted: #59665e;
  --faint: #8a958e;
  --lime: #c9ec55;
  --lime-hover: #d6f37c;
  --lime-ink: #10170f;
  --lime-soft: rgba(126, 178, 24, .12);
  --lime-line: rgba(104, 150, 18, .36);
  --accent: #46700e;
  --accent-fill: #7fb11c;
  --warn: #9a6505;
  --hero-glow: rgba(201, 236, 85, .35);
  --shadow: 0 24px 60px rgba(18, 26, 21, .10);
  --radius: 16px;
  --mono: "DM Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1210;
  --surface: #121a16;
  --surface-2: #17211c;
  --line: #202b25;
  --line-2: #2b3832;
  --text: #edf2ee;
  --muted: #94a199;
  --faint: #66746c;
  --lime: #d3f26a;
  --lime-hover: #def78c;
  --lime-soft: rgba(211, 242, 106, .12);
  --lime-line: rgba(211, 242, 106, .34);
  --accent: #d3f26a;
  --accent-fill: #d3f26a;
  --warn: #f2c66d;
  --hero-glow: rgba(211, 242, 106, .10);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }

/* ------------------------------------------------------------------ topo */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.site-nav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-button:hover { border-color: var(--lime-line); }
.lang-link { font: 500 12px var(--mono); color: var(--muted); text-decoration: none; padding: 8px 6px; }
.lang-link:hover { color: var(--text); }
.menu-button { display: none; }

/* ------------------------------------------------------------------ botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; font: 700 15px Manrope, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--lime); color: var(--lime-ink); }
.button-primary:hover { background: var(--lime-hover); }
.button-quiet { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.button-quiet:hover { border-color: var(--lime-line); }
.button-small { padding: 9px 15px; font-size: 14px; border-radius: 10px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -240px 0 auto; height: 620px; background: radial-gradient(600px 300px at 70% 40%, var(--hero-glow), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-weight: 800; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0 0 30px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 700; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); }

/* prévia do card de episódio (mesmo visual do app) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); font: 500 11px var(--mono); color: var(--muted); }
.chip-id { color: var(--accent); background: var(--lime-soft); border-color: transparent; }
.chip-ok { border-radius: 999px; font: 700 12px Manrope, sans-serif; color: var(--accent); background: var(--lime-soft); border-color: var(--lime-line); }
.chip svg { width: 12px; height: 12px; }
.mock h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
.mock-meta { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.mock-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mock-step { padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.mock-step i { display: block; height: 3px; border-radius: 3px; background: var(--line-2); margin-bottom: 10px; }
.mock-step.done i { background: var(--accent-fill); }
.mock-step.current { background: var(--surface-2); border-color: var(--line-2); }
.mock-step.current i { background: var(--lime-line); }
.mock-step small { display: block; font: 500 10px var(--mono); color: var(--faint); }
.mock-step b { display: block; margin: 6px 0 2px; font-size: 12.5px; }
.mock-step span { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; }
.mock-step.done small { color: var(--accent); }
.mock-step .mock-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 800; }
.mock-cta svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
/* Etapas animadas pelo site.js (mesmos estados do app) */
.mock h3 { transition: opacity .3s ease, transform .3s ease; }
.mock h3.out { opacity: 0; transform: translateY(-4px); }
.mock-step { transition: background .35s ease, border-color .35s ease; }
.mock-step i { transition: background .35s ease; }
.chip-busy { border-radius: 999px; font: 700 12px Manrope, sans-serif; color: var(--warn); border-color: currentColor; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: mock-pulse 1.1s ease-in-out infinite; }
.mock-step.active { background: var(--surface-2); border-color: var(--line-2); }
.mock-step.active i { background: var(--warn); }
.mock-step.active small { color: var(--warn); }
.mock-step.waiting b { color: var(--muted); }
.mock-step.waiting span { color: var(--faint); }
.mock-step .mock-progress { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.mock-progress em { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--warn); animation: mock-fill 2.4s ease-out forwards; }
.mock-step .mock-progress-label { margin-top: 5px; font: 500 10px var(--mono); color: var(--warn); }
@keyframes mock-pulse { 50% { opacity: .3; } }
@keyframes mock-fill { to { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .chip-dot, .mock-progress em { animation: none; } .mock-progress em { width: 60%; } }

/* ------------------------------------------------------------------ seções */
section { scroll-margin-top: 80px; }
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step-card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section-alt .step-card, .section-alt .card { background: var(--bg); }
.step-card .num { display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 14px; }
.step-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.step-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card .icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lime-soft); color: var(--accent); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card a { color: var(--accent); font-weight: 700; }

/* demonstração: tema → título */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: stretch; gap: 14px; }
.demo-box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 190px; }
.demo-label { display: block; font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--faint); margin-bottom: 6px; }
.demo-value { margin: 0 0 16px; font-weight: 700; font-size: 16px; }
.demo-arrow { display: grid; place-items: center; color: var(--accent); }
.demo-arrow span { font: 500 10.5px var(--mono); letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--faint); }
.demo-title { margin: 0 0 10px; font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.demo-hook { margin: 0; color: var(--muted); font-size: 14.5px; }
.demo-result { border-color: var(--lime-line); background: linear-gradient(180deg, var(--lime-soft), transparent 70%), var(--surface); }
.fade { transition: opacity .35s ease; }
.fade.out { opacity: 0; }

/* preços */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.price-card.featured { border-color: var(--lime-line); box-shadow: var(--shadow); }
.price-card h3 { margin: 0 0 4px; font-size: 17px; }
.price-amount { margin: 10px 0 2px; font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.price-credits { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.price-card .button { margin-top: auto; }
.badge-popular { position: absolute; top: -12px; left: 26px; padding: 4px 11px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 800 11px Manrope, sans-serif; letter-spacing: .02em; }
.pricing-note { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }

/* perguntas frequentes */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 20px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* chamada final */
.cta-band { padding: 70px 0; }
.cta-box { padding: 48px; border-radius: 26px; text-align: center; background: radial-gradient(500px 220px at 50% 0%, var(--hero-glow), transparent 75%), var(--surface); border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; line-height: 1.1; }
.cta-box p { margin: 0 auto 26px; max-width: 560px; color: var(--muted); }

/* artigos (guias) */
.article-hero { padding: 64px 0 30px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font: 500 12px var(--mono); color: var(--faint); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.article-hero h1 { margin: 0 0 18px; font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.04em; max-width: 900px; }
.article-hero .lede { max-width: 760px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-bottom: 40px; }
.prose { font-size: 17px; }
.prose h2 { margin: 44px 0 12px; font-weight: 800; font-size: 27px; letter-spacing: -.025em; line-height: 1.2; }
.prose h3 { margin: 28px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { margin: 26px 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--lime-line); background: var(--lime-soft); color: var(--text); font-size: 15.5px; }
.callout p { margin: 0; color: var(--text); }
.toc { position: sticky; top: 92px; align-self: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.toc p { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--faint); }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin-bottom: 8px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc .button { width: 100%; margin-top: 14px; }

/* páginas legais */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.doc h1 { margin: 0 0 6px; font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; }
.doc .updated { margin: 0 0 40px; font: 500 12px var(--mono); color: var(--faint); }
.doc h2 { margin: 36px 0 10px; font-size: 21px; letter-spacing: -.015em; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc a { color: var(--accent); }

/* ------------------------------------------------------------------ rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { margin: 12px 0 0; max-width: 320px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ------------------------------------------------------------------ telas estreitas */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .pricing { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Cinco itens de menu + ações não cabem abaixo de ~1080 px: o menu vai para o botão. */
@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu-button { display: inline-grid; }
}
@media (max-width: 760px) {
  .header-actions .button { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .steps, .grid-3, .grid-2, .pricing { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-arrow span { writing-mode: horizontal-tb; transform: none; }
  .mock-flow { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* páginas legais: blocos e numeração que o texto já usava */
.doc .eyebrow { margin-bottom: 8px; }
.doc h2 .num { color: var(--accent); font: 500 14px var(--mono); margin-right: 10px; }
.doc h3 { margin: 24px 0 8px; font-size: 16.5px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc .card { margin: 20px 0; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.doc .card p:first-child { margin-top: 0; }
.doc .card p:last-child { margin-bottom: 0; }
