/* ===========================
   Iris — Página de Planos
   Estilos específicos
   =========================== */

/* ============================
   HERO PLANOS
   ============================ */

.hero--planos {
  min-height: 70vh;
  padding-bottom: var(--space-xl);
}

.hero__title--planos {
  font-size: clamp(26px, 5vw, 40px);
  max-width: 580px;
  margin-inline: auto;
}

/* Trust Line */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-line__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-line__icon {
  width: 16px;
  height: 16px;
  color: var(--iris-vision);
}

.trust-line__divider {
  color: var(--text-note);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .trust-line {
    flex-direction: column;
    gap: 6px;
  }
  
  .trust-line__divider {
    display: none;
  }
}

/* ============================
   PLANO SOCIAL (DESTAQUE)
   ============================ */

.pricing-social {
  max-width: 420px;
  margin: 0 auto var(--space-lg);
}

.pricing-card--social {
  position: relative;
  border: 2px solid rgba(110, 190, 160, 0.45);
  background: linear-gradient(
    135deg,
    rgba(110, 190, 160, 0.10) 0%,
    rgba(164, 224, 186, 0.08) 100%
  );
  box-shadow:
    var(--shadow-lg),
    0 0 48px rgba(110, 190, 160, 0.12),
    0 0 0 1px rgba(110, 190, 160, 0.08);
  overflow: visible;
}

.pricing-card--social:hover {
  border-color: rgba(110, 190, 160, 0.6);
  box-shadow:
    var(--shadow-lg),
    0 0 64px rgba(110, 190, 160, 0.18),
    0 0 0 1px rgba(110, 190, 160, 0.12);
  transform: translateY(-4px);
  transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card__badge--social {
  background: linear-gradient(
    180deg,
    rgba(80, 170, 130, 0.92) 0%,
    rgba(60, 148, 110, 0.94) 100%
  );
  color: white;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 12px rgba(110, 190, 160, 0.3); }
  50% { box-shadow: var(--shadow-sm), 0 0 24px rgba(110, 190, 160, 0.5); }
}

.pricing-card__limited {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

html[data-theme="dark"] .pricing-card--social {
  border-color: rgba(110, 190, 160, 0.3);
  background: linear-gradient(
    135deg,
    rgba(110, 190, 160, 0.08) 0%,
    rgba(164, 224, 186, 0.04) 100%
  );
}

html[data-theme="dark"] .pricing-card--social:hover {
  border-color: rgba(110, 190, 160, 0.45);
}

/* ============================
   PRICING GRID
   ============================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1000px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* ============================
   PRICING CARD
   ============================ */

.pricing-card {
  position: relative;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 16px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 360px;
}

.pricing-card__badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    180deg,
    rgba(112, 132, 170, 0.92) 0%,
    rgba(86, 104, 142, 0.94) 100%
  );
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.pricing-card__badge--alt {
  background: linear-gradient(
    180deg,
    rgba(170, 164, 194, 0.92) 0%,
    rgba(140, 134, 164, 0.94) 100%
  );
}

.pricing-card__badge--partner {
  background: linear-gradient(
    180deg,
    rgba(164, 186, 224, 0.92) 0%,
    rgba(134, 156, 194, 0.94) 100%
  );
}

.pricing-card__header {
  margin-bottom: var(--space-xs);
}

.pricing-card__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.pricing-card__name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-headline);
}

.pricing-card__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pricing-card__price--main {
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pricing-card__prefix {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.pricing-card__amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-headline);
}

.pricing-card__price--main .pricing-card__amount {
  font-size: 42px;
  color: var(--iris-vision-deep);
}

.pricing-card__period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card__total {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -4px;
}

