/* =========================================================
   TEMPLATE IPTV — tema "Sinal" (indigo quase-preto / azul elétrico /
   amarelo-sinal) para o projeto Telex BR.
   Paleta, tipografia e forma NOVAS em relação aos builds anteriores
   do usuário (Genoveva, Haute STR, Infov RCT, Ienec Play, Host ELC,
   Jetis BRL, Cabanha, BND IPTV, Conexao IPTV, Canal DTK/Editorial) —
   ver /areas/sites-hostinger.md antes de repetir combinações.
   Motivo do nome do tema: "Telex" remete a telégrafo/teleimpressora —
   o motivo visual recorrente é o pulso de sinal (traços tipo Morse) e
   cartões com um único canto cortado (efeito "ticket perfurado").
   ========================================================= */

:root {
  --bg: #0A0D18;
  --bg-alt: #0F1326;
  --panel: #131832;
  --ink: #F2F4FC;
  --ink-soft: #A6ADCB;
  --blue: #4C6BFF;
  --blue-dark: #2C3FB8;
  --yellow: #F4D93E;
  --yellow-dark: #C9AF1E;
  --line: #232B4D;
  --white: #FFFFFF;
  --radius: 3px;
  --notch: 16px;
  --shadow: 0 10px 26px rgba(3, 5, 16, 0.45);
  --shadow-lg: 0 18px 44px rgba(3, 5, 16, 0.55);
  --maxw: 1180px;
  --font-display: "Syne", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--blue) 14%, transparent) 0 22px, transparent 22px 34px);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-transform: none;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 0;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--yellow);
}
.lead { font-size: 1.12rem; max-width: 640px; color: var(--ink-soft); }

/* ---------- Botões: retangulares com 1 canto cortado (notch) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.btn::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--yellow);
  color: #191500;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--white); }
.btn-outline {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark img { height: 32px; width: auto; }
.logo-mark span { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); border-color: var(--yellow); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px; }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- Hero: split (texto à esquerda, mock à direita) com trilho de sinal ---------- */
.hero { padding: 64px 0 76px; position: relative; overflow: hidden; }
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-copy { flex: 1 1 480px; }
.hero .trust-chips {
  list-style: none;
  padding: 0;
  margin: 26px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero .trust-chips .trust-chip {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  display: block;
}
.trust-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 2px;
  background: var(--yellow);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-visual { flex: 1 1 420px; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 55%, transparent), transparent 70%);
  z-index: 0;
}
.hero-banner { position: relative; z-index: 1; padding: 0; }
.hero-banner .container { display: block; padding: 0; max-width: none; }
.hero-photo {
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.device-mock {
  width: 100%;
  background: #0C1024;
  border: 1px solid var(--line);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.device-mock .screen {
  background: repeating-linear-gradient(180deg, #10142A, #10142A 2px, #151A38 2px, #151A38 4px);
  aspect-ratio: 16 / 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
}
.device-mock .tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 940px) {
  .hero .container { flex-direction: column; }
  .hero-copy, .hero-visual { flex: 1 1 auto; width: 100%; }
  .hero-copy { text-align: left; }
}

.mock-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 10px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.mock-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  color: #FF6B5E; text-transform: uppercase;
}
.mock-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF6B5E; animation: mockPulse 1.6s ease-in-out infinite; }
@keyframes mockPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.device-mock .screen { position: relative; }
.mock-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff; z-index: 2;
  backdrop-filter: blur(2px);
}
.mock-play svg { width: 20px; height: 20px; }
.device-mock .tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 8px;
}
.mock-chip { width: 18px; height: 18px; border-radius: 3px; background: var(--yellow); }
.mock-line { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); width: 80%; }
.mock-line.short { width: 45%; }

/* ---------- Cards com 1 canto cortado + selo de índice ---------- */
.grid { display: grid; gap: 24px; }
.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-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  position: relative;
}
.card .icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  color: var(--blue);
  border-bottom: 2px dashed var(--line);
}
.card .icon svg { width: 26px; height: 26px; }
.card:nth-of-type(2) .icon, .card.alt-top .icon { color: var(--yellow); }
.device-icon {
  width: 28px; height: 28px;
  margin: 0 auto 10px;
  color: var(--blue);
}
.device-icon svg { width: 100%; height: 100%; }
.page-icon-badge {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  color: var(--blue);
  margin-bottom: 14px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.page-icon-badge svg { width: 22px; height: 22px; }

/* ---------- Planos ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-card .badge {
  position: absolute; top: -14px; left: 26px;
  background: var(--yellow); color: #191500;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 6px 14px 6px 16px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.plan-card h3 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-bottom: 10px; font-family: var(--font-body); font-weight: 700;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
}
.plan-card .price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--yellow);
  margin: 6px 0 20px;
  line-height: 1;
}
.plan-card .price small { font-size: 0.92rem; font-family: var(--font-body); color: var(--ink-soft); font-weight: 500; }
.plan-card .price-equiv {
  font-size: 0.8rem; color: var(--ink-soft);
  margin: -14px 0 20px;
}

.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-card li { font-size: 0.92rem; padding-left: 22px; position: relative; color: var(--ink); }
.plan-card li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 2px;
  background: var(--blue);
}

.plan-card.featured {
  border-color: var(--yellow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--yellow) 8%, transparent), var(--panel) 55%);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured h3 { color: var(--yellow); }
.plan-card.featured li::before { background: var(--yellow); }
.plan-card.featured:hover { transform: translateY(-6px); }

/* ---------- Passo a passo ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #191500;
  background: var(--yellow);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.step-num::before { content: counter(step); }

/* ---------- FAQ (accordion simples) ---------- */
.faq-item { border-bottom: 1px dashed var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding-bottom: 18px; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s ease; color: var(--yellow); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.84rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Footer ---------- */
footer.site-footer { background: #05070F; color: #B7BEDB; padding: 56px 0 28px; margin-top: 80px; border-top: 1px solid var(--line); }
footer.site-footer a { color: #B7BEDB; }
footer.site-footer a:hover { color: var(--yellow); }
footer.site-footer .logo-mark span { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); font-weight: 700; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.82rem; color: #6B7397; text-align: center; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: var(--yellow); color: #191500;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); font-size: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.content-page { padding: 56px 0 80px; }
.content-page article { max-width: 760px; }
.content-page h2 { margin-top: 1.4em; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card img { display: block; }
.blog-card { border: 1px solid var(--line); overflow: hidden; background: var(--panel); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.blog-card .body { padding: 18px; }
.blog-card .date { font-size: 0.8rem; color: var(--ink-soft); }
