/* ============================================================
   Condo Sync — Site institucional + Documentação
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f172a;
  --slate: #334155;
  --muted: #5b6b84;
  --line: #e5eaf3;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --sky: #0ea5e9;
  --grad: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  --ok: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .13);
  --dark: #0b1220;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.02em; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

::selection { background: rgba(79, 70, 229, .2); }

/* ---------- Utilidades ---------- */
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: .55rem 0 .85rem;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.7;
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 26px rgba(79, 70, 229, .32);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 70, 229, .4); }

.btn-outline {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-outline:hover { border-color: #c3cbe0; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-white {
  color: var(--brand-600);
  background: #fff;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(2, 6, 23, .25); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.04rem; }

/* ---------- Header / Navegação ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: .5rem .8rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}

.nav-links a:hover { color: var(--ink); background: #eef2f9; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.btn-nav {
  padding: .62rem 1.25rem;
  font-size: .93rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 158px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(52% 70% at 88% -8%, rgba(79, 70, 229, .14), transparent 70%),
    radial-gradient(44% 60% at -4% 96%, rgba(14, 165, 233, .12), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, .28);
  background: rgba(255, 255, 255, .75);
  color: var(--brand-600);
  font-size: .83rem;
  font-weight: 600;
}

.hero h1 {
  margin: 1.15rem 0 1.1rem;
  font-size: clamp(2.25rem, 4.9vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.9rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: .88rem;
}

.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Mock visual do app (hero) ---------- */
.hero-visual { position: relative; padding: 8px 6px; }

.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.mock-card.alt { transform: rotate(-1.6deg); margin-top: 18px; opacity: .92; }

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.mock-title { font-weight: 700; font-size: .98rem; }

.mock-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: rgba(79, 70, 229, .09);
  padding: .3rem .7rem;
  border-radius: 999px;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .72rem .2rem;
  border-bottom: 1px solid var(--line);
}

.m-row:last-child { border-bottom: 0; }

.m-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, .1);
  color: var(--brand-600);
}

.m-row b { display: block; font-size: .92rem; line-height: 1.3; }
.m-row small { color: var(--muted); font-size: .78rem; }

.chip {
  margin-left: auto;
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 999px;
}