.pricing-card__highlight {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-card__equivalent {
  font-size: 16px;
  font-weight: 600;
  color: var(--iris-vision-deep);
}

.pricing-card__savings {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card__installments {
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.pricing-card__info {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.pricing-card__cta {
  margin-top: auto;
  width: 100%;
}

/* Card Destacado */
.pricing-card--featured {
  padding-top: calc(var(--space-lg) + 28px);
  border-color: rgba(164, 186, 224, 0.35);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Cards com badge precisam de mais espaço no topo */
.pricing-card:has(.pricing-card__badge) {
  padding-top: calc(var(--space-lg) + 28px);
}

@media (min-width: 768px) {
  .pricing-card--featured {
    transform: scale(1.05);
    z-index: 2;
  }
  
  .pricing-card--featured:hover {
    transform: scale(1.07) translateY(-4px);
  }
}

/* Card Parceria */
.pricing-card--partnership {
  max-width: 400px;
  margin-inline: auto;
  padding-top: calc(var(--space-lg) + 12px);
}

/* ============================
   PARTNERSHIP SECTION
   ============================ */

.partnership-section {
  margin-top: var(--space-xl);
  max-width: 700px;
  margin-inline: auto;
}

.partnership {
  padding: var(--space-lg);
  cursor: pointer;
  background: linear-gradient(
    135deg,
    rgba(164, 186, 224, 0.12) 0%,
    rgba(170, 164, 194, 0.08) 100%
  );
  border: 2px solid rgba(164, 186, 224, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 
    var(--shadow-md),
    0 0 40px rgba(164, 186, 224, 0.1);
  transition: all var(--duration-normal) var(--ease-out);
}

.partnership:hover {
  border-color: rgba(164, 186, 224, 0.4);
  box-shadow: 
    var(--shadow-lg),
    0 0 60px rgba(164, 186, 224, 0.15);
}

.partnership__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-headline);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.partnership__summary::-webkit-details-marker {
  display: none;
}

.partnership__summary:hover {
  opacity: 0.85;
}

.partnership__icon {
  font-size: 28px;
}

.partnership__text {
  background: linear-gradient(
    90deg,
    var(--iris-vision-deep) 0%,
    var(--iris-support) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partnership__chevron {
  width: 24px;
  height: 24px;
  color: var(--iris-vision-deep);
  transition: transform var(--duration-normal) var(--ease-out);
}

.partnership[open] .partnership__chevron {
  transform: rotate(180deg);
}

.partnership__content {
  margin-top: var(--space-lg);
  animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   FEATURES GRID
   ============================ */

.section--features {
  background: 
    radial-gradient(
      ellipse 80% 50% at 20% 80%,
      rgba(164, 186, 224, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(170, 164, 194, 0.06),
      transparent 50%
    );
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature--highlight {
    grid-column: 2;
  }
}

.feature {
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 20px;
}

@supports (backdrop-filter: blur(1px)) {
  .feature__icon {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}

.feature__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-headline);
}

.feature__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.feature__text em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
}

.disclaimer {
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-note);
  max-width: 500px;
  line-height: 1.6;
}

/* ============================
   TIMELINE
   ============================ */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
  max-width: 700px;
  margin-inline: auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--iris-support) 0%,
    var(--iris-calm) 100%
  );
  border-radius: 2px;
  opacity: 0.4;
}

@media (min-width: 640px) {
  .timeline::before {
    left: 31px;
  }
}

.timeline__item {
  padding: var(--space-md);
  padding-left: calc(var(--space-md) + 56px);
  position: relative;
}

.timeline__number {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(102, 125, 166, 0.85) 0%,
    rgba(82, 105, 146, 0.85) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm), 0 4px 16px rgba(92, 115, 156, 0.15);
  z-index: 1;
}

@supports (backdrop-filter: blur(1px)) {
  .timeline__number {
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
  }
}

.timeline__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-headline);
}

.timeline__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================
   FAQ
   ============================ */

.section--faq {
  background: 
    radial-gradient(
      ellipse 70% 50% at 80% 80%,
      rgba(170, 164, 194, 0.08),
      transparent 60%
    );
}

.faq-list {
  display: grid;
  gap: var(--space-sm);
  max-width: 700px;
  margin-inline: auto;
}

