/*
 * Landing do Timbre365 (Volume 17, S48; revista com movimento em 2026-10-06).
 * Um arquivo de CSS, sem framework e sem biblioteca de animação: tudo é
 * transição e keyframe daqui, ligado pelo `site.js` (revelação na rolagem,
 * números contando, passos, inclinação da tela) e desligado por inteiro com
 * `prefers-reduced-motion`.
 *
 * O bloco :root abaixo é cópia de packages/shared/styles/tokens.css: página
 * estática não importa o shared. `test/tokens.test.mjs` (no `yarn test`)
 * reprova qualquer diferença nas cores e nas fontes (decisão (b)).
 */
:root {
  --fg: #1b2140;
  --fg-2: #2a3159;
  --fg-muted: #5c6079;

  --primary: #2f4bd6;
  --primary-2: #4e68e8;
  --primary-soft: #dce2fb;
  --on-primary: #ffffff;

  --accent: #c8452e;
  --accent-2: #a3361f;
  --accent-on-dark: #e8674f;

  --bg: #f6f3ec;
  --bg-2: #ece8df;
  --surface: #ffffff;
  --line: rgba(27, 33, 64, 0.12);
  --line-2: rgba(27, 33, 64, 0.06);

  --ok: #2e7d5b;
  --ok-fg: #256b4d;
  --ok-soft: #dff0e7;
  --warn: #d9932b;
  --warn-fg: #8a5a0b;
  --warn-soft: #fbeedb;
  --err: #a3361f;
  --err-soft: #f8e1dc;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(27, 33, 64, 0.06), 0 8px 24px -12px rgba(27, 33, 64, 0.18);

  --page: 1180px;
  --gutter: 16px;
  --ink-deep: #121732;
  --paper-on-dark: rgba(246, 243, 236, 0.72);
  --shadow-float: 0 30px 60px -20px rgba(18, 23, 50, 0.45), 0 12px 24px -12px rgba(18, 23, 50, 0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px / 1.55 var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.caps {
  font: 500 11px / 1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 8px;
}

.center {
  text-align: center;
}

.spaced {
  margin-top: 12px;
}

.more {
  margin-top: 32px;
}

/* ---------- Revelação na rolagem ---------- */

/* Sem JavaScript tudo aparece; com ele, o `site.js` põe `.in` quando o elemento entra na tela. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  .d1 {
    transition-delay: 0.08s;
  }
  .d2 {
    transition-delay: 0.16s;
  }
  .d3 {
    transition-delay: 0.24s;
  }
  .d4 {
    transition-delay: 0.32s;
  }
  .d5 {
    transition-delay: 0.4s;
  }
}

/* No topo, só deslize: esconder o texto atrasaria a primeira pintura que conta (LCP). */
.hero-in {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-in.h3 {
  animation-delay: 0.35s;
}
.hero-in.h4 {
  animation-delay: 0.45s;
}
.hero-in.h5 {
  animation-delay: 0.55s;
}

@keyframes rise {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 15px / 1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px -8px rgba(47, 75, 214, 0.65);
}

.btn-primary:hover {
  background: var(--primary-2);
  box-shadow: 0 12px 28px -8px rgba(47, 75, 214, 0.75);
}

.btn .arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--bg-2);
}

.btn-glass {
  background: rgba(246, 243, 236, 0.08);
  color: var(--bg);
  border-color: rgba(246, 243, 236, 0.22);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(246, 243, 236, 0.16);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

/* Na página inicial o cabeçalho começa transparente sobre o topo escuro e ganha fundo ao rolar. */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  color: var(--bg);
  --seal: var(--accent-on-dark);
}

.home .site-header.scrolled {
  background: rgba(18, 23, 50, 0.82);
  backdrop-filter: saturate(1.3) blur(14px);
  border-color: rgba(246, 243, 236, 0.08);
}

.brand {
  color: inherit;
  display: inline-flex;
  flex-shrink: 0;
}

.brand svg {
  width: 136px;
  height: auto;
}

.site-nav {
  display: none;
  gap: 2px;
  margin-left: 20px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.home .site-nav {
  border-color: rgba(246, 243, 236, 0.14);
  background: rgba(246, 243, 236, 0.06);
}

.site-nav a {
  color: inherit;
  opacity: 0.82;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition:
    opacity 0.2s,
    background-color 0.2s;
}

.site-nav a:hover {
  opacity: 1;
  background: rgba(127, 127, 160, 0.14);
}

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cta .entrar {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 6px;
}

@media (max-width: 420px) {
  .header-cta .entrar {
    display: none;
  }
}

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

/* ---------- Topo ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(47, 75, 214, 0.55), transparent 65%),
    radial-gradient(600px 380px at 92% 20%, rgba(232, 103, 79, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--fg) 70%, #232a52 100%);
  color: var(--bg);
  padding-top: 112px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 243, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 236, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Células da grade que acendem e apagam, como as do Conexa, em Cobalto. */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid span {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(78, 104, 232, 0.14);
  opacity: 0;
  animation: cell 7s ease-in-out infinite;
}

.hero-grid span:nth-child(1) {
  top: 112px;
  left: 8%;
  animation-delay: 0.2s;
}
.hero-grid span:nth-child(2) {
  top: 168px;
  left: 12%;
  animation-delay: 1.4s;
}
.hero-grid span:nth-child(3) {
  top: 224px;
  left: 4%;
  animation-delay: 2.6s;
}
.hero-grid span:nth-child(4) {
  top: 336px;
  left: 16%;
  animation-delay: 3.8s;
}
.hero-grid span:nth-child(5) {
  top: 112px;
  right: 10%;
  animation-delay: 0.8s;
}
.hero-grid span:nth-child(6) {
  top: 168px;
  right: 18%;
  animation-delay: 2s;
}
.hero-grid span:nth-child(7) {
  top: 280px;
  right: 6%;
  animation-delay: 3.2s;
}
.hero-grid span:nth-child(8) {
  top: 392px;
  right: 14%;
  animation-delay: 4.4s;
}
.hero-grid span:nth-child(9) {
  top: 56px;
  left: 28%;
  animation-delay: 5s;
}
.hero-grid span:nth-child(10) {
  top: 56px;
  right: 30%;
  animation-delay: 5.8s;
}
.hero-grid span:nth-child(11) {
  top: 280px;
  left: 24%;
  animation-delay: 4.8s;
  background: rgba(232, 103, 79, 0.16);
}
.hero-grid span:nth-child(12) {
  top: 224px;
  right: 26%;
  animation-delay: 1s;
  background: rgba(232, 103, 79, 0.16);
}
.hero-grid span:nth-child(n + 13) {
  display: none;
}

@keyframes cell {
  0%,
  100% {
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(78, 104, 232, 0.35), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.hero-copy {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  background: rgba(246, 243, 236, 0.06);
  font: 500 12px / 1.2 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--paper-on-dark);
}

.dot-live {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ad08b;
  flex-shrink: 0;
}

.dot-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3ad08b;
  animation: ping 2s var(--ease-out) infinite;
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero-title {
  margin: 22px 0 18px;
  color: var(--bg);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title .line {
  display: block;
}

/* Palavra por palavra, de baixo para cima. */
.hero-title .word {
  display: inline-block;
  animation: word-in 0.9s var(--ease-out) both;
}

.hero-title .line:first-child .word:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-title .line:first-child .word:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(40%) rotate(2deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.accent-line .word {
  background: linear-gradient(90deg, #a9b8ff 0%, #ffffff 45%, #a9b8ff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    word-in 0.9s var(--ease-out) both,
    shine 6s linear infinite;
}

.hero-title .accent-line .word:nth-child(1) {
  animation-delay: 0.3s, 0s;
}
.hero-title .accent-line .word:nth-child(2) {
  animation-delay: 0.38s, 0s;
}
.hero-title .accent-line .word:nth-child(3) {
  animation-delay: 0.46s, 0s;
}

@keyframes shine {
  to {
    background-position: -200% 0;
  }
}

.seal-dot {
  font-style: normal;
  color: var(--accent-on-dark);
  -webkit-text-fill-color: var(--accent-on-dark);
}

.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper-on-dark);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 18px;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--paper-on-dark);
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-checks li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2140' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 9px no-repeat,
    #3ad08b;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 76px;
  }

  .hero {
    padding-top: 136px;
  }
}

/* ---------- A tela do produto, em perspectiva ---------- */

.stage {
  position: relative;
  margin-top: 56px;
  padding-bottom: 72px;
  perspective: 1600px;
}

.stage-tilt {
  --tilt: 20deg;
  transform: rotateX(var(--tilt)) scale(0.96);
  transform-origin: 50% 0;
  transition: transform 0.1s linear;
  animation: stage-in 1.2s 0.5s var(--ease-out) both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    translate: 0 60px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.app-frame {
  border-radius: 16px;
  padding: 8px;
  background: rgba(246, 243, 236, 0.08);
  border: 1px solid rgba(246, 243, 236, 0.16);
  box-shadow:
    0 40px 120px -40px rgba(78, 104, 232, 0.6),
    var(--shadow-float);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 10px;
}

.app-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.25);
}

.app-bar em {
  margin: 0 auto;
  font: 500 11px var(--font-mono);
  font-style: normal;
  color: rgba(246, 243, 236, 0.55);
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(246, 243, 236, 0.07);
}

.app {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  min-height: 380px;
}

.app-side {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
}

.app-logo {
  width: 120px;
  margin: 2px 8px 14px;
  color: var(--fg);
}

.app-side b,
.app-side i {
  font-weight: 500;
  font-style: normal;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--fg-2);
}

