/* Disparo Besco — landing page
   Tokens derivados do app (besco-dispatch/web/index.css): primária índigo
   235 65% 55%, verde de "entregue" 152 62% 36%, fundo 220 20% 97%. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-latin.woff2") format("woff2");
}

:root {
  --bg: hsl(220 20% 97%);
  --bg-alt: hsl(220 20% 94%);
  --surface: hsl(0 0% 100%);
  --surface-2: hsl(220 15% 96%);
  --fg: hsl(216 15% 15%);
  --fg-2: hsl(216 12% 38%);
  --fg-3: hsl(216 10% 44%);
  --border: hsl(220 15% 88%);
  --border-2: hsl(220 15% 82%);

  --primary: hsl(235 65% 55%);
  --primary-strong: hsl(235 65% 48%);
  --primary-fg: hsl(0 0% 100%);
  --primary-soft: hsl(235 65% 96%);
  --primary-soft-fg: hsl(235 60% 38%);

  --success: hsl(152 62% 36%);
  --success-soft: hsl(152 55% 94%);
  --info: hsl(205 80% 42%);
  --danger: hsl(0 72% 51%);
  --danger-soft: hsl(0 80% 96%);

  --cta-bg: hsl(235 55% 22%);
  --cta-bg-2: hsl(235 60% 30%);
  --cta-fg: hsl(0 0% 100%);

  --sombra-1: 0 1px 2px rgb(16 24 40 / .05), 0 4px 12px -4px rgb(16 24 40 / .08);
  --sombra-2: 0 1px 2px rgb(16 24 40 / .05), 0 16px 40px -16px rgb(16 24 40 / .18);
  --anel: 0 0 0 3px hsl(235 65% 55% / .35);

  --raio: 12px;
  --raio-g: 20px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec-y: clamp(64px, 9vw, 112px);

  --fonte: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: hsl(216 15% 11%);
    --bg-alt: hsl(216 15% 9%);
    --surface: hsl(216 15% 14%);
    --surface-2: hsl(216 13% 18%);
    --fg: hsl(220 15% 92%);
    --fg-2: hsl(220 12% 72%);
    --fg-3: hsl(220 10% 62%);
    --border: hsl(216 12% 24%);
    --border-2: hsl(216 12% 30%);

    --primary: hsl(235 70% 75%);
    --primary-strong: hsl(235 72% 80%);
    --primary-fg: hsl(216 15% 10%);
    --primary-soft: hsl(235 40% 22%);
    --primary-soft-fg: hsl(235 70% 85%);

    --success: hsl(152 50% 52%);
    --success-soft: hsl(152 35% 17%);
    --info: hsl(205 70% 60%);
    --danger: hsl(0 65% 62%);
    --danger-soft: hsl(0 35% 18%);

    --cta-bg: hsl(235 45% 18%);
    --cta-bg-2: hsl(235 50% 26%);

    --sombra-1: 0 1px 2px rgb(0 0 0 / .35);
    --sombra-2: 0 1px 2px rgb(0 0 0 / .4), 0 20px 48px -20px rgb(0 0 0 / .6);
    --anel: 0 0 0 3px hsl(235 70% 75% / .4);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.sprite { display: none; }
svg.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
strong { font-weight: 700; }

:focus-visible { outline: none; box-shadow: var(--anel); border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--estreito { max-width: 760px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.125rem;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--g { min-height: 50px; padding: 0 1.5rem; font-size: 1rem; }
.btn--primario {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 2px rgb(16 24 40 / .1), 0 4px 10px -3px hsl(235 65% 55% / .45);
}
.btn--primario:hover { background: var(--primary-strong); box-shadow: 0 2px 8px -2px hsl(235 65% 55% / .55); }
.btn--secundario { background: var(--surface); color: var(--fg); border-color: var(--border-2); box-shadow: 0 1px 2px rgb(16 24 40 / .05); }
.btn--secundario:hover { background: var(--surface-2); border-color: var(--fg-3); }
.btn--fantasma { background: transparent; color: var(--fg-2); }
.btn--fantasma:hover { background: var(--surface-2); color: var(--fg); }
.btn--claro { background: #fff; color: hsl(235 55% 22%); }
.btn--claro:hover { background: hsl(235 65% 96%); }
.btn--contorno { background: transparent; color: #fff; border-color: rgb(255 255 255 / .45); }
.btn--contorno:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

.btn-icone {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); cursor: pointer;
}

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topo__in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.marca__icone { width: 28px; height: 28px; color: var(--primary); }
.marca__nome { font-size: 1.125rem; }
.marca__sep { color: var(--fg-3); font-weight: 400; }
.marca__prod { font-weight: 500; color: var(--fg-2); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem;
  border-radius: 8px; color: var(--fg-2); font-weight: 500; font-size: .9375rem; text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav__contato { display: none !important; }
.topo__acoes { display: flex; align-items: center; gap: .5rem; }
.ico--x { display: none; }

@media (max-width: 860px) {
  .topo__in { gap: .75rem; }
  .topo__contato { display: none; }
  .btn-icone { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: .25rem; padding: .75rem var(--gutter) 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--sombra-2);
  }
  .nav a { min-height: 48px; font-size: 1.0625rem; }
  .nav__contato { display: inline-flex !important; }
  .topo.aberto .nav { display: flex; }
  .topo.aberto .ico--menu { display: none; }
  .topo.aberto .ico--x { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, hsl(235 65% 55% / .10), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, hsl(152 62% 36% / .07), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__texto { max-width: 600px; }
.selo {
  display: inline-flex; align-items: flex-start; gap: .5rem; line-height: 1.35;
  padding: .4rem .8rem .4rem .6rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-soft-fg);
  font-size: .8125rem; font-weight: 600; letter-spacing: .005em;
  margin-bottom: 1.25rem;
}
.selo .ico { width: 1rem; height: 1rem; }
h1 em { font-style: normal; color: var(--primary); }
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--fg-2); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.fatos { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9375rem; color: var(--fg-2); font-weight: 500; }
.fatos li { display: inline-flex; align-items: center; gap: .45rem; }
.fatos .ico { width: 1.1rem; height: 1.1rem; color: var(--success); stroke-width: 2.4; }

/* mock */
.hero__mock { position: relative; }
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio-g);
  box-shadow: var(--sombra-2); overflow: hidden;
}
.mock__barra { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock__pontos { display: inline-flex; gap: 6px; }
.mock__pontos i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock__url { font-size: .75rem; color: var(--fg-3); font-family: var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .2rem .6rem; }
.mock__corpo { padding: 1.25rem; }
.mock__cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mock__rotulo { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.mock__rotulo--sep { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mock__titulo { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin-top: .15rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.chip--vivo { background: var(--success-soft); color: var(--success); }
.chip--breve { background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border); }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.mock__progresso { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: 1rem; overflow: hidden; }
.mock__progresso span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); }
.mock__metas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1rem; }
.mock__metas div { display: flex; flex-direction: column; padding: .6rem .7rem; border-radius: 10px; background: var(--surface-2); }
.mock__metas b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mock__metas b.ok { color: var(--success); }
.mock__metas small { font-size: .6875rem; color: var(--fg-3); font-weight: 600; margin-top: .15rem; }
.extrato { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.extrato li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border); font-size: .8125rem; }
.st { width: 9px; height: 9px; border-radius: 50%; }
.st--ok { background: var(--success); }
.st--lida { background: var(--info); }
.st--nao { background: var(--danger); }
.extrato__num { font-family: var(--mono); color: var(--fg-2); font-size: .75rem; }
.extrato__status { font-weight: 600; }
.extrato__valor { color: var(--fg-3); font-weight: 500; font-size: .75rem; }
.extrato__valor--zero { color: var(--success); font-weight: 700; }
.mock__nota { text-align: center; margin-top: .75rem; font-size: .75rem; color: var(--fg-3); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__texto { max-width: 640px; }
  .hero__mock { max-width: 560px; }
}
@media (max-width: 480px) {
  .mock__corpo { padding: 1rem; }
  .mock__metas { grid-template-columns: repeat(2, 1fr); }
  .extrato li { grid-template-columns: auto 1fr auto; row-gap: .1rem; }
  .extrato .st { grid-column: 1; grid-row: 1 / 3; }
  .extrato__num { grid-column: 2; grid-row: 1 / 3; }
  .extrato__status, .extrato__valor { grid-column: 3; text-align: right; }
}