.faq {
  padding: var(--space-md);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-headline);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  opacity: 0.8;
}

.faq__question span {
  flex: 1;
}

.faq__chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border-subtle);
  animation: slideDown 0.3s var(--ease-out);
}

.faq__answer p {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ============================
   CTA CARD
   ============================ */

.section--cta {
  padding-bottom: var(--space-lg);
}

.cta-card {
  padding: var(--space-xl);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cta-card__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-headline);
}

.cta-card__text {
  margin: 0 0 var(--space-md);
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================
   ANIMATIONS (Reveal)
   ============================ */

.pricing-social,
.pricing-card,
.feature,
.timeline__item,
.faq,
.cta-card {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.6s var(--ease-out) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for pricing cards */
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

/* Stagger delays for features */
.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.15s; }
.feature:nth-child(3) { animation-delay: 0.2s; }
.feature:nth-child(4) { animation-delay: 0.25s; }
.feature:nth-child(5) { animation-delay: 0.3s; }

/* Stagger delays for timeline */
.timeline__item:nth-child(1) { animation-delay: 0.1s; }
.timeline__item:nth-child(2) { animation-delay: 0.2s; }
.timeline__item:nth-child(3) { animation-delay: 0.3s; }
.timeline__item:nth-child(4) { animation-delay: 0.4s; }

/* Stagger delays for FAQ */
.faq:nth-child(1) { animation-delay: 0.1s; }
.faq:nth-child(2) { animation-delay: 0.15s; }
.faq:nth-child(3) { animation-delay: 0.2s; }
.faq:nth-child(4) { animation-delay: 0.25s; }
.faq:nth-child(5) { animation-delay: 0.3s; }

/* ============================
   DARK MODE
   ============================ */

html[data-theme="dark"] .pricing-card__tag {
  background: rgba(41, 36, 32, 0.6);
  border-color: rgba(247, 247, 247, 0.12);
}

html[data-theme="dark"] .pricing-card__installments {
  background: rgba(41, 36, 32, 0.5);
  border-color: rgba(247, 247, 247, 0.12);
}

html[data-theme="dark"] .pricing-card__equivalent {
  color: var(--iris-support);
}

html[data-theme="dark"] .pricing-card__price--main .pricing-card__amount {
  color: var(--iris-support);
}

html[data-theme="dark"] .pricing-card--featured {
  border-color: rgba(164, 186, 224, 0.25);
}

html[data-theme="dark"] .feature__icon {
  background: rgba(41, 36, 32, 0.55);
  border-color: rgba(247, 247, 247, 0.16);
}

html[data-theme="dark"] .timeline::before {
  opacity: 0.3;
}

html[data-theme="dark"] .timeline__number {
  border-color: rgba(247, 247, 247, 0.16);
  box-shadow: var(--shadow-sm), 0 6px 20px rgba(164, 186, 224, 0.2);
}

html[data-theme="dark"] .faq__answer {
  border-top-color: rgba(247, 247, 247, 0.1);
}

html[data-theme="dark"] .partnership {
  background: linear-gradient(
    135deg,
    rgba(164, 186, 224, 0.08) 0%,
    rgba(170, 164, 194, 0.05) 100%
  );
  border-color: rgba(164, 186, 224, 0.2);
}

html[data-theme="dark"] .partnership:hover {
  border-color: rgba(164, 186, 224, 0.35);
}

html[data-theme="dark"] .partnership__text {
  background: linear-gradient(
    90deg,
    var(--iris-support) 0%,
    var(--iris-calm) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="dark"] .partnership__chevron {
  color: var(--iris-support);
}

/* ============================
   RESPECT USER PREFERENCES
   ============================ */

@media (prefers-reduced-motion: reduce) {
  .pricing-social,
  .pricing-card,
  .feature,
  .timeline__item,
  .faq,
  .cta-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .partnership__content,
  .faq__answer {
    animation: none;
  }
  
  .partnership__chevron,
  .faq__chevron {
    transition: none;
  }
}
