/* Amerek — "sala de TV à noite"
   Tokens: night #101838 · ink #080C1C · amber #FFB224 · sky #8CD6FF · paper #F4F6FB · slate #4A5372
   Um só elemento ousado: a grade de programação ao vivo do hero. O resto é calmo e legível. */

:root {
  --night: #101838;
  --night-2: #1E2C60;
  --night-3: #2E4084;
  --ink: #080C1C;
  --amber: #FFB224;
  --amber-ink: #3A2500;
  --sky: #8CD6FF;
  --paper: #F4F6FB;
  --card: #FFFFFF;
  --line: #DCE1EE;
  --slate: #4A5372;
  --text: #141A33;
  --wa: #128C4A;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.7 var(--body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2B46D9; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 750; margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .4em; }
p, ul, ol, table { margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 24, 56, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(140, 214, 255, .12);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #D5DCF5; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 0; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 6px 24px -8px rgba(255, 178, 36, .7); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; }
.btn-line { color: var(--ink); border: 1.5px solid var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.top .btn { padding: 11px 18px; font-size: .95rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; padding: 10px 14px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--night); padding: 12px 20px 20px; gap: 2px; border-bottom: 1px solid var(--night-3); }
.menu-panel a { color: #E6EBFA; text-decoration: none; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- hero da home: a grade ao vivo ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #2A3B8F 0%, transparent 60%), var(--night);
  color: #DCE3FA; padding: 64px 0 72px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.15rem; color: #C9D2F2; max-width: 34em; }
.hero .lede strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: .95rem; color: #AEB9E2; }
.facts li { display: flex; gap: 8px; align-items: center; margin: 0; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.guide {
  position: relative; background: #0A1030; border: 1px solid var(--night-3); border-radius: 18px;
  padding: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.guide-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 12px; color: #9AA7D6; font-size: .85rem; }
.guide-head b { color: #fff; font: 700 1rem var(--display); }
.guide-times { display: grid; grid-template-columns: 64px repeat(4, 1fr); color: #7F8CC0; font-size: .78rem; padding: 0 0 6px; }
.guide-times span:first-child { visibility: hidden; }
.guide-rows { position: relative; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 58px 1fr; gap: 6px; }
.ch { display: grid; place-items: center; background: var(--night-2); border-radius: 10px; font: 700 .78rem var(--display); color: #fff; min-height: 52px; }
.slots { display: grid; gap: 6px; }
.slot { background: var(--night-2); border-radius: 10px; padding: 8px 12px; min-width: 0; color: #E6EBFA; font-size: .86rem; line-height: 1.3; }
.slot small { display: block; color: #8E9BCB; font-size: .74rem; }
.slot.on { background: var(--amber); color: var(--amber-ink); }
.slot.on small { color: #6B4A00; }
.now {
  position: absolute; top: -4px; bottom: -4px; left: 52%; width: 2px; background: var(--amber);
  box-shadow: 0 0 18px var(--amber); pointer-events: none;
  animation: scan 14s linear infinite alternate;
}
.now::before { content: "agora"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--amber-ink); font: 700 .7rem var(--body); padding: 3px 8px; border-radius: 999px; }
@keyframes scan { from { left: 40%; } to { left: 66%; } }

/* ---------- cabeçalho das internas ---------- */
.page-head { background: var(--night); color: #C9D2F2; padding: 34px 0 40px; }
.page-head h1 { color: #fff; max-width: 22em; }
.crumbs { font-size: .88rem; margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs li { margin: 0; color: #8E9BCB; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #56649A; }
.crumbs a { color: var(--sky); text-decoration: none; }
.meta { font-size: .92rem; color: #9AA7D6; margin: 0; }
.meta a { color: var(--sky); }

/* ---------- layout de leitura ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 48px 0 24px; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: .2em; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc p { font: 700 1rem var(--display); color: var(--ink); margin-bottom: .6em; }
.toc ol { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--slate); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--amber); }
.side-cta { background: var(--night); color: #C9D2F2; border-radius: var(--radius); padding: 20px; }
.side-cta b { display: block; color: #fff; font: 700 1.1rem/1.25 var(--display); margin-bottom: 6px; }
.side-cta p { font: inherit; color: inherit; font-size: .9rem; margin-bottom: 14px; }
.side-cta .btn { width: 100%; padding: 13px 16px; }

/* resposta rápida (front-loading / featured snippet) */
.tldr {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--amber);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2em;
}
.tldr h2 { font-size: 1.15rem; margin: 0 0 .5em; }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }

.figure { margin: 0 0 2em; }
.figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--night); }
.figure figcaption { font-size: .88rem; color: var(--slate); margin-top: 8px; }

/* tabelas (snippets em tabela) */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #EBEFF8; font-weight: 700; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 14px 56px; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night); color: var(--amber); font: 800 1rem var(--display);
}
.steps > li > strong { display: block; font-size: 1.08rem; }

.note { background: #EEF4FF; border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.4em; }
.warn { background: #FFF6E3; border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.4em; }
.note p:last-child, .warn p:last-child { margin: 0; }

/* grade de planos: cada plano é uma "linha da programação" */
.plans { display: grid; gap: 10px; margin: 0 0 1.6em; }
.plan {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.plan.hot { border: 2px solid var(--amber); box-shadow: 0 12px 32px -18px rgba(255, 178, 36, .9); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan .tag { display: inline-block; background: var(--amber); color: var(--amber-ink); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.plan p { margin: 0; color: var(--slate); font-size: .95rem; }
.plan .price { font: 800 1.7rem/1 var(--display); color: var(--ink); white-space: nowrap; }
.plan .price small { display: block; font: 500 .82rem var(--body); color: var(--slate); margin-top: 6px; }
.plan .btn { padding: 12px 18px; font-size: .95rem; }
.plan-side { display: flex; align-items: center; gap: 18px; }

/* FAQ */
.faq h3 { font-size: 1.12rem; margin: 1.6em 0 .35em; }
.faq p { margin: 0; }

/* leituras relacionadas */
.related { margin: 3em 0 0; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related li { margin: 0; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; height: 100%; }
.related a span { display: block; font-weight: 400; color: var(--slate); font-size: .9rem; margin-top: 2px; }
.related a:hover { border-color: var(--ink); }

/* faixa de chamada */
.band { background: var(--night); color: #C9D2F2; margin: 56px 0 0; padding: 56px 0; }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band h2 { color: #fff; margin: 0 0 .3em; }
.band p { margin: 0; max-width: 40em; }

/* home: seções */
.section { padding: 8px 0; }
.home-body { max-width: 820px; margin-inline: auto; padding: 56px 0 8px; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.devices li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.devices a { font-weight: 700; color: var(--ink); text-decoration: none; }
.devices a:hover { text-decoration: underline; }
.devices span { display: block; color: var(--slate); font-size: .92rem; margin-top: 4px; }

/* rodapé */
.foot { background: var(--ink); color: #9AA7D6; padding: 56px 0 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px 28px; }
.foot .social a { margin-right: 10px; display: inline-block; }
.foot h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: #C9D2F2; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { margin-bottom: 14px; }
.foot-legal { border-top: 1px solid #1E2647; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; }

/* WhatsApp flutuante (mobile) */
.wa-float { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; }
  .top .wrap > .btn { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 40px 0 48px; }
  .guide-times { display: none; }
  .row { grid-template-columns: 46px 1fr; }
  .slot:nth-child(3) { display: none; }
  .slots { grid-template-columns: 1fr 1fr !important; }
  .plan { grid-template-columns: 1fr; gap: 10px; }
  .plan-side { justify-content: space-between; }
  .related ul, .devices { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  }
  .foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .now { animation: none; }
  .btn { transition: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
