/* ==========================================================================
   Section: planos — pricing (Fusion AI /pricing): segmented Mensal|Anual toggle,
   3 cards rendered from CONFIG.pricing, popular card with warm top glow + spinning edge.
   Every rule is scoped under .section--planos (see _build/CONTRACT.md).
   ========================================================================== */
.section--planos {
  --pl-pad: 32px;
  --pl-gap: 20px;
  isolation: isolate;
}
.section--planos > .container { position: relative; z-index: 1; }

/* ---- Ambient glows (orange left, blue right) ------------------------------ */
.section--planos .pl-glow {
  --glow-w: 760px;
  --glow-h: 560px;
  --glow-opacity: .36;
  top: 46%;
}
.section--planos .pl-glow--orange { left: -16%; }
.section--planos .pl-glow--blue { right: -16%; top: 50%; --glow-opacity: .32; }

/* ---- Head + toggle -------------------------------------------------------- */
.section--planos .pl-head { max-width: 800px; }
.section--planos .pl-toggle-wrap { margin-top: 14px; }
.section--planos .pl-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.section--planos .pl-toggle__opt {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-2);
  transition: color .4s var(--ease-out);
}
.section--planos .pl-toggle__opt:hover { color: var(--text); }
.section--planos .pl-toggle__opt[aria-pressed="true"] { color: #000; }
.section--planos .pl-toggle__opt:focus-visible { border-radius: var(--r-pill); outline-offset: 2px; }
.section--planos .pl-toggle__pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #fff 0%, #ececec 100%);
  box-shadow:
    0 8px 24px -10px rgba(255, 255, 255, .45),
    0 0 0 1px rgba(255, 255, 255, .6) inset,
    0 -1px 0 rgba(0, 0, 0, .12) inset;
  pointer-events: none;
}
.section--planos .pl-toggle__save {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #FF9B6A;
  background: rgba(218, 78, 36, .16);
  box-shadow: inset 0 0 0 1px rgba(218, 78, 36, .42);
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.section--planos .pl-toggle__opt[aria-pressed="true"] .pl-toggle__save {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 4px 14px -4px rgba(218, 78, 36, .8);
}

/* ---- Grid ----------------------------------------------------------------- */
.section--planos .pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pl-gap);
  align-items: stretch;
  max-width: 1200px;
  margin-inline: auto;
}
.section--planos .pl-col { display: flex; min-width: 0; }

/* ---- Card ----------------------------------------------------------------- */
.section--planos .pl-card {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--pl-pad);
  border-radius: var(--r-20);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b0b0b 0%, #060606 48%, #030303 100%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .45s var(--ease-out);
}
.section--planos .pl-card:not(.is-popular):hover { border-color: var(--border-strong); }
.section--planos .pl-card__main,
.section--planos .pl-card__side { display: flex; flex-direction: column; min-width: 0; }
.section--planos .pl-card__side { flex: 1; }

/* popular: warm top glow, orange hairline, subtle lift */
.section--planos .pl-card.is-popular {
  border-color: rgba(218, 78, 36, .32);
  background:
    radial-gradient(110% 48% at 50% 0%, rgba(218, 78, 36, .14) 0%, rgba(218, 78, 36, 0) 70%),
    linear-gradient(180deg, #0d0a09 0%, #060606 52%, #030303 100%);
  box-shadow:
    0 50px 90px -50px rgba(218, 78, 36, .45),
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 190, 140, .14);
}
.section--planos .pl-card__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.section--planos .pl-card__glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -150px;
  width: 92%;
  height: 230px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 137, 24, .95) 0%, rgba(218, 78, 36, .6) 45%, rgba(218, 78, 36, 0) 100%);
  filter: blur(36px);
  opacity: .78;
}
.section--planos .pl-card__glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 118, .95) 50%, transparent);
}

/* head */
.section--planos .pl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.section--planos .pl-card__name { margin: 0; }
.section--planos .pl-card__badge {
  height: 26px;
  padding: 0 11px;
  font-size: 11px;
  letter-spacing: .08em;
}
.section--planos .pl-card__subtitle {
  margin-top: 10px;
  min-height: 48px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}

/* price */
.section--planos .pl-price {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.section--planos .pl-price__cur {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, .86);
}
.section--planos .pl-price__num {
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.section--planos .pl-price__suffix {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-3);
}
.section--planos .pl-note {
  display: flex;
  flex-direction: column;
  min-height: 40px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.section--planos .pl-note__save { color: #FF9B6A; font-weight: 500; }

/* capacity meter (segmented) */
.section--planos .pl-meter { margin-top: 22px; }
.section--planos .pl-meter__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-3);
}
.section--planos .pl-meter__row strong { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.section--planos .pl-meter__track {
  position: relative;
  height: 6px;
  margin-top: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
  mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
}
.section--planos .pl-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--fill, 0) * 100%);
  background: linear-gradient(90deg, #A22904 0%, #DA4E24 55%, #FF8918 100%);
  transform-origin: 0 50%;
}