.app-side i {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 12px;
}

.app-side b.active {
  background: var(--fg);
  color: var(--bg);
}

.app-main {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-head strong {
  font: 800 22px var(--font-display);
  letter-spacing: -0.03em;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ok-fg);
  background: var(--ok-soft);
  padding: 5px 10px;
  border-radius: 999px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.app-stats div,
.app-chart,
.app-alerts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.app-stats small,
.app-chart small,
.app-alerts small {
  display: block;
  color: var(--fg-muted);
  font-size: 12px;
}

.app-stats b {
  display: block;
  font: 800 26px / 1.2 var(--font-display);
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.app-row {
  display: grid;
  gap: 10px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin-top: 12px;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  transform-origin: bottom;
  animation: grow 1s var(--ease-out) both;
}

.bars .b1 {
  height: 46%;
  animation-delay: 1.1s;
}
.bars .b2 {
  height: 62%;
  animation-delay: 1.18s;
}
.bars .b3 {
  height: 55%;
  animation-delay: 1.26s;
}
.bars .b4 {
  height: 78%;
  animation-delay: 1.34s;
}
.bars .b5 {
  height: 70%;
  animation-delay: 1.42s;
}
.bars .b6 {
  height: 30%;
  animation-delay: 1.5s;
  opacity: 0.55;
}
.bars .b7 {
  height: 92%;
  animation-delay: 1.58s;
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.app-alerts p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--fg-2);
}

.tag {
  font: 600 11px var(--font-mono);
  padding: 2px 7px;
  border-radius: 6px;
}

.tag.warn {
  background: var(--warn-soft);
  color: var(--warn-fg);
}

.tag.ok {
  background: var(--ok-soft);
  color: var(--ok-fg);
}

@media (min-width: 640px) {
  .app-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .app-row {
    grid-template-columns: 1.6fr 1fr;
  }
}

@media (min-width: 900px) {
  .app {
    grid-template-columns: 200px 1fr;
  }

  .app-side {
    display: flex;
  }
}

/* Cartões flutuando por cima da tela. */
.float-card {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  animation:
    pop-in 0.9s var(--ease-out) both,
    float 7s ease-in-out infinite;
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 0.9;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.toast,
.entra {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

.toast b,
.entra b {
  display: block;
  font-size: 13px;
}

.toast small,
.entra small {
  color: var(--fg-muted);
  font-size: 12px;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ok-soft);
}

.toast-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ok-fg);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entra-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
}

