/* Prestaseguro landing. Hand-written CSS (no framework, no build step). */
:root {
  --ink: #1E1442;
  --ink-2: #2F2357;
  --muted: #4B3F72;
  --muted-2: #5B4F80;
  --brand: #8B45F6;
  --brand-strong: #7C3AED;
  --brand-hover: #6D28D9;
  --brand-text: #6A2BD9;
  --brand-dark: #4C1D95;
  --soft: #F3EEFF;
  --soft-2: #F7F3FF;
  --line: #EDE7FB;
  --mint: #5BC98A;
  --mint-soft: #E7F8EE;
  --mint-text: #14532D;
  --radius: 24px;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: var(--brand-text); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #C4B5FD; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.eyebrow { color: var(--brand-text); font-weight: 600; font-size: 15px; }
.section-title { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--brand-dark); }
.btn-ghost:hover { background: #E9E3FD; color: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: var(--soft); color: var(--brand-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #EFEAFB; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #3B2A6B; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 4px; }
.nav-links a:hover { color: var(--brand-text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft-2) 0%, #fff 100%); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--mint-soft); color: var(--mint-text); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.hero-lead strong { color: var(--brand-text); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #3B2A6B; font-size: 15px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }

/* Simulator */
.sim { flex: 1 1 420px; min-width: 0; max-width: 500px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 60px -20px rgba(76, 29, 149, .28); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sim-head h2 { font-size: 22px; font-weight: 700; }
.sim-head span { font-size: 13px; color: var(--muted-2); }
.field { display: flex; flex-direction: column; gap: 12px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-top label { font-size: 15px; color: var(--muted); font-weight: 500; }
.field-value { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--ink); }
.field-range { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: #E9E3FD; outline: none; margin: 10px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(46, 16, 101, .35); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(46, 16, 101, .35); cursor: pointer; }
.breakdown { background: var(--soft-2); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; margin: 0; transition: opacity .15s ease; }
.breakdown.is-loading { opacity: .55; }
.breakdown .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.breakdown .row dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.breakdown .row dt { margin: 0; }
.breakdown hr { border: 0; height: 1px; background: #E4DCFA; margin: 4px 0; }
.breakdown .total { align-items: baseline; }
.breakdown .total dt { font-weight: 600; color: var(--ink); }
.breakdown .total dd { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--brand-text); }
.skeleton { display: inline-block; min-width: 64px; height: 1em; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, #ECE6FB 0%, #F6F2FF 50%, #ECE6FB 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; color: transparent; }
.skeleton-wide { min-width: 180px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sim-error { font-size: 14px; color: #9F1239; background: #FFF1F2; border-radius: 12px; padding: 12px 14px; }
.sim-error button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #9F1239; text-decoration: underline; cursor: pointer; }
.sim-note { font-size: 13px; line-height: 1.5; color: var(--muted-2); text-align: center; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); line-height: 1.55; }
.step-num { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--brand-text); display: flex; align-items: center; justify-content: center; font: 800 20px var(--display); }
.step-num.mint { background: var(--mint-soft); color: var(--mint-text); }

/* Costs */
.costs { background: var(--ink); color: #fff; }
.costs-grid { display: flex; flex-wrap: wrap; gap: 56px; }
.costs-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.costs-copy .eyebrow { color: #C4B5FD; }
.costs-copy h2 { color: #fff; }
.costs-copy p { font-size: 18px; line-height: 1.6; color: #DDD6FE; }
.costs-list { flex: 1 1 520px; min-width: 0; margin: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 8px 28px; }
.costs-list div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.costs-list div:last-child { border-bottom: 0; }
.costs-list dt { color: #EDE9FE; }
.costs-list dd { margin: 0; font-weight: 600; text-align: right; }
.costs-list .skeleton { background: rgba(255, 255, 255, .18); min-width: 56px; }

/* Requirements + benefits */
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.req { flex: 1 1 460px; min-width: 0; background: var(--soft-2); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.req h2 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.req ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--ink-2); }
.req li { display: flex; gap: 12px; align-items: flex-start; }
.req li svg { flex: none; }
.benefits { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.benefits .card { padding: 24px; gap: 10px; }
.benefits h3 { font-size: 18px; }
.benefits p { font-size: 15px; line-height: 1.5; }

/* FAQ */
.faq-wrap { background: #FAF8FF; }
.faq { max-width: 860px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 28px; }
.faq details { border-bottom: 1px solid #F0EBFC; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 18px var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
/* Drawn icon (not a "+" character) so it sits exactly in the middle of the circle. */
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A2BD9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A2BD9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.faq details p { padding: 0 0 22px; color: var(--muted); line-height: 1.6; }

/* Final CTA */
.cta-band { background: linear-gradient(135deg, var(--brand-strong) 0%, #5B21B6 100%); border-radius: 32px; padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; color: #fff; }
.cta-band p { font-size: 18px; color: #EDE9FE; }

/* Footer */
.site-footer { border-top: 1px solid #EFEAFB; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-block: 48px; }
.footer-brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-brand .brand-name { font: 800 20px var(--display); letter-spacing: -0.02em; color: var(--ink); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols p { font-weight: 600; }
.footer-legal { padding-bottom: 40px; font-size: 13px; color: var(--muted-2); }

/* Legal pages (terms, data policy) */
.legal-hero { background: linear-gradient(180deg, var(--soft-2) 0%, #fff 100%); padding-block: 64px 40px; }
.legal-narrow { display: flex; flex-direction: column; gap: 12px; }
.legal-hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; }
.legal-updated { color: var(--muted-2); font-size: 15px; }
.legal-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-bottom: 96px; }
.legal-toc { flex: 0 1 260px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.legal-toc p { font-weight: 600; margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; }
.legal-toc a:hover { background: var(--soft); color: var(--brand-text); }
.legal { flex: 999 1 560px; min-width: 0; max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.legal > p:first-child { font-size: 18px; }
.legal p { margin: 0 0 16px; }
.legal h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 48px 0 16px; scroll-margin-top: 96px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--brand); }
.legal strong { color: var(--ink); }
.legal .table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--soft-2); font-weight: 600; color: var(--ink); }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .legal-toc { position: static; flex-basis: 100%; max-height: none; }
  .legal-layout { gap: 32px; }
}

/* WhatsApp floating button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.wa-float:hover { background: #1EBE5A; color: #fff; }

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .section { padding-block: 64px; }
  .hero-grid { padding-block: 40px 56px; gap: 40px; }
  .sim { padding: 24px; }
  .req { padding: 28px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
