/* =========================================================
   A3 Telecom — novo site
   Mundo: "luz guiada". Azuis da A3 em profundidade, uma fibra de luz
   que conduz a leitura, vidro só no que flutua sobre o conteúdo.
   ========================================================= */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial"); size-adjust: 128%; ascent-override: 80%; descent-override: 20%; }

/* ---------- Tokens: claro ---------- */
:root {
  color-scheme: light;
  --bg: #F3F6FE;
  --bg-2: #E6ECFB;
  --surface: #FFFFFF;
  --surface-2: #F6F8FF;
  --ink: #06103F;
  --ink-2: #33427A;
  --ink-3: #56649A;
  --line: rgba(6, 16, 63, 0.10);
  --line-2: rgba(6, 16, 63, 0.18);
  --brand: #2450C9;          /* azul da fachada */
  --brand-deep: #07105E;     /* marinho do logo */
  --action: #1D4BDB;
  --action-ink: #FFFFFF;
  --action-hover: #1740BE;
  --glow: #0379FF;           /* brilho da boca e dos olhos do Spark */
  --fiber: #2A78FF;
  --fiber-halo: rgba(42, 120, 255, 0.22);
  --fiber-base: rgba(29, 75, 219, 0.16);
  --depth-1: #DCE6FF;
  --depth-2: #C9D8FF;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(6, 16, 63, 0.08);
  --solid-fallback: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(6, 16, 63, 0.06), 0 8px 24px -12px rgba(6, 16, 63, 0.18);
  --shadow-2: 0 2px 6px rgba(6, 16, 63, 0.06), 0 30px 60px -28px rgba(6, 16, 63, 0.35);
  --amber: #FFC21A;
  --amber-ink: #241900;
  --ok: #0F8A5F;

  --f-display: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --f-text: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 8px; --r-s: 12px; --r-m: 18px; --r-l: 28px; --r-xl: 40px;
  --gutter: 16px;
  --maxw: 1280px;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms;
  --t-fast: 180ms;
  --t: 240ms;
}

/* ---------- Tokens: escuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #040824;
  --bg-2: #060C34;
  --surface: #0A1450;
  --surface-2: #0D1A5E;
  --ink: #EEF3FF;
  --ink-2: #B5C3F2;
  --ink-3: #8D9DD4;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --action: #F1F5FF;
  --action-ink: #06103F;
  --action-hover: #FFFFFF;
  --fiber: #8FDCFF;
  --fiber-halo: rgba(92, 200, 255, 0.20);
  --fiber-base: rgba(143, 220, 255, 0.16);
  --depth-1: #0B2296;
  --depth-2: #1238C8;
  --glass: rgba(9, 18, 70, 0.55);
  --glass-strong: rgba(9, 18, 70, 0.78);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(0, 0, 0, 0.25);
  --solid-fallback: #0A1450;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --ok: #5EE0A8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #040824; --bg-2: #060C34; --surface: #0A1450; --surface-2: #0D1A5E;
    --ink: #EEF3FF; --ink-2: #B5C3F2; --ink-3: #8D9DD4;
    --line: rgba(255, 255, 255, 0.10); --line-2: rgba(255, 255, 255, 0.18);
    --action: #F1F5FF; --action-ink: #06103F; --action-hover: #FFFFFF;
    --fiber: #8FDCFF; --fiber-halo: rgba(92, 200, 255, 0.20); --fiber-base: rgba(143, 220, 255, 0.16);
    --depth-1: #0B2296; --depth-2: #1238C8;
    --glass: rgba(9, 18, 70, 0.55); --glass-strong: rgba(9, 18, 70, 0.78); --glass-line: rgba(255, 255, 255, 0.16); --glass-edge: rgba(0, 0, 0, 0.25);
    --solid-fallback: #0A1450;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    --ok: #5EE0A8;
  }
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 68px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 32px); }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduce"]) { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 560; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
/* Encaixe em qualquer tela (de 240 px a 4K): nenhum filho de grade/flex impõe largura mínima maior que a tela,
   palavras longas quebram em vez de alargar a página, e mídia nunca passa da coluna. */
h1, h2, h3, h4, p, li, summary, dd, dt, figcaption, .btn { overflow-wrap: break-word; }
img, svg, video, iframe, canvas { max-width: 100%; }
.wrap > *, [class*="-grid"] > *, [class*="-row"] > *, [class*="-actions"] > * { min-width: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--glow); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 10px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--action); color: var(--action-ink); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Vidro (só no que flutua) ---------- */
.glass { background: var(--solid-fallback); border: 1px solid var(--line); }
:root[data-glass="on"] .glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-color: var(--glass-line);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-1);
}
/* Celular e tablet: vidro sólido, sem desfoque de fundo. O desfoque de um cabeçalho fixo é recalculado a cada quadro
   da rolagem e é o que mais pesa em aparelhos modestos. */
