/* VARIÁVEIS */
:root {
  --bg: #f4f6fb;
  --bg-alt: #e9edf4;
  --card: #ffffff;
  --line: #e3e7ef;
  --track: #eef1f6;
  --text: #344767;
  --ink: #1f2a44;
  --muted: #5f6b85;
  --bar: #d9dfeb;
  --primary: #1d5fd1;
  --primary-ink: #174ea6;
  --primary-soft: #e6effc;
  --on-primary: #ffffff;
  --ok-bg: #e8f5df;
  --ok: #2a6b0f;
  --warn-bg: #fff3d6;
  --warn: #7a4f00;
  --bad-bg: #fdeaea;
  --bad: #b4231f;
  --shadow: 0 4px 18px rgba(31, 42, 68, .06);
  --shadow-lg: 0 18px 50px rgba(31, 42, 68, .14);
}

/* TEMA ESCURO */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1524;
    --bg-alt: #141c2f;
    --card: #1a2338;
    --line: #2a3550;
    --track: #243049;
    --text: #c9d2e6;
    --ink: #eef2fa;
    --muted: #9aa6c2;
    --bar: #33405e;
    --primary: #3b7bea;
    --primary-ink: #9cc0ff;
    --primary-soft: #1d2d4f;
    --on-primary: #ffffff;
    --ok-bg: #183222;
    --ok: #8fd47a;
    --warn-bg: #3a2e12;
    --warn: #f2c46b;
    --bad-bg: #3d1c1e;
    --bad: #ff9c97;
    --shadow: 0 4px 18px rgba(0, 0, 0, .3);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1524;
  --bg-alt: #141c2f;
  --card: #1a2338;
  --line: #2a3550;
  --track: #243049;
  --text: #c9d2e6;
  --ink: #eef2fa;
  --muted: #9aa6c2;
  --bar: #33405e;
  --primary: #3b7bea;
  --primary-ink: #9cc0ff;
  --primary-soft: #1d2d4f;
  --on-primary: #ffffff;
  --ok-bg: #183222;
  --ok: #8fd47a;
  --warn-bg: #3a2e12;
  --warn: #f2c46b;
  --bad-bg: #3d1c1e;
  --bad: #ff9c97;
  --shadow: 0 4px 18px rgba(0, 0, 0, .3);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .45);
}

/* BASE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-ink);
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

svg {
  flex: none;
}

.muted {
  color: var(--muted);
}

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

section[id] {
  scroll-margin-top: 68px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* HEADER */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}

.top.scrolled {
  box-shadow: var(--shadow);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
}

/* Logo do tema escuro: texto claro para aparecer no fundo escuro */
.logo-escuro,
:root[data-theme="dark"] .logo-claro {
  display: none;
}

:root[data-theme="dark"] .logo-escuro {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-claro {
    display: none;
  }

  :root:not([data-theme="light"]) .logo-escuro {
    display: block;
  }
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover {
  color: var(--primary-ink);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--primary-ink);
}

.menu-toggle,
.menu-toggle .ic-close,
.theme-toggle .ic-sun {
  display: none;
}

