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

/* ---- Reset e base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul: #0b66e4;
  --azul-dark: #0851be;
  --azul-claro: #e8f0ff;
  --verde: #22c55e;
  --bg: #050d1f;
  --bg2: #0d1829;
  --bg3: #111e33;
  --surface: #162035;
  --surface2: #1d2b44;
  --border: #1e3054;
  --text: #e2e8f3;
  --muted: #8ba3c5;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.5);
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--surface); color: #93c5fd; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---- Acessibilidade ---- */
.skip-link {
  position: absolute; top: -999px; left: -999px;
  background: var(--azul); color: #fff;
  padding: 8px 16px; border-radius: 4px; z-index: 9999;
}
.skip-link:focus { top: 8px; left: 8px; }

/* ---- Container ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--azul-dark);
  color: #fff;
  font-size: .82rem;
  text-align: center;
  padding: 8px 0;
  letter-spacing: .02em;
}

/* ---- Header ---- */
.site-header {
  background: rgba(5, 13, 31, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ---- Brand ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand:hover { text-decoration: none; opacity: .9; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--azul), #4f9eff);
  border-radius: 10px;
  font-weight: 900;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}

.brand span { display: flex; flex-direction: column; }
.brand small {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---- Menu ---- */
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.menu a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--surface); color: #fff; text-decoration: none; }
.menu a.btn { padding: 8px 18px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .2s;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--azul {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
.btn--azul:hover { background: var(--azul-dark); border-color: var(--azul-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); color: #fff; }

.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 50%, var(--bg3) 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,102,228,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.breadcrumb {
  margin-bottom: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb ol { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.breadcrumb ol li::after { content: '›'; margin-left: 6px; }
.breadcrumb ol li:last-child::after { content: ''; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 10px;
}

.lead-answer {
  font-size: 1.08rem;
  color: var(--text);
  border-left: 3px solid var(--azul);
  padding-left: 16px;
  margin: 16px 0 24px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* Hero card (aside) */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h2, .hero-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.hero-card ul { display: flex; flex-direction: column; gap: 10px; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}

/* ---- Tick ---- */
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--verde);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- TLDR box ---- */
.tldr {
  background: var(--azul-claro);
  color: #0b1a3b;
  border-left: 4px solid var(--azul);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.tldr strong { display: block; font-size: 1rem; margin-bottom: 8px; color: #071533; }
.tldr p, .tldr ul, .tldr li { color: #1a3460; }
.tldr a { color: var(--azul-dark); font-weight: 600; }
.tldr ul { list-style: disc; padding-left: 20px; }
.tldr li { margin-bottom: 4px; }

/* ---- Section head ---- */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding-top: 56px;
}
.section-head h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 8px 0 48px;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--azul); transform: translateY(-3px); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card p, .card li { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.card ul { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.card a { color: var(--azul); }

/* ---- ICO ---- */
.ico {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

/* ---- Planos ---- */
.planos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0 40px;
}

.plano {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.plano--destaque {
  border-color: var(--azul);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(11,102,228,.1) 100%);
  box-shadow: 0 0 40px rgba(11,102,228,.2);
}

.plano h3 { font-size: 1.2rem; font-weight: 800; color: var(--white); }

.preco { display: flex; flex-direction: column; gap: 4px; }
.preco strong { font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; }
.preco small { font-size: .85rem; color: var(--muted); }

.economia {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .05em;
}

.plano ul { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plano li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.plano .btn { width: 100%; }

/* Badge destaque */
.plano--destaque::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--azul);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 16px;
  border-radius: 20px;
}

/* ---- Tabela ---- */
.tabela-wrap {
  overflow-x: auto;
  margin: 16px 0 32px;
  border-radius: var(--radius);
}
table { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
thead tr { background: var(--surface2); }
th {
  text-align: left;
  padding: 14px 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
caption {
  caption-side: bottom;
  font-size: .8rem;
  color: var(--muted);
  text-align: left;
  padding: 8px 16px;
}

/* ---- Dispositivos ---- */
.dispositivos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin: 16px 0;
}
.dispositivos li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text);
  line-height: 1.5;
}
.dispositivos strong { color: var(--white); }

/* ---- Passos ---- */
.passos {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 40px;
}

.passo {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.passo h3, .passo > div > strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  display: block;
}
.passo p, .passo > div > p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}
.passo a { color: var(--azul); }

/* ---- Prose ---- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0;
}
.prose h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  margin: 40px 0 14px;
  line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 28px 0 10px; }
.prose p { color: var(--text); margin-bottom: 16px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--text); margin-bottom: 8px; line-height: 1.65; }
.prose a { color: var(--azul); }
.prose strong { color: var(--white); }
.prose table { margin: 20px 0; }
.prose code { font-family: monospace; }

/* ---- CTA Band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--azul-dark) 0%, var(--azul) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn--azul {
  background: #fff;
  color: var(--azul-dark);
  border-color: #fff;
}
.cta-band .btn--azul:hover { background: var(--azul-claro); }

/* ---- FAQ ---- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 40px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: var(--azul); }

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--white);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background .2s;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--azul);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { background: var(--surface2); }

.resposta {
  padding: 20px 20px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.resposta p { color: var(--muted); font-size: .93rem; line-height: 1.7; margin: 0; }
.resposta a { color: var(--azul); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid li a {
  color: var(--muted);
  font-size: .88rem;
  transition: color .2s;
}
.footer-grid li a:hover { color: var(--white); text-decoration: none; }

.footer-disclaimer {
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-bottom {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-bottom strong { color: var(--text); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }

/* ---- WhatsApp float ---- */
.whats-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whats-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .menu.aberto { display: flex; }
  .menu a { width: 100%; }
  .menu-toggle { display: flex; }

  .planos { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .passo { flex-direction: column; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .prose { padding: 32px 0; }
}

/* ---- Fix: .tldr dentro de .prose não deve herdar color:white do .prose strong ---- */
.prose .tldr { color: #0b1a3b; }
.prose .tldr p, .prose .tldr li { color: #1a3460; }
.prose .tldr strong { color: #071533 !important; }
.prose .tldr a { color: var(--azul-dark); font-weight: 600; }
.lead-answer { color: var(--text) !important; }