.entra-logo svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.toast {
  left: -8px;
  top: 58%;
  animation-delay: 1.6s, 1.6s;
}

.entra {
  left: 4%;
  top: -24px;
  animation-delay: 1.3s, 2.4s;
}

.compose {
  display: none;
  right: -10px;
  top: 28%;
  width: 380px;
  overflow: hidden;
  font-size: 12.5px;
  animation-delay: 1.9s, 2.9s;
}

@media (min-width: 900px) {
  .toast,
  .entra {
    display: flex;
  }
}

@media (min-width: 1100px) {
  .compose {
    display: block;
  }
}

.compose-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-2);
  font-size: 12px;
}

.compose-bar .addin {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg);
}

.compose-bar .addin svg {
  width: 16px;
  height: 16px;
}

.compose-field {
  display: flex;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg-muted);
}

.compose-field b {
  font-weight: 500;
  color: var(--fg);
}

.compose-body {
  padding: 12px 14px 16px;
  color: var(--fg-2);
  line-height: 1.55;
}

.sig {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 12px;
  align-items: start;
}

.sig-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9cfe6, #e7e9f2);
  position: relative;
  flex-shrink: 0;
}

.sig .sig-photo {
  grid-row: span 4;
}

.sig-photo::after {
  content: '';
  position: absolute;
  inset: 22% 30% 38%;
  border-radius: 50%;
  background: rgba(27, 33, 64, 0.22);
  box-shadow: 0 16px 0 6px rgba(27, 33, 64, 0.16);
}

