/* ==========================================================================
   modern.css — a direção do DESIGN.md aplicada por cima de app-skin.css.
   Referências: Refero Styles (Mercury, Ramp, Vercel, Wise) e Inspora
   (mesh gradient, soft glass, holo card, fluid illumination).
   Regras-mãe: Inter com tracking negativo; elevação por hairline, sem sombra;
   rótulos em mono caixa alta; 112px entre seções; vidro e luz só no hero.
   ========================================================================== */

:root {
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --section: 112px;
}

/* ---------- tipografia ---------- */
body, .btn, h1, h2, h3, .display, .saldo-card strong, .stat strong, .step .num,
.tier strong, .logo-name, .mockup-top, .footer-grid p, .field input, .field textarea, .field select {
  font-family: var(--font-sans);
}
.container { width: min(1200px, 92vw); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance; margin: 22px 0 20px;
}
.hero p.lead { font-size: 1.125rem; line-height: 1.6; max-width: 36rem; }
.section-head h2, .fees-panel h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance;
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.03em; }
.section-head p { font-size: 1.08rem; line-height: 1.6; max-width: 44rem; }
.section-head { margin-bottom: 48px; max-width: 46rem; }
.card h3, .bento .b h3, .step h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.25; }
.bento .b.lead h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.card p, .bento .b p, .step p { font-size: 0.95rem; line-height: 1.6; }

/* rótulos em mono, caixa alta, tracking largo (Vercel/Ramp) */
.section-head .tag, .tag, .hero-logos-label, .footer-grid h4, .saldo-card .label,
.code-top span, .ticker .marquee-group span, .hero-trust, .form-note, .code-note,
.footer-bottom, .chip-row span, .logo-chip small, .tier span, .eyebrow {
  font-family: var(--font-mono);
}
.section-head .tag, .tag, .hero-logos-label, .footer-grid h4, .tier span {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; color: var(--fg);
}
.section-head .tag, .tag { margin-bottom: 18px; }
.ticker .marquee-group span { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; opacity: 0.75; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; }
.hero-trust { font-size: 0.78rem; letter-spacing: 0.02em; }
.chip-row span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; }
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; font-weight: 500; }
.footer-bottom { font-size: 0.74rem; letter-spacing: 0.02em; }

/* ---------- ritmo e superfícies ---------- */
section { padding: var(--section) 0; }
.hero { padding: 160px 0 0; }
section.band {
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(255, 193, 7, 0.09), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(255, 51, 0, 0.06), transparent 60%),
    var(--bg-2);
}
html.dark section.band {
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(255, 193, 7, 0.06), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(255, 51, 0, 0.04), transparent 60%),
    #0e0e0e;
}

/* ---------- elevação: hairline, nunca sombra ---------- */
.card, .stat, .step, .tier, .bento .b, .contact-card, .faq-list details, .logo-chip,
form.contact-form, .fees-panel, .code-window, .mockup, .support-banner, .vs .col, .chip-row span, .float-chip {
  box-shadow: none;
}
.card:hover, .bento .b:hover, .step:hover, .tier:hover, .logo-chip:hover, .contact-card:hover {
  box-shadow: none; transform: translateY(-2px); border-color: rgba(255, 193, 7, 0.5);
}
html.dark .card:hover, html.dark .bento .b:hover, html.dark .step:hover, html.dark .tier:hover { box-shadow: none; }
.tilt-spot::before { background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 40%); }
.btn-primary, html.dark .btn-primary { box-shadow: none; }
.btn { height: 44px; padding-block: 0; font-size: 0.95rem; }
.btn-lg { height: 48px; font-size: 1rem; padding-inline: 28px; }
.btn-sm { height: 36px; font-size: 0.875rem; padding-inline: 14px; }
.btn-primary:hover { filter: brightness(1.04); opacity: 1; }
.support-banner { background: var(--surface); border: 1px solid var(--border); }
.vs .col.good { background: var(--surface); }
.vs .col.good::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 193, 7, 0.1), rgba(255, 51, 0, 0.03));
}
.vs .col { position: relative; }

