/* =========================================================================
   Vigia de Ponto — site comercial
   Base visual herdada do design system do produto (docs/prototipo).
   Sem dependências externas: fontes do sistema, ícones em SVG inline.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  --brand-950: #172554;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --soft: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --violet: #7c3aed;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05), 0 1px 3px 0 rgb(15 23 42 / 0.08);
  --shadow: 0 4px 6px -1px rgb(15 23 42 / 0.06), 0 10px 20px -6px rgb(15 23 42 / 0.10);
  --shadow-lg: 0 18px 40px -12px rgb(15 23 42 / 0.22), 0 4px 12px -4px rgb(15 23 42 / 0.08);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
  --container: 1180px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-200); color: var(--brand-950); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Itens de grade encolhem até o conteúdo rolar por dentro (tabelas, <pre>, imagens)
   em vez de esticar a coluna e criar rolagem horizontal na página. */
.hero__grid > *,
.cta-grid > *,
.tab-panel__grid > *,
.prose-grid > *,
.grid > * { min-width: 0; }

.section { padding-block: clamp(64px, 8vw, 108px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--soft { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--dark {
  background:
    radial-gradient(900px 500px at 12% -10%, rgb(37 99 235 / 0.35), transparent 60%),
    linear-gradient(180deg, var(--brand-950), #0b1229);
  color: #e2e8f0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--brand-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 4. Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.section--dark .eyebrow { color: var(--brand-300); }

.h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--muted);
  line-height: 1.65;
}
.section--dark .lead { color: #cbd5e1; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

.text-muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / .1), 0 8px 20px -8px rgb(37 99 235 / .55);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); border-color: #cbd5e1; }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); transform: translateY(-1px); }

.btn-outline-light {
  background: rgb(255 255 255 / .06);
  color: #fff;
  border-color: rgb(255 255 255 / .28);
}
.btn-outline-light:hover { background: rgb(255 255 255 / .14); }

.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--brand-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--brand-300); }

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(255 255 255 / .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgb(15 23 42 / .05); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.nav__link:hover { background: var(--surface-3); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand-700); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 940px) {
  /* O "Entrar" continua no topo — só a chamada comercial sai, que ela reaparece no menu. */
  .nav, .header__actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__inner { justify-content: space-between; gap: 10px; }
  .header__actions .btn-ghost { padding: 10px 12px; }

  .nav.is-open {
    display: flex;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { padding: 12px; font-size: 1rem; }
  .nav.is-open .nav__cta { margin-top: 10px; }
}
@media (min-width: 941px) { .nav__cta { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 600px at 78% -5%, rgb(37 99 235 / .5), transparent 62%),
    radial-gradient(700px 500px at 5% 100%, rgb(29 78 216 / .35), transparent 60%),
    linear-gradient(165deg, #0e1a3a 0%, var(--brand-950) 45%, #0a1027 100%);
  padding-block: clamp(56px, 7vw, 92px) clamp(64px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 0%, #000, transparent 85%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgb(147 197 253 / .28);
  border-radius: 999px;
  background: rgb(37 99 235 / .18);
  font-size: .82rem;
  font-weight: 500;
  color: #dbeafe;
}
.hero__badge b { color: #fff; font-weight: 700; }
.hero__badge .pill {
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 { margin-top: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand-300); }
.hero__sub {
  margin-top: 20px;
  max-width: 40em;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  color: #c7d2e5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: .85rem; color: #93a3bd; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 999px;
  background: rgb(255 255 255 / .06);
  font-size: .82rem;
  font-weight: 500;
  color: #dbe4f3;
}
.chip svg { width: 14px; height: 14px; color: var(--brand-300); flex: none; }

/* ---------- 8. Mockups de produto ---------- */
.mock {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
}
.hero .mock { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 980px) { .hero .mock { transform: none; } }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mock__dots { display: flex; gap: 5px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.mock__url {
  flex: 1;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .7rem;
  color: var(--soft);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock__body { padding: 18px; background: var(--surface-2); }

.mock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mock__title { font-size: .95rem; font-weight: 700; }
.mock__meta { font-size: .7rem; color: var(--soft); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat {
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .72rem; font-weight: 600; color: var(--soft); }
.stat__icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.stat__icon svg { width: 14px; height: 14px; }
.stat__icon--ok { background: var(--ok-bg); color: var(--ok); }
.stat__icon--warn { background: var(--warn-bg); color: var(--warn); }
.stat__icon--danger { background: var(--danger-bg); color: var(--danger); }
.stat__value { margin-top: 6px; font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat__value small { font-size: .95rem; font-weight: 600; color: var(--faint); }
.stat__foot { margin-top: 2px; font-size: .68rem; color: var(--soft); }
.stat__foot--ok { color: var(--ok); font-weight: 600; }
.stat__foot--danger { color: var(--danger); font-weight: 600; }

.meter { height: 5px; margin-top: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-500); }

.mock__panel {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mock__panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .8rem; font-weight: 700;
}
.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .78rem;
}
.mock-row:first-of-type { border-top: 0; }
.mock-row__name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar {
  width: 27px; height: 27px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: .63rem; font-weight: 700;
}
.avatar--slate { background: #64748b; }
.avatar--violet { background: var(--violet); }
.mock-row__label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row__sub { font-size: .68rem; color: var(--soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--ok-bg); color: #047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.badge-amber { background: var(--warn-bg); color: #b45309; box-shadow: inset 0 0 0 1px #fde68a; }
.badge-red { background: var(--danger-bg); color: #be123c; box-shadow: inset 0 0 0 1px #fecdd3; }
.badge-blue { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-200); }
.badge-violet { background: #f5f3ff; color: #6d28d9; box-shadow: inset 0 0 0 1px #ddd6fe; }
.badge-gray { background: var(--surface-3); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }

/* Telefone (app do servidor) */
.phone {
  width: 260px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  border-radius: 26px;
  background: var(--surface-2);
  overflow: hidden;
}
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px 5px;
  font-size: .62rem; font-weight: 600; color: var(--soft);
}
.phone__body { padding: 8px 14px 18px; }
.punch {
  margin: 6px auto 0;
  width: 132px; height: 132px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 12px 26px -10px rgb(37 99 235 / .8), 0 0 0 10px rgb(37 99 235 / .1);
  text-align: center;
}
.punch__time { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.punch__label { font-size: .66rem; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .08em; }
.phone__list { margin-top: 16px; }
.phone__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: .74rem;
}
.phone__list li span:first-child { color: var(--muted); }
.phone__list li b { font-variant-numeric: tabular-nums; }

/* Capturas reais do produto dentro da moldura */
.mock__shot { display: block; width: 100%; height: auto; background: var(--surface-2); }
.mock--shot .mock__body { padding: 0; }

.phone--shot { padding: 8px; }
.phone--shot .phone__screen { display: block; }
.phone--shot img { display: block; width: 100%; height: auto; border-radius: 26px; }

.shot-caption {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--soft);
  text-align: center;
}
.section--dark .shot-caption { color: #8fa0bd; }

/* Selo das lojas */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: transform .18s ease, background-color .18s ease;
}
.store:hover { background: #000; transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: block; font-size: .62rem; line-height: 1.2; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.store b { display: block; font-size: .92rem; line-height: 1.25; font-weight: 650; }

/* ---------- 9. Faixa de segmentos ---------- */
.segments {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.segments__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; justify-content: center; }
.segments__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.segment {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .93rem; font-weight: 600; color: var(--ink-2);
}
.segment svg { width: 19px; height: 19px; color: var(--brand-600); }

/* ---------- 10. Cards genéricos ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.05rem; }
.card p { margin-top: 9px; font-size: .93rem; color: var(--muted); }

.card-list { margin-top: 14px; display: grid; gap: 7px; }
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  color: var(--muted);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; font-size: .95rem; color: var(--muted); }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 1px; }
.check-list b { color: var(--ink); font-weight: 650; }
.section--dark .check-list li { color: #cbd5e1; }
.section--dark .check-list b { color: #fff; }
.section--dark .check-list svg { color: #34d399; }

/* ---------- 11. Dores / antes-depois ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; } }
.pain {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pain__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--danger);
}
.pain__tag svg { width: 15px; height: 15px; }
.pain h3 { margin-top: 12px; font-size: 1.02rem; }
.pain p { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.pain__fix {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
  color: var(--ink-2);
}
.pain__fix b { color: var(--brand-700); }

/* ---------- 12. Abas (superfícies) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .92rem; font-weight: 600; color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { border-color: var(--brand-300); color: var(--brand-700); }
.tab[aria-selected="true"] {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(37 99 235 / .9);
}

.tab-panel[hidden] { display: none; }
.tab-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .tab-panel__grid { grid-template-columns: 1fr; } }
.tab-panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.tab-panel .lead { margin-top: 14px; font-size: 1rem; }
.tab-panel .check-list { margin-top: 22px; }

/* ---------- 13. Compliance (bloco escuro) ---------- */
.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .file-grid { grid-template-columns: 1fr; } }
.file {
  padding: 20px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .12);
}
.file__code { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.file h3 { margin-top: 6px; font-size: .92rem; color: #e2e8f0; font-weight: 650; }
.file p { margin-top: 8px; font-size: .84rem; color: #9fb0cc; }

.terminal {
  margin-top: 26px;
  border-radius: var(--radius);
  background: #060b1c;
  border: 1px solid rgb(255 255 255 / .12);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgb(255 255 255 / .1);
  font-size: .72rem; color: #7f8db0;
}
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.terminal pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: .74rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.terminal .c-key { color: #93c5fd; }
.terminal .c-ok { color: #6ee7b7; }
.terminal .c-dim { color: #64748b; }

/* ---------- 14. Equipamentos ---------- */
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .device-grid { grid-template-columns: 1fr; } }
.device {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.device__icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--brand-700);
}
.device__icon svg { width: 19px; height: 19px; }
.device strong { display: block; font-size: .93rem; }
.device span { font-size: .78rem; color: var(--soft); }

/* ---------- 15. Timeline de implantação ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: .82rem; font-weight: 700;
}
.step::after {
  content: "";
  position: absolute;
  top: 15px; left: 38px; right: -18px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-200), var(--line));
}
.step:last-child::after { display: none; }
@media (max-width: 1000px) { .step::after { display: none; } }
.step h3 { margin-top: 20px; font-size: 1rem; }
.step p { margin-top: 7px; font-size: .88rem; color: var(--muted); }
.step__day { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-600); }

/* ---------- 16. Tabelas ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  padding: 13px 18px;
  background: var(--surface-2);
  font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--soft);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
tbody td {
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
tbody tr:first-child td { border-top: 0; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- 17. Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.plan--featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600), var(--shadow);
}
.plan__flag {
  position: absolute;
  top: -12px; left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.plan h3 { font-size: 1.2rem; }
.plan__for { margin-top: 7px; font-size: .87rem; color: var(--soft); min-height: 2.6em; }
.plan__price { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.plan__price strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.plan__price span { display: block; margin-top: 4px; font-size: .82rem; color: var(--soft); }
.plan .card-list { margin-top: 18px; flex: 1; }
.plan .btn { margin-top: 24px; }

/* ---------- 18. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px;
  font-size: .98rem; font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--soft);
  border-bottom: 2px solid var(--soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__answer { padding: 0 20px 20px; font-size: .93rem; color: var(--muted); }
.faq .faq__answer p + p { margin-top: 10px; }

/* ---------- 19. CTA final e formulário ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

.contact-list { margin-top: 30px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--brand-300); margin-top: 3px; }
.contact-list strong { display: block; font-size: .95rem; color: #fff; }
.contact-list span, .contact-list a { font-size: .9rem; color: #a9b8d1; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

.form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: .93rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(37 99 235 / .15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form__note { margin-top: 14px; font-size: .78rem; color: var(--soft); text-align: center; }
.form__note a { color: var(--brand-700); font-weight: 600; }

/* ---------- 20. Rodapé ---------- */
.footer {
  padding-block: 56px 30px;
  background: #0b1229;
  color: #94a3b8;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgb(255 255 255 / .1);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .brand__name { color: #fff; }
.footer__about { margin-top: 14px; max-width: 34ch; font-size: .88rem; line-height: 1.65; }
.footer h4 {
  margin-bottom: 14px;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #e2e8f0;
}
.footer ul { display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 24px;
  font-size: .82rem;
  color: #64748b;
}

/* ---------- 20b. Modal de acesso (identificador do órgão) ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / .55);
  backdrop-filter: blur(4px);
  animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0 } to { opacity: 1 } }

.modal__card {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-size: 1.25rem; }
.modal__head p { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.modal__close {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { background: #e2e8f0; color: var(--ink); }
.modal__close svg { width: 17px; height: 17px; }
.modal form { margin-top: 22px; }

.modal .field input { font-size: 1rem; }
.modal__hint { margin-top: 7px; font-size: .78rem; color: var(--soft); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice label b { font-size: .9rem; }
.choice label span { font-size: .74rem; color: var(--soft); }
.choice input:checked + label { border-color: var(--brand-600); background: var(--brand-50); }
.choice input:focus-visible + label { outline: 3px solid var(--brand-500); outline-offset: 2px; }

.remember {
  display: flex; align-items: center; gap: 9px;
  margin: 14px 0 4px;
  font-size: .86rem; color: var(--muted);
}
.remember input { width: 16px; height: 16px; accent-color: var(--brand-600); }

.modal__footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--soft);
  text-align: center;
}
.modal__footer a { color: var(--brand-700); font-weight: 600; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-700);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.footer .linkish { color: inherit; font-weight: inherit; text-decoration: none; }
.footer .linkish:hover { color: #fff; }

/* ---------- 21. Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 22. Páginas internas ---------- */
.page-hero {
  padding-block: clamp(46px, 6vw, 76px);
  background:
    radial-gradient(800px 400px at 85% -20%, rgb(37 99 235 / .38), transparent 60%),
    linear-gradient(160deg, #101c3f, var(--brand-950));
  color: #fff;
}
.page-hero h1 { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { margin-top: 18px; max-width: 62ch; color: #c7d2e5; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #93a3bd; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb svg { width: 13px; height: 13px; }

.prose-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }

.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 3px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc__title {
  margin-bottom: 8px;
  font-size: .73rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint);
}
.toc a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .89rem;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.is-active { border-left-color: var(--brand-600); color: var(--brand-700); font-weight: 600; background: var(--brand-50); }

.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section + .doc-section { margin-top: clamp(44px, 5vw, 66px); }
.doc-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.doc-section > p { margin-top: 14px; font-size: 1rem; color: var(--muted); line-height: 1.7; }
.doc-section > p + p { margin-top: 12px; }
.doc-section h3 { margin-top: 28px; font-size: 1.08rem; }

.callout {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  font-size: .93rem;
  color: var(--brand-950);
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--brand-600); margin-top: 2px; }
.callout--warn { background: var(--warn-bg); border-color: #fde68a; color: #78350f; }
.callout--warn svg { color: #d97706; }
.callout b { font-weight: 700; }
