/*
 * Página Internet para casa (mesma estrutura e textos da LP residencial).
 * Componentes exclusivos desta página; o resto vem do assets/css/site.css.
 * Sem GSAP: os movimentos usam CSS e o residencial.js (IntersectionObserver + scroll).
 */

/* ---------- HERO (base da Home) ---------- */
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(161,255,98,.6); animation: pulse 2s infinite; }
.fc-speed { right: max(3%, calc((100% - var(--wrap)) / 2 - 40px)); bottom: 30%; display: flex; align-items: center; gap: 14px; }
.fc-speed .fc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(161,255,98,.12); color: var(--lime); }
.fc-speed .fc-ic svg { width: 22px; height: 22px; }
.fc-speed .fc-label { margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.fc-speed .fc-big { margin: 2px 0 0; font-size: 30px; }
.fc-foot { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }
.r-marquee { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.r-marquee .mq-track { display: flex; width: max-content; gap: 10px; animation: mq 40s linear infinite; }
.r-marquee span { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-d); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; }
.r-marquee span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.static .r-marquee .mq-track { animation: none; }

/* ---------- BENTO: uma conexão para cada momento ---------- */
.rb { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 372px 300px; gap: 16px; }
.rt { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: var(--r); transition: transform .5s var(--ease); }
.rt:hover { transform: translateY(-4px); }
.rt h3 { font-size: 26px; line-height: 1.1; font-weight: 600; }
.rt p { margin: 10px 0 0; font-size: 16px; }
.rt-game { grid-row: span 2; background: var(--ink); color: var(--white); }
.rt-game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.rt-game:hover img { transform: scale(1.05); }
.rt-overlay { position: relative; padding: 24px; border-radius: 22px; background: rgba(14,14,14,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-d); }
.rt-overlay p { color: rgba(255,255,255,.78); }
.chip-live { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(161,255,98,.12); color: var(--lime); font-size: 13px; font-weight: 800; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.rt-light { justify-content: space-between; gap: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.rt-light p { color: var(--muted); }
.rt-lime { grid-column: span 2; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 24px; padding: 32px; background: var(--lime); color: var(--ink); }
.rt-lime > div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.rt-lime > div p { max-width: 36ch; }
.rt-lime h3 { font-size: 34px; }
.rt-link { display: inline-flex; gap: 8px; margin-top: 22px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--lime); font-weight: 700; text-decoration: none; white-space: nowrap; }
.rt-photo { flex: none; width: 48%; height: auto; min-height: 100%; border-radius: 20px; object-fit: cover; object-position: 45% 35%; }

/* Smart TV com app de streaming */
.tv { position: relative; padding-bottom: 12px; }
.tv-screen { position: relative; padding: 5px; border-radius: 12px; background: var(--ink); box-shadow: 0 18px 36px -20px rgba(0,0,0,.6); }
.tv-inner { position: relative; height: 128px; overflow: hidden; border-radius: 8px; background: var(--ink); }
.tv-bg { position: absolute; inset: 0; background: center 40% / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 6s linear; }
.tv-bg.is-on { opacity: 1; transform: scale(1); }
.tv-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.35) 55%, rgba(14,14,14,0) 80%), linear-gradient(0deg, rgba(14,14,14,.85), transparent 55%); }
.tv-info { position: absolute; z-index: 1; left: 10px; top: 10px; right: 10px; color: var(--white); }
.tv-badges { display: flex; gap: 4px; }
.tv-badges span { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.16); font-size: 9px; font-weight: 800; }
.tv-badges span:first-child { background: var(--lime); color: var(--ink); }
.rt .tv-title { max-width: 60%; margin: 6px 0 0; font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); }
.tv-prog { position: absolute; z-index: 1; left: 10px; right: 45%; top: 62px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.2); }
.tv-prog i { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.tv-row { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 9px; display: flex; gap: 5px; }
.tv-row span { flex: 1; height: 26px; border-radius: 5px; background: var(--ink-3) center / cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); cursor: pointer; opacity: .7; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; }
.tv-row span:hover { opacity: 1; }
.tv-row span.is-on { opacity: 1; box-shadow: inset 0 0 0 2px var(--lime); transform: scale(1.08); }
.tv-stand { position: absolute; left: 50%; bottom: 0; width: 70px; height: 12px; transform: translateX(-50%); }
.tv-stand::before { content: ''; position: absolute; left: 50%; top: 0; width: 10px; height: 8px; transform: translateX(-50%); background: var(--ink-3); }
.tv-stand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--ink-3); }
.tv-chip { position: absolute; z-index: 2; right: -6px; top: -10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.tv-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: meet-blink 1.4s infinite; }