@media (max-width: 1023px), (pointer: coarse) {
  :root[data-glass="on"] .glass { background: var(--solid-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-glass="on"] .glass { background: var(--solid-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root[data-glass="on"] .glass { background: var(--solid-fallback); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center;
  border: 1px solid transparent; max-width: 100%;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
  user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 19px; height: 19px; }
.btn-primary { background: var(--action); color: var(--action-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -14px var(--btn-sombra, rgba(6, 16, 63, 0.6)); }
/* em fundo escuro a sombra do botão é neutra (preta), não azulada */
:root[data-theme="dark"] { --btn-sombra: rgba(0, 0, 0, 0.55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-sombra: rgba(0, 0, 0, 0.55); } }
.btn-quiet { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--action-hover); }
  .btn-quiet:hover { border-color: var(--ink-3); }
}
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Cabeçalho flutuante ---------- */
.header { position: fixed; z-index: 40; top: 10px; left: 0; right: 0; pointer-events: none; }
.header-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  min-height: var(--header-h); padding: 8px 8px 8px 12px; border-radius: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand span { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; display: none; }
.nav { display: none; margin-inline: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.nav a:hover { color: var(--ink); background: var(--line); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.chip-city {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 12px;
  border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; min-width: 0;
  transition: border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out);
}
.chip-city:active { transform: scale(0.97); }
.chip-city .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fiber); flex: none; }
.chip-city[data-empty="true"] .dot { background: var(--ink-3); box-shadow: none; }
.chip-city .lbl { overflow: hidden; text-overflow: ellipsis; }
/* celular estreito: nome da cidade encurta (a bandeira continua) para caber acessibilidade e menu */
/* nome da cidade no chip: usa a folga que a tela tiver (antes era fixo em 8.5ch e cortava "Alto Paraíso" por 2 px,
   mesmo com espaço sobrando nos iPhones); o resto do cabeçalho tem largura fixa, então a folga é 100vw menos ~272 px */
@media (max-width: 479px) { .header-tools { gap: 4px; } .chip-city { padding-inline: 10px 8px; gap: 6px; } .chip-city .lbl { max-width: clamp(8.5ch, calc(100vw - 272px), 17ch); } }
@media (max-width: 299px) { .header-bar { padding-left: 8px; } .brand { min-height: 40px; } .brand img { width: 36px; height: 36px; } .a11y-btn, .menu-btn { width: 40px; height: 40px; } .header-tools { gap: 3px; } }
@media (max-width: 359px) { .header-bar { gap: 6px; } .chip-city { padding-inline: 8px 6px; gap: 4px; } .chip-city[data-empty="false"] .lbl { display: none; } .chip-city .lbl { max-width: 6.5ch; } } /* 320 px: só a bandeira; o nome segue no aria-label */
/* acessibilidade sempre à mão no cabeçalho */
.a11y-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
.a11y-btn .ico { width: 20px; height: 20px; }
.a11y-btn:active { transform: scale(0.96); }
@media (hover: hover) { .a11y-btn:hover { border-color: var(--ink-3); } }
/* tamanho do texto escolhido em "Aparência e acessibilidade" */
:root[data-text="lg"] { font-size: 112.5%; }
:root[data-text="xl"] { font-size: 125%; }
/* bandeira redonda da cidade: aparece no lugar do ponto quando a cidade está escolhida */
.flag { flex: none; display: inline-block; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--line-2); }
.flag[hidden] { display: none; }
.chip-city .flag { width: 22px; height: 22px; }
.chip-city .flag:not([hidden]) ~ .lbl, .hero-city .flag:not([hidden]) ~ span { margin-left: 2px; }
.chip-city:has(.flag:not([hidden])) .dot, .hero-city:has(.flag:not([hidden])) .dot { display: none; }
.hero-city .flag { width: 24px; height: 24px; }
.flag-head { width: 44px; height: 44px; margin-left: auto; }
.city-card strong, .city-tile strong { display: flex; align-items: center; gap: 10px; }
.city-card .flag { width: 28px; height: 28px; }
.city-tile .flag { width: 32px; height: 32px; }
.chip-city .ico { width: 16px; height: 16px; opacity: 0.7; }
@media (hover: hover) { .chip-city:hover { border-color: var(--ink-3); } }
.btn-cliente { display: none; }
.header-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); transition: transform var(--t-press) var(--ease-out); }
.menu-btn:active { transform: scale(0.96); } /* mesmo retorno ao toque do botão de acessibilidade ao lado */
@media (min-width: 640px) { .brand span { display: inline; } .header-cta { display: inline-flex; } }
@media (min-width: 1080px) { .btn-cliente { display: inline-flex; } }
/* nada no cabeçalho quebra linha; entre 1260 e 1439 px "Sou cliente" vira ícone (o nome segue para leitores de tela) */
.nav a, .header-bar .btn, .chip-city { white-space: nowrap; }
@media (min-width: 1260px) and (max-width: 1439px) {
  .nav a { padding-inline: 10px; }
  .btn-cliente { font-size: 0; gap: 0; width: 44px; padding: 0; justify-content: center; }
  .btn-cliente .ico { width: 20px; height: 20px; }
}
/* o menu de seções só vira barra quando tudo cabe (iPad deitado, 1180 px, continua com o botão de menu) */
@media (min-width: 1260px) {
  .nav { display: block; }
  .header-tools { margin-left: 0; }
  .menu-btn { display: none; }
}