/* ---------- faixa de stats (uma linha, divisórias hairline) ---------- */
.stats {
  grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0;
  border-block: 1px solid var(--border);
}
.stat {
  text-align: left; padding: 30px 28px; border: 0; border-radius: 0; background: transparent;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat strong {
  font-size: 2.75rem; line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px;
  background: none; -webkit-text-fill-color: currentColor; color: var(--fg); font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.875rem; }
.stat:hover { transform: none; border-color: var(--border); }

/* ---------- FAQ como lista hairline ---------- */
.faq-list { gap: 0; max-width: 52rem; }
.faq-list details { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list details[open] { border-color: var(--border); }
.faq-list summary { padding: 22px 4px; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.faq-list summary::after { background: transparent; border: 1px solid var(--border-strong); color: var(--fg); font-weight: 400; }
.faq-list details[open] summary::after { border-color: var(--accent); background: rgba(255, 193, 7, 0.12); }
.faq-list details p { padding: 0 4px 24px; max-width: 46rem; }

/* ---------- mural e chips ---------- */
.logo-chip { border-radius: 8px; background: transparent; min-height: 84px; }
.logo-chip strong { font-weight: 500; letter-spacing: -0.01em; }
.chip-row span { background: transparent; }
.hero-logos-label { opacity: 0.55; }
.logo-name { font-weight: 500; letter-spacing: -0.01em; }

/* ---------- código (painel CLI, estilo Vercel) ---------- */
.code-window { border-radius: 12px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; }
.code-window pre { font-family: var(--font-mono); line-height: 1.75; }
.code-top { background: rgba(255, 255, 255, 0.02); }

/* ---------- formulário ---------- */
form.contact-form { padding: 28px; }
.field label { font-weight: 500; font-size: 0.85rem; }
.field input, .field textarea, .field select { background: var(--surface); border-color: var(--border); }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18); }

/* ---------- rodapé ---------- */
footer.site { background: var(--bg); margin-top: 0; padding: 72px 0 32px; }
.footer-grid h4 { margin-bottom: 18px; }
.footer-grid ul a { font-size: 0.9rem; }
.footer-id { font-family: var(--font-sans); }

/* ---------- cabeçalho ---------- */
.nav-links a { font-size: 0.875rem; font-weight: 500; }
header.scrolled:not(.over-hero) { background: color-mix(in srgb, var(--bg) 78%, transparent); }

/* ---------- hero: vidro, brilho fluido e sheen holográfico (Inspora) ---------- */
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero .mockup {
  background: rgba(18, 18, 18, 0.7); border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.hero .mockup::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.05) 44%, rgba(255, 193, 7, 0.14) 50%, rgba(255, 120, 60, 0.08) 54%, rgba(255, 255, 255, 0.05) 58%, transparent 70%);
  background-size: 260% 260%; mix-blend-mode: screen;
  animation: sp-holo 7s ease-in-out infinite alternate;
}
@keyframes sp-holo { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.hero .mockup-glow {
  inset: -14% -12%; opacity: 0.9;
  background: radial-gradient(closest-side, rgba(255, 193, 7, 0.32), rgba(255, 51, 0, 0.12) 55%, transparent 100%);
  border-radius: 42% 58% 64% 36% / 40% 46% 54% 60%;
  filter: blur(34px);
  animation: sp-fluid 14s ease-in-out infinite;
}
@keyframes sp-fluid {
  0%, 100% { border-radius: 42% 58% 64% 36% / 40% 46% 54% 60%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 58% 42% 38% 62% / 52% 38% 62% 48%; transform: translate(3%, -3%) scale(1.06); }
  66% { border-radius: 36% 64% 56% 44% / 60% 56% 44% 40%; transform: translate(-3%, 2%) scale(0.96); }
}
.hero .float-chip { background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, 0.14); }
.hero .mockup .saldo-card { background: rgba(255, 193, 7, 0.08); border-color: rgba(255, 193, 7, 0.28); }
.hero .mockup .tx li { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.hero .hero-trust { color: rgba(247, 246, 244, 0.75); }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  :root { --section: 72px; }
  .hero { padding-top: 128px; }
  .hero .mockup-glow { filter: blur(24px); }
  .stat { padding: 22px 18px; }
  .stat strong { font-size: 2.2rem; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .mockup::after, .hero .mockup-glow { animation: none; }
}

/* ==========================================================================
   Passo 2 — composição (não só tokens)
   ========================================================================== */

/* ---------- legibilidade: selo e "✓" voltam para a sans ---------- */
.eyebrow, .hero .eyebrow {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; padding: 9px 16px;
}
.hero-text .shimmer-text { color: #fff; }
.hero-trust {
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; gap: 10px 26px;
  color: rgba(247, 246, 244, 0.88);
}
.hero-trust span { gap: 9px; }
.hero-trust .check {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.16); color: #4ade80; font-size: 11px; font-weight: 700;
}
.ticker .marquee-group span { font-size: 12px; opacity: 0.85; }
.chip-row span, .logo-chip small, .form-note, .code-note, .footer-bottom { font-family: var(--font-sans); }
.chip-row span { font-size: 0.85rem; }
.footer-bottom { font-size: 0.8rem; }

/* ---------- hero centralizado, painel grande embaixo ---------- */
.hero { padding-top: 150px; }
.hero-inner { grid-template-columns: 1fr; gap: 56px; justify-items: center; text-align: center; }
.hero-text { max-width: 54rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.0; letter-spacing: -0.04em; margin: 26px 0 22px; max-width: 16ch; }
.hero p.lead { max-width: 40rem; font-size: 1.15rem; }
.hero-ctas, .hero-trust { justify-content: center; }
.hero-logos { justify-items: center; }
.hero-logos .logos-group { justify-content: center; -webkit-mask-image: none; mask-image: none; }
.hero .spell-bg::after { background: radial-gradient(60% 55% at 50% 38%, rgba(10, 10, 10, 0.62), transparent 100%); }
.mockup-wrap { width: min(920px, 100%); }
.hero .mockup { transform: none; }
.hero .mockup-top { padding: 16px 22px; font-size: 0.9rem; }
.hero .mockup-body { padding: 22px; gap: 18px; }
.hero .saldo-card strong { font-size: 2.2rem; letter-spacing: -0.02em; }
.hero .chart { height: 110px; }
.hero .float-chip.c1 { top: -18px; right: 4%; }
.hero .float-chip.c2 { bottom: -18px; left: 4%; }
.hero .mockup-glow { inset: -10% -8%; }
@media (max-width: 1020px) {
  .hero-inner { gap: 44px; }
  .hero .mockup { max-width: none; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); letter-spacing: -0.035em; }
  .hero-ctas .btn { width: 100%; }
  .hero .float-chip { display: none; }
}

