:root {
  --accent: #f80046;
  --dark: #171b1d;
  --dark-2: #202527;
  --text: #0f1218;
  --muted: #51545b;
  --line: #eeeeee;
  --green: #30c95c;
  --white: #ffffff;
  --shadow: 0 18px 38px rgba(15, 18, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Poppins", "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 98px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, #202526 0%, #141819 100%);
  box-shadow: 0 2px 14px rgba(0,0,0,.2);
}

.nav-wrap {
  width: 1810px;
  max-width: calc(100% - 88px);
  height: 98px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr 100px;
  align-items: center;
  gap: 28px;
}

.nav-logo-img {
  width: 180px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: #f6f6f6;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 40px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 45px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: #fff;
}

.cart-icon,
.search-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 15px;
  height: 10px;
  border: 3px solid #fff;
  border-top: 0;
  transform: skewX(-10deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 2px;
  width: 17px;
  height: 4px;
  background:
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) left center / 8px 4px no-repeat,
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) right center / 8px 4px no-repeat;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 12px;
  height: 4px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}

.hero {
  position: relative;
  min-height: 795px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  align-items: center;
  gap: 46px;
  padding: 80px max(48px, calc((100vw - 1166px) / 2)) 96px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.56) 47%, rgba(0,0,0,.28) 100%),
    image-set(
      url("assets/optimized/hero-1536.avif") type("image/avif"),
      url("assets/optimized/hero-1536.webp") type("image/webp"),
      url("assets/banner-iptv-portugal.png") type("image/png")
    ) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 78%);
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 805px;
}

.hero-kicker,
.section-eyebrow,
.tiny {
  position: relative;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-eyebrow::before {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  margin: 0 0 14px;
  background: var(--accent);
}

h1 {
  margin: 0 0 28px;
  max-width: 850px;
  color: #fff;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

h1::after,
h2::after {
  content: ".";
  color: var(--accent);
}

.page-title {
  max-width: 980px;
  color: var(--text);
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.12;
  font-weight: 900;
}

.contact-section .page-title {
  color: #fff;
}

.inner-page .plans,
.inner-page .intro,
.inner-page .content-section,
.inner-page .faq-section-full,
.inner-page .testimonials-section,
.inner-page .contact-section,
.inner-page .legal-section {
  min-height: calc(100vh - 98px);
}

.hero-copy {
  margin: 0 0 42px;
  max-width: 720px;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.55;
}

.hero-brand {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
}

.site-logo-img.logo-large {
  width: 520px;
  height: 230px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.35));
}

.hero-tags {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1120px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 3px, transparent 3px 8px),
    var(--accent);
  box-shadow: 0 12px 25px rgba(248,0,70,.25);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.btn::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 18px;
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.small {
  min-width: 168px;
  height: 50px;
  padding: 0 24px;
  font-size: 13px;
}

.intro,
.benefits,
.plans,
.content-section,
.blog-section,
.faq-section-full,
.testimonials-section,
.contact-section,
.legal-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
  background: #fff;
}

.intro {
  padding: 96px 0 108px;
}

.intro > .section-eyebrow,
.intro > h2,
.benefits > .rates,
.benefits > h2,
.benefits > .require {
  width: 1166px;
  max-width: calc(100% - 64px);
  margin-left: auto;
  margin-right: auto;
}

h2,
.intro > h2,
.benefits h2,
.content-wrap h2,
.faq-panel h2 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

.split {
  width: 1166px;
  max-width: calc(100% - 64px);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 74px;
  align-items: center;
}

.green-title {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.24;
  font-weight: 900;
}

.screen-image-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  border-radius: 18px;
  background: #f6f6f6;
  box-shadow: var(--shadow);
}

.screen-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-image-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-copy {
  color: var(--text);
}

.intro-copy h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 900;
}

.intro-copy .bold {
  margin: 0 0 18px;
  font-weight: 900;
}

.intro-copy h4 {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.25;
}

