/*
 Fibra Brasil | Cards Comerciais Premium V8
 Shared presentation for public residential/business/combo plans + Checkout V2.
 Does not affect content, prices, IDs, eligibility, navigation or admin forms.
 Loaded after each page's existing public styles. No scripts and no fake content.
*/

/* One visual vocabulary, two existing rendering engines. */
.lp3-root .lp3-plan-card,
.checkout-v2 .cv2-offer-card {
  min-width: 0;
  border-radius: 21px;
  border: 1px solid #dfe8e7;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 37, 56, .065);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .lp3-root .lp3-plan-card:hover,
  .checkout-v2 .cv2-offer-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--lp3-primary, #218b35) 24%, #dfe8e7);
    box-shadow: 0 16px 36px rgba(14, 37, 56, .09);
  }
}

/* V7 uses an editorial background pseudo-element extending beyond the page.
   Clip only that section's horizontal decoration to prevent a page scrollbar. */
.lp3-root #planos { overflow-x: clip; }

/* HOME — The same rule applies automatically to residential, business and combos. */
.lp3-root .lp3-plan-card,
.lp3-root #empresas .lp3-plan-card {
  min-height: 505px;
  display: flex;
  flex-direction: column;
  padding: 21px;
}
.lp3-root .lp3-plan-card:has(.lp3-plan-tag) {
  padding-top: 21px;
}
.lp3-root .lp3-plan-tag-slot {
  min-height: 28px;
  margin-bottom: 11px;
}
.lp3-root .lp3-plan-tag {
  border-radius: 999px;
  padding: 6px 11px;
}
.lp3-root .lp3-plan-title {
  /* Increased ~3px from the V7 base; accommodate long Fibra + Movel names. */
  font-size: clamp(25px, 1.9vw, 27px);
  font-weight: 820;
  letter-spacing: -.036em;
  line-height: 1.18;
  min-height: 2.45em;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
  color: var(--lp3-plan-title, var(--lp3-secondary, #0b233b));
}
.lp3-root .lp3-plan-description-slot {
  min-height: 46px;
  margin: 0 0 6px;
}
.lp3-root .lp3-plan-description {
  font-size: 13px;
  line-height: 1.5;
}
.lp3-root .lp3-plan-list {
  /* Actual, unmodified benefits rendered in a gentle inset panel. */
  flex: 1 1 auto;
  margin: 9px 0 15px;
  padding: 14px 14px 11px;
  border: 1px solid #edf2ef;
  border-radius: 13px;
  background: color-mix(in srgb, var(--lp3-primary, #219e16) 3%, #fff);
  min-height: 118px;
  list-style: none;
}
.lp3-root .lp3-plan-list li {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
  padding-left: 22px;
  overflow-wrap: break-word;
}
.lp3-root .lp3-plan-list li:last-child { margin-bottom: 0; }
.lp3-root .lp3-plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05em;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--lp3-primary, #219e16) 55%, white);
  color: var(--lp3-primary, #219e16);
  background: color-mix(in srgb, var(--lp3-primary, #219e16) 8%, white);
}
.lp3-root .lp3-plan-footer {
  margin-top: auto;
  display: grid;
  gap: 11px;
}
.lp3-root .lp3-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 48px;
  margin-bottom: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lp3-root .lp3-price-currency { font-size: 17px; font-weight: 800; }
.lp3-root .lp3-price strong {
  /* Main price is intentionally larger than V7, without truncation. */
  font-size: clamp(36px, 2.85vw, 40px);
  font-weight: 820;
  letter-spacing: -.047em;
  line-height: 1;
}
.lp3-root .lp3-price-cycle { font-size: 12px; }
.lp3-root .lp3-plan-footer .lp3-button,
.lp3-root .lp3-plan-card .choose-plan-button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--lp3-plan-button-bg, var(--lp3-accent, #fac521));
  color: var(--lp3-plan-button-text, #10253d);
}
.lp3-root .lp3-plan-card .choose-plan-button:focus-visible,
.lp3-root .lp3-details-link:focus-visible {
  outline: 3px solid var(--lp3-primary, #279641);
  outline-offset: 3px;
}
.lp3-root .lp3-details-link {
  justify-self: center;
  align-self: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  min-height: 28px;
  color: var(--lp3-plan-link, var(--lp3-primary, #218b35));
}

/* CHECKOUT V2 — Reuse the card language without changing selection behavior. */
.checkout-v2 .cv2-offer-card {
  min-height: 505px;
  padding: 21px;
}
.checkout-v2 .cv2-offer-card:has(.cv2-offer-tag) {
  border-color: color-mix(in srgb, var(--lp-primary, #218b35) 45%, #dfe8e7);
}
.checkout-v2 .cv2-offer-tag {
  border-radius: 999px;
  padding: 6px 11px;
}
.checkout-v2 .cv2-offer-card h2 {
  /* Existing Checkout title was 20px. */
  font-size: clamp(24px, 1.9vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.checkout-v2 .cv2-speed {
  font-size: clamp(35px, 2.8vw, 39px);
  line-height: 1.1;
}
.checkout-v2 .cv2-offer-subtitle {
  font-size: 13px;
  line-height: 1.5;
}
.checkout-v2 .cv2-offer-card ul {
  flex: 1 1 auto;
  min-height: 118px;
  margin: 11px 0 14px;
  padding: 14px 15px;
  border: 1px solid #edf2ef;
  border-radius: 13px;
  background: color-mix(in srgb, var(--lp-primary, #218b35) 3%, #fff);
  font-size: 13px;
  line-height: 1.65;
  list-style: none;
}
.checkout-v2 .cv2-offer-card ul li { margin: 0 0 8px; overflow-wrap: break-word; }
.checkout-v2 .cv2-offer-card ul li:last-child { margin-bottom: 0; }
.checkout-v2 .cv2-price {
  margin: 14px 0 15px;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.checkout-v2 .cv2-price > span { font-size: 17px; font-weight: 800; }
.checkout-v2 .cv2-price strong {
  font-size: clamp(36px, 2.85vw, 40px);
  font-weight: 820;
  letter-spacing: -.047em;
  line-height: 1;
}
.checkout-v2 .cv2-price small { font-size: 12px; }
.checkout-v2 .cv2-offer-card .cv2-primary {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--lp-accent, #fac521);
  color: var(--lp-secondary, #10253d);
}
.checkout-v2 .cv2-details-button {
  align-self: center;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-primary, #218b35);
}
.checkout-v2 .cv2-offer-card .cv2-primary:focus-visible,
.checkout-v2 .cv2-details-button:focus-visible {
  outline: 3px solid var(--lp-primary, #218b35);
  outline-offset: 3px;
}

@media (max-width: 1150px) {
  .lp3-root .lp3-plan-title { min-height: 0; font-size: 26px; }
  .lp3-root .lp3-plan-card, .lp3-root #empresas .lp3-plan-card,
  .checkout-v2 .cv2-offer-card { min-height: 475px; }
}
@media (max-width: 680px) {
  .lp3-root .lp3-plan-card, .lp3-root #empresas .lp3-plan-card,
  .checkout-v2 .cv2-offer-card { min-height: 0; padding: 20px; }
  .lp3-root .lp3-plan-title { font-size: 26px; min-height: 0; }
  .lp3-root .lp3-plan-description-slot { min-height: 0; }
  .lp3-root .lp3-plan-list, .checkout-v2 .cv2-offer-card ul { min-height: 0; }
  .lp3-root .lp3-price strong, .checkout-v2 .cv2-price strong { font-size: 38px; }
  .checkout-v2 .cv2-offer-card h2 { font-size: 26px; }
}
@media (max-width: 359px) {
  .lp3-root .lp3-plan-title, .checkout-v2 .cv2-offer-card h2 { font-size: 24px; }
  .lp3-root .lp3-price strong, .checkout-v2 .cv2-price strong { font-size: 34px; }
  .lp3-root .lp3-price-currency, .checkout-v2 .cv2-price > span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp3-root .lp3-plan-card, .checkout-v2 .cv2-offer-card { transition: none; }
}