.chip-pendente { background: #fef3c7; color: var(--amber); }
.chip-retirada { background: #d1fae5; color: var(--ok); }
.chip-info { background: #e0f2fe; color: #0369a1; }

.mock-action {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  padding: .85rem;
  border-radius: 14px;
  color: #fff;
  background: var(--grad);
  font-weight: 600;
  font-size: .92rem;
  font-family: var(--font);
}

.mock-action svg { width: 18px; height: 18px; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: .82rem;
  font-weight: 600;
}

.float-badge small { display: block; font-weight: 500; color: var(--muted); }
.float-badge .fb-ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
}
.float-badge .fb-ic svg { width: 17px; height: 17px; }
.fb-bell { position: absolute; top: -14px; right: -10px; }
.fb-bell .fb-ic { background: var(--grad); }
.fb-qr { position: absolute; bottom: 18px; left: -30px; }
.fb-qr .fb-ic { background: #10b981; }

/* ---------- Seções ---------- */
.section { padding: 86px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }

/* ---------- Cards de recursos ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, .4);
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand-600);
  background: rgba(79, 70, 229, .1);
}

.icon-tile.sky { color: #0369a1; background: rgba(14, 165, 233, .12); }
.icon-tile.green { color: #047857; background: rgba(16, 185, 129, .12); }
.icon-tile.amber { color: #b45309; background: rgba(245, 158, 11, .14); }
.icon-tile.rose { color: #be123c; background: rgba(225, 29, 72, .1); }

.feature-card h3 { font-size: 1.07rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .93rem; line-height: 1.65; margin: 0; }

/* ---------- Perfis (para quem é) ---------- */
.grid-perfis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.perfil-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.perfil-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.perfil-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }

.role-pill {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .34rem .8rem;
  border-radius: 999px;
}

.role-admin { color: #6d28d9; background: #ede9fe; }
.role-portaria { color: #0369a1; background: #e0f2fe; }
.role-morador { color: #047857; background: #d1fae5; }

.perfil-card h3 { font-size: 1.13rem; margin-bottom: .2rem; }
.perfil-desc { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--slate);
  font-size: .93rem;
  line-height: 1.5;
}

.check-list svg { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; flex: none; }

/* ---------- Como funciona (passos) ---------- */
.grid-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 14px;
}

.step-card h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.step-card p { color: var(--muted); font-size: .91rem; line-height: 1.6; margin: 0; }

/* ---------- Vantagens / benefícios ---------- */
.grid-vantagens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 26px;
}

.vantagem {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.vantagem .icon-tile { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 0; flex: none; }
.vantagem .icon-tile svg { width: 21px; height: 21px; }
.vantagem h3 { font-size: 1rem; margin-bottom: .3rem; }
.vantagem p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---------- Diferenciais ---------- */
.grid-diffs { display: grid; gap: 16px; }

.diff {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.diff:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.diff h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.diff p { color: var(--muted); font-size: .93rem; line-height: 1.65; margin: 0; }
.diff .icon-tile { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 0; flex: none; }

/* ---------- Faixa de tecnologia ---------- */
.tech-band {
  background: var(--dark);
  border-radius: 28px;
  padding: 46px 44px;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.tech-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 90% at 90% 0%, rgba(79, 70, 229, .35), transparent 70%);
  pointer-events: none;
}

.tech-inner { position: relative; z-index: 1; }

.tech-inner .kicker { color: #93c5fd; }

.tech-inner h2 { color: #fff; font-size: clamp(1.45rem, 2.6vw, 2rem); margin: .5rem 0 .7rem; }

.tech-inner > p { color: #a8b3c7; font-size: .98rem; max-width: 640px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.chip-tech {
  font-size: .84rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #dbe4f0;
}

.tech-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: #93c5fd; font-weight: 600; text-decoration: none; font-size: .95rem; }
.tech-link:hover { color: #fff; }
.tech-link svg { width: 17px; height: 17px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; }

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}

details.faq[open] { border-color: rgba(79, 70, 229, .45); }

details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: .98rem;
}

details.faq summary::-webkit-details-marker { display: none; }

.faq-plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, .08);
  color: var(--brand-600);
  transition: transform .25s ease;
}

details.faq[open] .faq-plus { transform: rotate(45deg); }

.faq-body { padding: 0 22px 20px; color: var(--slate); font-size: .94rem; line-height: 1.7; }

.faq-body p:last-child { margin: 0; }

/* ---------- CTA final ---------- */
.cta-band { padding: 0 0 96px; }

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 30px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  top: -220px;
  right: -140px;
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  bottom: -180px;
  left: -100px;
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .8rem; letter-spacing: -0.02em; }

.cta-card p { font-size: 1.05rem; opacity: .92; margin-bottom: 1.8rem; }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 56px 0 34px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer .brand { color: #fff; }

.footer-about { font-size: .92rem; line-height: 1.7; margin: 16px 0 0; max-width: 380px; }

.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-links a { color: #94a3b8; text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .84rem;
}

/* ---------- Docs: página da documentação ---------- */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.docs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.docs-topbar .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
}

.docs-topbar .back:hover { color: var(--brand-600); }
.docs-topbar .back svg { width: 17px; height: 17px; }

.docs-titlebar { text-align: center; font-size: .86rem; color: var(--muted); }

.docs-shell {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  padding: 34px 0 90px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

/* Sumário lateral */
.toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}

.toc-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 12px;
}

.toc a {
  display: block;
  padding: .44rem .7rem;
  border-radius: 10px;
  color: var(--slate);
  text-decoration: none;
  font-size: .89rem;
  line-height: 1.35;
}

.toc a:hover { background: rgba(79, 70, 229, .07); color: var(--brand-600); }

.toc a.sub { padding-left: 1.45rem; font-size: .84rem; color: var(--muted); }

.toc-mobile { display: none; margin-bottom: 26px; }

/* ---------- Docs: conteúdo ---------- */
.docs-content { min-width: 0; }

.doc-hero { margin-bottom: 8px; }

.doc-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.025em;
  margin: .5rem 0 .8rem;
}

.doc-hero p.lead { font-size: 1.05rem; max-width: 720px; }

.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }

.doc-meta .role-pill { letter-spacing: .04em; text-transform: none; }

.doc-section { scroll-margin-top: 84px; margin-top: 62px; }

.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.68rem;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.sec-num {
  font-size: 1rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.doc-section h3 { font-size: 1.14rem; margin: 2rem 0 .7rem; }

.doc-section p { color: var(--slate); line-height: 1.78; margin-bottom: .9rem; }

.doc-section ul, .doc-section ol { color: var(--slate); line-height: 1.72; }

.doc-section li { margin-bottom: .4rem; }

.doc-section strong { color: var(--ink); }

.doc-section > p code, .doc-section li code {
  background: #eef1f8;
  border: 1px solid #dfe5f0;
  border-radius: 7px;
  padding: .1rem .45rem;
  font-family: var(--mono);
  font-size: .85em;
  color: #4338ca;
}

/* Passos numerados */
.passos { list-style: none; margin: 1.2rem 0; padding: 0; counter-reset: passo; }

.passos li {
  counter-increment: passo;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 18px 15px 62px;
  margin-bottom: 10px;
  font-size: .95rem;
  color: var(--slate);
}

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
}

.passos b { color: var(--ink); }

/* Caixas de destaque */
.box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 15px 18px;
  margin: 1.2rem 0;
  font-size: .93rem;
  line-height: 1.65;
}

.box svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }

.box .box-title { display: block; font-weight: 700; margin-bottom: 2px; }

.box-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.box-dica { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.box-aviso { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Endpoints / código */
.endpoint {
  background: #0d1526;
  color: #dbe4f0;
  border-radius: 14px;
  padding: 13px 16px;
  margin: .8rem 0;
  font-family: var(--mono);
  font-size: .85rem;
  overflow-x: auto;
  white-space: nowrap;
  display: block;
}

.endpoint .m { color: #7dd3fc; font-weight: 700; margin-right: 8px; }
.endpoint .mut { color: #64748b; }

/* Tabela */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 1.1rem 0; background: var(--surface); }

table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }

table.data th {
  text-align: left;
  padding: .72rem .95rem;
  background: #f1f5fb;
  color: #475569;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

table.data td { padding: .72rem .95rem; border-top: 1px solid var(--line); color: var(--slate); vertical-align: top; }

table.data td b { color: var(--ink); }

/* Navegação fim de página da doc */
.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc-pager a { flex: 1; max-width: 320px; }

.doc-pager .side { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .float-badge.fb-qr { left: -6px; }
}

@media (max-width: 960px) {
  .hero { padding: 128px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; }
  .nav-links, .nav-cta .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px 24px 20px;
  }
  .nav-links.open a { padding: .75rem .6rem; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .grid-features { grid-template-columns: 1fr; }
  .grid-steps { grid-template-columns: 1fr 1fr; }
  .tech-band { padding: 36px 26px; border-radius: 22px; }
  .cta-card { padding: 46px 24px; border-radius: 24px; }
  .diff { flex-direction: column; gap: 12px; }
  .doc-hero h1 { font-size: 1.7rem; }
  .float-badge.fb-bell { right: -4px; }
  .docs-titlebar { display: none; }
  .docs-topbar { gap: 10px; }
  .docs-topbar .btn-nav { padding: .5rem .8rem; font-size: .82rem; }
}

@media (max-width: 480px) {
  .grid-steps { grid-template-columns: 1fr; }
  .docs-titlebar { display: none; }
  .cta-actions .btn { width: 100%; }
}

/* Acessibilidade: respeita redução de movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- TOC mobile (docs) ---------- */
.toc-mobile details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.toc-mobile summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: .95rem;
}

.toc-mobile summary::-webkit-details-marker { display: none; }

.toc-mobile details[open] .faq-plus { transform: rotate(45deg); }

.toc-mobile .toc-list { padding: 0 16px 14px; display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; }

.toc-mobile .toc-list a {
  display: block;
  padding: .5rem .55rem;
  border-radius: 10px;
  color: var(--slate);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.4;
}

.toc-mobile .toc-list a:hover { background: rgba(79, 70, 229, .07); color: var(--brand-600); }

.toc-mobile .toc-list a.sub { padding-left: 1.3rem; font-size: .87rem; color: var(--muted); }
