/* ===========================================================
   Compass Minerals IPTV — Folha de estilo principal
   =========================================================== */

:root {
  --azul: #0b66e4;
  --azul-escuro: #063e8c;
  --azul-claro: #e8f1ff;
  --verde: #16a34a;
  --verde-escuro: #0f7a37;
  --tinta: #0d1b2a;
  --cinza: #5a6b7b;
  --cinza-claro: #f4f7fb;
  --borda: #dfe6ee;
  --branco: #ffffff;
  --amarelo: #ffd23f;
  --raio: 14px;
  --sombra: 0 10px 30px rgba(13, 27, 42, .08);
  --container: 1140px;
  --fonte: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte);
  color: var(--tinta);
  background: var(--branco);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; color: var(--tinta); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 16px; }
section { padding: 64px 0; }
section:nth-of-type(even) { background: var(--cinza-claro); }

/* ---------- Skip link (acessibilidade) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--azul); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Topo / Header ---------- */
.topbar {
  background: var(--tinta);
  color: #cfe0f5;
  font-size: .9rem;
  padding: 7px 0;
  text-align: center;
}
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.18rem; color: var(--tinta);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: var(--sombra);
}
.brand small { display: block; font-size: .68rem; color: var(--cinza); font-weight: 600; letter-spacing: 1.5px; }

.menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.menu a { color: var(--tinta); font-weight: 600; font-size: .98rem; }
.menu a:hover { color: var(--azul); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--verde); color: #fff;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .28);
}
.btn:hover { background: var(--verde-escuro); transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn--azul { background: var(--azul); box-shadow: 0 8px 20px rgba(11, 102, 228, .28); }
.btn--azul:hover { background: var(--azul-escuro); }
.btn--ghost {
  background: transparent; color: var(--tinta);
  border: 2px solid var(--borda); box-shadow: none;
}
.btn--ghost:hover { background: var(--cinza-claro); color: var(--tinta); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--tinta); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(11,102,228,.18), transparent),
    linear-gradient(180deg, #f7faff, #ffffff);
  padding: 70px 0 76px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
}
.eyebrow {
  display: inline-block; background: var(--azul-claro); color: var(--azul-escuro);
  font-weight: 700; font-size: .82rem; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.16rem; color: var(--cinza); margin: 18px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px;
  font-size: .92rem; color: var(--cinza);
}
.hero-trust span { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.hero-trust b { color: var(--verde-escuro); }

.hero-card {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: 20px; padding: 26px; box-shadow: var(--sombra);
}
.hero-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li {
  display: flex; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--borda); font-size: .98rem;
}
.hero-card li:last-child { border-bottom: 0; }
.tick { color: var(--verde); font-weight: 800; }

/* ---------- TL;DR / Resumo ---------- */
.tldr {
  background: #fffaf0; border: 1px solid #ffe2a8;
  border-left: 5px solid var(--amarelo);
  border-radius: 12px; padding: 20px 24px; margin: 0 0 34px;
}
.tldr strong { display: block; font-size: .8rem; letter-spacing: 1.5px; color: #a87a00; margin-bottom: 6px; text-transform: uppercase; }
.tldr p { margin: 0; font-size: 1.02rem; }

/* ---------- Conteúdo ---------- */
.prose { max-width: 820px; }
.prose p, .prose li { color: #243447; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.lead-answer {
  font-size: 1.1rem; color: var(--tinta);
  background: var(--azul-claro); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 22px;
}

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--cinza); font-size: 1.08rem; }

/* ---------- Grid de recursos ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 26px; box-shadow: var(--sombra);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--azul-claro); color: var(--azul);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.card p { color: var(--cinza); margin: 0; font-size: .97rem; }

/* ---------- Planos ---------- */
.planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plano {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: var(--sombra);
}
.plano--destaque { border: 2px solid var(--azul); position: relative; }
.plano--destaque::before {
  content: "Mais vendido"; position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%); background: var(--azul); color: #fff;
  font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.plano h3 { font-size: 1.25rem; }
.preco { font-size: 2.4rem; font-weight: 800; margin: 12px 0 4px; }
.preco small { font-size: .95rem; color: var(--cinza); font-weight: 600; }
.plano .economia { color: var(--verde-escuro); font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.plano ul { list-style: none; margin: 16px 0 24px; flex: 1; }
.plano li { padding: 8px 0; border-bottom: 1px dashed var(--borda); font-size: .96rem; display: flex; gap: 9px; }
.plano li:last-child { border-bottom: 0; }
.plano .btn { width: 100%; justify-content: center; }

/* ---------- Passo a passo ---------- */
.passos { counter-reset: passo; max-width: 820px; }
.passo {
  display: flex; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--borda);
}
.passo:last-child { border-bottom: 0; }
.passo .num {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center;
}
.passo h3 { margin-bottom: 4px; }
.passo p { margin: 0; color: var(--cinza); }

/* ---------- Tabela ---------- */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--borda); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 540px; background: #fff; }
caption { text-align: left; font-weight: 700; padding: 14px 16px; color: var(--cinza); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--borda); font-size: .96rem; }
thead th { background: var(--tinta); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--cinza-claro); }

/* ---------- Dispositivos ---------- */
.dispositivos {
  display: flex; flex-wrap: wrap; gap: 14px; list-style: none;
}
.dispositivos li {
  background: #fff; border: 1px solid var(--borda); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details {
  background: #fff; border: 1px solid var(--borda);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 700; font-size: 1.05rem; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--azul); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .resposta { padding: 0 22px 20px; color: #243447; }
.faq .resposta p:last-child { margin-bottom: 0; }

/* ---------- CTA faixa ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  color: #fff; text-align: center; padding: 60px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6ff; max-width: 620px; margin: 12px auto 26px; font-size: 1.1rem; }
.cta-band .btn--azul { background: #fff; color: var(--azul-escuro); }
.cta-band .btn--azul:hover { background: #eaf2ff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--cinza); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--borda); }
.breadcrumb li:last-child::after { content: ""; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--tinta); color: #aebfce; padding: 56px 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aebfce; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e3147; margin-top: 40px; padding-top: 22px;
  text-align: center; font-size: .85rem; color: #7e93a8;
}
.footer-disclaimer { font-size: .8rem; color: #7e93a8; margin-top: 14px; max-width: 760px; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: #25d366; color: #fff; width: 58px; height: 58px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
}
.whats-float:hover { text-decoration: none; transform: scale(1.06); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid, .planos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 20px; gap: 14px; border-bottom: 1px solid var(--borda);
    display: none;
  }
  .menu.aberto { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