/* ---------- contexto ---------- */
.contexto { padding-bottom: clamp(16px, 3vw, 32px); }
.contexto__in {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  border-radius: var(--raio-g); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sombra-1);
  color: var(--fg-2); font-size: 1.0625rem;
}
.contexto__icone { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-fg); }
.contexto__icone .ico { width: 1.5rem; height: 1.5rem; }
.contexto__titulo { font-size: 1.125rem; color: var(--fg); margin-bottom: .35rem; }
.contexto strong { color: var(--fg); }
@media (max-width: 560px) {
  .contexto__in { flex-direction: column; gap: .9rem; font-size: 1rem; }
  .contexto__icone { width: 40px; height: 40px; }
}

/* ---------- seções ---------- */
.secao { padding: var(--sec-y) 0; }
.secao--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.secao__cab { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.rotulo { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.secao__sub { margin-top: 1rem; font-size: 1.125rem; color: var(--fg-2); }

/* níveis */
.niveis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.nivel {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--raio-g);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sombra-1);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nivel:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--sombra-2); }
.nivel__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: .25rem; }
.nivel__n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-soft-fg); font-weight: 800; font-size: .9375rem;
}
.nivel__ico { width: 1.5rem; height: 1.5rem; color: var(--fg-3); }
.nivel h3 { font-size: 1.375rem; }
.nivel__quem { font-weight: 600; color: var(--primary-soft-fg); font-size: .9375rem; margin-top: -.35rem; }
.nivel > p:not(.nivel__quem) { color: var(--fg-2); }
.nivel--destaque { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.nivel--destaque::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, hsl(235 65% 55% / .08), transparent 55%);
}
.nivel--breve .nivel__n { background: var(--surface-2); color: var(--fg-3); }
.nivel--breve h3, .nivel--breve .nivel__quem { color: var(--fg-2); }
.lista { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.lista li { position: relative; padding-left: 1.6rem; color: var(--fg-2); font-size: .9375rem; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--success-soft);
  -webkit-mask: none;
}
.lista li::after {
  content: ""; position: absolute; left: .28rem; top: calc(.42em + .22rem); width: .45rem; height: .28rem;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg);
}
@media (max-width: 760px) { .niveis { grid-template-columns: 1fr; } }

