/* Páginas públicas (início e planos). Mesmas cores do app, visual direto e fácil de ler. */
:root {
  --paper: #f6f4ee;
  --card: #fffdf8;
  --ink: #262b24;
  --text-2: #4d5249;
  --line: #dddbd1;
  --accent: #be432e;
  --accent-dark: #9e3624;
  --accent-soft: #f6e4dd;
  --lime: #e8efae;
  --ok: #3f6b2f;
  --ui: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
.hidden { display: none !important; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 6px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: 600 17px var(--ui); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--ink); background: var(--card); }
.btn.block { width: 100%; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 30; background: rgba(246, 244, 238, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.logo img { width: 34px; height: 34px; }
.logo small { font-size: inherit; font-weight: 400; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--accent); }
.menu-button { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }

/* Seções */
.section { padding: 88px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-title { max-width: 720px; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(30px, 4vw, 40px); }
.section-title p { margin-top: 14px; font-size: 19px; color: var(--text-2); }
.mobile-cta { display: none; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 56px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.center { text-align: center; margin-inline: auto; }

/* Topo */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); letter-spacing: -0.035em; }
.hero-text { margin-top: 22px; font-size: 20px; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.check { flex: none; width: 20px; height: 20px; display: grid; place-items: center; margin-top: 3px; }
.check svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Exemplo interativo */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-intro { font-weight: 600; margin-bottom: 12px; }
.demo-courses { display: flex; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.demo-courses::-webkit-scrollbar { display: none; }
.demo-courses button { flex: none; white-space: nowrap; font: 500 16px var(--ui); color: var(--text-2); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 0 10px; cursor: pointer; }
.demo-courses button:hover { color: var(--ink); }
.demo-courses button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 40px -28px rgba(38, 43, 36, .35); overflow: hidden; }
.demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.demo-tabs button { font: 600 16px var(--ui); color: var(--text-2); background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 8px; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); background: var(--card); }
.demo-panel { padding: 24px; min-height: 360px; }
.demo-label { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.demo-file { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.demo-file svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.demo-file strong { display: block; font-size: 16px; }
.demo-file span { font-size: 15px; color: var(--text-2); }
.demo-panel blockquote { margin: 16px 0 20px; padding: 14px 16px; border-left: 4px solid var(--lime); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 17px; }
.demo-question { font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.demo-answers { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.demo-answers label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 17px; }
.demo-answers label:hover { border-color: var(--ink); }
.demo-answers input { position: absolute; opacity: 0; pointer-events: none; }
.demo-answers b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; flex: none; }
.demo-answers label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.demo-answers label:has(input:checked) b { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-answers label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn:disabled:hover { background: var(--paper); border-color: var(--line); color: #8a8d84; cursor: not-allowed; }
.demo-verdict { padding: 14px 16px; border-radius: 12px; background: #eef4e6; color: var(--ok); font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.demo-verdict.wrong { background: var(--accent-soft); color: var(--accent-dark); }
.demo-explanation { font-size: 17px; margin-bottom: 10px; }
.demo-detail { font-size: 16px; color: var(--text-2); margin-bottom: 20px; }
.demo-caption { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* Passos: sem caixas, só número e divisória */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 17px; }

/* Recursos: lista em duas colunas, sem caixas */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature-icon { flex: none; width: 28px; height: 28px; margin-top: 2px; }
.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 17px; }

/* Público */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.audience article { padding-top: 22px; border-top: 2px solid var(--ink); }
.audience h3 { font-size: 24px; margin-bottom: 18px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }

/* Preços na página inicial: lista em linhas */
.price-list { border-top: 2px solid var(--ink); margin-bottom: 32px; }
.price-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.price-row:hover .pr-name { color: var(--accent); }
.pr-name { font-size: 20px; font-weight: 700; }
.pr-name em { display: block; font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent); }
.pr-desc { color: var(--text-2); font-size: 17px; }
.pr-price { font-size: 26px; font-weight: 700; white-space: nowrap; letter-spacing: -0.02em; }
.pr-price small { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }

/* Planos: tabela tipográfica, colunas separadas por linhas finas */
.plans-hero { padding: 64px 0 32px; }
.plans-hero h1 { font-size: clamp(34px, 4.6vw, 48px); }
.plans-hero p { margin-top: 14px; font-size: 20px; color: var(--text-2); max-width: 640px; }
.pricing { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.tier { display: flex; flex-direction: column; padding: 24px 22px 8px; border-left: 1px solid var(--line); }
.tier:first-child { border-left: 0; padding-left: 0; }
.tier:last-child { padding-right: 0; }
.tier.featured { box-shadow: inset 0 3px 0 var(--accent); }
.tier-flag { font-size: 14px; font-weight: 600; color: var(--accent); min-height: 22px; }
.tier h2 { font-size: 22px; margin-top: 2px; }
.tier-for { margin-top: 6px; color: var(--text-2); font-size: 16px; min-height: 78px; }
.tier-price { margin-top: 14px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tier-price small { font-size: 16px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.tier-quota { margin: 10px 0 20px; font-weight: 600; font-size: 17px; }
.tier .btn { width: 100%; }
.tier-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.tier-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tier-list li.off { color: #8e9187; text-decoration: line-through; text-decoration-color: #c9c8bf; }

.compare { margin-top: 80px; }
.compare h2 { font-size: 30px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
.compare table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 16px; }
.compare th, .compare td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-size: 16px; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #a3a59c; }

/* Dúvidas: lista com divisórias */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--text-2); font-size: 17px; max-width: 720px; }

/* Chamada final */
.cta { background: var(--ink); color: #fff; border-radius: 4px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 36px); max-width: 620px; }
.cta p { margin-top: 10px; color: #d6d8cf; font-size: 18px; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 16px; color: var(--text-2); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsivo */
/* Itens de grid não podem ficar mais largos que a tela por causa do conteúdo (abas, demo, tabelas) */
.hero .wrap > *, .steps > *, .features > *, .audience > *, .pricing > * { min-width: 0; }
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pricing { grid-template-columns: 1fr; border-top: 0; }
  .tier, .tier:first-child { border-left: 0; padding: 26px 0 16px; border-top: 2px solid var(--ink); }
  .tier.featured { box-shadow: none; border-top-color: var(--accent); }
  .tier-for { min-height: 0; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .menu-button { display: inline-flex; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 4px; font-size: 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 60px; }
  .hero-text { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* Página de vendas: no celular, planos só depois de mostrar o produto */
  .hero-actions a[href="/planos"] { display: none; }
  .mobile-cta { display: block; margin: -32px 0 56px; text-align: center; }
  .mobile-cta p { margin-top: 10px; font-size: 15px; color: var(--text-2); }
  .steps, .features, .audience { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .pr-desc { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
  .cta { padding: 36px 24px; }
  .cta .btn { width: 100%; }
}
@media (max-width: 420px) {
  .demo-panel { padding: 18px; min-height: 0; }
  .demo-tabs button { font-size: 14px; padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Entrar e criar conta */
.auth { padding: 64px 0 88px; }
.auth .wrap { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: start; }
.auth-info h1 { font-size: clamp(32px, 4vw, 42px); }
.auth-info p { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 480px; }
.auth-info .list { margin-top: 28px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.auth-card h2 { font-size: 26px; }
.auth-card .sub { margin: 8px 0 24px; color: var(--text-2); font-size: 17px; }
.field { margin-bottom: 20px; }
.field label, .field-label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.field input[type=email], .field input[type=password], .field input[type=text], .field input[type=tel] { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfcdc2; border-radius: 10px; background: #fff; font: 17px var(--ui); color: var(--ink); }
.field input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.hint { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.link-button { background: none; border: 0; padding: 0; font: 500 16px var(--ui); color: var(--accent); cursor: pointer; text-decoration: underline; }
.auth-links { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 16px; color: var(--text-2); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 12px 14px; border: 1px solid #cfcdc2; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.choice span small { display: block; font-weight: 400; font-size: 15px; color: var(--text-2); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Avisos (usados pelos scripts) */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; font-size: 16px; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.toast.error { background: #b3261e; }

@media (max-width: 900px) {
  .auth .wrap { grid-template-columns: 1fr; gap: 32px; }
  .auth-info .list { display: none; }
}
@media (max-width: 420px) {
  .auth-card { padding: 22px; }
  .choices { grid-template-columns: 1fr; }
}
.menu-static { display: flex; gap: 24px; }
.menu-static a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.menu-static a:hover { color: var(--accent); }
.first-access { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.first-access p { font-size: 16px; color: var(--text-2); margin-bottom: 14px; }
.first-access strong { color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #11140f; border-color: #11140f; }
.first-access { background: var(--lime); border: 0; border-radius: 6px; padding: 18px; margin-top: 22px; }
.first-access p { color: var(--ink); }
