/* =====================================================================
   TIM Ultrafibra — landing de ofertas. Visual TIM (azul/vermelho).
   HTML/CSS/JS vanilla, sem CDN.
   ===================================================================== */

:root {
  --azul-900: #002a54;
  --azul-800: #003A70;
  --azul-700: #00508C;
  --azul-600: #0068B3;
  --azul-500: #0b7ed1;
  --ciano:    #00A0DF;
  --vermelho: #EC0000;
  --rosa:     #E4002B;

  --texto:    #0A1B33;
  --texto-2:  #55647d;
  --linha:    #e4eaf3;
  --fundo:    #ffffff;
  --fundo-2:  #f4f7fb;
  --fundo-3:  #eaf1fb;

  --radius:   18px;
  --radius-sm:12px;
  --sombra:   0 10px 30px rgba(0, 42, 84, .08);
  --sombra-2: 0 18px 50px rgba(0, 42, 84, .16);
  --wrap:     1180px;
  --wpp:      #25D366;

  --grad-hero: radial-gradient(120% 120% at 80% -10%, #0068B3 0%, #003A70 45%, #002a54 100%);
  --grad-btn:  linear-gradient(135deg, #0068B3, #00508C);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; }
.hl { color: var(--ciano); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(0,80,140,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(0,80,140,.4); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fff; color: var(--azul-800); box-shadow: var(--sombra); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.btn-wpp { background: var(--wpp); color: #fff; }
.btn-wpp:hover { background: #1fbe5b; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 46px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #0068B3, #003A70);
  position: relative; overflow: hidden;
  box-shadow: inset 0 -6px 0 rgba(236,0,0,.9);
}
.brand-tim { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.brand-word { font-size: 18px; letter-spacing: .3px; color: var(--azul-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linha);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--texto); font-weight: 600; font-size: 15px; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--azul-700); }
.header-inner .btn-primary { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--azul-800); border-radius: 2px; margin: 4px 0; transition: .2s; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 18px; background: #fff; border-bottom: 1px solid var(--linha); }
.nav-mobile a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--linha); }
.nav-mobile .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(0,160,223,.35), transparent 60%),
    radial-gradient(500px 260px at 90% 80%, rgba(236,0,0,.25), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center;
  padding: 64px 22px 76px;
}
.pill {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.9); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges li { font-size: 14px; color: rgba(255,255,255,.85); position: relative; padding-left: 22px; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px;
  background: var(--ciano); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,160,223,.25);
}
.hero-badges strong { color: #fff; }

/* Card destaque no hero */
.hero-card {
  background: #fff; color: var(--texto); border-radius: 22px; padding: 26px;
  box-shadow: var(--sombra-2); position: relative;
}
.hero-card .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-card .hc-badge { background: var(--vermelho); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.hero-card .hc-nome { font-size: 30px; font-weight: 800; color: var(--azul-800); margin-top: 6px; }
.hero-card .hc-speed { color: var(--texto-2); font-size: 14px; margin-top: 2px; }
.hero-card .hc-de { color: var(--texto-2); text-decoration: line-through; font-size: 14px; margin-top: 16px; }
.hero-card .hc-por { display: flex; align-items: baseline; gap: 6px; }
.hero-card .hc-por .moeda { font-size: 18px; font-weight: 700; color: var(--azul-800); }
.hero-card .hc-por .valor { font-size: 46px; font-weight: 800; color: var(--azul-800); line-height: 1; }
.hero-card .hc-por .mes { color: var(--texto-2); font-size: 14px; }
.hero-card .hc-fatura { font-size: 13px; color: var(--texto-2); margin-top: 6px; }
.hero-card .hc-stream { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.hero-card .btn { width: 100%; margin-top: 4px; }

/* Selo streaming (reuso) */
.selo { font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 7px; color: #fff; letter-spacing: .2px; }
.selo-max { background: #6d28d9; }
.selo-paramount { background: #0064ff; }
.selo-globoplay { background: #f5222d; }

/* ---------- Seções ---------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.4px; color: var(--azul-900); }
.section-head h2 .hl { color: var(--azul-600); }
.section-head p { margin-top: 12px; color: var(--texto-2); font-size: 17px; }

/* ---------- Grade de planos ---------- */
.planos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plano {
  background: #fff; border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 22px 20px 24px; display: flex; flex-direction: column;
  box-shadow: var(--sombra); position: relative; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.plano:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); border-color: #bcd6f2; }
.plano.is-destaque { border: 2px solid var(--azul-600); box-shadow: 0 20px 46px rgba(0,80,140,.22); }
.plano-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--vermelho); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.plano.is-destaque .plano-badge { background: var(--azul-600); }
.plano-nome { font-size: 24px; font-weight: 800; color: var(--azul-800); }
.plano-speed { margin-top: 6px; font-size: 13.5px; color: var(--texto-2); }
.plano-speed b { color: var(--texto); }
.plano-stream { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 6px; min-height: 22px; }
.plano-sep { height: 1px; background: var(--linha); margin: 12px 0; }
.plano-de { color: var(--texto-2); text-decoration: line-through; font-size: 13px; }
.plano-por { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.plano-por .moeda { font-size: 16px; font-weight: 700; color: var(--azul-800); }
.plano-por .valor { font-size: 38px; font-weight: 800; color: var(--azul-800); line-height: 1; }
.plano-por .cent { font-size: 18px; font-weight: 800; color: var(--azul-800); }
.plano-por .mes { font-size: 13px; color: var(--texto-2); align-self: flex-end; }
.plano-dacc { font-size: 12px; color: var(--azul-600); font-weight: 700; margin-top: 3px; }
.plano-fatura { font-size: 12.5px; color: var(--texto-2); margin-top: 4px; }
.plano .btn { margin-top: 18px; }
.planos-nota { text-align: center; color: var(--texto-2); font-size: 13.5px; margin-top: 28px; }

/* ---------- Apps & streaming ---------- */
.section-apps { background: var(--fundo-2); }
.stream-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stream-card {
  border-radius: var(--radius); padding: 30px 24px; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--sombra); position: relative; overflow: hidden;
}
.stream-card .stream-logo { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.stream-card .stream-tag { font-size: 14px; opacity: .92; margin-top: 10px; }
.stream-max   { background: linear-gradient(135deg, #7c3aed, #3b1a8c); }
.stream-para  { background: linear-gradient(135deg, #0064ff, #0033a0); }
.stream-para .stream-logo sup { font-size: 20px; }
.stream-globo { background: linear-gradient(135deg, #ff3b3b, #b3001b); }
.stream-globo .stream-logo { text-transform: lowercase; }

.combo { margin-top: 40px; text-align: center; }
.combo h3 { font-size: 20px; font-weight: 800; color: var(--azul-900); }
.combo-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.combo-list li {
  background: #fff; border: 1px solid var(--linha); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; color: var(--azul-800);
  box-shadow: 0 4px 14px rgba(0,42,84,.05); display: flex; align-items: center; gap: 8px;
}
.combo-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ciano); }

/* ---------- Benefícios ---------- */
.benef-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benef {
  background: #fff; border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--sombra);
}
.benef-ico {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; color: var(--azul-600);
  background: linear-gradient(135deg, #e6f2fd, #d4e7fb);
}
.benef-ico svg { width: 28px; height: 28px; }
.benef h3 { font-size: 18px; color: var(--azul-900); }
.benef p { margin-top: 8px; color: var(--texto-2); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.section-faq { background: var(--fundo-2); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--linha); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: 0 4px 14px rgba(0,42,84,.04);
}
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--azul-900);
  padding: 16px 34px 16px 0; position: relative; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 700; color: var(--azul-600); transition: transform .2s;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 0 18px; color: var(--texto-2); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--grad-hero); color: #fff; }
.cta-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 52px 22px; flex-wrap: wrap; }
.cta-final h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta-final p { margin-top: 8px; color: rgba(255,255,255,.9); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--azul-900); color: #cdd9ea; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand-word { color: #fff; }
.footer-lead { margin-top: 14px; font-size: 14px; color: #9fb3cd; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-list li { font-size: 14px; color: #b9c8dd; display: flex; justify-content: space-between; gap: 10px; }
.footer-list li b { color: #fff; }
.footer-list .fl-strong { color: #fff; font-weight: 700; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal p { font-size: 12px; color: #8aa0bd; line-height: 1.7; }

/* ---------- WhatsApp float ---------- */
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wpp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: transform .18s ease;
}
.wpp-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .planos-grid { grid-template-columns: repeat(2, 1fr); }
  .benef-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-inner > .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 46px 22px 56px; }
  .hero-card { max-width: 420px; }
  .stream-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .planos-grid { grid-template-columns: 1fr; }
  .benef-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-final-inner { flex-direction: column; align-items: flex-start; }
}