.text-card {
  margin: 0 0 30px;
  padding: 0;
  color: #111;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}

.text-card p {
  margin: 0 0 18px;
}

.logo-mid {
  display: none;
}

.benefits {
  position: relative;
  padding: 96px 0 72px;
}

.benefits-bg,
.plans-bg {
  display: none;
}

.benefits-row {
  width: 1166px;
  max-width: calc(100% - 64px);
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefits article {
  min-height: 235px;
  padding: 38px 32px 34px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f4f4f4;
  text-align: center;
}

.benefit-icon {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.benefits h3 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.benefits p,
.content-wrap p,
.legal-card p,
.blog-card p,
.contact-box p,
.info-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.rates,
.require {
  text-align: center;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.rates {
  margin-bottom: 10px;
}

.require {
  margin-top: -10px;
}

.plans {
  padding: 86px 0 104px;
}

.plan-grid {
  width: 1320px;
  max-width: calc(100% - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan {
  position: relative;
  min-height: 640px;
  padding: 58px 36px 42px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f2f2f2;
  text-align: left;
}

.plan:nth-child(2),
.plan:nth-child(5) {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, #202628 0%, #15191b 100%);
}

.plan:nth-child(2)::before,
.plan:nth-child(5)::before {
  content: "★";
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 34px;
}

.plan h3 {
  margin: 0 0 6px;
  color: inherit;
  text-align: center;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.plan h4 {
  min-height: 50px;
  margin: 0 0 16px;
  color: inherit;
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.price {
  margin: 0 0 34px;
  color: inherit;
  text-align: center;
  font-size: 60px;
  line-height: 1;
  font-weight: 900;
}

.price::first-letter {
  font-size: 24px;
  vertical-align: top;
}

.plan ul {
  list-style: none;
  margin: 0 0 34px;
  padding: 28px 0 0;
  border-top: 2px solid var(--accent);
}

.plan li {
  position: relative;
  padding: 0 34px 0 0;
  margin: 0 0 17px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
}

.plan li::after {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.content-section,
.blog-section,
.testimonials-section,
.contact-section,
.legal-section {
  padding: 92px 0;
}

.content-wrap {
  width: 1166px;
  max-width: calc(100% - 64px);
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.two-col h2,
.two-col p {
  text-align: left;
}

.info-card-list,
.blog-grid,
.legal-grid {
  display: grid;
  gap: 22px;
}

.info-card,
.blog-card,
.legal-card,
.contact-box {
  padding: 30px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: var(--shadow);
}

.info-card b,
.blog-card h3,
.legal-card h3 {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.blog-section,
.legal-section {
  background: #fafafa;
}

.blog-grid,
.legal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 500;
}

.faq-section-full {
  padding: 94px 0;
  background: #fff;
}

.faq-panel {
  width: 980px;
  max-width: calc(100% - 64px);
  margin: 0 auto;
}

.faq-panel h2 {
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.faq-item button {
  width: 100%;
  min-height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.faq-item button b {
  color: var(--accent);
  font-size: 22px;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-weight: 500;
}

.faq-item.open p {
  display: block;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.reviews-grid img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: top center;
  background: #f3f3f3;
  box-shadow: var(--shadow);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.62)),
    image-set(
      url("assets/optimized/hero-1536.avif") type("image/avif"),
      url("assets/optimized/hero-1536.webp") type("image/webp"),
      url("assets/banner-iptv-portugal.png") type("image/png")
    ) center 18% / cover no-repeat;
  color: #fff;
}

.contact-section h2,
.contact-section p,
.contact-section .section-eyebrow,
.contact-box p {
  color: #fff;
}

.contact-box {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  box-shadow: none;
}

.footer-strip {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 3px, transparent 3px 8px),
    #181d1f;
}

.footer-main {
  width: 1320px;
  max-width: calc(100% - 64px);
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.5fr .7fr 1fr .8fr;
  gap: 34px;
  align-items: center;
}

.footer-brand img {
  width: 190px;
  height: 94px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-contact,
.footer-links a {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.footer-nav {
  display: grid;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-trust img {
  width: 230px;
}

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e02113;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.whatsapp img {
  width: 34px;
  height: 34px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 34, 8, .88), rgba(10, 79, 16, .72)),
    image-set(
      url("assets/optimized/hero-1536.avif") type("image/avif"),
      url("assets/optimized/hero-1536.webp") type("image/webp"),
      url("assets/banner-iptv-portugal.png") type("image/png")
    ) center/cover no-repeat;
}

.error-wrap {
  width: min(760px, 100%);
  display: grid;
  justify-items: start;
  gap: 18px;
}

.error-logo img {
  width: 142px;
  height: auto;
  display: block;
}

.error-wrap h1,
.sitemap-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}

.error-wrap p,
.sitemap-hero p {
  max-width: 660px;
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
}

.sitemap-page {
  padding: 118px 0 80px;
  background: #f8fbf6;
}

.sitemap-hero {
  display: grid;
  gap: 16px;
  padding-bottom: 34px;
}

.sitemap-hero h1,
.sitemap-hero p {
  color: #12320d;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sitemap-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(18,50,13,.12);
  border-radius: 8px;
  background: #fff;
}

.sitemap-grid h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #12320d;
}

.sitemap-grid a {
  color: #155d11;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .nav-wrap {
    grid-template-columns: 180px 1fr;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    gap: 20px;
    font-size: 13px;
  }

  .hero,
  .split,
  .two-col,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
    background:
      linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.56) 55%, rgba(0,0,0,.35) 100%),
      image-set(
        url("assets/optimized/hero-960.avif") type("image/avif"),
        url("assets/optimized/hero-960.webp") type("image/webp"),
        url("assets/banner-iptv-portugal.png") type("image/png")
      ) center / cover no-repeat;
  }

  .plan-grid,
  .benefits-row,
  .blog-grid,
  .legal-grid,
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
  }

  .nav-wrap {
    height: auto;
    max-width: calc(100% - 28px);
    padding: 10px 0 16px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-logo-img {
    width: 150px;
    height: 70px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 12px;
  }

  .nav-links a {
    padding: 0;
  }

  .nav-links a.active::before {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 44px 22px 64px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tags span {
    min-height: 30px;
    font-size: 11px;
  }

  .site-logo-img.logo-large {
    width: 300px;
    height: 135px;
  }

  .intro,
  .benefits,
  .plans,
  .content-section,
  .blog-section,
  .faq-section-full,
  .testimonials-section,
  .contact-section,
  .legal-section {
    padding: 62px 0;
  }

  .split,
  .content-wrap,
  .plan-grid,
  .benefits-row,
  .faq-panel,
  .intro > .section-eyebrow,
  .intro > h2,
  .benefits > .rates,
  .benefits > h2,
  .benefits > .require {
    max-width: calc(100% - 32px);
  }

  .plan-grid,
  .benefits-row,
  .blog-grid,
  .legal-grid,
  .reviews-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 10px 12px;
    font-size: 11px;
  }

  h1 {
    font-size: 32px;
  }

  h2,
  .intro > h2,
  .benefits h2,
  .content-wrap h2,
  .faq-panel h2 {
    font-size: 30px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