.sig-name {
  font: 700 14px / 1.3 var(--font-display);
  color: var(--fg);
}

.sig-role {
  color: var(--fg-2);
}

.sig-role span {
  color: var(--primary);
  font-weight: 600;
}

.sig-line {
  color: var(--fg-muted);
  font-size: 11.5px;
}

.sig-banner {
  grid-column: 1 / -1;
  margin-top: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--fg), #2c3570);
  color: var(--bg);
  padding: 9px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sig-banner b {
  white-space: nowrap;
  color: var(--accent-on-dark);
  font-weight: 600;
}

/* A assinatura entra linha por linha, depois que o cartão aparece. */
.compose .sig > * {
  animation: sig-in 0.6s var(--ease-out) both;
}

.compose .sig > :nth-child(1) {
  animation-delay: 2.5s;
}
.compose .sig > :nth-child(2) {
  animation-delay: 2.62s;
}
.compose .sig > :nth-child(3) {
  animation-delay: 2.74s;
}
.compose .sig > :nth-child(4) {
  animation-delay: 2.86s;
}
.compose .sig > :nth-child(5) {
  animation-delay: 2.98s;
}
.compose .sig > :nth-child(6) {
  animation-delay: 3.2s;
}

@keyframes sig-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Números ---------- */

.numbers {
  background: var(--fg);
  color: var(--bg);
  border-top: 1px solid rgba(246, 243, 236, 0.08);
  padding: 40px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.numbers-grid b {
  display: block;
  font: 800 36px / 1.05 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--bg);
  font-variant-numeric: tabular-nums;
}

.numbers-grid div > span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--paper-on-dark);
}

@media (min-width: 900px) {
  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .numbers-grid div {
    border-left: 1px solid rgba(246, 243, 236, 0.12);
    padding-left: 20px;
  }
}

/* ---------- Seções ---------- */