.section--planos .pl-card__cta { margin-top: 24px; }

/* included list */
.section--planos .pl-card__divider { margin: 28px 0 22px; background: var(--border); }
.section--planos .pl-card.is-popular .pl-card__divider { background: linear-gradient(90deg, rgba(218, 78, 36, .35), rgba(255, 255, 255, .1) 40%); }
.section--planos .pl-card__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-3);
}
.section--planos .pl-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
}
.section--planos .pl-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}
.section--planos .pl-feature .sparkle { --size: 16px; margin-top: 3px; }
.section--planos .pl-feature.is-inherit { color: var(--text); font-weight: 500; }

/* ---- Foot ----------------------------------------------------------------- */
.section--planos .pl-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  text-align: center;
}
.section--planos .pl-assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.section--planos .pl-assure li { display: inline-flex; align-items: center; gap: 8px; }
.section--planos .pl-assure svg { width: 16px; height: 16px; color: var(--orange-bright); }
.section--planos .pl-foot__line { font-size: 16px; line-height: 26px; color: var(--text-2); }
.section--planos .pl-foot__def { max-width: 680px; margin-inline: auto; font-size: 14px; line-height: 22px; color: var(--text-3); }
.section--planos .pl-foot__def b { font-weight: 600; color: var(--text-2); }
.section--planos .pl-foot__def > span { display: block; }   /* one definition per line */
.section--planos .pl-foot__def a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.section--planos .pl-foot__def a:hover { color: var(--orange-bright); }
.section--planos .pl-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--text);
  font-weight: 500;
  background: linear-gradient(90deg, var(--orange-bright), var(--orange)) no-repeat 0 100% / 100% 1px;
  transition: color .3s var(--ease-out), background-size .4s var(--ease-out);
}
.section--planos .pl-foot__link svg { width: 16px; height: 16px; transition: transform .45s var(--ease-roll); }
.section--planos .pl-foot__link:hover { color: var(--orange-bright); }
.section--planos .pl-foot__link:hover svg { transform: translateX(3px); }

/* ---- Desktop: 3 columns, lifted popular card ------------------------------ */
@media (min-width: 1024px) {
  .section--planos .pl-card.is-popular { transform: scale(1.03); z-index: 2; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .section--planos { --pl-pad: 26px; --pl-gap: 16px; }
  .section--planos .pl-price__num { font-size: 42px; }
  .section--planos .pl-price__cur { font-size: 22px; }
}

/* ---- Tablet / large phones: one column, horizontal cards ------------------ */
@media (max-width: 1023px) {
  .section--planos .pl-grid { grid-template-columns: minmax(0, 1fr); max-width: 780px; gap: 16px; }
  .section--planos .pl-card__subtitle { min-height: 0; }
  .section--planos .pl-glow { top: 30%; --glow-w: 560px; --glow-h: 700px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .section--planos { --pl-pad: 30px; }
  .section--planos .pl-card { flex-direction: row; gap: 34px; }
  .section--planos .pl-card__main { flex: 1 1 50%; }
  .section--planos .pl-card__side {
    flex: 1 1 50%;
    justify-content: center;
    padding-left: 34px;
    border-left: 1px solid var(--border);
  }
  .section--planos .pl-card.is-popular .pl-card__side { border-left-color: rgba(218, 78, 36, .25); }
  .section--planos .pl-card__divider { display: none; }
  .section--planos .pl-features { margin-top: 16px; }
}

/* ---- Phones --------------------------------------------------------------- */
@media (max-width: 639px) {
  .section--planos { --pl-pad: 24px; }
  .section--planos .pl-toggle__opt { min-width: 104px; padding: 0 16px; }
  .section--planos .pl-price__num { font-size: 44px; }
  .section--planos .pl-card__divider { margin: 26px 0 20px; }
  .section--planos .pl-foot { margin-top: 44px; }
  /* one column, centred as a block, icons aligned on a single edge */
  .section--planos .pl-assure { flex-direction: column; align-items: flex-start; gap: 10px; width: fit-content; margin-inline: auto; }
}
@media (max-width: 380px) {
  .section--planos { --pl-pad: 20px; }
  .section--planos .pl-price__num { font-size: 40px; }
  .section--planos .pl-price__cur { font-size: 22px; }
}