/* passos */
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: passo; }
.passo { position: relative; padding: 1.5rem; border-radius: var(--raio-g); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sombra-1); }
.passo__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-fg); margin-bottom: 1.1rem; }
.passo__ico .ico { width: 1.5rem; height: 1.5rem; }
.passo h3 { font-size: 1.125rem; display: flex; align-items: baseline; gap: .5rem; }
.passo__n { color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.passo p { margin-top: .6rem; color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 1000px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .passos { grid-template-columns: 1fr; } }

/* diferenciais */
.difs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.dif { padding: 1.5rem; border-radius: var(--raio-g); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sombra-1); }
.dif__ico { width: 1.5rem; height: 1.5rem; color: var(--primary); margin-bottom: .9rem; stroke-width: 2.1; }
.dif h3 { font-size: 1.125rem; }
.dif p { margin-top: .5rem; color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 960px) { .difs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .difs { grid-template-columns: 1fr; } }

/* faq */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--raio); background: var(--surface); box-shadow: var(--sombra-1); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; min-height: 56px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; border-radius: var(--raio);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { color: var(--fg-3); transition: transform .2s ease; }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq__item p { padding: 0 1.25rem 1.25rem; color: var(--fg-2); }

/* cta */
.cta { padding: var(--sec-y) 0; }
.cta__in {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: 24px; color: var(--cta-fg);
  background:
    radial-gradient(70% 90% at 100% 0%, hsl(235 70% 60% / .35), transparent 60%),
    linear-gradient(135deg, var(--cta-bg), var(--cta-bg-2));
  box-shadow: var(--sombra-2);
}
.cta h2 { color: #fff; }
.cta p { margin-top: .9rem; color: rgb(255 255 255 / .78); font-size: 1.0625rem; max-width: 52ch; }
.cta__botoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta .btn:focus-visible { box-shadow: 0 0 0 3px rgb(255 255 255 / .6); }
@media (max-width: 800px) {
  .cta__in { grid-template-columns: 1fr; }
  .cta__botoes { justify-content: flex-start; }
}

/* rodapé */
.rodape { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: clamp(32px, 5vw, 48px); }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; align-items: flex-start; }
.rodape__marca p { margin-top: .6rem; color: var(--fg-2); font-size: .9375rem; }
.rodape__links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.rodape__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); font-weight: 500; text-decoration: none; }
.rodape__links a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rodape__fim { padding: 1.25rem 0 2rem; margin-top: 1.5rem; border-top: 1px solid var(--border); color: var(--fg-2); font-size: .875rem; }

/* ---------- reveal sutil ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revela { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
  .js .revela.visivel { opacity: 1; transform: none; }
}