.section {
  position: relative;
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-bottom: 40px;
  max-width: 680px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

.section-head p {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px / 1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.page-title {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }

  h2 {
    font-size: 44px;
  }

  .page-title {
    font-size: 52px;
  }
}

/* ---------- Antes e depois ---------- */

.before-after {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.ba-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.ba-toggle {
  display: inline-flex;
  justify-self: start;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  gap: 4px;
}

.ba-toggle button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  font: 600 14px var(--font-text);
  color: var(--fg-muted);
  transition:
    background-color 0.25s,
    color 0.25s;
}

.ba-toggle button.on {
  background: var(--fg);
  color: var(--bg);
}

.ba-stack {
  position: relative;
  height: 340px;
}

.ba-card {
  position: absolute;
  left: 50%;
  width: min(380px, 92%);
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.9s var(--ease-out),
    border-color 0.6s,
    box-shadow 0.6s;
}

.ba-card b {
  display: block;
  font: 700 15px var(--font-display);
}

.ba-card em {
  display: block;
  font-style: normal;
  font-size: 13px;
  transition: opacity 0.5s;
}

.ba-line {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
}

.ba-card .good {
  color: var(--primary);
  font-weight: 600;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.ba-card .mess {
  color: var(--fg-muted);
}

/* Bagunçado: cada cartão num canto, torto, com outra letra e outra cor. */
.ba-card.c1 {
  top: 10px;
  transform: translateX(-62%) rotate(-5deg);
}
.ba-card.c2 {
  top: 120px;
  transform: translateX(-38%) rotate(4deg);
  font-family: Georgia, serif;
}
.ba-card.c2 b {
  font-family: Georgia, serif;
  text-transform: uppercase;
  color: #8a5a0b;
}
.ba-card.c3 {
  top: 230px;
  transform: translateX(-56%) rotate(-2deg);
}
.ba-card.c3 b {
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-weight: 400;
  text-transform: lowercase;
}
.ba-card.c2 .sig-photo,
.ba-card.c3 .sig-photo {
  border-radius: 6px;
  filter: grayscale(1) contrast(0.8);
}
.ba-card.c3 .sig-photo {
  opacity: 0.25;
}

/* Arrumado: alinhados, a mesma letra, a mesma marca. */
.ordered .ba-card {
  transform: translateX(-50%) rotate(0);
  border-color: rgba(47, 75, 214, 0.25);
  box-shadow: 0 16px 32px -18px rgba(47, 75, 214, 0.45);
}
.ordered .ba-card.c1 {
  top: 0;
}
.ordered .ba-card.c2 {
  top: 112px;
  transition-delay: 0.08s;
}
.ordered .ba-card.c3 {
  top: 224px;
  transition-delay: 0.16s;
}
.ordered .ba-card b,
.ordered .ba-card.c2 b,
.ordered .ba-card.c3 b {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  color: var(--fg);
}

.ordered .ba-card.c2 {
  font-family: var(--font-text);
}
.ordered .ba-card .sig-photo {
  border-radius: 50%;
  filter: none;
  opacity: 1;
}
.ordered .ba-card .mess {
  height: 0;
  opacity: 0;
  overflow: hidden;
}
.ordered .ba-card .good {
  height: auto;
  opacity: 1;
}

/* ---------- Como funciona ---------- */

.how {
  background: var(--surface);
}

.stepper {
  display: grid;
  gap: 10px;
  margin: 0 auto 28px;
  max-width: 980px;
}

.stepper button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: var(--fg);
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}

.stepper .num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font: 600 13px var(--font-mono);
  color: var(--fg-muted);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.stepper b {
  font: 700 15px var(--font-display);
}

.stepper small {
  color: var(--fg-muted);
  font-size: 13px;
}

.stepper [aria-selected='true'] {
  background: var(--surface);
  border-color: rgba(47, 75, 214, 0.4);
  box-shadow: 0 16px 32px -20px rgba(47, 75, 214, 0.5);
}

.stepper [aria-selected='true'] .num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.stepper .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
}

.stepper [aria-selected='true'] .progress {
  animation: progress var(--step-ms, 6s) linear forwards;
}

.stepper.paused .progress {
  animation-play-state: paused;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 900px) {
  .stepper {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-panels {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
}

.step-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.99);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    visibility 0.5s;
}

.step-panel.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.panel-note {
  text-align: center;
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 14px;
}

.terminal {
  border-radius: 14px;
  background: var(--ink-deep);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.08);
}

.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.2);
}

.term-bar em {
  margin-left: 8px;
  font: 500 12px var(--font-mono);
  font-style: normal;
  color: rgba(246, 243, 236, 0.55);
}

.terminal pre {
  margin: 0;
  padding: 18px 20px 22px;
  font: 400 13px / 1.9 var(--font-mono);
  color: var(--bg);
  white-space: pre-wrap;
  min-height: 220px;
}

.t-line {
  display: block;
}

.t-line i {
  font-style: normal;
  color: #a9b8ff;
  margin-right: 8px;
}

.t-line i.ok {
  color: #3ad08b;
}

.t-line.dim {
  color: rgba(246, 243, 236, 0.55);
}

.t-line.hl {
  color: #ffd3c8;
}

.step-panel.on .t-line {
  animation: sig-in 0.4s var(--ease-out) both;
}

.step-panel.on .l1 {
  animation-delay: 0.1s;
}
.step-panel.on .l2 {
  animation-delay: 0.7s;
}
.step-panel.on .l3 {
  animation-delay: 1.4s;
}
.step-panel.on .l4 {
  animation-delay: 2s;
}
.step-panel.on .l5 {
  animation-delay: 2.6s;
}
.step-panel.on .l6 {
  animation-delay: 3.3s;
}

.editor {
  display: grid;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  background: var(--bg);
}

@media (min-width: 640px) {
  .editor {
    grid-template-columns: 180px 1fr;
  }
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  align-content: start;
}

