/* ==========================================================================
   SecureSpot — site institucional (estático)
   Paleta e tipografia inspiradas no design system do produto.
   ========================================================================== */

:root {
  /* Superfície */
  --bg-canvas: #f5f6fa;
  --bg-card: #ffffff;
  --bg-dark: #0f1623;
  --border: #e2e4ea;

  /* Primária */
  --primary: #0d9e76;
  --primary-hover: #0b7d5e;
  --primary-dim: rgba(13, 158, 118, 0.1);

  /* Texto */
  --on-surface: #171d1a;
  --on-surface-variant: #3d4a43;
  --muted: #9aaaa2;
  --on-dark: #e7ecea;
  --on-dark-muted: #9fb0aa;

  /* Semânticas */
  --warning: #7d5700;
  --warning-dim: rgba(125, 87, 0, 0.1);

  /* Escala */
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1080px;
  --maxw-prose: 760px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Sora", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  font-weight: 600;
  line-height: 1.2;
  color: var(--on-surface);
  margin: 0 0 0.5em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--on-surface);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 26px;
  width: auto;
  display: block;
}

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

.nav a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.nav a:hover {
  color: var(--on-surface);
  background: var(--primary-dim);
  text-decoration: none;
}

/* ---------- Botões ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--on-surface-variant);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--on-surface);
  text-decoration: none;
}

/* ---------- Hero ------------------------------------------------------ */
.hero {
  padding: 88px 0 72px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--on-surface-variant);
  max-width: 52ch;
  margin: 18px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Seções ---------------------------------------------------- */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--on-surface-variant);
  margin: 12px 0 0;
}

/* ---------- Cards de recurso ------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-dim);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--on-surface-variant);
  font-size: 0.92rem;
  margin: 6px 0 0;
}

/* ---------- CTA / contato --------------------------------------------- */
.contact {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--on-dark);
}

.contact h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact p {
  color: var(--on-dark-muted);
  max-width: 48ch;
  margin: 12px auto 28px;
}

.contact .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ---------- Footer ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 24px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .brand {
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a,
.site-footer small {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav a:hover {
  color: var(--on-surface-variant);
}

/* ---------- Página de conteúdo (Política) ----------------------------- */
.doc {
  padding: 56px 0 72px;
}

.doc .prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.doc .doc-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.notice {
  background: var(--warning-dim);
  border: 1px solid rgba(125, 87, 0, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--warning);
  margin-bottom: 32px;
}

.notice strong {
  color: var(--warning);
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.doc section {
  margin-bottom: 34px;
  scroll-margin-top: 80px;
}

.doc section h2 {
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.doc section h3 {
  font-size: 1.02rem;
  margin-top: 20px;
}

.doc p,
.doc li {
  color: var(--on-surface-variant);
}

.doc ul,
.doc ol.list {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.placeholder {
  color: var(--warning);
  background: var(--warning-dim);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
}

.back-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
}

/* ---------- Responsivo ------------------------------------------------ */
@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .contact {
    padding: 36px 22px;
  }
  .nav a[data-hide-sm] {
    display: none;
  }
}
