/* Alpha Net – estilos do site
   Paleta e tipografia conforme o Manual de Identidade Visual v1.0 */

@font-face {
  font-family: "DejaVu Sans";
  src: url("/assets/fonts/DejaVuSans.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans";
  src: url("/assets/fonts/DejaVuSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --azul-eletrico: #087fe7;
  --ciano: #32ceef;
  --azul-profundo: #07111f;
  --prata: #dde3ec;
  --branco: #f6f8fc;

  /* Interface */
  --bg: var(--azul-profundo);
  --bg-alt: #0a1828;
  --surface: #0f2038;
  --surface-2: #14294a;
  --border: rgba(221, 227, 236, 0.1);
  --border-strong: rgba(221, 227, 236, 0.2);
  --text: var(--branco);
  --text-2: #a7b4c6;
  --text-3: #7f8da2;
  --primary: var(--azul-eletrico);
  --primary-hover: #1a8ef5;
  --accent: var(--ciano);
  --ok: #34d399;
  --warn: #fbbf24;
  --whatsapp: #25d366;

  --font: "DejaVu Sans", "Bitstream Vera Sans", Verdana, system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(8, 127, 231, 0.45), 0 12px 40px rgba(8, 127, 231, 0.22);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--branco); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--accent); color: var(--text); }