.editor-tools b {
  width: 100%;
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.editor-tools span {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .editor-tools span {
    width: 100%;
  }
}

.editor-canvas {
  position: relative;
  padding: 40px 24px;
  min-height: 260px;
  display: grid;
  place-items: center;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}

.ed-sig {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px dashed rgba(47, 75, 214, 0.45);
  font-size: 14px;
}

.ed-sig p {
  position: relative;
  line-height: 1.7;
}

.ed-sig .dim {
  color: var(--fg-muted);
  font-size: 13px;
}

.ed-name {
  font: 700 16px var(--font-display);
}

/* O campo do Entra ID vira o dado da pessoa. */
.ph {
  font: 500 12px var(--font-mono);
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 6px;
  border-radius: 5px;
}

.swap {
  display: inline-grid;
  vertical-align: baseline;
}

.swap > * {
  grid-area: 1 / 1;
  justify-self: start;
}

.val {
  opacity: 0;
}

.step-panel.on .ph {
  animation: ph-out 0.4s 1.6s forwards;
}

.step-panel.on .val {
  animation: sig-in 0.5s 2s var(--ease-out) forwards;
}

@keyframes ph-out {
  to {
    opacity: 0;
  }
}

.ed-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  opacity: 0;
}

.step-panel.on .ed-badge {
  animation: sig-in 0.5s 2.4s var(--ease-out) forwards;
}

.rules {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}

.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.rule em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

.rule .prio {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-2);
  font: 600 12px var(--font-mono);
}

.rule .to {
  font-size: 13px;
  color: var(--fg-muted);
}

.rule .to::before {
  content: '→ ';
  color: var(--accent);
}

@media (min-width: 640px) {
  .rule {
    grid-template-columns: auto 1fr auto;
  }

  .rule .prio {
    grid-row: auto;
  }
}

.rule-out {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
}

.rule-out svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent-on-dark);
  stroke-width: 2;
  stroke-linejoin: round;
}

.step-panel.on .rule,
.step-panel.on .rule-out {
  animation: rule-in 0.6s var(--ease-out) both;
}

.step-panel.on .r2 {
  animation-delay: 0.15s;
}
.step-panel.on .r3 {
  animation-delay: 0.3s;
}
.step-panel.on .rule-out {
  animation-delay: 0.8s;
}

@keyframes rule-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mudou no Entra ID ---------- */

.live {
  background: var(--bg);
}

.live-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .live-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.live-demo {
  display: grid;
  gap: 14px;
  align-items: center;
}

@media (min-width: 640px) {
  .live-demo {
    grid-template-columns: 1fr auto 1fr;
  }
}

