/* ─────────────────────────────────────────────────────────────
   Difusor — matéria impressa: campos de cor empilhados como páginas
   de uma revista. Ultramarino, papel, preto, lima ácido. Sem gradientes,
   sem cantos redondos, sem sombras suaves. Grão por cima de tudo.
   ───────────────────────────────────────────────────────────── */

:root {
  --blue: #1B2AE0;
  --blue-deep: #1520A8;
  --paper: #EFECE4;
  --ink: #0B0B0D;
  --lime: #D8FF3E;

  --tg: #26A5E4;
  --dc: #5865F2;
  --wa: #25D366;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rule: 2px;
  --pad: clamp(20px, 5vw, 88px);
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  cursor: auto;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grão sobre todos os campos de cor */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* cursor próprio (só ponteiro fino) */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 950; opacity: 0;
    width: 26px; height: 26px; margin: -13px 0 0 -13px;
    border: var(--rule) solid var(--lime); border-radius: 50%;
    pointer-events: none; will-change: transform;
    transition: background-color .18s, opacity .2s, border-color .25s;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.is-hot { background: color-mix(in srgb, var(--lime) 26%, transparent); }
  body[data-field="lime"] .cursor { border-color: var(--ink); }
  body[data-field="lime"] .cursor.is-hot { background: color-mix(in srgb, var(--ink) 20%, transparent); }
  body[data-field="paper"] .cursor { border-color: var(--blue); }
  body[data-field="paper"] .cursor.is-hot { background: color-mix(in srgb, var(--blue) 18%, transparent); }
}

/* ── campos ── */
.field { position: relative; padding: clamp(56px, 9vw, 132px) var(--pad); scroll-margin-top: 78px; }
.field--blue { background: var(--blue); color: var(--paper); }
.field--paper { background: var(--paper); color: var(--ink); }
.field--black { background: var(--ink); color: var(--paper); }
.field--lime { background: var(--lime); color: var(--ink); }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; }

