/* =========================================================================
   IPTV Qualidade — folha de estilo global.
   Identidade: "padrão de imagem medido, não prometido". Base grafite escuro,
   acento ciano/lima, números em monoespaçada. Componentes globais aqui; cada
   página traz o seu layout num <style> local para não virar clone das outras.
   ========================================================================= */

:root {
  --bg: #0b0f14;
  --bg-2: #0f151c;
  --surface: #131a22;
  --surface-2: #18212b;
  --line: #23303d;
  --line-2: #2e3f50;
  --ciano: #00d9c0;
  --ciano-dim: #0aa392;
  --lima: #a3e635;
  --texto: #e6edf3;
  --muted: #8b9aab;
  --alerta: #f5a524;
  --erro: #ef5350;
  --ok: #3ddc84;
  --radius: 14px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Fira Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ciano); text-underline-offset: 3px; }

h1, h2, h3, h4 { color: #f2f7fb; line-height: 1.18; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.08rem, 2.1vw, 1.28rem); }
p { margin: 0 0 1.05em; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--panel { background: var(--surface); border-block: 1px solid var(--line); }

/* etiqueta monoespaçada — assinatura visual da marca */
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ciano);
  margin-bottom: .8rem;
}
.tag::before { content: ""; width: 22px; height: 2px; background: var(--ciano); }

.lead { font-size: clamp(1.02rem, 2vw, 1.15rem); color: #b8c7d6; }
.muted { color: var(--muted); }
.narrow { max-width: 74ch; }
.center { text-align: center; }

/* ------------------------------------------------------------- botões CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.7rem; border-radius: 10px;
  font-weight: 800; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--ciano), var(--lima));
  color: #06231f; box-shadow: 0 0 0 1px rgba(0,217,192,.25), 0 10px 28px rgba(0,217,192,.22);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(0,217,192,.4), 0 14px 34px rgba(0,217,192,.3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--texto); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(0,217,192,.1); border-color: var(--ciano-dim); }
.btn--sm { min-height: 48px; padding: .6rem 1.15rem; font-size: .93rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------- selo de avaliação */
.rating {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: rgba(0,217,192,.08); border: 1px solid rgba(0,217,192,.3);
  border-radius: 10px; padding: .5rem 1rem; font-size: .9rem;
}
.rating__stars { color: var(--lima); letter-spacing: .08em; }
.rating strong { color: var(--texto); }
.rating__item { color: var(--muted); font-family: var(--mono); font-size: .82rem; }

/* ------------------------------------------------------------ header fixo */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,15,20,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--texto); font-weight: 900; font-size: 1.08rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ciano); line-height: 1.3; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { color: #c3d1de; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .62rem; border-radius: 8px; }
.nav a:hover { background: rgba(0,217,192,.12); color: var(--texto); }
.nav a[aria-current="page"] { color: var(--ciano); }
.hdr .btn { margin-left: .5rem; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; font-size: 1.25rem; cursor: pointer; color: var(--texto); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 66px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem 1.2rem 1.1rem; gap: .1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hdr .btn { margin-left: .55rem; }
}

/* telas estreitas: o CTA fixo do topo tem prioridade sobre o subtitulo da marca */
@media (max-width: 460px) {
  .brand { font-size: .98rem; }
  .brand small { display: none; }
  .hdr .btn--sm { padding: .55rem .8rem; font-size: .84rem; }
}

/* ------------------------------------------------------------- breadcrumb */
.crumbs { font-size: .82rem; color: var(--muted); padding: 1rem 0 0; font-family: var(--mono); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ciano); }

/* ----------------------------------------------------------- painéis/cards */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.panel h3 { margin-bottom: .4rem; }
.panel p:last-child { margin-bottom: 0; }
.panel--glow { border-color: rgba(0,217,192,.35); box-shadow: 0 0 0 1px rgba(0,217,192,.08) inset; }

.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* --------------------------------------------- métricas (números da marca) */
.metrics { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; position: relative; overflow: hidden;
}
.metric::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(var(--ciano), var(--lima)); }
.metric b { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--ciano); line-height: 1.2; letter-spacing: -.02em; }
.metric span { font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------- tabelas */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .94rem; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ciano); }
tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--texto); font-weight: 700; }
td.num, th.num { font-family: var(--mono); }

/* -------------------------------------------------------------- FAQ nativo */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .1rem 1.15rem; margin-bottom: .65rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--texto); padding: .95rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--ciano); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1rem; color: #adbecd; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- depoimentos */
.quotes { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.quote__stars { color: var(--lima); font-size: .92rem; letter-spacing: .08em; }
.quote p { font-size: .96rem; margin: .5rem 0 .85rem; color: #c9d6e2; }
.quote footer { font-size: .84rem; color: var(--muted); font-family: var(--mono); }

/* -------------------------------------------------------- listas marcadas */
.checks { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--ciano); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; margin-bottom: 1.2rem; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -1px;
  font-family: var(--mono); font-weight: 800; font-size: .95rem;
  width: 2.3rem; height: 2.3rem; border: 1px solid var(--ciano-dim); border-radius: 9px;
  color: var(--ciano); display: grid; place-items: center; background: rgba(0,217,192,.07);
}

/* ------------------------------------------------------- barra de medição */
.gauge { margin-bottom: 1rem; }
.gauge__top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .35rem; }
.gauge__top b { font-family: var(--mono); color: var(--ciano); font-weight: 700; }
.gauge__bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.gauge__fill { height: 100%; background: linear-gradient(90deg, var(--ciano), var(--lima)); border-radius: 99px; }

/* ------------------------------------------------------------- faixa final */
.cta-band {
  background: linear-gradient(135deg, #0e1a1f, #10241f);
  border: 1px solid rgba(0,217,192,.28); border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem); text-align: center;
}
.cta-band p { color: #b3c4d2; max-width: 58ch; margin-inline: auto; }

/* ----------------------------------------------------------------- rodapé */
.ftr { background: #080c10; border-top: 1px solid var(--line); color: var(--muted); padding: 3rem 0 1.5rem; font-size: .92rem; }
.ftr h3 { color: var(--texto); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .85rem; }
.ftr a { color: #b0c0cf; text-decoration: none; }
.ftr a:hover { color: var(--ciano); }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .45rem; }
.ftr__grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.ftr__bottom { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.3rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; font-family: var(--mono); }

/* --------------------------------------------------------- barra CTA móvel */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(11,15,20,.95); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
@media (max-width: 760px) { .dock { display: block; } body { padding-bottom: 78px; } }

/* ------------------------------------------------------------ utilitários */
.rounded { border-radius: var(--radius); border: 1px solid var(--line); }
.figcap { font-size: .8rem; color: var(--muted); margin-top: .55rem; font-family: var(--mono); }
.chip { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .7rem; font-size: .82rem; font-family: var(--mono); color: #c3d1de; margin: 0 .35rem .5rem 0; }
.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; }
.mt0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
