/* ==========================================================================
   documentos.shop — folha de estilo única (sem dependências)
   Performance: ~12 KB, carregada uma vez, cacheada em todas as páginas.
   ========================================================================== */

:root {
  --ink: #101828;
  --ink-soft: #475467;
  --ink-mute: #667085;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff4ff;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --paper: #ffffff;
  --bg: #f8fafc;
  --line: #e4e7ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 8px 24px -12px rgb(16 24 40 / .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.logo {
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--brand); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem; font-weight: 800;
}
.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }

/* --- Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 10px; border: 0;
  font: 600 1rem var(--font); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgb(29 78 216 / .5); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -20%, rgb(79 70 229 / .14), transparent),
    radial-gradient(50rem 26rem at 0% 110%, rgb(5 150 105 / .10), transparent),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42rem; margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.2rem; color: var(--ink-mute); font-size: .92rem; font-weight: 600;
}
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }

/* --- Seções ------------------------------------------------------------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.6rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  margin-bottom: .6rem;
}

/* --- Cards de documento -------------------------------------------------- */
.doc-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.doc-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgb(16 24 40 / .06), 0 16px 32px -12px rgb(16 24 40 / .18); }
.doc-card h3 a { color: var(--ink); }
.doc-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; margin: 0; }
.doc-card .card-cta { font-weight: 700; font-size: .95rem; }
.chip {
  align-self: flex-start; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand);
  padding: .22rem .6rem; border-radius: 99px;
}

/* --- Como funciona -------------------------------------------------------- */
.steps { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { text-align: center; padding: 1.4rem 1rem; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto .9rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
}
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* --- Planos / tiers -------------------------------------------------------- */
.tiers { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.tier {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem; position: relative;
}
.tier.tier-featured { border-color: var(--brand); box-shadow: 0 12px 32px -14px rgb(29 78 216 / .35); }
.tier-badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .8rem; border-radius: 99px; white-space: nowrap;
}
.tier h3 { margin: 0; }
.tier .format { color: var(--ink-mute); font-size: .88rem; font-weight: 600; }
.tier .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.tier .price small { font-size: .95rem; font-weight: 600; color: var(--ink-mute); }
.tier ul { margin: 0; padding: 0; list-style: none; flex: 1; display: grid; gap: .55rem; }
.tier li { padding-left: 1.6rem; position: relative; font-size: .95rem; color: var(--ink-soft); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* --- Conteúdo do documento -------------------------------------------------- */
.breadcrumbs { font-size: .88rem; color: var(--ink-mute); padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.doc-hero { padding: 1.6rem 0 2.6rem; }
.doc-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.doc-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--ink-mute); font-size: .88rem; font-weight: 600; margin-top: .8rem; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--ink-soft); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.3rem;
}
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* --- Modal (lead + checkout) ------------------------------------------------ */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop { position: absolute; inset: 0; background: rgb(16 24 40 / .55); }
.modal-card {
  position: relative; background: var(--paper); border-radius: 16px;
  width: min(440px, 100%); padding: 2rem; box-shadow: 0 24px 60px -12px rgb(16 24 40 / .4);
}
.modal-close {
  position: absolute; top: .9rem; right: .9rem; border: 0; background: none;
  font-size: 1.4rem; color: var(--ink-mute); cursor: pointer; line-height: 1;
}
.modal-card h3 { margin-bottom: .3rem; }
.modal-card .modal-sub { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .72rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--line); font: 400 1rem var(--font); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .error { color: #b42318; font-size: .84rem; margin-top: .3rem; display: none; }
.field.invalid input { border-color: #b42318; }
.field.invalid .error { display: block; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: .9rem; text-align: center; }
.modal-success { text-align: center; }
.modal-success .check {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #cbd5e1;
  padding: 3rem 0 2rem; margin-top: 4rem; font-size: .93rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 1.4rem; color: #94a3b8; font-size: .85rem; }

@media (max-width: 640px) {
  .main-nav { display: none; }
  .hero { padding: 3rem 0 2.6rem; }
  .section { padding: 2.6rem 0; }
}

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