/* janela de reunião (home office) */
.meet { padding: 10px; border-radius: 18px; background: var(--ink); color: var(--white); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.meet-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 11px; color: rgba(255,255,255,.7); }
.meet-rec { display: inline-flex; align-items: center; gap: 6px; }
.meet-rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #FF5A4E; animation: meet-blink 1.4s infinite; }
.meet-time { font-variant-numeric: tabular-nums; }
@keyframes meet-blink { 50% { opacity: .25; } }
.meet-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 108px; }
.meet-p { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--ink-3); }
.meet-p.is-main { grid-row: span 2; background: radial-gradient(120% 90% at 50% 100%, rgba(100,184,44,.35), transparent 60%), var(--ink-3); box-shadow: inset 0 0 0 2px var(--lime); }
.meet-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 800; }
.meet-av.t { background: var(--teal); }
.meet-av.w { background: var(--paper-2); }
.meet-p.is-main .meet-av { width: 46px; height: 46px; background: var(--lime); font-size: 15px; animation: meet-talk 1.6s infinite; }
@keyframes meet-talk { 0% { box-shadow: 0 0 0 0 rgba(161,255,98,.55); } 70% { box-shadow: 0 0 0 12px rgba(161,255,98,0); } 100% { box-shadow: 0 0 0 0 rgba(161,255,98,0); } }
.meet-name { position: absolute; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.85); }
.meet-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.meet-wave i { width: 2px; border-radius: 2px; background: var(--lime); animation: meet-wv .8s ease-in-out infinite; }
.meet-wave i:nth-child(2) { animation-delay: .15s; }
.meet-wave i:nth-child(3) { animation-delay: .3s; }
@keyframes meet-wv { 0%, 100% { height: 3px; } 50% { height: 9px; } }
.meet-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 2px; }
.meet-ctrls { display: flex; gap: 5px; }
.meet-ctrls span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-3); }
.meet-ctrls svg { width: 12px; height: 12px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.meet-ctrls .end { width: 38px; border-radius: 999px; background: #FF5A4E; }
.meet-net { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: rgba(161,255,98,.12); color: var(--lime); font-size: 11px; font-weight: 800; }

/* ---------- PLANOS + SIMULADOR ---------- */
.sim { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; width: fit-content; max-width: 100%; margin: 0 auto 40px; padding: 14px 14px 14px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.sim-uses { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; transition: background-color .25s, color .25s, transform .2s var(--ease); }
.chip:hover span { background: var(--paper-2); }
.chip input:checked + span { background: var(--ink); color: var(--lime); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.chip:active span { transform: scale(.95); }
.sim-people { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); }
.step-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; font-size: 18px; transition: background-color .2s; }
.step-btn:hover { background: var(--lime); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }
/* o plano recomendado pelo simulador vira o card escuro (.is-hot do site) */
.r-plans .plan { transition: background-color .45s var(--ease), color .45s, transform .45s var(--ease), box-shadow .45s; }
.r-plans .plan .btn { background: var(--ink); color: var(--white); }
.r-plans .plan.is-hot .btn { background: var(--lime); color: var(--ink); }
.plan-rec { position: absolute; top: -13px; left: 24px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.plan.is-hot .plan-rec { opacity: 1; transform: none; }
.plans-note { max-width: 60ch; margin: 36px auto 0; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- WI‑FI EM DOBRO ---------- */
.mesh { position: relative; overflow: hidden; aspect-ratio: 1.2; border-radius: 40px; background: var(--ink); }
.mesh svg { width: 100%; height: 100%; }
.mesh .wave { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.mesh .link { stroke-dasharray: 4 6; animation: dash 20s linear infinite; }

/* ---------- COMPARATIVO ---------- */
.cmp { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; align-items: stretch; max-width: 980px; margin: 0 auto; }
.cmp-col > div { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 22px; font-size: 16px; }
.cmp-col > div + div { border-top: 1px solid var(--line); }
.cmp-h { min-height: 84px !important; font-family: var(--display); font-size: 20px !important; font-weight: 600; }
.cmp-labels { font-weight: 700; }
.cmp-them { color: var(--muted); }
.cmp-us { padding-bottom: 14px; border-radius: var(--r); background: var(--ink); color: var(--white); box-shadow: 0 40px 80px -36px rgba(100,184,44,.6); transform: translateY(-14px); }
.cmp-us > div + div { border-color: var(--line-d); }
.cmp-us .cmp-h img { width: 110px; height: auto; }
.r-ok { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.5L14 7.3' stroke='%230E0E0E' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }

/* ---------- COMO FUNCIONA: o cabo de fibra liga os 3 passos conforme a rolagem ---------- */
.cable-stage { position: relative; height: 520px; }
.cable-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.cable-ghost { fill: none; stroke: rgba(14,14,14,.08); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 12; }
.cable-jacket { fill: none; stroke: #D7DDD0; stroke-width: 7; stroke-linecap: round; }
.cable-core { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(161,255,98,.95)); }
.cable-rail { display: none; }
.cable-cards { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.cable-card { position: relative; z-index: 1; padding: 26px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); opacity: .55; transition: opacity .5s, transform .5s var(--ease), box-shadow .5s; }
.cable-card:nth-child(2) { margin-top: 110px; }
.cable-card:nth-child(3) { margin-top: 20px; }
.cable-card.on { opacity: 1; transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--lime), 0 30px 60px -30px rgba(100,184,44,.6); }
.cable-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); color: var(--muted); font-family: var(--display); font-size: 20px; font-weight: 700; transition: background-color .4s, color .4s; }
.cable-card.on .cable-num { background: var(--ink); color: var(--lime); }
.cable-card h3 { margin: 14px 0 6px; font-size: 28px; font-weight: 600; }
.cable-card p { margin: 0 0 16px; color: var(--muted); }
.cs-wa { display: grid; gap: 6px; }
.cs-wa span { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.cs-wa .o { justify-self: end; border-bottom-right-radius: 4px; background: var(--lime); color: var(--ink); }
.cs-wa .i { border-bottom-left-radius: 4px; background: var(--ink-3); color: var(--white); }
.cs-tech { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ink-3); color: var(--white); font-size: 12px; }
.cs-tech i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--ink); font-style: normal; font-weight: 800; }
.cs-tech b { display: block; font-size: 13px; }
.cs-tech small { color: rgba(255,255,255,.6); }
.cs-ok { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink-3); color: var(--white); font-size: 13px; font-weight: 700; }
.cs-ok em { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(161,255,98,.15); color: var(--lime); font-size: 12px; font-style: normal; }
.cs-ok em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.cable-ont { position: absolute; z-index: 2; right: -8px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: var(--white); font-size: 13px; }
.ont-leds { display: flex; gap: 5px; }
.ont-leds i { width: 7px; height: 7px; border-radius: 50%; background: #3A3F3A; transition: background-color .3s, box-shadow .3s; }
.cable-ont.on .ont-leds i { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: ont-led 1s infinite; }
.cable-ont.on .ont-leds i:nth-child(2) { animation-delay: .2s; }
.cable-ont.on .ont-leds i:nth-child(3) { animation-delay: .4s; }
@keyframes ont-led { 50% { opacity: .35; } }
.ont-txt { display: grid; line-height: 1.25; }
.ont-txt span { font-size: 12px; color: rgba(255,255,255,.55); }
.cable-ont.on .ont-txt span { color: var(--lime); }

/* ---------- FIBRA DE VERDADE (vídeo) ---------- */
.fiber-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; padding: clamp(32px, 5vw, 64px); border-radius: 40px; background: var(--ink); color: var(--white); }
.fiber-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .9; }
.fiber-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,14,14,.94) 28%, rgba(14,14,14,.55) 55%, rgba(14,14,14,.1)), linear-gradient(0deg, rgba(14,14,14,.75), transparent 45%); }
.fiber-text p { max-width: 42ch; margin: 22px 0 0; font-size: 18px; color: rgba(255,255,255,.72); }
.r-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 0; }
.r-stats > div { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-d); }
.r-stats dt { font-family: var(--display); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.r-stats dd { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,.7); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1080px) {
  .rb { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .rt-game { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .rt-light { min-height: 320px; }
  .fiber-card { grid-template-columns: 1fr; }
  .r-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .fc-speed { display: none; }
  .r-marquee { bottom: 14px; }
  .rb { grid-template-columns: 1fr; }
  .rt-game { grid-column: auto; min-height: 460px; }
  .rt-lime { grid-column: auto; flex-direction: column; }
  .rt-photo { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .sim { justify-content: flex-start; padding: 16px; border-radius: 26px; }
  .cmp { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .cmp-labels { display: none; }
  .cmp-col > div { min-height: 72px; padding: 0 14px; font-size: 14px; }
  .cmp-us { transform: none; }
  .fiber-card, .mesh { border-radius: 28px; }
  .cable-stage { height: auto; padding-left: 40px; }
  .cable-svg { display: none; }
  .cable-cards { position: relative; grid-template-columns: 1fr; gap: 16px; }
  .cable-card:nth-child(n) { margin-top: 0; }
  .cable-rail { display: block; position: absolute; left: 12px; top: 0; bottom: 70px; width: 6px; border-radius: 6px; background: #E1E6DA; }
  .cable-rail-fill { position: absolute; inset: 0; border-radius: 6px; background: var(--lime); box-shadow: 0 0 10px rgba(161,255,98,.9); transform-origin: top; transform: scaleY(0); }
  .cable-rail-plug { position: absolute; left: -6px; top: 0; width: 18px; height: 26px; border-radius: 4px; background: var(--green); box-shadow: inset 0 -6px 0 #E9EDE3; }
  .cable-ont { position: relative; right: auto; bottom: auto; width: fit-content; margin-top: 16px; }
  .r-stats dt { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .r-marquee .mq-track, .tv-chip::before, .meet-rec::before, .meet-wave i, .meet-p.is-main .meet-av, .mesh .wave { animation: none; }
}
