/* =========================================================================
   MODELO EDITORIAL PREMIUM — tokens + base
   Banco: identidade/modelos-design/editorial-premium/MODELO.md

   Uso: <link rel="stylesheet" href="tokens.css"> ou colar no <style> da página.
   Skin: <html data-skin="nextx-dark">  (padrão) | "nextx-light" | "creme-editorial"

   Fontes esperadas (Google):
   Newsreader ital 500,600 · Manrope 400,500,600,700,800
   ========================================================================= */

/* ---------- SKINS ---------- */
:root,
[data-skin="nextx-dark"] {
  --bg: #04060b;
  --surface: #080d17;
  --surface-2: #0e1728;
  --surface-3: #121d31;
  --border: #16223a;
  --border-strong: #23344f;
  --fg: #d9e6f5;
  --fg-strong: #ffffff;
  --muted: #6f819c;
  --brand: #3ea8ff;
  --brand-light: #6fe0ff;
  --brand-deep: #1a6fe0;
  --ink: #04101f;
  --shadow: 0 22px 54px -36px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 12px 34px -22px rgba(0, 0, 0, 0.8);
}

[data-skin="nextx-light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --surface-3: #e4ecf7;
  --border: #dce5f0;
  --border-strong: #c6d4e6;
  --fg: #0a1020;
  --fg-strong: #000000;
  --muted: #5a6b84;
  --brand: #1c74d6;
  --brand-light: #3ea8ff;
  --brand-deep: #0f4fa0;
  --ink: #ffffff;
  --shadow: 0 18px 50px -30px rgba(16, 32, 60, 0.18);
  --shadow-soft: 0 10px 30px -20px rgba(16, 32, 60, 0.16);
}

/* Alternativa quente. NÃO usar em material da marca NextX (o azul é obrigatório). */
[data-skin="creme-editorial"] {
  --bg: #f6f0e9;
  --surface: #ffffff;
  --surface-2: #ece2d2;
  --surface-3: #e2d6c2;
  --border: #ddd0bd;
  --border-strong: #c9b79e;
  --fg: #110300;
  --fg-strong: #000000;
  --muted: #685c54;
  --brand: #611609;
  --brand-light: #8a2412;
  --brand-deep: #3d0d05;
  --ink: #ffffff;
  --shadow: 0 18px 50px -30px rgba(60, 30, 10, 0.2);
  --shadow-soft: 0 10px 30px -20px rgba(60, 30, 10, 0.16);
}

/* ---------- ESCALA / RITMO (não muda com a skin) ---------- */
:root {
  --brand-grad: linear-gradient(135deg, #5bd6ff, #3ea8ff 48%, #1c74d6);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 40px;
  --section-y: 150px;
  --block-gap: 70px;
  --card-gap: 20px;

  --r-card: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1199px) {
  :root {
    --section-y: 120px;
    --block-gap: 60px;
  }
}
@media (max-width: 809px) {
  :root {
    --gutter: 20px;
    --section-y: 80px;
    --block-gap: 60px;
    --r-card: 14px;
  }
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* regra: nunca rolar de lado */
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- TIPOGRAFIA ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--fg);
}
.h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}
.h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}
.h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
/* A segunda oração da headline — a ÚNICA parte colorida. */
.accent {
  color: var(--brand);
}
.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44ch;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- LAYOUT ---------- */
.section {
  padding-block: var(--section-y);
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}
@media (max-width: 809px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}

/* ---------- COMPONENTES ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--brand);
  /* estrela de 4 pontas */
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card--hover:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 30%, var(--border));
}
/* Card âncora dos planos: o do meio, invertido. */
.card--anchor {
  background:
    linear-gradient(150deg, color-mix(in oklab, var(--brand-deep) 30%, var(--surface)), var(--surface) 62%);
  border-color: color-mix(in oklab, var(--brand) 34%, var(--border));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  min-height: 48px; /* tap target */
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--brand-grad);
  color: var(--ink);
}
/* Assinatura: uma máscara da cor varre da esquerda pra direita no hover. */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.btn--primary:hover::before {
  transform: scaleX(1);
}
.btn--primary:hover {
  color: var(--bg);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn--ghost:hover {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border-strong));
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
@media (max-width: 809px) {
  .btn {
    width: 100%;
  }
}

/* Lista de checagem dos planos */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  padding-block: 6px;
}
.check::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex: none;
  line-height: 1.5;
}
.check--no {
  opacity: 0.45;
}
.check--no::before {
  content: "✕";
  color: var(--muted);
}

/* Passo numerado com fio vertical ligando os círculos */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.step__num {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fg);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 64px;
  bottom: -48px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
}

/* Acordeão — anima sem saber a altura */
.acc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.acc + .acc {
  margin-top: 12px;
}
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.acc__plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease);
}
.acc[open] .acc__plus {
  transform: rotate(45deg);
}
.acc__body {
  display: grid;
  grid-template-rows: 1fr;
  padding: 0 24px 22px;
  color: var(--muted);
  max-width: 70ch;
}

/* Marquee infinito */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- MOVIMENTO ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.reveal:nth-child(5) {
  transition-delay: 0.24s;
}
.reveal:nth-child(6) {
  transition-delay: 0.3s;
}

::selection {
  background: color-mix(in oklab, var(--brand) 32%, transparent);
  color: var(--fg-strong);
}
:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

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