/* ============================================================
   SIP-CORP — landing v1 (FASE 3, DEC-0029)
   Dark tech · Space Grotesk / Inter / JetBrains Mono (self-hosted)
   Zero JS · mobile-first · alvos ≥44px · contraste AA
   ============================================================ */

/* ---------- Fontes self-hosted (subset latin, 60,9KB total) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SG-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SG-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JBM-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JBM-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #070B14;
  --bg-raised: #0B1120;
  --bg-proof: #05060d;
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --magenta: #FF2FD6;
  --text: #F4F7FB;
  --muted: #9AA6B8;
  --faint: #5E6B7E;
  --border: #14303E;
  --whatsapp: #25D366; /* RESERVADO: entra via flag (§8 da copy v1.1, DEC-0009) — não usado no lançamento */
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-decoration-color: rgba(34, 211, 238, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(30px, 8.5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

h3 { font-size: 18px; font-weight: 500; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121A;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-hyphen { color: var(--cyan); }

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 0; /* alvo de toque */
}
.site-nav a:hover { color: var(--text); }

@media (min-width: 880px) {
  .site-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
  background:
    radial-gradient(520px 320px at 50% -80px, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(720px 420px at 85% -140px, rgba(34, 211, 238, 0.07), transparent 70%);
}

.hero .container { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 24px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.65;
  max-width: 760px;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.micro {
  color: var(--faint);
  font-size: 13px;
  margin: 28px auto 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: filter 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--cyan);
  color: #04121A;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); }

.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ---------- Seções ---------- */
.section { padding-block: 88px; }

.section-sub {
  color: var(--muted);
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 17px;
}

.section-note {
  color: var(--faint);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 48px;
}

/* ---------- Cards de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.card h3 {
  color: var(--cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* nó da trilha — motivo de auditoria da marca, sem numerais */
.card h3::before,
.diff h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--cyan);
  flex-shrink: 0;
}

.card-desc { color: var(--text); margin: 0 0 16px; }

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

.card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1.5px;
  background: var(--cyan);
}

/* ---------- Diferenciais ---------- */
.diffs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 56px;
}

.diff {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

@media (min-width: 960px) {
  .diffs { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .diff { border-top: none; border-top: 1px solid var(--border); padding: 32px 0 0; }
}

.diff h3 { margin-bottom: 12px; font-size: 20px; display: flex; align-items: center; gap: 10px; }

.diff p { color: var(--muted); margin: 0; font-size: 15.5px; }

.num-destaque { color: var(--text); font-weight: 600; }

/* ---------- Faixa de prova (cyberpunk — magenta EXCLUSIVO daqui) ---------- */
.proof {
  margin-top: 72px;
  background:
    radial-gradient(560px 420px at 0% 30%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(520px 420px at 100% 80%, rgba(255, 47, 214, 0.08), transparent 65%),
    var(--bg-proof);
  border-block: 1px solid var(--border);
  padding-block: 72px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .proof-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}

.proof-copy h2 {
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
}

.proof-copy p {
  color: #C6CFDB;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.proof-frame {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.proof-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #101623;
  border-bottom: 1px solid var(--border);
  min-height: 40px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; opacity: 0.55; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.proof-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(34, 211, 238, 0.045) 0px,
      rgba(34, 211, 238, 0.045) 1px,
      transparent 1px,
      transparent 7px
    ),
    var(--bg-proof);
}

.proof-placeholder-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin: 0;
  padding-inline: 24px;
  text-align: center;
}

.proof-placeholder-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  margin: 0;
  padding-inline: 24px;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 880px; }

details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}

details[open] { border-color: rgba(34, 211, 238, 0.35); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}

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

summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--cyan);
  flex-shrink: 0;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background: radial-gradient(640px 320px at 50% 110%, rgba(34, 211, 238, 0.1), transparent 70%);
}

.cta-final .section-sub { margin-inline: auto; }

.cta-final .btn-lg { margin-top: 40px; }

.expectativa {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  margin: 20px 0 0;
}

/* ---------- Página de privacidade (Parte A integral — Legal v1.0) ---------- */
.legal-container { max-width: 760px; }

.legal-container h2 {
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-version {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin: 20px 0 0;
}

.legal-container strong { color: var(--text); }

.legal-container ul,
.legal-container ol {
  margin: 16px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.legal-container li {
  font-size: 15.5px;
  line-height: 1.65;
  padding-inline-start: 4px;
}

.legal-container li + li { margin-top: 10px; }

.legal-container code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 6px;
  padding: 1px 7px;
}

.legal-table-wrap { margin-top: 16px; overflow-x: auto; }

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-table th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table td { color: var(--muted); }

/* Mobile: tabela empilha em cards rotulados — a coluna "Base legal" nunca sai da viewport */
@media (max-width: 639px) {
  .legal-table { min-width: 0; }
  .legal-table thead { display: none; }
  .legal-table tbody,
  .legal-table tr,
  .legal-table td { display: block; }
  .legal-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-raised);
  }
  .legal-table tbody { display: grid; gap: 12px; }
  .legal-table td {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }
  .legal-table td:last-child { border-bottom: none; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
  }
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  margin: 56px 0 0;
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding-top: 56px;
}

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

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 5fr 4fr 3fr; }
}

.footer-brand .brand-word { font-size: 18px; }

.footer-tagline { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 320px; }

.footer-heading {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}

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

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 0;
  display: inline-block;
}
.footer-col a:hover { color: var(--cyan); }

.cnpj-placeholder { color: var(--faint); font-size: 14.5px; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: 20px 28px;
}

.footer-legal p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.footer-legal a { color: var(--muted); }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
