/* Alcatel Mobile IPTV — sistema de design
   Identidade: sinal, escuro, alto contraste. Tudo em tokens. */

:root {
  /* Superficies */
  --bg: #070a12;
  --bg-2: #0b1120;
  --surface: #101725;
  --raised: #162032;
  --line: #223049;
  --line-2: #2f4265;

  /* Tinta */
  --ink: #eef3fb;
  --ink-2: #a9b6cc;
  --ink-3: #76859e;

  /* Marca */
  --primary: #2b7fff;
  --primary-2: #6ba6ff;
  --cyan: #2bd7e8;
  --amber: #ffb43d;
  --green: #26c87a;
  --red: #ff6b6b;

  --grad-sinal: linear-gradient(135deg, #2b7fff 0%, #2bd7e8 100%);
  --grad-ink: linear-gradient(135deg, #ffffff 0%, #9dc4ff 100%);

  /* Forma */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Sombra */
  --shadow-3: 0 24px 64px -24px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(43, 127, 255, .35), 0 12px 40px -12px rgba(43, 127, 255, .45);

  /* Tipografia */
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .55vw, 1.45rem); }
h4 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: #fff; font-weight: 680; }
small { font-size: .84rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(43, 127, 255, .4); color: #fff; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  transform: translateY(-200%);
  background: var(--primary); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r) 0; font-weight: 650;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(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;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 800px; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section.tight { padding-block: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-sinal); border-radius: 2px; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.sec-head { max-width: 760px; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; }

/* ---------- topo ---------- */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 10, 18, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 1.4rem; height: 68px; }

.logo { display: flex; align-items: center; gap: .62rem; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-txt b { font-size: 1.02rem; font-weight: 760; color: #fff; letter-spacing: -.02em; }
.logo-txt span { font-size: .7rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; color: var(--cyan); }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.mainnav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: block; padding: .5rem .72rem; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: .93rem; font-weight: 560;
}
.mainnav a:hover { color: #fff; background: var(--raised); text-decoration: none; }
.mainnav a[aria-current="page"] { color: #fff; background: var(--raised); }

.topbar-cta { display: flex; gap: .55rem; flex-shrink: 0; }

.burger {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); cursor: pointer; padding: 0; place-items: center;
}
.burger svg { width: 20px; height: 20px; }
.burger .x { display: none; }
.burger[aria-expanded="true"] .m { display: none; }
.burger[aria-expanded="true"] .x { display: block; }

@media (max-width: 1024px) {
  .mainnav { display: none; }
  .burger { display: grid; }
  .topbar.open .mainnav {
    display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .8rem var(--gutter) 1.4rem; max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .topbar.open .mainnav ul { flex-direction: column; gap: .1rem; }
  .topbar.open .mainnav a { padding: .8rem .7rem; font-size: 1rem; }
  .topbar.open .topbar-cta .btn { width: 100%; padding: .85rem 1.2rem; font-size: 1rem; }
}

/* ---------- botoes ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: .96rem; font-weight: 680; letter-spacing: -.01em;
  cursor: pointer; text-align: center; line-height: 1.25;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--grad-sinal); color: #06121f; box-shadow: var(--glow); font-weight: 720; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(43, 127, 255, .6), 0 18px 44px -14px rgba(43, 215, 232, .6); }

.btn-wa { background: var(--green); color: #04170e; font-weight: 720; }
.btn-wa:hover { background: #34dd8b; }

.btn-ghost { background: var(--raised); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #1d2a40; border-color: var(--primary); color: #fff; }

.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ---------- hero ---------- */

.hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto; height: 620px; pointer-events: none;
  background:
    radial-gradient(58% 62% at 20% 22%, rgba(43, 127, 255, .28), transparent 68%),
    radial-gradient(48% 55% at 82% 8%, rgba(43, 215, 232, .18), transparent 66%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 58% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 58% at 50% 0%, #000 0%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 56ch; margin-bottom: 1.9rem; }

.trustbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 2.4rem;
}
.trustbar div { background: var(--bg-2); padding: .95rem .8rem; text-align: center; }
.trustbar b { display: block; font-size: 1.28rem; font-weight: 760; color: #fff; letter-spacing: -.03em; }
.trustbar span { font-size: .8rem; color: var(--ink-3); line-height: 1.35; display: block; }
@media (max-width: 560px) { .trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* painel visual do hero */
.hero-panel {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-3); overflow: hidden;
}
.hero-panel-top {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.hero-panel-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.hero-panel-top span { margin-left: .4rem; font-size: .76rem; color: var(--ink-3); font-family: var(--mono); }
.hero-panel-body { padding: 1.1rem; display: grid; gap: .6rem; }
.chan {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2);
}
.chan b { font-size: .9rem; font-weight: 650; color: var(--ink); }
.chan small { display: block; color: var(--ink-3); font-size: .76rem; }
.chan-logo {
  width: 44px; height: 32px; border-radius: 5px; display: grid; place-items: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: #06121f; background: var(--grad-sinal);
}
.chan-q { font-size: .74rem; font-weight: 750; padding: .2rem .45rem; border-radius: 4px; background: rgba(38,200,122,.14); color: var(--green); border: 1px solid rgba(38,200,122,.3); }
.live { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 750; color: var(--red); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: var(--line-2); }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--primary); }
.card h3, .card h2 { margin-bottom: .5rem; font-size: 1.1rem; }
.err h2 { font-size: 1.15rem; color: var(--ink-2); font-weight: 650; margin-bottom: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }

.ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(43, 127, 255, .12); border: 1px solid rgba(43, 127, 255, .28);
  color: var(--primary-2); margin-bottom: 1rem;
}
.ico svg { width: 22px; height: 22px; }

.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-size: .9rem; font-weight: 650; }
.card-link::after { content: "→"; transition: transform .18s ease; }
a.card:hover .card-link::after { transform: translateX(3px); }

/* ---------- passos ---------- */

.steps { counter-reset: s; display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: s; position: relative; padding: 1.3rem 1.4rem 1.3rem 4.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 1.25rem; top: 1.2rem;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-sinal); color: #06121f; font-weight: 800; font-size: .95rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p:last-child { margin-bottom: 0; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* ---------- tabelas ---------- */

.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 1.6rem; background: var(--surface); }
.tw table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .93rem; }
.tw caption { caption-side: top; text-align: left; padding: 1rem 1.1rem .1rem; font-weight: 700; color: var(--ink); font-size: .98rem; }
.tw caption span { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-3); margin-top: .2rem; }
.tw th, .tw td { padding: .82rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tw thead th { background: var(--bg-2); font-size: .78rem; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tw tbody tr:last-child td { border-bottom: 0; }
.tw tbody tr:hover td { background: rgba(43, 127, 255, .045); }
.tw td:first-child { font-weight: 620; color: var(--ink); }
.tw .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--ink-3); }
.warn-c { color: var(--amber); font-weight: 650; }

