﻿:root {
  --bg: #000000;
  --panel-border: #7b838a;
  --text-main: #f4f7fa;
  --text-soft: #f0f5fb;
  --cyan: #10aef5;
  --cyan-2: #27c6ff;
  --blue-1: #16a7ff;
  --blue-2: #10d3ff;
}

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

body {
  background: #000;
  color: var(--text-main);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  padding: 26px 24px 70px;
}

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #fff;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow:
    0 10px 25px rgba(0, 170, 255, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 28px rgba(0, 170, 255, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.back-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-bottom: 36px;
}

.service-card {
  position: relative;
  border: 1px solid rgba(160, 171, 180, 0.7);
  border-radius: 34px;
  padding: 26px;
  background: #000;
  min-height: 548px;
  content-visibility: auto;
  contain-intrinsic-size: 548px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .service-card.reveal:nth-child(2),
.plans-grid .plan-card.reveal:nth-child(2) {
  transition-delay: 0.05s;
}

.services-grid .service-card.reveal:nth-child(3),
.plans-grid .plan-card.reveal:nth-child(3) {
  transition-delay: 0.1s;
}

.services-grid .service-card.reveal:nth-child(4),
.plans-grid .plan-card.reveal:nth-child(4) {
  transition-delay: 0.15s;
}

.card-title {
  position: relative;
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  line-height: 0.98;
  margin-bottom: 16px;
  padding: 0 10px 2px;
  display: block;
  width: 100%;
  color: #fff;
  z-index: 1;
  font-weight: 800;
}

.card-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  height: 0.82em;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  z-index: -1;
  border-radius: 2px;
}

.service-card picture {
  display: block;
}

.service-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #020406;
  border: 1px solid #11191f;
  margin-bottom: 18px;
  display: block;
}

.service-image-full {
  height: auto;
  max-height: none;
}

.service-card p {
  font-size: clamp(1.08rem, 1.25vw, 2rem);
  line-height: 1.4;
  color: var(--text-soft);
  text-align: justify;
  letter-spacing: 0.01em;
}

.service-card p + p {
  margin-top: 16px;
}

.service-card em {
  font-style: italic;
}

.service-card-audiovisual::after {
  content: "";
  position: absolute;
  top: 57px;
  right: -162px;
  width: 210px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
}

.service-card-audiovisual::before {
  content: "";
  position: absolute;
  top: 53px;
  right: -172px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.plans-section {
  border-top: 1px solid rgba(140, 151, 160, 0.2);
  padding-top: 14px;
}

.plans-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 22px;
}

.divider-line {
  height: 3px;
  flex: 1;
  background: linear-gradient(90deg, #0377ae, #17bcf8);
}

.plans-divider h3 {
  font-size: clamp(2rem, 2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.plans-divider strong {
  font-weight: 800;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  border: 1px solid rgba(122, 208, 248, 0.65);
  border-radius: 30px;
  padding: 14px 11px 14px;
  min-height: 410px;
  background: linear-gradient(180deg, rgba(13, 45, 65, 0.45) 0%, rgba(2, 8, 12, 0.96) 80%);
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 410px;
}

.plan-top {
  text-align: center;
  margin-bottom: 8px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.ribbon {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
  display: block;
}

.star {
  width: 58px;
  height: 58px;
  display: block;
  margin-inline: auto;
  font-size: 0;
  line-height: 0;
  margin-bottom: 8px;
  background: url("imagens/estrela.png") center / contain no-repeat;
}

.plan-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #eaf6ff;
  text-transform: uppercase;
}

.plan-chip {
  display: inline-block;
  background: linear-gradient(90deg, #0d7fbe, #1dc2ff);
  color: #f8fcff;
  font-size: clamp(1.28rem, 1.28vw, 2rem);
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
}

.plan-subtitle {
  margin-top: 5px;
  font-size: clamp(1.24rem, 1.1vw, 1.6rem);
}

.plan-list {
  list-style: none;
  text-align: center;
  color: #f3f7fd;
  font-size: clamp(1rem, 1.02vw, 1.32rem);
  line-height: 1.36;
  display: grid;
  gap: 9px;
  margin: 2px 0 10px;
  flex: 1;
}

.plan-list li::before {
  content: "• ";
}

.plan-list em {
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.plan-status,
.plan-warning {
  position: static;
  color: #fff;
  font-size: clamp(1rem, 0.96vw, 1.12rem);
  font-weight: 500;
  line-height: 1.1;
  padding: 0;
  margin: 0 auto;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
}

.plan-status {
  background: #1097de;
  padding: 0px 8px; /* altura fina e bonita */
  margin-top: auto;
  border-radius: 0;
    min-height: auto; /* remove a altura forçada */
}

.plan-warning {
  text-align: center;
  width: 96%;
  max-width: 96%;
  line-height: 1.15;
  background: transparent;
  display: block;
  margin-top: auto;
}

.plan-warning-highlight {
  color: #fff;
  background: #1097de;
  padding: 2px 6px;
  display: inline-block;
}

.plan-btn {
  position: static;
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 999px;
  border: 1px solid #ace5ff;
  background: linear-gradient(90deg, #159fdf, #28c6ff);
  color: #ebf8ff;
  font-size: clamp(1.56rem, 1.75vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  height: 48px;
  padding: 0;
  text-decoration: none;
  text-align: center;
  margin-top: 10px;
  align-self: stretch;
  box-sizing: border-box;
}

.plan-btn span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
}

.plan-btn:hover,
.plan-btn:focus,
.plan-btn:active,
.plan-btn:visited {
  color: #ebf8ff;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .service-card {
    min-height: 490px;
  }

  .service-image {
    height: 190px;
  }

  .service-card p {
    font-size: 1rem;
  }

  .service-card-audiovisual::after,
  .service-card-audiovisual::before {
    display: none;
  }

  .plan-card {
    min-height: 390px;
  }

  .plan-chip {
    font-size: 1rem;
  }

  .plan-subtitle,
  .plan-list,
  .plan-status,
  .plan-warning {
    font-size: 0.95rem;
  }

  .plan-btn {
    font-size: 1.6rem;
  }
}

@media (max-width: 900px) {
  body {
    padding: 16px 12px 34px;
  }

  .services-grid,
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    min-height: auto;
    border-radius: 24px;
    padding: 16px 12px 18px;
  }

  .card-title {
    font-size: 1.78rem;
    line-height: 0.98;
    padding: 0 8px 2px;
    margin-bottom: 12px;
  }

  .service-image {
    height: auto;
  }

  .service-card p {
    font-size: 0.97rem;
  }

  .plans-divider h3 {
    white-space: nowrap;
    font-size: clamp(1.2rem, 5.3vw, 1.7rem);
  }

  .plan-card {
    min-height: auto;
    padding-bottom: 18px;
  }

  .plan-top {
    min-height: auto;
    display: block;
  }

  .plan-btn {
    margin-top: 10px;
    font-size: 1.32rem;
    height: 44px;
  }

  .plan-status,
  .plan-warning {
    margin: 0 auto 6px;
    width: auto;
    max-width: 96%;
    min-height: auto;
  }
}

@media (min-width: 901px) {
  .service-card p {
    font-size: 1rem;
  }

  .plans-divider h3 {
    font-size: 2rem;
  }

  .plan-chip {
    font-size: 1.02rem;
  }

  .plan-subtitle {
    font-size: 0.94rem;
  }

  .plan-list {
    font-size: 0.98rem;
  }

  .plan-status,
  .plan-warning {
    font-size: 0.94rem;
  }

  .plan-btn {
    font-size: 1.35rem;
    height: 48px;
  }

  .plan-btn span {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