.menu-toggle[aria-expanded="true"] .ic-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .ic-close {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .ic-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .ic-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .ic-moon {
    display: none;
  }
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

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

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

.btn-primary:hover {
  background: var(--primary-ink);
  color: var(--on-primary);
}

:root[data-theme="dark"] .btn-primary:hover {
  background: #2f6ad3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary:hover {
    background: #2f6ad3;
  }
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn.done {
  background: var(--ok);
  color: var(--on-primary);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.btn-white {
  background: #ffffff;
  color: #174ea6;
}

.btn-white:hover {
  background: #eef3fd;
  color: #174ea6;
}

/* HERO */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  margin-top: 20px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.devices {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.devices span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* MOCKUP */
.mock {
  position: relative;
  min-height: 470px;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 56px;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
}

.side {
  flex: none;
  width: 150px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}

.side .it {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
}

.side .on {
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 700;
}

.side .side-brand {
  padding: 2px 6px 10px;
  gap: 8px;
}

.side .side-logo {
  display: block;
  width: 26px;
  height: 26px;
}

.side-brand b {
  color: var(--ink);
  font-size: 14px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.mock-greeting {
  color: var(--ink);
  font-size: 16px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.kpi b {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.kpi i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.kpi-ok {
  color: var(--ok);
}

.kpi-muted {
  color: var(--muted);
}

.kpi-warn {
  color: var(--warn);
}

.kpi-bad {
  color: var(--bad);
}

.chart-head {
  padding: 12px 12px 0;
  font-size: 12px;
}

.chart-head b {
  color: var(--ink);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding: 12px 12px 0;
}

.bars span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--bar);
}

.bars span.hi {
  background: var(--primary);
}

@keyframes crescer {
  from {
    transform: scaleY(0);
  }
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.pill-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill-ok::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.pill-primary {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 212px;
  background: var(--ink);
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .phone {
  background: #05080f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone {
    background: #05080f;
  }
}

.phone-in {
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.phone-title {
  color: var(--ink);
  font-size: 13px;
}

.ph-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-size: 12px;
}

.ph-item b {
  color: var(--ink);
  font-size: 12.5px;
}

.ph-item > b,
.phone-in .pill,
.phone-title {
  white-space: nowrap;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pill.pay-option {
  text-align: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill.pay-option.on {
  background: var(--primary-soft);
  color: var(--primary-ink);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.ph-total {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 800;
}

/* SECTIONS */
section.block {
  padding: 88px 0;
}

section.alt {
  background: var(--bg-alt);
}

.sec-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.sec-head h2,
.split h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.015em;
}

.sec-head p {
  font-size: 17px;
  color: var(--muted);
  margin-top: 14px;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 12px;
}

/* PARA QUEM */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

.chip .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-ink);
}

/* RECURSOS */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feat {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}

.dots {
  display: none;
}

.feat .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.feat h3 {
  font-size: 19px;
  font-weight: 800;
}

.feat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
}

.feat li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feat li svg {
  margin-top: 4px;
  color: var(--primary);
}

.feat .ic,
.chip .ic {
  transition: background .2s, color .2s;
}

@media (hover: hover) {
  .feat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .feat:hover .ic,
  .chip:hover .ic {
    background: var(--primary);
    color: var(--on-primary);
  }
}

/* VENDA POR QUILO */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split p.body {
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}

.checks .tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ok-bg);
  color: var(--ok);
  flex: none;
}

.scale {
  padding: 24px;
  max-width: 420px;
  margin-left: auto;
  width: 100%;
}

.scale h3 {
  font-size: 17px;
  font-weight: 800;
}

.scale .prod {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.scale .prod b {
  color: var(--ink);
}

.fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  padding: 0 14px;
}

.field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
}

.swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 52px;
  color: var(--muted);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.quick-btn {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.quick-btn:hover {
  color: var(--primary-ink);
}

.produtos {
  margin-top: 14px;
}

.quick-btn.on {
  background: var(--primary-soft);
  color: var(--primary-ink);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.scale .note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.scale .add {
  margin-top: 18px;
  width: 100%;
}

.scale .status {
  display: block;
  margin-top: 10px;
  min-height: 1.5em;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
}

.recursos-nota {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* COMO FUNCIONA */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: s;
}

.step {
  padding: 26px;
  position: relative;
}

.step .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
}

.step p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}

/* PLANOS */
.plano-tabs {
  display: none;
}

.planos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
}

