/* Base CLICA Preview: tokens, reset e componentes partilhados (iguais ao clica.website). */
:root {
  --accent: #004AFF;
  --accent-soft: #8FB0FF;
  --ink: #0A0A0A;
  --ink-2: #2B2B29;
  --muted: #3D3D3A;
  --paper: #F3F3EF;
  --on-dark: #BDBDB8;
  --line: rgba(10, 10, 10, .12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-wipe: cubic-bezier(.7, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Raiz da plataforma (Início, 404) */
.cp-root { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.cp-root > main { flex: 1; }

/* Etiqueta "// texto" */
.cp-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-eyebrow--light { color: var(--accent-soft); }

/* Botões (com preenchimento a subir no hover, como no site) */
.cp-btn {
  --fill: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), color .3s;
}
.cp-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform: translateY(101%);
  transition: transform .45s var(--ease-wipe);
  border-radius: inherit;
}
.cp-btn:hover::before { transform: none; }
.cp-btn:hover { transform: translateY(-2px); color: var(--hover-ink, #fff); }
.cp-btn:active { transform: translateY(1px) scale(.97); }

.cp-btn--accent { background: var(--accent); color: #fff; }
.cp-btn--ink { background: var(--ink); color: #fff; --fill: var(--accent); }
.cp-btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.cp-btn--lg { font-size: 18px; padding: 18px 28px; min-height: 56px; }
.cp-on-dark .cp-btn--accent, .cp-cta-card .cp-btn--accent { --fill: #fff; --hover-ink: var(--ink); }

/* Link com sublinhado animado */
.cp-link { position: relative; text-decoration: none; }
.cp-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-wipe);
}
.cp-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Entrada suave */
@keyframes cp-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cp-fade { animation: cp-fade .9s ease both; animation-delay: var(--d, 0s); }

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

/* Cabeçalho */
.cp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 239, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, .08);
}
.admin-bar .cp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cp-header { top: 46px; } }
.cp-header-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cp-brand { display: flex; align-items: center; }
.cp-brand img { height: 48px; width: auto; display: block; }
.cp-header-links { display: flex; align-items: center; gap: 28px; font-family: var(--font-display); font-weight: 500; font-size: 16px; }

/* Rodapé */
.cp-footer { background: var(--ink); color: var(--on-dark); }
.cp-footer-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.cp-footer-logo { height: 48px; width: auto; display: block; }
.cp-footer-text { margin: 0; flex: 1 1 280px; font-size: 16px; line-height: 1.55; max-width: 420px; }
.cp-footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #fff; font-size: 16px; }
.cp-footer-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

@media (max-width: 640px) {
  .cp-header-in { padding: 12px 20px; }
  .cp-brand img { height: 40px; }
  .cp-header-links { gap: 16px; }
  .cp-header-links .cp-link { display: none; }
  .cp-footer-in { padding: 56px 20px 40px; }
  .cp-footer-bar { padding: 20px 20px 28px; }
}
