/* Plano Contador · base compartilhada (todas as páginas)
   Marca: tokens do Playbook Visual Plano Contador IDX (roxo, magenta, vermelho;
   Host Grotesk para títulos, Urbanist para texto).
   Regra de forma: botões e abas em pílula; cartões 16px; campos 12px; molduras de foto 28px. */

:root {
  --ink: #17121c;
  --ink-2: #2e2736;
  --ink-3: #1b1621;
  --surface: #fbfafc;
  --paper: #ffffff;
  --raised: #f2eff5;
  --line: #e2dde8;
  --muted: #5e5668;
  --accent: #8d00bc;
  --accent-ink: #5e0080;
  --accent-soft: #f3e6f8;
  --magenta: #d6276b;
  --red: #ff330a;
  --on-dark: #f4f0f7;
  --on-dark-muted: #b3abbd;
  --pink-on-dark: #e58cb0;
  --profit: #0d7f48;          /* lucro sobre fundo claro (5,1:1) */
  --profit-on-dark: #4ade80;  /* lucro sobre fundo escuro */
  --ok: #0f7a4f;
  --err: #b3261e;

  --brand-grad: linear-gradient(90deg, #8d00bc 0%, #d6276b 55%, #ff330a 100%);

  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-body: "Urbanist", system-ui, sans-serif;

  --r-card: 16px;
  --r-field: 12px;
  --r-frame: 28px;
  --r-pill: 999px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 8.5vw, 116px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-1: 0 1px 2px rgba(46, 18, 60, 0.06), 0 8px 24px -12px rgba(46, 18, 60, 0.18);
  --shadow-2: 0 2px 4px rgba(46, 18, 60, 0.06), 0 24px 60px -24px rgba(46, 18, 60, 0.35);

  --z-header: 50;
  --z-float: 60;

  color-scheme: light;
}


/* ---------- reset + superfícies do navegador ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #8d00bc; color: #fff; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: #b9a9c6 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9bcd4; border-radius: 99px; border: 2px solid var(--surface); }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.h-display { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.35rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.h-section { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.028em; }
.h-card { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; font-weight: 700; }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; line-height: 1.5; }
.accent { color: var(--accent); }
.profit { color: var(--profit); }

/* ---------- botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--surface); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 700 1rem/1 var(--font-body); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 240ms var(--ease-out), border-color 200ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 1.2em; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover i.ph-arrow-right, .btn:hover i.ph-arrow-up-right { transform: translateX(3px); }
}
.btn-accent { --bg: #8d00bc; --fg: #fff; box-shadow: 0 1px 2px rgba(23, 18, 28, 0.2), 0 8px 20px -10px rgba(23, 18, 28, 0.45); }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover { --bg: #7a00a3; box-shadow: 0 1px 2px rgba(23, 18, 28, 0.2), 0 12px 26px -12px rgba(23, 18, 28, 0.5); } }
.btn-light { --bg: #fff; --fg: #17121c; }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { --bg: #f3e6f8; } }
.btn-glass { --bg: rgba(255, 255, 255, 0.12); --fg: #fff; --bd: rgba(255, 255, 255, 0.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (hover: hover) and (pointer: fine) { .btn-glass:hover { --bg: rgba(255, 255, 255, 0.2); } }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { --bd: var(--ink); } }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-wa i { font-size: 1.3em; }

/* ---------- cabeçalho com as duas abas ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 22px; width: auto; }
.brand .brand-dark { display: none; }
.brand span { font: 700 0.95rem/1 var(--font-display); letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }

.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--raised); border: 1px solid var(--line); }
.tabs a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  font: 700 0.94rem/1 var(--font-body); color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color 200ms ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: #fff; }
.tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: #17121c; box-shadow: 0 6px 16px -8px rgba(23, 18, 28, 0.6); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }
.header-cta { display: inline-flex; }

@media (max-width: 860px) {
  .brand span { display: none; }
  .header-cta { display: none; }
}
@media (max-width: 420px) {
  .site-header .bar { height: 64px; gap: 10px; }
  .brand img { height: 17px; }
  .tabs { padding: 3px; }
  .tabs .pill { top: 3px; bottom: 3px; }
  .tabs a { padding: 0 11px; font-size: 0.86rem; min-height: 36px; }
}
@media (max-width: 370px) {
  .brand img { height: 15px; }
  .tabs a { padding: 0 9px; font-size: 0.82rem; }
}

/* ---------- hero de foto inteira (molde Certifica) ---------- */
.hero-frame { padding: 8px clamp(8px, 1.2vw, 16px) 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-frame);
  min-height: clamp(560px, calc(100dvh - 96px), 820px);
  display: flex; align-items: center;
  background: #241b2c; color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; transform-origin: 70% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 18, 28, 0.94) 0%, rgba(30, 14, 40, 0.84) 34%, rgba(40, 10, 52, 0.38) 58%, rgba(23, 18, 28, 0) 76%),
    linear-gradient(0deg, rgba(23, 18, 28, 0.55) 0%, rgba(23, 18, 28, 0) 32%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.hero-copy { max-width: 640px; display: grid; gap: 22px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #e9b6ff; }
.hero .lead { color: #e3dcea; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-rule { width: 112px; height: 6px; border-radius: 99px; background: var(--brand-grad); transform-origin: left center; }

@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: auto; }
  .hero-media img { object-position: 64% 20%; }
  .hero::before { background: linear-gradient(0deg, rgba(23, 18, 28, 0.97) 0%, rgba(23, 18, 28, 0.9) 42%, rgba(23, 18, 28, 0.2) 72%, rgba(23, 18, 28, 0.05) 100%); }
  .hero-inner { padding-top: 300px; padding-bottom: 32px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- faixa de números logo abaixo do hero ---------- */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ledger > div { padding: 28px 24px 28px 0; display: grid; gap: 4px; }
.ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.ledger strong { font: 800 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ledger span { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 860px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cartões e superfícies ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel-dark { background: #17121c; color: var(--on-dark); border-radius: var(--r-frame); }
.panel-dark .muted, .panel-dark .lead { color: var(--on-dark-muted); }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font: 700 0.82rem/1 var(--font-body); }

/* ---------- FAQ (details nativo, abertura animada) ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color 200ms ease, box-shadow 240ms var(--ease-out); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font: 700 1.08rem/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; font-size: 1.25rem; color: var(--accent); transition: transform 260ms var(--ease-out); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); max-width: 70ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- formulário ---------- */
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-field);
  background: var(--paper); border: 1px solid #cfc6d8; color: var(--ink); font-size: 16px;
  transition: border-color 160ms ease, box-shadow 200ms var(--ease-out);
}
.input::placeholder { color: #776e82; }
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error .input, .field.has-error .select { border-color: var(--err); }
.field .error { display: none; color: var(--err); font-size: 0.88rem; font-weight: 600; }
.field.has-error .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #8d00bc; flex-shrink: 0; }

/* ---------- rodapé ---------- */
.site-footer { background: #17121c; color: var(--on-dark-muted); padding: 72px 0 36px; margin-top: var(--section); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; font-size: 0.95rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2e2736; font-size: 0.86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1fae55; color: #fff; font-size: 30px; text-decoration: none;
  box-shadow: 0 2px 4px rgba(23, 18, 28, 0.18), 0 12px 28px -10px rgba(23, 18, 28, 0.45);
  transition: transform 200ms var(--ease-out);
}
.wa-float:hover { color: #fff; }
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); } }

/* ---------- toast (copiar link, avisos) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 16px); opacity: 0;
  background: #17121c; color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.95rem;
  box-shadow: var(--shadow-2); pointer-events: none;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- revelação ao rolar: o conteúdo nasce visível; o JS só anima quando pode ---------- */
.js-motion [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1; } }
