/* =============================================================
   ConectaGD — Home (landing.html) e página Entrar (entrar.html)
   Tokens do design system proposto no Tema 4 (planejamento_novas_funcionalidades.md).
   As demais páginas públicas continuam no landing.css.
   ============================================================= */

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

:root {
  --brand-900: #0f2744;
  --brand-800: #16355c;
  --brand-600: #1a6bff;
  --brand-700: #0f4fcf;
  --brand-50:  #eef4ff;
  --energy-500: #f39c12;
  --energy-600: #e67e22;
  --ok: #16a34a;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(15, 39, 68, .06), 0 1px 3px rgba(15, 39, 68, .08);
  --shadow-2: 0 10px 30px rgba(15, 39, 68, .12);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; font: 600 .95rem/1 var(--font); cursor: pointer;
  text-decoration: none; padding: 14px 22px; transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(26, 107, 255, .45); outline-offset: 2px; }
.btn-primario { background: var(--brand-600); color: var(--white); box-shadow: 0 6px 18px rgba(26, 107, 255, .35); }
.btn-primario:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn-claro { background: rgba(255, 255, 255, .1); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-claro:hover { background: rgba(255, 255, 255, .18); }
.btn-contorno { background: var(--white); color: var(--brand-700); border: 1.5px solid var(--border); }
.btn-contorno:hover { border-color: var(--brand-600); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-bloco { width: 100%; }

/* ── Menu ───────────────────────────────────────────────────── */
.menu { position: sticky; top: 0; z-index: 50; background: rgba(15, 39, 68, .97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.menu-logo img { height: 52px; width: auto; }
.menu-links { display: flex; gap: 24px; margin-left: 8px; }
.menu-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9rem; font-weight: 500; }
.menu-links a:hover { color: var(--white); }
.menu-acoes { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-entrar { color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 10px; }
.menu-entrar:hover { text-decoration: underline; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-movel { display: none; }

/* ── Topo (hero) ────────────────────────────────────────────── */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(26, 107, 255, .35), transparent 60%),
                    linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 100%);
        color: var(--white); padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.selo { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
        color: #9cc3ff; background: rgba(26, 107, 255, .18); border: 1px solid rgba(26, 107, 255, .45);
        padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { text-wrap: balance; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -1px; font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--energy-500); }
.hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 540px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-garantias { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.hero-garantias li { display: flex; align-items: center; gap: 6px; }
.hero-garantias svg { color: #4ade80; flex-shrink: 0; }

/* Capa do vídeo: a mesma prancha da seção "O resultado" */
.capa-video { position: relative; border-radius: 14px; overflow: hidden; background: var(--white);
              box-shadow: var(--shadow-3); border: 1px solid rgba(255, 255, 255, .14); }
.capa-video img { display: block; width: 100%; height: auto; }
.capa-botao { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
              border: 0; padding: 0; cursor: pointer; color: var(--white); font: 600 .95rem var(--font);
              background: linear-gradient(to top, rgba(11, 29, 51, .9) 0%, rgba(11, 29, 51, .5) 22%, rgba(11, 29, 51, .08) 45%, rgba(11, 29, 51, 0) 100%); }
.capa-play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--energy-500); color: #1f1300;
             box-shadow: 0 0 0 10px rgba(243, 156, 18, .28), var(--shadow-2); transition: transform .15s; }
.capa-play svg { margin-left: 4px; }
.capa-botao:hover .capa-play { transform: scale(1.06); }
.capa-botao:focus-visible { outline: 3px solid rgba(26, 107, 255, .7); outline-offset: -3px; }
.capa-texto { position: absolute; left: 20px; bottom: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

/* ── Faixa de números ───────────────────────────────────────── */
.numeros { background: var(--white); border-bottom: 1px solid var(--border); }
.numeros ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.numeros li { padding: 26px 16px; text-align: center; border-left: 1px solid var(--border); }
.numeros li:first-child { border-left: 0; }
.numeros strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--brand-900); letter-spacing: -.5px; }
.numeros span { font-size: .88rem; color: var(--muted); }

/* ── Seções ─────────────────────────────────────────────────── */
.secao { padding: 88px 0; }
.secao-suave { background: var(--bg-soft); }
.secao-escura { background: var(--brand-900); color: var(--white); }
.titulo-secao { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.titulo-secao .sobre { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }
.secao-escura .titulo-secao .sobre { color: #9cc3ff; }
.titulo-secao h2 { text-wrap: balance; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.6px; margin-bottom: 12px; }
.titulo-secao p { color: var(--muted); font-size: 1.02rem; }
.secao-escura .titulo-secao p { color: rgba(255, 255, 255, .7); }

/* Antes × depois */
.comparativo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coluna-comp { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); background: var(--white); }
.coluna-comp h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; margin-bottom: 18px; }
.tempo { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.comp-antes .tempo { background: #fee2e2; color: #b91c1c; }
.comp-depois { border-color: rgba(26, 107, 255, .45); box-shadow: 0 0 0 4px rgba(26, 107, 255, .07); }
.comp-depois .tempo { background: #dcfce7; color: #15803d; }
.coluna-comp ol { list-style: none; display: grid; gap: 12px; counter-reset: p; }
.coluna-comp li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); font-size: .95rem; }
.coluna-comp li::before { content: counter(p); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
                          font-weight: 700; font-size: .8rem; background: var(--bg-soft); color: var(--muted-2); }
.comp-depois li::before { background: var(--brand-50); color: var(--brand-700); }
.comp-depois li { color: var(--text); }

/* Como funciona */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passo { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px; }
.passo .passo-num { font-size: .8rem; font-weight: 800; letter-spacing: 1px; color: var(--energy-500); margin-bottom: 14px; }
.passo h3 { font-size: 1.1rem; margin-bottom: 8px; }
.passo p { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* Funcionalidades */
.grupos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grupo { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); }
.grupo-icone { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.grupo:nth-child(2) .grupo-icone { background: #fff4e5; color: var(--energy-600); }
.grupo:nth-child(3) .grupo-icone { background: #e8f8ef; color: var(--ok); }
.grupo h3 { font-size: 1.1rem; margin-bottom: 14px; }
.grupo ul { list-style: none; display: grid; gap: 10px; }
.grupo li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .93rem; color: var(--muted); }
.grupo li svg { color: var(--ok); margin-top: 3px; }

/* A planta (imagem da prancha, img/planta-exemplo-*.webp) */
.planta-bloco { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.planta-figura { --m: 26px; position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 6px;
                 box-shadow: var(--shadow-2); overflow: hidden; }
.planta-figura img { display: block; width: 100%; height: auto; }
.marcador { position: absolute; z-index: 2; width: var(--m); height: var(--m); border-radius: 50%; background: var(--energy-500); color: #1f1300;
            display: grid; place-items: center; font: 800 .8rem var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.chamadas { list-style: none; display: grid; gap: 16px; }
.chamadas li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.chamadas b.n { width: 28px; height: 28px; border-radius: 50%; background: var(--energy-500); color: #1f1300; display: grid; place-items: center; font-size: .82rem; }
.chamadas h3 { font-size: 1rem; margin-bottom: 2px; }
.chamadas p { color: var(--muted); font-size: .92rem; }
.nota-ilustracao { margin-top: 18px; font-size: .8rem; color: var(--muted-2); }

/* Cobertura */
.cobertura-bloco { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.mapa-uf { display: grid; grid-template-columns: repeat(6, 48px); grid-template-rows: repeat(8, 48px); gap: 6px; }
.uf { display: grid; place-items: center; border-radius: 8px; font-size: .74rem; font-weight: 700; background: #e7ecf3; color: #94a3b8; }
.uf.on { background: var(--brand-600); color: var(--white); box-shadow: 0 4px 10px rgba(26, 107, 255, .35); }
.legenda-uf { display: flex; gap: 16px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.legenda-uf span { display: flex; align-items: center; gap: 6px; }
.legenda-uf i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lista-dist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dist { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid var(--brand-600); border-radius: 10px; background: var(--white); }
.dist b { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: var(--brand-600); color: var(--white); font-size: .75rem; }
.dist div { line-height: 1.25; min-width: 0; }
.dist strong { display: block; font-size: .9rem; }
.dist small { color: var(--muted-2); font-size: .78rem; }
.pedir { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }

/* Preços */
.alternador { display: inline-flex; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 0 auto 36px; }
.alternador button { border: 0; background: none; border-radius: 999px; padding: 9px 18px; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; }
.alternador button.ativo { background: var(--brand-900); color: var(--white); }
.alternador em { font-style: normal; color: var(--ok); margin-left: 4px; }
.alternador button.ativo em { color: #86efac; }
.centro { text-align: center; }
.planos { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; }
.plano { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.plano.destaque { border: 2px solid var(--brand-600); box-shadow: var(--shadow-2); }
.plano-faixa { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-600); color: var(--white);
               font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plano h3 { font-size: 1.15rem; }
.plano-para { color: var(--muted); font-size: .9rem; margin-bottom: 18px; min-height: 3.2em; }
.preco { font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.preco small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.preco-obs { font-size: .85rem; color: var(--ok); min-height: 1.4em; margin: 6px 0 18px; font-weight: 600; }
.plano ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.plano li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .93rem; }
.plano li svg { color: var(--ok); margin-top: 3px; }
.plano .btn { margin-top: auto; }
.precos-nota { text-align: center; margin-top: 26px; color: var(--muted); font-size: .9rem; }

/* Perguntas */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--brand-600); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: .95rem; }

/* Chamada final */
.cta-final { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: var(--white); text-align: center; padding: 72px 0; }
.cta-final h2 { text-wrap: balance; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.5px; margin-bottom: 10px; }
.cta-final p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.btn-branco { background: var(--white); color: var(--brand-700); }
.btn-branco:hover { background: #e8f0ff; }

/* Rodapé */
.rodape { background: var(--brand-900); color: rgba(255, 255, 255, .65); padding: 56px 0 0; font-size: .9rem; }
.rodape-grade { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rodape img { height: 46px; margin-left: -10px; }
.rodape h4 { color: var(--white); font-size: .9rem; margin-bottom: 12px; }
.rodape ul { list-style: none; display: grid; gap: 8px; }
.rodape a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.rodape a:hover { color: var(--white); text-decoration: underline; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* Modal do vídeo */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(2, 8, 20, .75); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.aberto { display: flex; }
.modal-caixa { width: min(960px, 100%); background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.modal-caixa iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.modal-fechar { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255, 255, 255, .9); border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 1.2rem; cursor: pointer; }

/* ── Página Entrar ──────────────────────────────────────────── */
.entrar-pagina { min-height: 100vh; background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 100%); }
.entrar-centro { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; padding: 72px 24px; max-width: var(--wrap); margin: 0 auto; color: var(--white); }
.entrar-texto h1 { font-size: 2rem; letter-spacing: -.5px; margin-bottom: 12px; }
.entrar-texto p { color: rgba(255, 255, 255, .75); margin-bottom: 22px; }
.cartao { background: var(--white); color: var(--text); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-3); }
.cartao h2 { font-size: 1.4rem; margin-bottom: 20px; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.campo input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font: 400 .95rem var(--font); }
.campo input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(26, 107, 255, .15); }
.cartao-links { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--muted); display: grid; gap: 8px; }
.cartao-links a { color: var(--brand-700); font-weight: 600; text-decoration: none; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: .88rem; font-weight: 500; margin-bottom: 18px; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fed7aa; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .menu-links { display: none; }
  .hero .wrap, .planta-bloco, .cobertura-bloco { grid-template-columns: 1fr; }
  .lista-dist { grid-template-columns: repeat(2, 1fr); }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .secao { padding: 64px 0; }
  .menu .wrap { height: 60px; gap: 12px; }
  .menu-logo img { height: 44px; }
  .menu-acoes { display: none; }
  .menu-toggle { display: block; }
  .menu-movel.aberto { display: grid; gap: 4px; padding: 8px 24px 18px; background: var(--brand-900); }
  .menu-movel a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: 10px 0; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu-movel .btn { margin-top: 10px; }
  .hero { padding: 48px 0 56px; }
  .hero-ctas .btn { width: 100%; }
  .capa-play { width: 60px; height: 60px; }
  .capa-play svg { width: 24px; height: 24px; }
  .capa-texto { left: 14px; bottom: 10px; font-size: .85rem; }
  .numeros ul { grid-template-columns: 1fr 1fr; }
  .numeros li:nth-child(3) { border-left: 0; }
  .numeros li { border-top: 1px solid var(--border); }
  .comparativo, .passos, .grupos, .planos { grid-template-columns: 1fr; }
  .lista-dist { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dist { padding: 8px; gap: 8px; border-left-width: 3px; }
  .dist b { width: 28px; height: 28px; font-size: .66rem; }
  .dist strong { font-size: .8rem; }
  .dist small { font-size: .7rem; }
  .mapa-uf, .legenda-uf { justify-content: center; }
  .planta-figura { --m: 20px; }
  .marcador { font-size: .7rem; }
  .mapa-uf { grid-template-columns: repeat(6, 40px); grid-template-rows: repeat(8, 40px); gap: 5px; }
  .uf { font-size: .66rem; }
  .entrar-centro { grid-template-columns: 1fr; padding: 40px 20px; }
  .rodape-grade { grid-template-columns: 1fr; }
}
