/* Chave — landing. Tokens iguais a src/web/styles.css e DESIGN.md ("Porta aberta"). Sem fontes baixadas. */
:root {
  --page: #f6f3ec;
  --card: #fffdf9;
  --sunken: #ece7dd;
  --line: #e0d9cc;
  --field: #8a8274;
  --ink: #1f1d19;
  --muted: #5c564c;
  --brand: #155e4b;
  --brand-strong: #0e4a3b;
  --on-brand: #fffdf9;
  --key: #c9962c;
  --key-soft: #f2c766;
  --ok-bg: #e2f1ea;
  --ok-fg: #14532d;
  --warn-bg: #fbf0d5;
  --warn-fg: #6b4a00;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-card: 16px;
  --r-ctl: 12px;
  --shadow: 0 1px 2px rgb(31 29 25 / 0.06), 0 18px 40px -22px rgb(31 29 25 / 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 6px; }
.btn-primary:focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 90; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }

.preview { background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgb(246 243 236 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 10px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.045em; line-height: 1; }
.nav-links { display: none; gap: 4px; margin-left: 16px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: var(--sunken); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .hide-sm { display: none; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background-color 150ms, border-color 150ms, transform 150ms; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--field); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--sunken); }
.btn[aria-busy='true'] { opacity: 0.7; }

/* tipografia */
.eyebrow { font-weight: 700; color: var(--brand); font-size: 15px; }
.h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1.02; margin-top: 12px; }
.h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.08; max-width: 22ch; }
.center .h2 { margin: 0 auto; }
.h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.015em; font-size: 1.25rem; line-height: 1.2; }
.lead { color: var(--muted); font-size: 1.125rem; margin-top: 16px; max-width: 56ch; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero-ctas .btn { flex: 0 0 auto; } }
.center-row { justify-content: center; }

.hero-scene { margin: 0; }
.phone { position: relative; max-width: 400px; margin: 0 auto; background: #e8e1d3; border: 1px solid var(--line); border-radius: 28px; padding: 0 0 14px; box-shadow: var(--shadow); overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 8px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; padding: 14px 18px; }
.phone-top .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--key-soft); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 0; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 1px rgb(31 29 25 / 0.08); }
.msg.in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: #d9f2df; border-bottom-right-radius: 6px; }
.sheet-msg { padding: 6px; background: #d9f2df; }
.sheet { display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 12px 14px; min-width: 230px; }
.sheet-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sheet-label { margin-top: 8px; font-size: 13px; color: var(--muted); }
.sheet-big { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.05; }
.sheet-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.sheet-rows span { background: var(--sunken); border-radius: 8px; padding: 6px 8px; }
.sheet-rows small { display: block; font-size: 11px; color: var(--muted); }
.sheet-rows b { font-size: 15px; }
.sheet-note { margin-top: 8px; font-size: 11px; color: var(--warn-fg); font-weight: 600; }
.scene-cap { max-width: 400px; margin: 12px auto 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Assinatura: as mensagens entram em sequência; na folha, a chave gira e o número abre. Sem JS/sem motion: tudo visível. */
.motion .chat .msg { opacity: 0; transform: translateY(8px); }
.motion .chat .msg.on { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.motion .sheet-key { transform: rotate(-90deg); transform-origin: 50% 30%; }
.motion .sheet-msg.on .sheet-key { transform: rotate(0); transition: transform 560ms var(--ease-out) 120ms; }
.motion .sheet-big { clip-path: inset(0 100% 0 0); }
.motion .sheet-msg.on .sheet-big { clip-path: inset(0 0 0 0); transition: clip-path 620ms var(--ease-out) 260ms; }

/* seções */
.sec { padding: 64px 0; }
@media (min-width: 1000px) { .sec { padding: 96px 0; } }
.sec-alt { background: var(--card); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 16px; margin-top: 36px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.step p { color: var(--muted); margin-top: 8px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 14px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

.lead-card { background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); max-width: 460px; width: 100%; margin: 0 auto; }
.lead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lead-top small { display: block; color: var(--muted); font-size: 14px; }
.lead-rows { margin: 16px 0 0; }
.lead-rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.lead-rows dt { color: var(--muted); font-size: 15px; }
.lead-rows dd { margin: 0; font-weight: 700; }
.lead-rows .strong { font-family: var(--display); font-size: 20px; }
.lead-foot { margin-top: 14px; font-size: 15px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag-warn { background: var(--warn-bg); color: var(--warn-fg); }

.cards4 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 700px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; border-top: 4px solid var(--key); }
.card p { color: var(--muted); margin-top: 10px; }

.plans { display: grid; gap: 16px; margin-top: 36px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.plan .checks { flex: 1; margin-bottom: 24px; }
.plan-main { border: 2px solid var(--brand); background: var(--card); box-shadow: var(--shadow); }
.plan-flag { align-self: flex-start; background: var(--ok-bg); color: var(--ok-fg); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.plan-price { margin-top: 8px; }
.plan-price .tabular { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; }
.plan-price span + span { color: var(--muted); margin-left: 4px; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 48px 16px 18px; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

.cta-final { background: var(--brand); color: var(--on-brand); }
.cta-final .fine { color: rgb(255 253 249 / 0.85); }
.cta-final .btn-primary { background: var(--key-soft); color: var(--ink); }
.cta-final .btn-primary:hover { background: #f7d888; }
.cta-final .btn-secondary { background: transparent; color: var(--on-brand); border-color: rgb(255 253 249 / 0.7); }
.cta-final .btn-secondary:hover { border-color: var(--on-brand); }
.cta-final :focus-visible { outline-color: var(--key-soft); }

.foot { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--ink); }

.toast:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 80; max-width: calc(100% - 32px); }

/* revelação ao rolar (só com JS e motion) */
.motion .reveal { opacity: 0; transform: translateY(14px); }
.motion .reveal.on { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