.entra-card,
.live-sig {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.entra-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.entra-head small {
  margin-left: auto;
  color: var(--fg-muted);
}

.flabel {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 8px;
}

.field {
  position: relative;
  display: block;
  margin-top: 4px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  overflow: hidden;
}

.live .old,
.live .new {
  display: block;
  white-space: nowrap;
}

.live .new {
  position: absolute;
  left: 10px;
  top: 8px;
  opacity: 0;
}

.live .role .new {
  left: 0;
  top: 0;
}

.live .role {
  position: relative;
  min-height: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

/* Em laço: o cargo troca no Entra, a seta passa, a assinatura troca. */
.live.in .field .old {
  animation: swap-out 8s infinite;
}
.live.in .field .new {
  animation: swap-in 8s infinite;
}
.live.in .role .old {
  animation: swap-out-late 8s infinite;
}
.live.in .role .new {
  animation: swap-in-late 8s infinite;
}
.live.in .field {
  animation: field-focus 8s infinite;
}
.live.in .live-sig {
  animation: sig-flash 8s infinite;
}

@keyframes swap-out {
  0%,
  15% {
    opacity: 1;
    transform: none;
  }
  22%,
  88% {
    opacity: 0;
    transform: translateY(-8px);
  }
  95%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes swap-in {
  0%,
  18% {
    opacity: 0;
    transform: translateY(8px);
  }
  25%,
  85% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
  }
}

@keyframes swap-out-late {
  0%,
  40% {
    opacity: 1;
    transform: none;
  }
  47%,
  88% {
    opacity: 0;
    transform: translateY(-8px);
  }
  95%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes swap-in-late {
  0%,
  43% {
    opacity: 0;
    transform: translateY(8px);
  }
  50%,
  85% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
  }
}

@keyframes field-focus {
  0%,
  12%,
  30%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  15%,
  27% {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
  }
}

@keyframes sig-flash {
  0%,
  42%,
  70%,
  100% {
    box-shadow: var(--shadow-card);
    border-color: var(--line);
  }
  48%,
  60% {
    box-shadow: 0 0 0 4px var(--primary-soft);
    border-color: var(--primary);
  }
}

.live-arrow {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.live-arrow span {
  position: relative;
  width: 80px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.live-arrow span::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: travel 8s infinite;
}

@keyframes travel {
  0%,
  28% {
    transform: translateX(-120%);
  }
  42%,
  100% {
    transform: translateX(260%);
  }
}

.live-arrow small {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.live-sig {
  display: flex;
  gap: 14px;
  align-items: center;
}

.live-sig b {
  font: 700 15px var(--font-display);
}

.live-sig .dim {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ---------- Recursos ---------- */

.features-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.features {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.features li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
}

/* Brilho que segue o ponteiro (o `site.js` escreve --mx e --my). */
.features li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(47, 75, 214, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.features li:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 75, 214, 0.3);
  box-shadow: 0 24px 40px -24px rgba(47, 75, 214, 0.45);
}

.features li:hover::before {
  opacity: 1;
}

.features p {
  color: var(--fg-2);
  font-size: 14px;
}

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-bottom: 8px;
  box-shadow: 0 10px 20px -10px rgba(47, 75, 214, 0.7);
  transition: transform 0.35s var(--ease-out);
}

.features li:hover .ico {
  transform: rotate(-6deg) scale(1.06);
}

.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Cartão que sobra sozinho na última linha ocupa a linha inteira. */
  .features li:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

/* ---------- Preço ---------- */

.pricing-section {
  background: var(--surface);
}

.pricing {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.calc {
  display: grid;
  gap: 20px;
  align-content: start;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(78, 104, 232, 0.12), transparent 70%),
    var(--surface);
  border-color: rgba(47, 75, 214, 0.25);
  box-shadow: 0 30px 60px -36px rgba(47, 75, 214, 0.55);
}

.calc[hidden] {
  display: none;
}

.calc label,
.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  align-items: center;
}

.range {
  width: 100%;
  accent-color: var(--primary);
  height: 28px;
  cursor: pointer;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  font: 400 16px var(--font-text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.input.seats {
  text-align: center;
  font-weight: 600;
}

textarea.input {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.cycle {
  display: inline-flex;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg-2);
  gap: 4px;
  margin: 0;
}

.cycle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cycle label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.cycle input {
  position: absolute;
  opacity: 0;
}

.cycle span {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg-2);
  transition:
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.cycle span em {
  font-style: normal;
  font-size: 12px;
  color: var(--ok-fg);
  background: var(--ok-soft);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

.cycle input:checked + span {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(27, 33, 64, 0.16);
}

.cycle input:focus-visible + span {
  outline: 2px solid var(--primary);
}

.calc-result {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 6px;
}

.calc-total {
  font: 800 44px / 1.05 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.calc-detail {
  font-size: 13px;
  color: var(--fg-muted);
}

.tiers {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tiers caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 10px;
}

.tiers th {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: left;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
}

.tiers td {
  padding: 11px 8px 11px 0;
  border-bottom: 1px solid var(--line-2);
  transition:
    color 0.25s,
    background-color 0.25s;
}

.tiers td:not(:first-child),
.tiers th:not(:first-child) {
  text-align: right;
}

.tiers tr.on td {
  font-weight: 700;
  color: var(--primary);
  background: rgba(47, 75, 214, 0.06);
}

.price-line {
  font: 700 20px / 1.3 var(--font-display);
  margin-bottom: 8px;
}

.included {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-2);
}

.included li {
  padding-left: 22px;
  position: relative;
}

.included li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* ---------- Segurança ---------- */

.facts {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.facts li {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  display: grid;
  gap: 4px;
}

.facts p {
  font-size: 14px;
  color: var(--fg-2);
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
}

.security {
  background: linear-gradient(180deg, var(--fg), var(--ink-deep));
  color: var(--bg);
  overflow: hidden;
}

.security h2,
.security h3 {
  color: var(--bg);
}

.security .kicker {
  color: #a9b8ff;
}

.security-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -200px;
  background: radial-gradient(circle, rgba(78, 104, 232, 0.35), transparent 65%);
  pointer-events: none;
}

.security .facts li {
  border: 1px solid rgba(246, 243, 236, 0.1);
  background: rgba(246, 243, 236, 0.04);
  border-radius: 16px;
  padding: 22px;
  gap: 8px;
  transition:
    background-color 0.3s,
    transform 0.35s var(--ease-out);
}

.security .facts li:hover {
  background: rgba(246, 243, 236, 0.07);
  transform: translateY(-3px);
}

.security .facts p {
  color: var(--paper-on-dark);
}

.security .ico {
  background: rgba(78, 104, 232, 0.25);
  box-shadow: none;
}

.link-light {
  color: #c4ceff;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .security .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Perguntas ---------- */

.faq-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .faq-grid .section-head {
    position: sticky;
    top: 110px;
  }
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.faq details[open] {
  border-color: rgba(47, 75, 214, 0.3);
  box-shadow: 0 16px 32px -24px rgba(47, 75, 214, 0.5);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font: 600 15px / 1.4 var(--font-text);
  position: relative;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-a {
  overflow: hidden;
}

.faq details p {
  padding: 0 0 18px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Chamada final ---------- */

.cta-final {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(78, 104, 232, 0.55), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(232, 103, 79, 0.22), transparent 70%),
    var(--ink-deep);
  color: var(--bg);
  text-align: center;
}

.cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.cta-final h2 {
  color: var(--bg);
  max-width: 720px;
}

.cta-final p {
  color: var(--paper-on-dark);
  font-size: 17px;
  max-width: 560px;
}

/* O selo do Timbre365 em contorno, grande e lento, ao fundo. */
.cta-shapes i {
  position: absolute;
  border: 3px solid rgba(246, 243, 236, 0.08);
  border-radius: 28%;
  animation: drift 14s ease-in-out infinite;
}

.cta-shapes .s1 {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 30px;
}
.cta-shapes .s2 {
  width: 140px;
  height: 140px;
  right: 6%;
  top: -30px;
  animation-delay: -5s;
}
.cta-shapes .s3 {
  width: 90px;
  height: 90px;
  right: 22%;
  bottom: 20px;
  border-color: rgba(232, 103, 79, 0.25);
  animation-delay: -9s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  50% {
    transform: translate(18px, -16px) rotate(8deg);
  }
}

/* ---------- Formulário de cotação ---------- */

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-msg {
  font-size: 14px;
  min-height: 1em;
}

.form-msg.ok {
  color: var(--ok-fg);
}

.form-msg.err {
  color: var(--err);
}

.field-err {
  color: var(--err);
  font-size: 12px;
  font-weight: 400;
}

/* ---------- Páginas de texto (termos, privacidade, acordo, segurança) ---------- */

.doc {
  padding: 48px 0 72px;
}

.doc .wrap {
  max-width: calc(780px + 2 * var(--gutter));
}

.doc h1 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}

.doc .doc-meta {
  color: var(--fg-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.doc h3 {
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: var(--fg-2);
  font-size: 15px;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.doc code {
  font: 400 13px var(--font-mono);
  background: var(--bg-2);
  border-radius: 4px;
  padding: 1px 5px;
}

.doc-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 8px;
}

.doc-toc ol {
  margin: 8px 0 0;
}

.doc-toc a {
  color: var(--fg-2);
}

.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.doc .note {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
}

/* ---------- Ajuda ---------- */

.help-area {
  margin-top: 36px;
}

.help-area h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

@media (min-width: 768px) {
  .help-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.help-list a {
  display: grid;
  gap: 4px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--fg);
}

.help-list a:hover {
  border-color: var(--primary);
}

.help-list span {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--fg-2);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

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

.footer-grid a {
  color: var(--fg-2);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-brand svg {
  width: 140px;
  height: auto;
  color: var(--fg);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 280px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-base {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
}

.pbt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 12px;
}

.pbt svg {
  width: 16px;
  height: 16px;
}

.pbt b {
  font: 700 14px var(--font-display);
  color: #1c1917;
}

.pbt i {
  font-style: normal;
  color: #ff6b4a;
}

/* ---------- Impressão (o acordo de tratamento em PDF) ---------- */

@media print {
  .site-header,
  .site-footer,
  .doc-actions,
  .skip {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .doc {
    padding: 0;
  }

  .doc h2 {
    break-after: avoid;
  }

  a {
    color: inherit;
  }
}

/* ---------- Menos movimento ---------- */

/* Quem pediu menos movimento no sistema vê tudo parado, no estado final. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stage-tilt {
    --tilt: 0deg;
  }

  .hero-grid,
  .live-arrow span::after {
    display: none;
  }
}