/* ── nav: inverte sobre qualquer campo ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 800;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 34px);
  padding: 18px var(--pad);
  color: var(--paper); background: var(--blue);
  border-bottom: var(--rule) solid rgba(239,236,228,.22);
  transition: color .25s, background-color .25s, border-color .25s;
}
/* a nav veste a cor do campo que está por baixo dela */
body[data-field="black"] .nav { background: var(--ink); color: var(--paper); border-bottom-color: rgba(239,236,228,.2); }
body[data-field="paper"] .nav { background: var(--paper); color: var(--ink); border-bottom-color: rgba(11,11,13,.2); }
body[data-field="lime"] .nav { background: var(--lime); color: var(--ink); border-bottom-color: rgba(11,11,13,.28); }
body[data-field="blue"] .nav .nav__mark, body[data-field="black"] .nav .nav__mark { color: var(--lime); }
.nav__mark { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .01em; margin-right: auto; }
.nav__links { display: flex; gap: clamp(12px, 2vw, 26px); font-size: .9rem; font-weight: 500; }
.nav__links a { padding-bottom: 2px; border-bottom: var(--rule) solid transparent; }
.nav__links a:hover { border-color: currentColor; }
.langsw { display: inline-flex; gap: 6px; font-size: .82rem; font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.langsw span { opacity: .45; }
.langsw[data-lang="en"] span[data-opt="en"], .langsw[data-lang="pt"] span[data-opt="pt"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav__cta { border: var(--rule) solid currentColor; padding: 8px 16px; font-size: .86rem; font-weight: 700; }
.nav__cta:hover { background: #fff; color: #000; }

/* ── tipografia ── */
.hero__title, .h2, .cta__title {
  font-family: var(--display);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -0.015em;
  text-transform: none;
}
.h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 18ch; }
.field--paper p, .field--blue p, .field--black p, .field--lime p { font-family: var(--text); }

/* ── botões ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: var(--rule) solid currentColor; will-change: transform;
  transition: background-color .18s, color .18s;
}
.btn--solid { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--solid:hover { background: transparent; color: var(--lime); }
.btn--line { color: inherit; }
.btn--line:hover { background: var(--paper); color: var(--blue); border-color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn--ink:hover { background: transparent; color: var(--ink); }

/* ── 1 · capa ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: clamp(104px, 15vh, 168px); }
.hero__inner { width: min(100%, var(--wrap)); margin-inline: auto; }
.hero__title { font-size: clamp(2.9rem, 9.2vw, 9.6rem); line-height: .88; margin-bottom: clamp(28px, 5vw, 64px); }
.hero__title .line { display: block; overflow: hidden; }
@media (min-width: 760px) { .hero__title .line > span { white-space: nowrap; } }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(105%); }
.hero__title .line--indent { padding-left: clamp(0px, 12vw, 240px); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: end; border-top: var(--rule) solid currentColor; padding-top: 24px; }
.hero__lede { max-width: 46ch; font-size: 1.06rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__mark {
  position: absolute; top: clamp(70px, 12vw, 130px); right: clamp(-40px, -2vw, 0px);
  width: clamp(120px, 20vw, 280px); height: auto; color: var(--lime); opacity: .9;
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll {
  position: absolute; left: var(--pad); bottom: 22px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  writing-mode: vertical-rl; opacity: .75;
}

/* ── fitas ── */
.marq { overflow: hidden; padding: 10px 0; border-block: var(--rule) solid var(--ink); }
.marq--lime { background: var(--lime); color: var(--ink); }
.marq--blue { background: var(--blue); color: var(--lime); border-color: var(--lime); }
.marq__track { display: flex; width: max-content; gap: 0; animation: run 34s linear infinite; }
.marq--blue .marq__track { animation-direction: reverse; }
.marq__track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; padding-inline: .35em; white-space: nowrap; }
.marq__track i { font-style: normal; font-size: clamp(1.2rem, 2.4vw, 2rem); align-self: center; opacity: .6; }
@keyframes run { to { transform: translateX(-50%); } }

/* ── 2 · demo ── */
.demo__head { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: clamp(34px, 5vw, 64px); }
.demo__lede { max-width: 48ch; opacity: .8; }
.stage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stage__src { position: relative; }
@media (min-width: 1001px) { .stage__src { position: sticky; top: 108px; } }
.msg { border: var(--rule) solid var(--paper); padding: 22px 24px; background: var(--ink); }
.msg__head { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; opacity: .7; margin-bottom: 12px; }
.msg__text { font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.3; font-weight: 500; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ico--tg { color: var(--tg); }
.pub {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--lime); color: var(--ink); padding: 15px 28px;
  font-weight: 700; font-size: 1.02rem; cursor: pointer; border: var(--rule) solid var(--lime);
  transition: background-color .16s, color .16s; will-change: transform;
}
.pub:hover { background: transparent; color: var(--lime); }
.pub:disabled { opacity: .55; cursor: progress; }
.pub__dot { width: 9px; height: 9px; background: currentColor; border-radius: 50%; }
.stage__hint { margin-top: 14px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; opacity: .75; min-height: 1.2em; }
.stage__out { display: grid; gap: 14px; }
.frame { border: var(--rule) solid rgba(239,236,228,.22); opacity: .42; transition: opacity .35s, border-color .35s; }
.frame.is-live { opacity: 1; border-color: var(--app); }
.frame__head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: var(--rule) solid rgba(239,236,228,.18); font-size: .88rem; font-weight: 700; }
.frame__head .ico { color: var(--app); }
.frame__head span { margin-right: auto; }
.frame__tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border: 1px solid var(--lime); color: var(--lime); }
.frame__tag--wait { border-color: rgba(239,236,228,.4); color: rgba(239,236,228,.7); }
.frame__body { padding: 12px; }
.stage__count { margin-top: clamp(26px, 4vw, 48px); font-size: .9rem; opacity: .7; display: flex; align-items: baseline; gap: 10px; }
.stage__count b { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: .8; color: var(--lime); }

/* cópia em voo */
.ghost {
  position: fixed; z-index: 700; pointer-events: none;
  border: var(--rule) solid var(--lime); background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-size: .8rem; font-weight: 600; max-width: 260px;
  will-change: transform, opacity;
}

