/* ImpactoUnesp — IPTV | estilo único do site */
:root {
  --bg: #0A0F1E;
  --bg-2: #0D1428;
  --surface: #121A36;
  --surface-2: #18224A;
  --line: #26335F;
  --line-2: #34457E;
  --text: #F2F5FF;
  --muted: #A9B2CE;
  --violet: #7B5CFF;
  --cyan: #21D4FD;
  --green: #22C55E;
  --green-2: #34D399;
  --green-ink: #052E16;
  --red: #FF4D6D;
  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1160px;
  --prose: 780px;
  --gutter: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7FE6FF; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
strong { color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(52, 69, 126, .55);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; flex-shrink: 0; }
.brand svg { width: 36px; height: 36px; }
.brand span span { color: var(--cyan); }
.brand:hover { color: var(--text); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 14px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn--cta { background: var(--green); color: var(--green-ink); box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .7); }
.btn--cta:hover { background: var(--green-2); color: var(--green-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(123, 92, 255, .28), transparent); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(24, 34, 74, .6); color: var(--muted); font-size: .9rem; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 77, 109, .22); }
.lead { font-size: 1.16rem; color: #D5DBEE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23052E16' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.hero-media { margin: 0; }
.hero-media img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.byline { color: var(--muted); font-size: .93rem; margin-top: -4px; }
.byline a { color: var(--text); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }

/* ---------- TL;DR ---------- */
.tldr {
  position: relative; margin: 8px 0 0; padding: 26px 28px 10px;
  background: linear-gradient(180deg, rgba(24, 34, 74, .9), rgba(18, 26, 54, .9));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tldr::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 4px; border-radius: 4px; background: var(--grad); }
.tldr h2 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tldr ul, .tldr ol { padding-left: 1.2em; }
.tldr li { margin-bottom: 6px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(38, 51, 95, .6); border-bottom: 1px solid rgba(38, 51, 95, .6); }
.section-head { max-width: var(--prose); margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--muted); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .steps, .prose .checklist { padding-left: 0; }
.snippet { font-size: 1.1rem; color: #DCE2F3; }
.note { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(33, 212, 253, .07); border: 1px solid rgba(33, 212, 253, .28); color: #D5DBEE; font-size: .98rem; }
.signature { font-weight: 700; color: var(--text); }
.signature a { color: var(--text); }

figure { margin: 28px 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: .98rem; min-width: 560px; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; color: var(--muted); font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: #fff; font-size: .92rem; }
tbody tr:nth-child(even) { background: rgba(18, 26, 54, .6); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: #fff; font-weight: 700; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 24px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; display: grid; gap: 14px; }
.steps > li { position: relative; padding: 20px 22px 20px 78px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.steps h3 { margin: 6px 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: #D0D7EB; }
.steps--compact > li { padding: 16px 18px 16px 70px; }
.steps--compact > li::before { width: 34px; height: 34px; left: 18px; top: 16px; border-radius: 10px; font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 14px 16px 14px 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23052E16' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; }
.toc a:hover { border-color: var(--cyan); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* link cards (hubs, related) */
.cards--links .card--link { padding: 0; transition: border-color .15s ease, transform .15s ease; }
.card--link > a { display: flex; flex-direction: column; height: 100%; padding: 22px; color: inherit; text-decoration: none; }
.card--link h3 { color: var(--text); }
.card--link p { flex: 1; }
.card--link:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-more { margin-top: 12px; color: var(--cyan); font-weight: 700; font-size: .92rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--cyan); text-decoration: underline; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font-size: 1.2rem; margin-bottom: 2px; }
.plan-note { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.price { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; color: #fff; }
.price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.per { color: var(--green-2); font-weight: 700; font-size: .93rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: .96rem; color: #D0D7EB; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: rgba(34, 197, 94, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2334D399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { border: 2px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; }
.badge { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq-item { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq-item h3 { font-size: 1.1rem; margin: 0 0 8px; }
.faq-item p { margin: 0; color: #D0D7EB; }

/* CTA band */
.cta-band { padding: 56px 0 72px; }
.cta-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 36px; border-radius: 28px; background: linear-gradient(120deg, #1B1450, #0F2A4A); border: 1px solid var(--line-2); }
.cta-box::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; background: radial-gradient(closest-side, rgba(33, 212, 253, .35), transparent); pointer-events: none; }
.cta-box h2 { margin-bottom: 8px; }
.cta-box p { margin: 0; color: #D5DBEE; }
.cta-box .hero-actions { margin: 0; position: relative; z-index: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070B17; padding: 48px 0 110px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.site-footer h2 { font-size: 1rem; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(34, 197, 94, .75);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: var(--green-2); color: var(--green-ink); }

.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.page-404 .hero-actions { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .header-cta { margin-left: auto; }
  .nav { order: 3; width: calc(100% + var(--gutter) * 2); margin: 8px calc(var(--gutter) * -1) 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(52, 69, 126, .4); }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { padding: 6px var(--gutter); }
  .hero { padding: 28px 0 24px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cards--links { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .lead { font-size: 1.06rem; }
  .section { padding: 44px 0; }
  .plans, .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .tldr { padding: 22px 18px 8px; }
  .steps > li { padding: 18px 16px 18px 66px; }
  .steps > li::before { left: 14px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards--links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