.plano {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.plano h3 {
  font-size: 21px;
  font-weight: 800;
}

.preco {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.preco b {
  color: var(--ink);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.plano-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.plano-inclui {
  margin-top: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.plano ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plano-inclui + ul {
  margin-top: 10px;
}

.plano li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plano li svg {
  margin-top: 4px;
  color: var(--primary);
}

.plano-pro {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px #1d5fd1, var(--shadow-lg);
}

/* Faixa azul do Pro: mesma cor nos dois temas, para o texto branco ficar legível */
.plano-topo {
  padding: 28px;
  background: #1d5fd1;
  color: #ffffff;
}

.plano-topo h3,
.plano-topo .preco b {
  color: #ffffff;
}

.plano-topo .preco,
.plano-topo .plano-desc {
  color: #ffffff;
  opacity: .92;
}

.plano-topo .preco b {
  font-size: 42px;
}

.plano-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
}

.plano-base {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 14px;
}

.plano-base svg {
  margin-top: 3px;
}

.plano-base b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

@media (min-width: 721px) {
  .plano-pro {
    margin: -14px 0;
  }
}

.plano-selo {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: #ffffff;
  color: #174ea6;
  font-size: 12px;
}

/* FAQ */
.faq {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

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

.faq summary svg {
  transition: transform .2s;
  color: var(--muted);
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

/* CONTATO */
.cta {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}

.cta h2 {
  color: var(--on-primary);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.cta p {
  margin-top: 12px;
  font-size: 17px;
  opacity: .92;
  max-width: 560px;
}

/* FOOTER */
footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

/* ANIMAÇÕES (desligadas para quem prefere menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  /* Abertura do topo */
  .hero .wrap > div:first-child > * {
    animation: subir .7s cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }

  .screen {
    animation: aparecer .8s .2s cubic-bezier(.2, .7, .2, 1) both;
  }

  .phone {
    animation: subir .7s .45s cubic-bezier(.2, .7, .2, 1) both, flutuar 6s 1.3s ease-in-out infinite;
  }

  .phone-in .ph-item {
    animation: deslizar .4s ease-out both;
  }

  .phone-in .ph-item:nth-of-type(2) { animation-delay: .9s; }
  .phone-in .ph-item:nth-of-type(3) { animation-delay: 1.05s; }
  .phone-in .ph-item:nth-of-type(4) { animation-delay: 1.2s; }

  .bars span {
    transform-origin: bottom;
    animation: crescer .7s ease-out both;
  }

  .bars span:nth-child(1) { animation-delay: .5s; }
  .bars span:nth-child(2) { animation-delay: .56s; }
  .bars span:nth-child(3) { animation-delay: .62s; }
  .bars span:nth-child(4) { animation-delay: .68s; }
  .bars span:nth-child(5) { animation-delay: .74s; }
  .bars span:nth-child(6) { animation-delay: .80s; }
  .bars span:nth-child(7) { animation-delay: .86s; }

  .pill-ok::before {
    animation: pulsar 2s ease-in-out infinite;
  }

  /* Entrada das seções (a classe .anim é colocada pelo JS) */
  .anim {
    opacity: 0;
  }

  .anim.in {
    opacity: 1;
    animation: surgir .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 80ms) backwards;
  }

  /* Os ✓ se desenham */
  .feat.anim li path,
  .plano.anim li path,
  .checks .anim .tick path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
  }

  .feat.anim.in li path,
  .plano.anim.in li path,
  .checks .anim.in .tick path {
    animation: tracar .45s ease-out calc(var(--i, 0) * 80ms + .35s) forwards;
  }

  /* Campo calculado da janela Pesar */
  .field input.flash {
    animation: piscar .6s ease-out;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(.96);
  }
}

@keyframes flutuar {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes deslizar {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }
}

@keyframes tracar {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulsar {
  50% {
    opacity: .3;
  }
}

@keyframes piscar {
  from {
    background: var(--primary-soft);
    border-color: var(--primary);
  }
}

/* WHATSAPP NO CELULAR */
.mobile-cta {
  display: none;
}

/* RESPONSIVO */
@media (max-width: 960px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .grid3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .scale {
    margin-left: 0;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 20px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .top .wrap {
    gap: 8px;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .25s, visibility .25s;
  }

  .mobile-cta.show {
    transform: none;
    visibility: visible;
  }

  .mobile-cta .btn {
    width: 100%;
  }

  footer {
    padding-bottom: 104px;
  }

  .hero {
    padding: 44px 0 64px;
  }

  section.block {
    padding: 64px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  /* Para quem: 2 colunas */
  .chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .chip {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.25;
  }

  /* Recursos: carrossel de arrastar */
  .grid3 {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 6px 20px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }

  .grid3::-webkit-scrollbar {
    display: none;
  }

  .grid3 .feat {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .dots {
    display: flex;
    justify-content: center;
    gap: 2px;
  }

  .dots button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .dots button::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--bar);
    transition: width .25s, background .25s;
  }

  .dots button.on::before {
    width: 22px;
    background: var(--primary);
  }

  /* Venda por quilo: calculadora logo depois do título */
  .split {
    gap: 0;
  }

  .split > div:first-child {
    display: contents;
  }

  .split .kicker { order: 1; }
  .split h2 { order: 2; }
  .split .scale { order: 3; margin-top: 24px; }
  .split p.body { order: 4; margin-top: 28px; }
  .split .checks { order: 5; }

  /* Planos: um de cada vez, escolhido nos botões */
  .planos-box[data-ativo] .plano-tabs {
    display: flex;
    margin: 0 0 16px;
  }

  .planos {
    grid-template-columns: 1fr;
  }

  .planos-box[data-ativo="basico"] .plano-pro,
  .planos-box[data-ativo="pro"] .plano-basico {
    display: none;
  }

  .plano {
    padding: 24px;
  }

  .plano-pro {
    padding: 0;
  }

  .plano-topo {
    padding: 24px;
  }

  .plano-corpo {
    padding: 20px 24px 24px;
  }

  .plano-selo {
    top: 24px;
    right: 24px;
  }

  /* Como funciona: número ao lado do texto */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    padding: 20px;
  }

  .step .n {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .step p {
    margin-top: 4px;
  }

  .mock {
    min-height: 420px;
  }

  .screen {
    right: 0;
    bottom: 80px;
  }

  .side {
    display: none;
  }

  .phone {
    width: 196px;
    right: -6px;
  }

  .top .btn-sm span.long {
    display: none;
  }
}

@media (max-width: 420px) {
  .top .btn-sm {
    display: none;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .swap {
    height: 24px;
    width: 100%;
    transform: rotate(90deg);
  }
}