/* mockups nativos */
.dc { display: grid; grid-template-columns: 26px 1fr; gap: 8px; background: #313338; padding: 10px; font-size: .74rem; color: #DBDEE1; line-height: 1.35; }
.dc__avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; }
.av { display: block; width: 100%; height: 100%; }
.dc__col { min-width: 0; }
.dc__author { font-weight: 600; color: #F2F3F5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc__app { background: #5865F2; color: #fff; font-size: .6rem; padding: 0 4px; font-weight: 700; }
.dc__author time { color: #949BA4; font-size: .7rem; font-weight: 400; }
.dc__embed { margin-top: 6px; background: #2B2D31; border-left: 4px solid #57F287; padding: 8px 10px; display: grid; gap: 6px; }
.dc__title { font-weight: 700; color: #F2F3F5; }
.dc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.dc__field { display: flex; flex-direction: column; }
.dc__field b { color: #F2F3F5; font-size: .72rem; }
.dc__footer { color: #949BA4; font-size: .68rem; }

.xp { background: #000; border: 1px solid #2F3336; padding: 10px 12px; font-size: .78rem; color: #E7E9EA; line-height: 1.4; }
.xp__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.xp__avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.xp__who { display: flex; flex-direction: column; line-height: 1.15; }
.xp__who b { font-weight: 700; }
.xp__who span { color: #71767B; font-size: .74rem; }
.xp__text { word-break: break-word; }
.xp__tag { color: #1D9BF0; }
.xp__count { margin-top: 8px; font-size: .7rem; color: #71767B; text-align: right; font-variant-numeric: tabular-nums; }
.xp__count span { color: #E7E9EA; font-weight: 700; }

.wa { background: #0B141A; padding: 12px 10px; display: flex; justify-content: flex-end; }
.wa__bubble { position: relative; max-width: 92%; background: #005C4B; color: #E9EDEF; padding: 7px 9px 5px; font-size: .78rem; line-height: 1.4; }
.wa__text { word-break: break-word; }
.wa__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: .66rem; color: rgba(233,237,239,.6); margin-top: 2px; }
.wa__ticks { width: 15px; height: 10px; color: #53BDEB; }

/* ── 3 · custo ── */
.cost__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cost__copy p { max-width: 42ch; margin-top: 18px; }
.dial { border-top: var(--rule) solid var(--ink); }
.dial__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(11,11,13,.22); font-size: .95rem; font-weight: 500; }
.dial__row input {
  font: inherit; font-family: var(--display); font-size: 2rem; font-weight: 700;
  width: 3.6ch; text-align: right; background: transparent; border: 0; border-bottom: var(--rule) solid var(--ink);
  color: var(--ink); padding: 0 2px; -moz-appearance: textfield;
}
.dial__row input::-webkit-outer-spin-button, .dial__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dial__row input:focus { outline: none; background: var(--lime); }
.dial__out { display: flex; align-items: baseline; gap: 14px; padding-top: 22px; }
.dial__out b { font-family: var(--display); font-size: clamp(4rem, 11vw, 8.5rem); line-height: .8; font-weight: 800; }
.dial__out span { font-size: 1.05rem; font-weight: 600; max-width: 11ch; line-height: 1.2; }
.dial__note { margin-top: 10px; font-size: .95rem; opacity: .75; }

/* ── 4 · passos ── */
.steps { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; gap: 0; border-top: var(--rule) solid var(--ink); }
.step { display: grid; grid-template-columns: clamp(74px, 12vw, 190px) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); padding: clamp(22px, 3vw, 42px) 0; border-bottom: 1px solid rgba(11,11,13,.22); align-items: start; }
.step__n { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 8rem); line-height: .74; }
.step h3 { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: .92; margin-bottom: 10px; }
.step p { max-width: 58ch; }

/* ── 5 · tabela ── */
.apps__lede { max-width: 52ch; margin: 16px 0 clamp(26px, 4vw, 44px); }
.apps__scroll { overflow-x: auto; }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 15px 16px; vertical-align: top; border-bottom: 1px solid rgba(11,11,13,.2); }
.tbl thead th { border-bottom: var(--rule) solid var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.tbl thead th .ico { margin-right: 7px; vertical-align: -2px; }
.tbl thead th i { font-style: normal; font-family: var(--text); font-size: .72rem; font-weight: 500; opacity: .6; margin-left: 5px; }
.tbl tbody th { font-weight: 700; white-space: nowrap; }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: rgba(27,42,224,.07); }
.tbl code { font-family: var(--text); font-weight: 600; background: var(--lime); padding: 1px 6px; }

/* ── 6 · estado ── */
.state__list { list-style: none; margin: clamp(26px, 4vw, 48px) 0 0; padding: 0; border-top: var(--rule) solid currentColor; }
.state__row { display: grid; grid-template-columns: minmax(0,1.1fr) 110px 200px minmax(0,2fr); gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(239,236,228,.3); }
.state__app { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; }
.state__role { font-size: .82rem; opacity: .7; }
.state__flag { font-size: .78rem; font-weight: 700; border: 1px solid currentColor; padding: 4px 10px; width: fit-content; }
.state__flag--on { background: var(--lime); color: var(--blue); border-color: var(--lime); }
.state__txt { font-size: .95rem; opacity: .85; }

/* ── 7 · usos ── */
.uses { overflow: hidden; }
.uses__head { margin-bottom: clamp(26px, 4vw, 48px); }
.uses__head p { max-width: 52ch; opacity: .8; margin-top: 16px; }
.uses__rail { display: flex; gap: 18px; width: max-content; will-change: transform; padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); }
.use { width: min(78vw, 380px); border: var(--rule) solid rgba(239,236,228,.3); padding: 26px 24px 30px; display: grid; align-content: start; gap: 8px; }
.use__n { font-family: var(--display); font-size: 2.4rem; font-weight: 800; line-height: .8; color: var(--lime); }
.use h3 { font-family: var(--display); font-size: 1.9rem; line-height: .95; }
.use p { opacity: .8; font-size: .95rem; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.twin__half { border: var(--rule) solid rgba(239,236,228,.3); padding: 24px; }
.twin__half--lit { border-color: var(--lime); }
.twin__half h3 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 6px; }
.twin__half--lit h3 { color: var(--lime); }
.twin__half p { opacity: .8; }
.twin__dia { width: 100%; max-width: 260px; margin-top: 18px; fill: none; stroke: rgba(239,236,228,.55); stroke-width: 2; }
.twin__half--lit .twin__dia { stroke: var(--lime); }

/* ── 8 · cta ── */
.cta__in { display: grid; gap: 22px; justify-items: start; }
.cta__title { font-size: clamp(3rem, 9vw, 8rem); max-width: 14ch; }
.cta__lede { font-size: 1.15rem; max-width: 44ch; }
.cta__note { font-size: .86rem; max-width: 56ch; opacity: .75; }

/* ── rodapé ── */
.foot { padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.foot__in { display: grid; gap: 16px; }
.foot p { max-width: 70ch; opacity: .8; font-size: .92rem; }
.foot__sig { display: flex; justify-content: space-between; gap: 20px; font-family: var(--display); font-size: 1.1rem; font-weight: 700; opacity: 1; border-top: 1px solid rgba(239,236,228,.3); padding-top: 14px; }
/* assinatura: a palavra ocupa a largura toda e assenta no fundo da página.
   Selector com duas classes para ganhar a `.foot p` (que fixa .92rem). */
.foot .foot__big {
  font-family: var(--display); font-weight: 800; color: var(--lime);
  font-size: clamp(4.5rem, 27.5vw, 30rem); line-height: .82; letter-spacing: -0.025em;
  margin: clamp(28px, 5vw, 64px) calc(var(--pad) * -1) 0;
  padding-bottom: clamp(10px, 1.6vw, 24px);
  text-align: center; max-width: none; opacity: 1;
  user-select: none;
}

/* ── responsivo ── */
@media (max-width: 1000px) {
  .demo__head, .stage, .cost__grid { grid-template-columns: 1fr; }
  .state__row { grid-template-columns: minmax(0,1fr) auto; row-gap: 8px; }
  .state__role { display: none; }
  .state__txt { grid-column: 1 / -1; }
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .twin { grid-template-columns: 1fr; }
  .hero__title .line--indent { padding-left: 0; }
  .dial__out b { font-size: clamp(3.4rem, 22vw, 6rem); }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 10px; padding: 14px var(--pad); }
  .nav__mark { font-size: 1.3rem; }
  .nav__cta { padding: 7px 11px; font-size: .78rem; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; justify-content: center; }
}

/* ── movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq__track, .hero__mark { animation: none; }
  .js .hero__title .line > span { transform: none; }
  .cursor { display: none; }
}