/* ---------- seções numeradas ---------- */
main { counter-reset: sec -1; }
main > section { counter-increment: sec; }
.section-head .tag::before, .fees-panel .tag::before { content: counter(sec, decimal-leading-zero) "  /  "; opacity: 0.55; }

/* ---------- borda luminosa que segue o mouse (holo card) ---------- */
.tilt-spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 193, 7, 0.8), rgba(255, 193, 7, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ---------- mini-interfaces dentro dos cartões ---------- */
.mini-ui {
  margin: 6px 0 4px; padding: 14px; border-radius: 12px; font-size: 12px; line-height: 1.4;
  background: var(--bg); border: 1px solid var(--border); color: var(--fg);
}
html.dark .mini-ui { background: #0a0a0a; }
.mc-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.mc-tabs span { flex: 1; text-align: center; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.mc-tabs span.on { background: rgba(255, 193, 7, 0.14); border-color: rgba(255, 193, 7, 0.5); color: var(--fg); }
.mc-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.mc-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-row.mc-bump span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.mc-row.mc-bump i { width: 13px; height: 13px; border-radius: 3px; background: var(--accent); display: inline-grid; place-items: center; }
.mc-row.mc-bump i::after { content: ''; width: 6px; height: 3px; border-left: 1.5px solid #0a0a0a; border-bottom: 1.5px solid #0a0a0a; transform: rotate(-45deg) translateY(-1px); }
.mc-pay { margin-top: 10px; padding: 9px; border-radius: 6px; background: var(--accent); color: #0a0a0a; font-weight: 600; text-align: center; }
.ms-bar { display: flex; gap: 3px; height: 30px; border-radius: 6px; overflow: hidden; }
.ms-bar i {
  flex: 0 0 var(--w); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden;
  background: rgba(255, 193, 7, 0.9); color: #0a0a0a;
}
.ms-bar i:nth-child(2) { background: rgba(255, 193, 7, 0.45); color: var(--fg); }
.ms-bar i:nth-child(3) { background: rgba(255, 193, 7, 0.2); color: var(--fg); }
.ms-note { margin-top: 9px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ms-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mini-retry { display: flex; align-items: center; gap: 6px; }
.mr-step { display: grid; justify-items: center; gap: 2px; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; min-width: 46px; }
.mr-step small { font-size: 10px; font-weight: 500; color: var(--muted); }
.mr-step.fail { border-color: rgba(255, 51, 0, 0.45); color: var(--accent-strong); }
.mr-step.ok { border-color: rgba(22, 163, 74, 0.5); background: var(--success-bg); color: var(--success); }
.mr-line { flex: 1; height: 1px; background: var(--border-strong); min-width: 8px; }

/* lista ✓ dos cartões: bloco com o check posicionado, para o <b> não ser espremido pelo flex */
.mini li { display: block; position: relative; padding-left: 22px; }
.mini li::before { position: absolute; left: 0; top: 0; }
.mini b { white-space: nowrap; }
.hero-logos-label { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; }

/* ---------- menu do celular: rola e começa pelo botão ---------- */
@media (max-width: 720px) {
  .mobile-menu.open { display: flex; flex-direction: column; max-height: calc(100vh - 62px); max-height: calc(100dvh - 62px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 32px; }
  .mobile-menu .btn { order: -1; margin: 4px 0 14px; width: 100%; display: inline-flex; justify-content: center; align-items: center; text-align: center; border-bottom: 0; }
}

/* ---------- barra do split: só o percentual na fatia, nomes na legenda ---------- */
.ms-bar i { font-size: 11px; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; color: var(--muted); }
.ms-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ms-legend i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 193, 7, 0.9); }
.ms-legend i.l2 { background: rgba(255, 193, 7, 0.45); }
.ms-legend i.l3 { background: rgba(255, 193, 7, 0.2); }
.ms-note { margin-top: 8px; }

/* ---------- celular: "Acessar" compacto na barra, entre o logo e os ícones ---------- */
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-logo img { height: 32px; max-width: 8.5rem; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav .btn-plataforma { display: inline-flex; order: -1; height: 36px; padding-inline: 14px; font-size: 0.85rem; margin-right: 4px; }
  .so-web { display: none; }
}