/* ---------- planos ---------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1024px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.plan {
  min-width: 0; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem 1.4rem; display: flex; flex-direction: column;
}
.plan.best { border-color: var(--primary); background: linear-gradient(180deg, rgba(43,127,255,.09), transparent 42%); box-shadow: var(--glow); }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad-sinal); color: #06121f; font-size: .7rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.plan .per { color: var(--ink-3); font-size: .82rem; margin-bottom: 1rem; }
.plan .price { display: flex; align-items: baseline; gap: .25rem; margin-bottom: .2rem; }
.plan .price b { font-size: 2.35rem; font-weight: 780; letter-spacing: -.045em; color: #fff; line-height: 1; }
.plan .price i { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.plan .equiv { font-size: .82rem; color: var(--cyan); font-weight: 620; margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.plan li { position: relative; padding-left: 1.5rem; font-size: .89rem; color: var(--ink-2); margin: 0; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg); border-radius: 1px;
}
.plan .btn { margin-top: auto; }
.save { display: inline-block; font-size: .76rem; font-weight: 750; color: var(--amber); background: rgba(255,180,61,.12); border: 1px solid rgba(255,180,61,.3); padding: .12rem .45rem; border-radius: 4px; margin-left: .4rem; vertical-align: middle; }

/* ---------- callout ---------- */