/* ---------- Jornada: hero + planos, ligados pela fibra ---------- */
.journey { position: relative; isolation: isolate; }
.fiber { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
/* Sombra do portal numa camada ABAIXO da fibra: assim a fibra que sai do portal não é escurecida pela sombra
   (antes ela ficava por cima do traço e criava um degrau de brilho na junção). Posição copiada do portal em measure(). */
.portal-shadow { position: absolute; left: 0; top: 0; width: 0; height: 0; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; }
.js .portal.shadow-below { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.fiber svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fiber path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fiber .f-base { stroke: var(--fiber-base); stroke-width: 1.5; }
.fiber .f-halo { stroke: var(--fiber-halo); stroke-width: 6; }
.fiber .f-core { stroke: var(--fiber); stroke-width: 2; }
.fiber .f-pulse { stroke: #fff; stroke-width: 3; opacity: 0; }
:root:not([data-theme="dark"]) .fiber .f-pulse { stroke: var(--glow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fiber .f-pulse { stroke: #fff; } }
:root[data-theme="dark"] .fiber .f-pulse { stroke: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding-top: calc(var(--header-h) + 34px); padding-bottom: 56px; display: grid; align-items: center; overflow: clip; }
.hero::before { /* fundo sóbrio: sem manchas de luz, só a transição suave para a página */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 85%);
}
:root:not([data-theme="dark"]) .hero::before { opacity: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-city { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 6px 10px; min-height: 40px; padding: 6px 8px 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 22px; }
.hero-city .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fiber); }
.hero-city button { white-space: nowrap; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.55rem); }
.hero h1 .l2 { display: block; color: var(--brand); }
:root[data-theme="dark"] .hero h1 .l2 { color: var(--fiber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .l2 { color: var(--fiber); } }
.hero-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-fact { margin-top: 26px; color: var(--ink-3); font-size: 0.9375rem; }
.hero-fact strong { color: var(--ink); font-weight: 600; }
.hero-fact .price { white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink); margin: 0 0.35em; }
.hero-incl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.hero-incl li { display: inline-flex; align-items: center; gap: 7px; }
.hero-incl .ico { width: 17px; height: 17px; color: var(--glow); }

/* Palco do Spark: o portal (CSS) é o ambiente; a arte SPK-01 é transparente e única para os dois temas.
   Recorte desktop: x0 y180 1024x1356 (proporção 1024/1356). Recorte celular: x0 y200 1024x1100. */
.stage { position: relative; z-index: 3; justify-self: center; width: min(100%, 520px); }
.portal {
  position: relative; aspect-ratio: 1024 / 1356;
  border-radius: 50% 50% var(--r-xl) 14px / 30% 30% var(--r-xl) 14px;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #1E46C2 0%, #10288E 55%, #0A1A66 var(--sill, 100%), var(--casco, #EEF2FC) var(--sill, 100%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-2);
}
/* reflexo do vidro da janela: brilho diagonal suave só no alto, à esquerda (longe do cabo, que sai embaixo) */
.portal::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 17%, rgba(255, 255, 255, 0) 29%),
    radial-gradient(55% 30% at 20% 4%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%); }
@media (forced-colors: active) { .portal::after { display: none; } }
.spark-btn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.spark-btn:focus-visible { outline: 3px solid #8FDCFF; outline-offset: -6px; }
.rig { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rig image { image-rendering: auto; }
.rig-cable path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rig-cable .rc-halo { display: none; }
.rig-cable .rc-core { stroke: var(--fiber); stroke-width: 2; }
.rig-cable .rc-pulse { stroke: #FFFFFF; stroke-width: 3; opacity: 0; }
.fiber-anchor { position: absolute; width: 2px; height: 2px; }

/* Foguete: o portal é a janela. Casco, bico, aletas, bocal e chama são desenhados pelo app.js na camada da fibra
   (abaixo dela). O portal ganha margens para o foguete inteiro caber no palco: em cima o bico, embaixo bocal e chama,
   dos lados as aletas (margem em % da largura do palco). */
.portal { margin: 15% 12% 20%; }
.rocket { position: absolute; left: 0; top: 0; pointer-events: none; }
.rocket svg { display: block; overflow: visible; }
/* camadas do foguete: ambiente (celular), chama e casco, uma sobre a outra */
.rocket > svg, .rocket > .rk-chama { position: absolute; left: 0; top: 0; }
.rk-chama { transform-origin: 50% 0; }
.rocket:not(:empty) ~ .portal-shadow { display: none; }
.portal { --casco: #F2F5FD; }
:root[data-theme="dark"] .portal { --casco: #CDD6EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portal { --casco: #CDD6EE; } }
.rk-h0 { stop-color: #FFFFFF; } .rk-h1 { stop-color: #EEF2FC; } .rk-h2 { stop-color: #C3CDE9; }
.rk-body { stroke: rgba(6, 16, 63, 0.16); stroke-width: 1; }
.rk-r0 { stop-color: #FFFFFF; } .rk-r1 { stop-color: #DCE3F4; } .rk-r2 { stop-color: #93A3CF; }
:root[data-theme="dark"] .rk-r0 { stop-color: #EEF2FC; } :root[data-theme="dark"] .rk-r1 { stop-color: #B9C4E4; } :root[data-theme="dark"] .rk-r2 { stop-color: #5B6CA6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rk-r0 { stop-color: #EEF2FC; } :root:not([data-theme="light"]) .rk-r1 { stop-color: #B9C4E4; } :root:not([data-theme="light"]) .rk-r2 { stop-color: #5B6CA6; } }
/* parapeito da janela: um por recorte da arte */
.rig-sill-narrow { display: none; }
@media (max-width: 719px) { .rig-sill-wide { display: none; } .rig-sill-narrow { display: inline; } }
.rk-frame { stroke: #9AA9D3; stroke-width: 2.5; }
.rk-fin { stroke: rgba(6, 16, 63, 0.18); stroke-width: 1; }
:root[data-theme="dark"] .rk-h0 { stop-color: #E6ECFA; } :root[data-theme="dark"] .rk-h1 { stop-color: #C4CEEA; } :root[data-theme="dark"] .rk-h2 { stop-color: #7E8FC2; }
:root[data-theme="dark"] .rk-frame { stroke: #5B6CA6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rk-h0 { stop-color: #E6ECFA; } :root:not([data-theme="light"]) .rk-h1 { stop-color: #C4CEEA; } :root:not([data-theme="light"]) .rk-h2 { stop-color: #7E8FC2; }
  :root:not([data-theme="light"]) .rk-frame { stroke: #5B6CA6; }
}
/* a chama tremula numa camada própria: o navegador anima só ela, sem redesenhar o casco */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .rk-chama { will-change: transform; animation: rk-chama 1.3s ease-in-out infinite alternate; }
}
@keyframes rk-chama { from { transform: scale(0.95, 0.9); } to { transform: scale(1.02, 1.05); } }
/* aro cromado da janela, colar do bico e rebites */
.rk-aro { fill: none; stroke: #C6D0EA; }
.rk-aro-luz { fill: none; stroke: #FFFFFF; stroke-opacity: 0.85; }
.rk-aro-borda { fill: none; stroke: #5D6C9E; stroke-opacity: 0.55; stroke-width: 1.2; }
.rk-rebite { fill: #8C99C2; } .rk-rebite-luz { fill: #FFFFFF; fill-opacity: 0.9; }
.rk-c0 { stop-color: #FFFFFF; } .rk-c1 { stop-color: #C9D2EC; } .rk-c2 { stop-color: #7C8AB6; }
:root[data-theme="dark"] .rk-aro { stroke: #8F9CC8; } :root[data-theme="dark"] .rk-aro-luz { stroke-opacity: 0.55; } :root[data-theme="dark"] .rk-rebite { fill: #5D6CA6; }
:root[data-theme="dark"] .rk-c0 { stop-color: #E6ECFA; } :root[data-theme="dark"] .rk-c1 { stop-color: #A6B2D8; } :root[data-theme="dark"] .rk-c2 { stop-color: #5B6AA0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rk-aro { stroke: #8F9CC8; } :root:not([data-theme="light"]) .rk-aro-luz { stroke-opacity: 0.55; } :root:not([data-theme="light"]) .rk-rebite { fill: #5D6CA6; }
  :root:not([data-theme="light"]) .rk-c0 { stop-color: #E6ECFA; } :root:not([data-theme="light"]) .rk-c1 { stop-color: #A6B2D8; } :root:not([data-theme="light"]) .rk-c2 { stop-color: #5B6AA0; }
}
@media (forced-colors: active) { .rocket { display: none; } }
/* Ambiente do foguete no celular (desenhado pelo app.js): brilho, órbitas, pontos de luz e cintilações.
   Tema claro: azul da marca bem suave. Tema escuro (e noite de Natal, no natal.css): luz ciano. */
.rk-b0 { stop-color: #6E9BFF; stop-opacity: 0.32; } .rk-b1 { stop-color: #9DBBFF; stop-opacity: 0.13; } .rk-b2 { stop-color: #9DBBFF; stop-opacity: 0; }
.rk-orb { fill: none; stroke: #1D4BDB; stroke-opacity: 0.2; stroke-width: 1; }
.rk-orb-2 { stroke-opacity: 0.32; stroke-linecap: round; }
.rk-luz { fill: #2A78FF; } .rk-luz-halo { fill: #2A78FF; fill-opacity: 0.16; }
.rocket .rk-cint { fill: #2A78FF; fill-opacity: 0.4; }
:root[data-theme="dark"] .rk-b0 { stop-color: #2F6BFF; stop-opacity: 0.34; } :root[data-theme="dark"] .rk-b1 { stop-color: #1F4FD8; stop-opacity: 0.12; } :root[data-theme="dark"] .rk-b2 { stop-color: #1F4FD8; stop-opacity: 0; }
:root[data-theme="dark"] .rk-orb { stroke: #8FDCFF; stroke-opacity: 0.2; } :root[data-theme="dark"] .rk-orb-2 { stroke-opacity: 0.32; }
:root[data-theme="dark"] .rk-luz { fill: #C9EEFF; } :root[data-theme="dark"] .rk-luz-halo { fill: #8FDCFF; fill-opacity: 0.24; }
:root[data-theme="dark"] .rocket .rk-cint { fill: #FFFFFF; fill-opacity: 0.8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rk-b0 { stop-color: #2F6BFF; stop-opacity: 0.34; } :root:not([data-theme="light"]) .rk-b1 { stop-color: #1F4FD8; stop-opacity: 0.12; } :root:not([data-theme="light"]) .rk-b2 { stop-color: #1F4FD8; stop-opacity: 0; }
  :root:not([data-theme="light"]) .rk-orb { stroke: #8FDCFF; stroke-opacity: 0.2; } :root:not([data-theme="light"]) .rk-orb-2 { stroke-opacity: 0.32; }
  :root:not([data-theme="light"]) .rk-luz { fill: #C9EEFF; } :root:not([data-theme="light"]) .rk-luz-halo { fill: #8FDCFF; fill-opacity: 0.24; }
  :root:not([data-theme="light"]) .rocket .rk-cint { fill: #FFFFFF; fill-opacity: 0.8; }
}

@media (max-width: 719px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 26px); padding-bottom: 24px; }
  .hero-copy { display: contents; }
  .hero-grid { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-city { order: 1; justify-self: start; margin-bottom: 18px; }
  .hero-city [data-hero-city-text] { font-size: 0.875rem; }
  .hero h1 { order: 2; }
  .stage { order: 3; width: 100%; margin-top: 22px; }
  .hero-actions { order: 4; margin-top: 22px; }
  .hero-lead { order: 5; margin-top: 22px; }
  .hero-fact { order: 6; }
  .hero-incl { order: 7; }
  .stage { width: min(90%, 420px); justify-self: center; }
  .portal { margin: 14% 10% 19%; }
  /* celulares mais baixos (360x740): o foguete encolhe para o botão principal continuar na primeira tela */
  .stage { max-width: max(220px, calc((100vh - 410px) / 1.19)); max-width: max(220px, calc((100svh - 410px) / 1.19)); }
    .portal { aspect-ratio: 1024 / 1100; border-radius: 50% 50% var(--r-l) var(--r-l) / 32% 32% var(--r-l) var(--r-l); }
  .stage { padding-bottom: 0; display: grid; }
  }
/* celulares baixos (como o iPhone com as barras do Safari): os botões sobem para logo abaixo do título e o foguete vem
   depois deles. Como o botão principal já está na primeira tela, o foguete não precisa encolher pela altura da tela
   (antes ficava com 220 px e parecia perdido no meio de um fundo vazio). */
@media (max-width: 719px) and (max-height: 700px) { .stage { width: min(92%, 400px); max-width: none; order: 4; } .hero-actions { order: 3; } .hero h1 { font-size: 2rem; } }
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 40px; }
  .stage { justify-self: end; }
  /* notebooks baixos (1280x720, 1366x768): o foguete inteiro cabe na altura da tela */
  .stage { max-width: calc((100vh - 130px) / 1.36); max-width: calc((100svh - 130px) / 1.36); }
}
@media (min-width: 1280px) { .stage { width: 520px; margin-right: 0; } }

/* ---------- Explorador de planos ---------- */
.explore { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 120px) clamp(64px, 8vw, 128px); }
.explore-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.explore-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.explore-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 58ch; }
.explore-head .city-tag { color: var(--brand); }
:root[data-theme="dark"] .explore-head .city-tag { color: var(--fiber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .explore-head .city-tag { color: var(--fiber); } }

.explorer { display: grid; gap: 20px; min-width: 0; }
.explorer > * { min-width: 0; }
@media (min-width: 960px) { .explorer { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; } }

/* Colunas de velocidade */
.rails { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 10px; align-items: end; padding: 20px 16px 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); height: 380px; }
@media (min-width: 960px) { .rails { height: auto; min-height: 460px; padding: 28px 24px 22px; gap: 16px; } }
.rails-axis { position: absolute; left: 16px; right: 16px; bottom: 86px; height: 1px; background: var(--line); }
@media (min-width: 960px) { .rails-axis { left: 24px; right: 24px; bottom: 92px; } }
.rail {
  position: relative; display: grid; grid-template-rows: 1fr auto; gap: 12px; height: 100%; text-align: center;
  border-radius: var(--r-m); padding: 6px; transition: transform var(--t-press) var(--ease-out);
}
.rail:active { transform: scale(0.98); }
.rail-col { position: relative; align-self: end; height: var(--h, 60%); min-height: 84px; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: border-color var(--t-fast) ease; }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--depth-2), var(--brand) 55%, var(--brand-deep)); opacity: 0; transition: opacity var(--t) var(--ease-out); }
:root[data-theme="dark"] .rail-fill { background: linear-gradient(180deg, #5CC8FF, var(--brand) 50%, #0A1A7A); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rail-fill { background: linear-gradient(180deg, #5CC8FF, var(--brand) 50%, #0A1A7A); } }
.rail-light { position: absolute; left: 50%; top: 74px; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--fiber) 30%, transparent); opacity: 0.6; }
.rail-speed { position: absolute; left: 0; right: 0; top: 14px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); transition: color var(--t-fast) ease; }
.rail-speed small { display: block; font-family: var(--f-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0; margin-top: 6px; color: var(--ink-3); transition: color var(--t-fast) ease; }
.rail-meta { display: grid; gap: 2px; padding-top: 6px; min-height: 64px; }
.rail-price { font-weight: 650; font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.0625rem); white-space: nowrap; }
.rail-tag { font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.rail-tag.is-best { justify-self: center; padding: 1px 8px; border-radius: 6px; background: var(--amber); color: var(--amber-ink); font-weight: 700; }
.rail[aria-checked="true"] .rail-fill { opacity: 1; }
.rail[aria-checked="true"] .rail-col { border-color: transparent; }
.rail[aria-checked="true"] .rail-speed, .rail[aria-checked="true"] .rail-speed small { color: #fff; }
.rail[aria-checked="true"] .rail-light { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .rail:hover .rail-col { border-color: var(--line-2); } }
/* telas estreitas: depois das regras base dos trilhos, senão não valem */
@media (max-width: 380px) { .rails { gap: 6px; padding-inline: 10px; } .rail { padding: 2px; } .rail-tag { white-space: normal; } .rail-tag.is-best { font-size: 0.75rem; } }
@media (max-width: 300px) { .rails { gap: 4px; padding-inline: 6px; } .rail-price { white-space: normal; font-size: 0.8125rem; } } /* Galaxy Fold fechado (280 px) */
.rails-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-3); text-align: left; margin-top: 2px; }

/* Painel do plano */
.plan-panel { position: relative; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 22px; align-content: start; }
.panel-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; transition: opacity var(--t-fast) ease, filter var(--t-fast) ease; }
.plan-panel.is-swapping .panel-body { opacity: 0.35; filter: blur(4px); }
.panel-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.panel-name { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); letter-spacing: -0.035em; }
.panel-note { color: var(--ink-2); margin-top: 6px; }
.panel-price { text-align: right; }
@media (max-width: 640px) { .panel-price { text-align: left; } }
.panel-price .v { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.045em; line-height: 1; }
.panel-price .v small { font-size: 0.42em; letter-spacing: -0.01em; margin-left: 2px; color: var(--ink-2); font-weight: 500; }
.panel-price .pos { display: block; margin-top: 8px; color: var(--ink-3); font-size: 0.9375rem; }
.meters { display: grid; gap: 14px; }
.meter { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.meter span:first-child { color: var(--ink-2); font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 6px; }
.meter .ico { width: 16px; height: 16px; }
.meter-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--v, 0)); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--glow)); transition: transform 420ms var(--ease-in-out); }
:root[data-theme="dark"] .meter-fill { background: linear-gradient(90deg, var(--brand), #5CC8FF); }
.meter b { font-weight: 650; min-width: 84px; text-align: right; }
@media (max-width: 299px) { .meter { grid-template-columns: minmax(0, 1fr) auto; } .meter-track { grid-column: 1 / -1; grid-row: 2; } .meter b { min-width: 0; } } /* tela mínima: barra embaixo do rótulo */
.incl { display: flex; flex-wrap: wrap; gap: 8px; }
.incl li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; }
.incl .ico { width: 16px; height: 16px; color: var(--glow); }
.incl .sva { border-color: transparent; background: var(--brand); color: #fff; }
.incl .sva .ico { color: #fff; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-fine { font-size: 0.875rem; color: var(--ink-3); }
.panel-fine a { color: var(--ink-2); }

/* Comparação */
.compare { margin-top: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.compare-head h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 0.9375rem; }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background-color var(--t-fast) ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t-fast) var(--ease-out); }
.switch[aria-checked="true"] .switch-track { background: var(--brand); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
.table-wrap { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
.ctable th, .ctable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.ctable thead th { font-family: var(--f-display); font-weight: 560; font-size: 1rem; letter-spacing: -0.02em; }
.ctable thead th button { font: inherit; padding: 4px 10px; margin: -4px -10px; border-radius: 10px; }
.ctable tbody th { color: var(--ink-3); font-weight: 500; width: 26%; }
.ctable td { font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.ctable .col-on { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.ctable tr { transition: opacity var(--t-fast) ease; }
.compare.is-diff tr.same { opacity: 0.38; }
.compare.is-diff tr.diff td { color: var(--ink); font-weight: 650; }
.compare.is-diff tr.diff th { color: var(--ink); }
.diff-mark { display: none; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--amber); color: var(--amber-ink); font-size: 0.6875rem; font-weight: 700; vertical-align: 2px; }
.compare.is-diff tr.diff .diff-mark { display: inline-block; }

/* Estado sem cidade */
.locked { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); display: grid; gap: 24px; }
.locked p { color: var(--ink-2); max-width: 56ch; }
.city-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .locked .city-grid { grid-template-columns: repeat(4, 1fr); } }
.city-card {
  position: relative; display: grid; gap: 4px; text-align: left; padding: 18px 18px 16px; min-height: 96px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: var(--surface-2);
  transition: border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease;
}
.city-card:active { transform: scale(0.98); }
.city-card strong { font-family: var(--f-display); font-weight: 560; font-size: 1.125rem; letter-spacing: -0.025em; }
.city-card span { color: var(--ink-3); font-size: 0.9375rem; }
.city-card .ico { position: absolute; right: 16px; top: 18px; width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease-out); }
.city-card[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.city-card[aria-pressed="true"] .ico { color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .city-card:hover { border-color: var(--ink-3); } .city-card:hover .ico { transform: translateX(3px); } }

/* ---------- Diálogos ---------- */
/* Painéis: a janela ocupa a tela inteira desde o primeiro quadro (posição fixa declarada). Entrada e saída por classe
   (is-entrando / is-saindo), que funciona em qualquer navegador.
   overflow: clip, e não hidden: com hidden a janela ainda pode ser rolada por código, e o Safari do iPhone, ao pôr o foco
   no botão de fechar (ainda fora da tela no começo da subida), rolava a janela por dentro. A subida somava com essa
   rolagem: o painel passava do topo, deixava um vão embaixo e só no fim pulava para o lugar. Com clip não há o que rolar. */
dialog.sheet { position: fixed; inset: 0; border: 0; padding: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--ink); overflow: hidden; overflow: clip; }
/* Painel fechado já fica montado (invisível, sem toque, foco ou leitura de tela) e parado na posição de partida.
   Sem isso, o primeiro toque em cada painel pagava a montagem inteira dele (~150 ms num celular modesto). */
dialog.sheet:not([open]) { display: block; visibility: hidden; pointer-events: none; }
dialog.sheet::backdrop { background: rgba(2, 5, 30, 0.42); transition: opacity 320ms ease; }
dialog.sheet.is-entrando::backdrop, dialog.sheet.is-saindo::backdrop { opacity: 0; }
dialog.sheet:not([open]) .sheet-panel, dialog.sheet.is-entrando .sheet-panel, dialog.sheet.is-saindo .sheet-panel { transform: translateY(100%); }
dialog.sheet:not([open]) .sheet-panel { transition: none; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: min(92dvh, 760px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-2);
  /* abertura: sobe de baixo, solta no começo e assentando devagar no lugar, sem passar do ponto e sem voltar
     (a curva das folhas do iPhone) */
  transition: transform 480ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease;
}
/* fechar: rápido, acelerando para baixo */
dialog.sheet.is-saindo .sheet-panel { transition: transform 240ms cubic-bezier(0.4, 0, 1, 1), opacity 200ms ease; }
@media (min-width: 768px) {
  /* no computador o painel fica no meio da tela: sobe um pouco enquanto aparece e assenta, sem passar do ponto */
  .sheet-panel { left: 50%; top: 50%; bottom: auto; width: min(640px, calc(100% - 48px)); border-radius: 28px; transform: translate(-50%, -50%); max-height: 88dvh; padding: 32px; box-shadow: var(--shadow-2);
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1), opacity 260ms ease; }
  dialog.sheet:not([open]) .sheet-panel, dialog.sheet.is-entrando .sheet-panel, dialog.sheet.is-saindo .sheet-panel { transform: translate(-50%, calc(-50% + 18px)) scale(0.97); opacity: 0; }
  dialog.sheet.is-saindo .sheet-panel { transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), opacity 180ms ease; }
}
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: -6px auto 16px; }
@media (min-width: 768px) { .sheet-grip { display: none; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.sheet-head p { margin-top: 8px; color: var(--ink-2); }
.x-btn { flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.sheet-fine { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-3); }
.dlist { display: grid; border-top: 1px solid var(--line); margin-bottom: 20px; }
.dlist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dlist .ico { color: var(--glow); margin-top: 2px; }
.dlist strong { display: block; font-weight: 650; }
.dlist span { color: var(--ink-3); }

/* Central do assinante */
/* Central do Assinante: desce do botão e assenta no lugar, sem passar do ponto; fecha rápido */
.hub { position: fixed; z-index: 45; top: calc(var(--header-h) + 18px); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); width: min(380px, calc(100vw - 2 * var(--gutter))); border-radius: 24px; padding: 18px; transform-origin: top right;
  transition: opacity 180ms ease, transform 380ms cubic-bezier(0.32, 0.72, 0, 1); }
.hub[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(-12px) scale(0.9); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease-in, visibility 0s 150ms; }
.hub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-head img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; object-position: 50% 12%; background: var(--brand-deep); }
.hub-head p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.35; }
.hub-head b { color: var(--ink); }
.hub ul { display: grid; }
.hub a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-weight: 550; }
.hub a:hover { background: var(--line); }
.hub a .ico { color: var(--glow); }
.hub a .ext { margin-left: auto; width: 15px; height: 15px; color: var(--ink-3); }
.hub-fine { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--line); font-size: 0.875rem; color: var(--ink-2); }

/* Menu (celular) */
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.0625rem; text-align: left; }
.menu-list .ico { color: var(--glow); }
.menu-group + .menu-group { margin-top: 20px; }
.menu-group h3 { font-family: var(--f-text); font-size: 0.875rem; color: var(--ink-3); letter-spacing: 0; font-weight: 600; margin-bottom: 4px; }

/* Preferências */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { min-height: 44px; border-radius: 12px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.pref + .pref { margin-top: 18px; }
.pref h3 { font-family: var(--f-text); font-size: 1rem; letter-spacing: 0; font-weight: 650; margin-bottom: 8px; }
.pref p { font-size: 0.9375rem; color: var(--ink-3); margin-bottom: 8px; }

/* Aviso de link com cidade */
.notice { position: relative; z-index: 2; margin: 0 auto 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; }
.notice[hidden] { display: none; }
.notice button { font-weight: 650; text-decoration: underline; min-height: 32px; }

/* Barra fixa (celular) */
.dock { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 22px; transform: translateY(calc(100% + 24px)); transition: transform 380ms var(--ease-drawer); }
.dock.is-on { transform: none; }
.dock-info { flex: 1; min-width: 0; line-height: 1.2; }
.dock-info small { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.dock-info strong { display: block; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .dock { display: none; } }

/* Rodapé provisório do marco */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: 56px calc(48px + 80px); color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 900px) { .footer { padding-bottom: 48px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h2 { font-family: var(--f-text); font-size: 0.9375rem; font-weight: 650; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.footer li { padding-block: 4px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-3); }
.footer-base button { text-decoration: underline; color: var(--ink-2); }
.next-note { padding: 18px 20px; border-radius: var(--r-m); border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 0.9375rem; margin-bottom: 36px; }


/* =========================================================
   Seções após os planos
   ========================================================= */
.sec-head { position: relative; display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(1.8rem, 1.15rem + 2.4vw, 3rem); }
.sec-head p { color: var(--ink-2); font-size: 1.0625rem; max-width: 60ch; }

.extras-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r-l); border: 1px dashed var(--line-2); }
.extras-row strong { display: block; font-family: var(--f-display); font-weight: 560; letter-spacing: -0.02em; }
.extras-row span { color: var(--ink-2); font-size: 0.9375rem; }
.extras-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Casa conectada */
.casa { padding-block: clamp(56px, 7vw, 120px); }
.casa-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 1024px) { .casa-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 32px; } }
.casa-stage { position: relative; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); padding: clamp(8px, 1.5vw, 20px); overflow: hidden; }
.casa-stage img { width: 100%; height: auto; }
.hot { position: absolute; left: var(--x); top: var(--y); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; }
.hot span { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--brand), 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform var(--t-fast) var(--ease-out); }
.hot[aria-expanded="true"] span { transform: scale(1.25); background: #8FDCFF; }
.hot:active span { transform: scale(0.9); }
@media (hover: hover) { .hot:hover span { transform: scale(1.18); } }
@media (max-width: 767px) { .hot { width: 40px; height: 40px; margin: -20px 0 0 -20px; } .hot span { width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--brand), 0 2px 5px rgba(0, 0, 0, 0.3); } }
.casa-side { display: grid; gap: 14px; }
.room-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.room-tabs button { min-height: 44px; border-radius: 13px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.room-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.casa-card { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 2vw, 28px); display: grid; gap: 14px; min-height: 260px; align-content: start; }
.casa-card h3 { font-size: 1.375rem; letter-spacing: -0.03em; }
.casa-card p { color: var(--ink-2); }
.casa-card .fact { display: flex; flex-wrap: wrap; gap: 8px; }
.casa-card .fact span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; }
.casa-card .fact span.on { background: var(--brand); border-color: transparent; color: #fff; }
.casa-card .note { font-size: 0.8125rem; color: var(--ink-3); }
.casa-body { display: grid; gap: 14px; transition: opacity var(--t-fast) ease, transform var(--t) var(--ease-out); }
.casa-card.is-swapping .casa-body { opacity: 0; transform: translateY(6px); }

/* Atendimento */
.gente { padding-block: clamp(56px, 7vw, 120px); background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.gente-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1024px) { .gente-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; } }
.gente h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); }
.gente .lead { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.route { position: relative; display: grid; gap: 22px; margin-top: 34px; }
.route::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--fiber), var(--glow)); border-radius: 2px; }
.route li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.route-dot { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--glow); overflow: hidden; }
.route-dot img { width: 100%; height: 100%; object-fit: cover; background: var(--brand-deep); }
.route .is-human .route-dot { background: var(--brand); color: #fff; border-color: transparent; }
.route h3 { font-size: 1.1875rem; letter-spacing: -0.025em; }
.route p { color: var(--ink-2); margin-top: 2px; }
.gente-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fact-card { padding: 20px 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.fact-card h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.fact-card p { color: var(--ink-2); margin-top: 6px; }
.spark-letter { border-radius: var(--r-m); background: var(--brand-deep); color: #EEF3FF; overflow: hidden; }
.spark-letter summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: center; padding: 16px 18px; font-weight: 650; }
.spark-letter summary::-webkit-details-marker { display: none; }
.spark-letter summary img { width: 40px; height: 40px; border-radius: 12px; }
.spark-letter summary small { display: block; font-weight: 500; font-size: 0.8125rem; color: #B5C3F2; }
.spark-letter summary .ico { transition: transform var(--t) var(--ease-out); }
.spark-letter[open] summary .ico { transform: rotate(45deg); }
.spark-letter > div { padding: 0 18px 18px; display: grid; gap: 10px; color: #D5DEFA; }
.spark-letter .sig { color: #8FDCFF; font-weight: 600; font-size: 0.875rem; }

/* Empresas */
.empresas { position: relative; padding-block: clamp(64px, 8vw, 128px); background: linear-gradient(160deg, #050A3A 0%, #071056 55%, #0B1B78 100%); color: #EEF3FF; overflow: hidden; }
/* o desenho de antes (anéis concêntricos no canto), agora como linhas nítidas: sem desfoque nem brilho */
.empresas::before, .empresas::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; aspect-ratio: 1; }
.empresas::after { right: -10%; bottom: -30%; width: 60%; border: 1px solid rgba(143, 220, 255, 0.18); }
.empresas::before { right: calc(-10% - 80px); bottom: calc(-30% - 80px); width: calc(60% + 160px); border: 1px solid rgba(143, 220, 255, 0.08); }
.empresas-grid { position: relative; z-index: 1; display: grid; gap: clamp(32px, 4vw, 72px); align-items: center; }
@media (min-width: 1024px) { .empresas-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.empresas h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); color: #fff; }
.empresas .lead { margin: 18px 0 30px; color: #B5C3F2; font-size: 1.125rem; max-width: 54ch; }
.empresas .btn-primary { background: #F1F5FF; color: #06103F; }
.gains { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.gains li { --n: clamp(1.8rem, 1.2rem + 2vw, 2.75rem); display: grid; grid-template-columns: calc(var(--n) * 2.1) minmax(0, 1fr); /* coluna do número com largura fixa (cabe "02"/"03"): textos alinhados entre as linhas */ gap: 2px 20px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.gain-n { grid-row: span 2; font-family: var(--f-display); font-weight: 600; font-size: var(--n); letter-spacing: -0.05em; color: #8FDCFF; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; } /* número nunca quebra em duas linhas */
.gains strong { font-family: var(--f-display); font-weight: 560; font-size: 1.25rem; letter-spacing: -0.025em; color: #fff; }
.gains li > span:last-child { color: #B5C3F2; }

/* Cidades e lojas */
.cidades { padding-block: clamp(56px, 7vw, 120px); }
.city-rail { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 18px; }
.city-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-align: left; min-height: 150px; transition: border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.city-tile:active { transform: scale(0.98); }
.city-tile strong { font-family: var(--f-display); font-weight: 560; font-size: 1.25rem; letter-spacing: -0.03em; }
.city-tile .meta { color: var(--ink-3); font-size: 0.9375rem; }
.city-tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); font-size: 0.9375rem; }
:root[data-theme="dark"] .city-tile .go { color: var(--fiber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .city-tile .go { color: var(--fiber); } }
.city-tile[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.city-tile .here { order: -1; margin-bottom: -4px; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: #fff; } /* no fluxo, acima do nome: não cobre o título */
@media (hover: hover) { .city-tile:hover { border-color: var(--ink-3); } }
@media (min-width: 900px) { .lojas { grid-template-columns: 1fr 1fr 0.9fr; } }
@media (min-width: 900px) { .loja { aspect-ratio: auto; min-height: 300px; } }
@media (hover: hover) { .loja:hover img { transform: scale(1.03); } }

/* Dúvidas */
.duvidas { padding-block: clamp(56px, 7vw, 112px); }
.duvidas-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1024px) { .duvidas-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; } .duvidas .sec-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.faq details { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 650; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { overflow-wrap: anywhere; } /* pergunta longa quebra em vez de empurrar o ícone para fora em telas de 280 px */
.faq summary .ico { flex: none; color: var(--glow); transition: transform var(--t) var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); max-width: 64ch; }
.faq details p a { color: inherit; font-weight: 650; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--t) var(--ease-out), content-visibility var(--t) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Fechamento */
.fim { padding-block: 0 clamp(48px, 6vw, 96px); }
.fim-card { position: relative; overflow: hidden; display: grid; gap: 22px; padding: clamp(28px, 4vw, 64px); border-radius: var(--r-xl); color: #fff;
  background: #0A1A66; }
.fim-card::before { content: ""; position: absolute; left: -5%; right: -5%; top: 62%; height: 2px; background: linear-gradient(90deg, transparent, #8FDCFF 30%, #8FDCFF 70%, transparent); opacity: 0.35; }
.fim-card > * { position: relative; }
.fim-card h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); color: #fff; }
.fim-card p { margin-top: 12px; color: #DCE5FF; font-size: 1.125rem; max-width: 46ch; }
.fim-actions { display: flex; flex-wrap: wrap; gap: 10px; align-content: end; }
@media (min-width: 960px) { .fim-card { grid-template-columns: 1.3fr 1fr; align-items: end; } .fim-actions { justify-content: flex-end; } }
.btn-light { background: #F1F5FF; color: #06103F; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
@media (hover: hover) { .btn-light:hover { background: #fff; } .btn-ghost-light:hover { border-color: #fff; } }

/* Rodapé */
.footer-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 12px; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.footer-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.footer-pills .ico { width: 16px; height: 16px; }
.footer button { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; }


/* =========================================================
   Páginas internas
   ========================================================= */
.page-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 clamp(28px, 4vw, 48px); overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); max-width: 18ch; }
.page-hero p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; max-width: 62ch; }
.crumbs { margin-bottom: 18px; font-size: 0.9375rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--ink-2); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; background: var(--surface); }
.page-body { padding-bottom: clamp(56px, 7vw, 112px); }
.faq-cat + .faq-cat { margin-top: 40px; }
.faq-cat > h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 14px; }
.page-cta { margin-top: clamp(40px, 6vw, 72px); }
.page-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.map-shell { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10; min-height: 420px; background: linear-gradient(180deg, #1E46C2 0%, #0A1A66 100%); color: #fff; }
@media (max-width: 640px) { .map-shell { aspect-ratio: auto; width: 100%; height: clamp(420px, 125vw, 560px); } } /* sem proporção fixa: com altura mínima, a proporção alargava o cartão além da tela de 280 px */
.map-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-poster { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.map-poster h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); color: #fff; }
.map-poster p { color: #B5C3F2; max-width: 46ch; }
.link.light { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.cob-cities { margin-top: 40px; }
.cob-cities h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.cob-cities .muted { color: var(--ink-3); margin: 6px 0 16px; }
.prose { max-width: 72ch; font-size: 1.0625rem; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); margin: 36px 0 10px; }
.prose p, .prose ul { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose a { color: inherit; font-weight: 650; }
.pendente { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 0.8125rem; }
.e404 .page-hero { min-height: 100svh; display: grid; align-items: center; }
.e404-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .e404-grid { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero .e404-code { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--brand); }
:root[data-theme="dark"] .e404-code { color: var(--fiber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .e404-code { color: var(--fiber); } }
.e404-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.e404-art { position: relative; display: grid; justify-items: center; gap: 8px; }
.e404-art img { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--shadow-2); }
.e404-fiber { width: min(100%, 360px); overflow: visible; }
.e404-fiber path { fill: none; stroke: var(--fiber); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 0 transparent); }
.e404-fiber circle { fill: var(--fiber); }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .e404-fiber .spark1 { animation: faisca 1.6s var(--ease-out) infinite; }
  :root:not([data-motion="reduce"]) .e404-fiber .spark2 { animation: faisca 1.6s var(--ease-out) infinite 0.2s; }
  :root:not([data-motion="reduce"]) .e404-art img { animation: procura 3.2s var(--ease-in-out) infinite; }
}
@keyframes faisca { 0%, 100% { opacity: 0.25; transform: scale(1); transform-origin: center; transform-box: fill-box; } 50% { opacity: 1; transform: scale(1.6); } }
@keyframes procura { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-8deg) translateY(-4px); } 60% { transform: rotate(7deg) translateY(-2px); } }

/* ---------- Entrada do hero (o conteúdo nunca depende dela) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]).js .rise { animation: rise 640ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  :root:not([data-motion="reduce"]).js .stage { animation: stageIn 900ms var(--ease-out) backwards 120ms; }
  /* a fibra (e a sombra do portal, que fica dentro dela) aparece junto com o palco; só opacidade: nada a recalcular por quadro */
  :root:not([data-motion="reduce"]).js .fiber { animation: stageIn 900ms var(--ease-out) backwards 120ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes stageIn { from { opacity: 0; } } /* só opacidade: o palco não se desloca, a junção cabo/fibra fica parada */

/* ---------- Menu: itens em cascata ----------
   O painel já sobe de baixo (curva de gaveta). Os itens chegam logo atrás dele, um depois do outro (30 ms entre eles,
   começando aos 60 ms, quando o painel já subiu um pouco), para não aparecer tudo de uma vez. Ao fechar, descem junto
   com o painel, sem cascata. O índice --i vem do app.js; sem movimento, os itens aparecem com o painel. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) #sheet-menu :is(.menu-group h3, .menu-list > li) {
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
    transition-delay: calc(60ms + var(--i, 0) * 30ms);
  }
  :root:not([data-motion="reduce"]) #sheet-menu:not([open]) :is(.menu-group h3, .menu-list > li),
  :root:not([data-motion="reduce"]) #sheet-menu.is-entrando :is(.menu-group h3, .menu-list > li) { opacity: 0; transform: translateY(10px); transition: none; }
}

/* ---------- Revelação ao rolar (app.js marca os blocos com data-revela) ----------
   Os blocos abaixo da primeira tela sobem 14 px e acendem quando chegam perto, como a entrada do hero (mesma distância
   e mesma curva), com 70 ms entre os que chegam juntos. Esconder é instantâneo (o bloco ainda está fora da tela); só o
   aparecer tem transição. Com "reduzir movimento" (do sistema ou do site), nada fica escondido. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) [data-revela=""] { opacity: 0; transform: translateY(14px); }
  :root:not([data-motion="reduce"]) [data-revela="sim"] { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
}
@media print { [data-revela] { opacity: 1 !important; transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
@media (forced-colors: active) { .rail[aria-checked="true"] .rail-col { outline: 3px solid Highlight; } }
[vw] [vw-access-button] { display: none !important; }

/* Desempenho em celulares modestos: seções abaixo da primeira dobra só são calculadas quando chegam perto da tela.
   "auto" no tamanho intrínseco guarda a altura real depois da primeira vez, então a rolagem não pula. */
.casa, .gente, .empresas, .cidades, .duvidas, .fim, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
