/* ==========================================================================
   Planos residenciais — layout em codigo (substitui a arte dobra-planos.jpg).
   Baseado no layout de referencia enviado pelo cliente, com os textos/planos
   atuais do site. Usa as fontes locais do projeto (Archivo / Inter).
   ========================================================================== */

/* ---------- Fundo atmosferico ---------- */
.section--plans {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 12%, #0d2854 0%, #05132c 45%, #020712 100%);
}
/* Linhas diagonais de ambiente. */
.section--plans::before,
.section--plans::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 2px;
  pointer-events: none;
}
.section--plans::before {
  top: 15%;
  left: -100px;
  transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.4), transparent);
}
.section--plans::after {
  bottom: 25%;
  right: -80px;
  transform: rotate(-30deg);
  background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.35), transparent);
}

/* ---------- Cabecalho ---------- */
.plans-head { text-align: center; margin-bottom: clamp(34px, 4vw, 56px); }
.plans-head__tag {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 0.62rem + 0.3vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00b4d8;
}
.plans-head__title {
  margin: 0 auto 16px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}
.plans-head__title span { color: #0088ff; }
.plans-head__text {
  margin: 0 auto;
  max-width: 54ch;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.9);
}

/* ---------- Cards ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid rgba(27, 61, 111, 0.6);
  border-radius: 24px;
  background: rgba(9, 26, 54, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan-card:hover { border-color: #22579d; }
.plan-card--featured {
  border: 2px solid #0091ff;
  background: linear-gradient(180deg, rgba(10, 35, 75, 0.95) 0%, rgba(5, 24, 56, 0.95) 100%);
  box-shadow: 0 0 25px -2px rgba(0, 163, 255, 0.5), 0 0 10px -2px rgba(0, 210, 255, 0.3);
}
.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 6px 16px;
  border: 1px solid #3399ff;
  border-radius: 999px;
  background: #0070f3;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0, 112, 243, 0.9);
}
.plan-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 1.8vw, 24px);
}
.plan-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(20, 66, 127, 0.5);
  background: #0a234b;
  color: #0091ff;
}
.plan-card--featured .plan-card__icon {
  border-color: rgba(0, 132, 255, 0.5);
  background: #0c3169;
  color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
}
.plan-card__icon svg { width: 24px; height: 24px; }
.plan-card__name {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  line-height: 1.2;
  text-transform: none;
  color: #fff;
}
.plan-card__speed {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 clamp(18px, 1.8vw, 24px);
  color: #fff;
}
.plan-card__speed b {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-card__unit { display: flex; flex-direction: column; }
.plan-card__unit em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #00a6ff;
}
.plan-card--featured .plan-card__unit em { color: #00d2ff; }
.plan-card__unit small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: #cbd5e1;
}
.plan-card__div {
  height: 1px;
  width: 100%;
  margin-bottom: clamp(18px, 1.8vw, 24px);
  background: #173059;
}
.plan-card--featured .plan-card__div { background: #1b437c; }
.plan-card__features {
  display: grid;
  gap: 14px;
  margin: 0 0 clamp(22px, 2vw, 30px);
  padding: 0;
  list-style: none;
}
.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(0.8rem, 0.78rem + 0.15vw, 0.88rem);
  line-height: 1.4;
  color: #e2e8f0;
}
.plan-card__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #0091ff;
}
.plan-card__check svg { width: 100%; height: 100%; }
.plan-card__label { margin: 0 0 3px; font-size: 0.7rem; font-weight: 500; color: #94a3b8; }
.plan-card--featured .plan-card__label { color: #cbd5e1; }
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0 0 16px;
  color: #fff;
}
.plan-card__price > span { font-size: 1rem; font-weight: 700; }
.plan-card__price b {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-card__price b sup { font-size: 0.6em; font-weight: 700; vertical-align: baseline; }
.plan-card__price small { margin-left: 4px; font-size: 0.75rem; font-weight: 500; color: #94a3b8; }
.plan-card--featured .plan-card__price small { color: #cbd5e1; }
.plan-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #0070f3;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  transition: background 0.2s var(--ease), filter 0.2s var(--ease);
}
.plan-card__btn:hover { background: rgba(0, 112, 243, 0.2); }
.plan-card__btn svg { width: 18px; height: 18px; }
.plan-card--featured .plan-card__btn {
  border: 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0066f5 0%, #00b0ff 100%);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 140, 255, 0.4);
}
.plan-card--featured .plan-card__btn:hover { background: linear-gradient(90deg, #0066f5 0%, #00b0ff 100%); filter: brightness(1.1); }

/* ---------- Barra de beneficios ---------- */
.plans-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  padding-top: clamp(24px, 2.4vw, 34px);
  border-top: 1px solid rgba(19, 44, 84, 0.7);
}
.plans-benefit { display: flex; align-items: center; gap: 12px; }
.plans-benefit__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 145, 255, 0.4);
  background: #071936;
  color: #0091ff;
}
.plans-benefit__icon svg { width: 20px; height: 20px; }
.plans-benefit__text {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  color: #e2e8f0;
}
.plans-benefit__text small { display: block; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
    gap: 20px;
  }
  .plan-card--featured { order: -1; }
  .plans-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .plans-head__title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  /* No celular os cards ocupam a largura toda e as linhas diagonais de ambiente
     cruzam por cima deles, parecendo um risco na tela. Some com elas. */
  .section--plans::before,
  .section--plans::after { display: none; }
}