.callout {
  border-left: 3px solid var(--primary); background: rgba(43, 127, 255, .07);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.15rem 1.3rem; margin: 0 0 1.6rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout b.t { display: block; color: #fff; margin-bottom: .3rem; font-size: .95rem; }
.callout.warn { border-color: var(--amber); background: rgba(255, 180, 61, .07); }
.callout.warn b.t { color: var(--amber); }
.callout.ok { border-color: var(--green); background: rgba(38, 200, 122, .07); }
.callout.ok b.t { color: var(--green); }
.callout.bad { border-color: var(--red); background: rgba(255, 107, 107, .07); }
.callout.bad b.t { color: var(--red); }

/* ---------- faq ---------- */

.faq { display: grid; gap: .65rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.3rem; font-weight: 640; font-size: 1rem;
  position: relative; list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.45rem;
  width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--primary-2); }
.faq summary:hover { background: var(--raised); }
.faq .a { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: .96rem; }
.faq .a > :last-child { margin-bottom: 0; }

/* ---------- depoimentos ---------- */

.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; }
.rev-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-sinal); color: #06121f; font-weight: 800; font-size: .88rem;
}
.rev-top b { display: block; font-size: .93rem; color: #fff; }
.rev-top span { font-size: .82rem; color: var(--ink-3); }
.stars { color: var(--amber); font-size: .88rem; letter-spacing: .08em; margin-bottom: .5rem; }
p > .stars { display: inline; margin: 0; }
.rev p { font-size: .93rem; color: var(--ink-2); margin: 0; }

.score { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.4rem; }
.score b { font-size: 3rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; color: #fff; }

/* ---------- faixa de cta ---------- */

.cta {
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(135deg, rgba(43,127,255,.14), rgba(43,215,232,.07)), var(--surface);
  text-align: center; position: relative; overflow: hidden;
}
.cta h2 { max-width: 22ch; margin-inline: auto; }
.cta p { max-width: 60ch; margin-inline: auto; color: var(--ink-2); }

/* ---------- breadcrumb ---------- */

.crumbs { padding-top: 1.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; font-size: .82rem; color: var(--ink-3); }
.crumbs li { margin: 0; display: flex; gap: .4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--primary-2); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- artigo ---------- */

.article-head { padding-block: 2rem 1rem; }
.article-head h1 { margin-bottom: .45em; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; font-size: .85rem; color: var(--ink-3); }
.meta a { color: var(--ink-2); }
.meta .dot { color: var(--line-2); }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: 92px; font-size: .88rem; min-width: 0; }
@media (max-width: 1024px) {
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
}
.toc b { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .7rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); line-height: 1.4; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.on { color: var(--primary-2); border-left-color: var(--primary); font-weight: 620; }

.prose { max-width: 74ch; min-width: 0; }
.prose h2 { margin-top: 2.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose > p, .prose > ul, .prose > ol { color: var(--ink-2); }
.prose li strong { color: #fff; }
.prose figure { margin: 0 0 1.6rem; }
.prose figcaption { font-size: .82rem; color: var(--ink-3); margin-top: .6rem; }

.keytake {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 1.3rem 1.5rem; margin-bottom: 2.2rem;
}
.keytake b.t { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: .7rem; }
.keytake ul { margin: 0; padding-left: 1.2rem; }
.keytake li { color: var(--ink-2); font-size: .95rem; }
.keytake li:last-child { margin-bottom: 0; }

/* ---------- glossario ---------- */

.gloss { display: grid; gap: .9rem; }
.gloss div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.gloss dt { font-weight: 700; color: #fff; margin-bottom: .25rem; font-size: 1rem; }
.gloss dd { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- autor ---------- */

.author {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; margin-top: 3rem;
}
.author .av { width: 54px; height: 54px; font-size: 1.05rem; }
.author b { display: block; color: #fff; font-size: 1rem; }
.author .role { font-size: .82rem; color: var(--cyan); font-weight: 620; margin-bottom: .5rem; display: block; }
.author p { font-size: .89rem; color: var(--ink-2); margin: 0; }

/* ---------- rodape ---------- */

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 3.4rem 2rem; margin-top: 4rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 2rem 1.4rem; margin-bottom: 2.6rem; }
@media (max-width: 1024px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-brand { grid-column: span 1; }
@media (max-width: 1024px) { .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { font-size: .88rem; color: var(--ink-3); margin: 1rem 0 1.1rem; max-width: 34ch; }
.foot-grid h2 { font-size: .76rem; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; font-weight: 700; }
.foot h4 { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot li { margin: 0; }
.foot ul a { color: var(--ink-2); font-size: .89rem; }
.foot ul a:hover { color: #fff; }
.social { display: flex; gap: .5rem; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.social a:hover { border-color: var(--primary); color: #fff; }
.social svg { width: 17px; height: 17px; }
.foot-bot { border-top: 1px solid var(--line); padding-top: 1.6rem; font-size: .8rem; color: var(--ink-3); display: grid; gap: .7rem; }
.foot-bot p { margin: 0; }

/* ---------- whatsapp flutuante ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #04170e; box-shadow: 0 10px 30px -8px rgba(38, 200, 122, .6);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; } }

/* ---------- erro ---------- */

.err { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.err .code { font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: var(--grad-sinal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- utilitarios ---------- */

.mb0 { margin-bottom: 0 !important; }
.mt2 { margin-top: 2rem; }
.mt3 { margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .foot, .wa-float, .toc, .cta, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .tw { border-color: #ccc; }
}