.btn--whatsapp { background: var(--whatsapp); color: #062b14; }
.btn--whatsapp:hover { background: #3ee07f; color: #062b14; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand__logo { width: 48px; height: 48px; border-radius: 10px; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; font-style: italic; }
.brand__name span { color: var(--primary); }

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 15px;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__list a[aria-current="page"] { color: var(--text); background: rgba(8, 127, 231, 0.18); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 17px; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 16px; }
  .brand__logo { width: 42px; height: 42px; }
  .site-header__inner { gap: 12px; }
  .nav__login { padding: 8px 12px; }
}

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--simples { display: flex; margin: 0 0 24px; line-height: 1.4; }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(28px, 4vw, 40px); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(8, 127, 231, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 32px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--accent); width: 18px; height: 18px; }
.hero__visual { display: flex; justify-content: center; }
.hero__logo {
  width: min(100%, 440px); height: auto; aspect-ratio: 1; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(8, 127, 231, 0.25), 0 0 0 1px var(--border);
}
/* .hero.hero--page: precisa vencer a regra .hero do celular (@media max-width: 900px) */
.hero.hero--page { padding: 48px 0 0; }
.hero--page::before { display: none; }
.hero--page .hero__title { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 0; }
.hero--page + .section { padding-top: 32px; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__logo { width: min(72vw, 320px); border-radius: 22px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Cartões / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-2); margin: 0; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(8, 127, 231, 0.16); color: var(--accent);
}
.card__icon .icon { width: 24px; height: 24px; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 24px 24px;
}
.plan--featured { background: linear-gradient(180deg, #11305a 0%, var(--surface) 70%); border-color: transparent; box-shadow: var(--glow); }
.plan__badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: var(--azul-profundo);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan__speed { margin: 0; line-height: 1; font-style: italic; }
.plan__num { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }
.plan__unit { font-size: 22px; font-weight: 700; color: var(--accent); }
.plan__for { color: var(--text-2); font-size: 14px; margin: 10px 0 20px; min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.plan__cur { font-size: 16px; color: var(--text-2); }
.plan__val { font-size: 34px; font-weight: 700; }
.plan__per { color: var(--text-2); font-size: 15px; }
.plan__list { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan__list li { display: flex; gap: 10px; font-size: 15px; color: var(--prata); }
.plan__list .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.plans-note { color: var(--text-3); font-size: 13px; margin: 24px 0 0; max-width: 820px; }

/* ---------- Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step h3 { font-size: 19px; }
.step p { color: var(--text-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } }
.map {
  height: 520px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface);
  /* As camadas do Leaflet usam z-index 200–800; isolar o mapa faz esses valores valerem
     só dentro dele, senão o mapa passa por cima do cabeçalho e do menu mobile. */
  position: relative; isolation: isolate; z-index: 0;
}
@media (max-width: 640px) { .map { height: 380px; } }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(0.92) contrast(0.88) saturate(0.6); }
.map .leaflet-control-attribution { background: rgba(7, 17, 31, 0.8); color: var(--text-2); }
.map .leaflet-control-attribution a { color: var(--accent); }
.map .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--border); }
.map .leaflet-bar a:hover { background: var(--surface-2); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--text-2); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { font-size: 20px; }
.area-list { display: grid; gap: 10px; }
.area-list li { display: flex; align-items: center; gap: 10px; color: var(--prata); }
.area-list .icon { color: var(--accent); }
.legend { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin-top: 16px; }
.legend__swatch { width: 18px; height: 18px; border-radius: 5px; background: rgba(50, 206, 239, 0.3); border: 2px solid var(--accent); }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--prata); }
.field .hint { font-size: 13px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(50, 206, 239, 0.2); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #f87171; }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; min-width: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .input-row { flex-direction: column; } }

.result { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); font-size: 15px; }
.result[hidden] { display: none; }
.result strong { display: block; margin-bottom: 4px; font-size: 16px; }
.result p { margin: 0 0 12px; color: var(--text-2); }
.result p:last-child { margin-bottom: 0; }
.result--ok { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.08); }
.result--ok strong { color: var(--ok); }
.result--warn { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.result--warn strong { color: var(--warn); }
.result--err strong { color: #f87171; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__tools { display: grid; gap: 16px; margin-bottom: 36px; }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 46px; min-height: 54px; border-radius: 999px; }
.faq__group { margin-bottom: 40px; }
.faq__group[hidden] { display: none; }
.faq__title { font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.faq__item[hidden] { display: none; }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--text-3); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq__answer { padding: 0 20px 18px; color: var(--text-2); }
.faq__answer p { margin: 0; }
.faq__empty { text-align: center; color: var(--text-2); padding: 24px; }

/* ---------- Sobre ---------- */
/* Sobre: título e texto numa coluna, logo na outra, centralizados na altura */
.sobre { padding: 48px 0 72px; }
.sobre__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
.sobre__titulo { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 24px; }
.sobre__logo { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(8, 127, 231, 0.2), 0 0 0 1px var(--border); }
@media (max-width: 900px) {
  .sobre__grid { grid-template-columns: 1fr; gap: 32px; }
  .sobre__logo { max-width: 240px; }
}
.prose p { color: var(--text-2); font-size: 17px; max-width: 620px; }
.prose p strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat__num { display: block; font-size: 34px; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat__label { color: var(--text-2); font-size: 14px; }

/* ---------- Contato ---------- */
.panel--estreito { max-width: 720px; }
.channel { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.channel:first-of-type { padding-top: 0; }
.channel:last-of-type { border-bottom: 0; padding-bottom: 0; }
.channel .card__icon { margin: 0; }
.channel h3 { font-size: 16px; margin-bottom: 2px; }
.channel p, .channel a { margin: 0; color: var(--text-2); word-break: break-word; }
.channel a:hover { color: var(--text); }

/* ---------- Área do cliente (fase 2) ---------- */
.auth { min-height: calc(100dvh - var(--header-h) - 200px); display: grid; place-items: center; padding: 64px 0; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card .panel { padding: 32px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(8, 127, 231, 0.12); border: 1px solid rgba(8, 127, 231, 0.35); color: var(--prata); font-size: 14px; margin-bottom: 24px; }
.notice .icon { color: var(--accent); margin-top: 2px; }
.notice p { margin: 0; }
fieldset[disabled] { opacity: 0.55; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); background: #050d18; padding: 64px 0 0; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 120px; height: 120px; border-radius: 16px; margin-bottom: 16px; }
.site-footer__brand p, .site-footer__text { color: var(--text-2); font-size: 15px; }
.site-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.site-footer__contact .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.site-footer__social { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-footer__social:hover { color: var(--text); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 96px;
  color: var(--text-3); font-size: 13px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--text-2); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
/* no celular a logo do rodapé repete a do cabeçalho fixo */
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } .site-footer__brand { display: none; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--whatsapp); color: #062b14; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { color: #062b14; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35); }
.wa-float .icon { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 58px; padding: 0; justify-content: center; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0; }
.not-found__code { font-size: clamp(72px, 14vw, 140px); font-weight: 700; font-style: italic; color: var(--primary); line-height: 1; margin-bottom: 16px; }
