/* ==========================================================================
   AETHER — Página de Planos (planos.css)
   Complementa style.css com estilos específicos da página de preços
   ========================================================================== */

/* ── NAV ACTIVE STATE ────────────────────────────────────────────────────── */
.nav-link--active {
  color: var(--gold) !important;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ── PLANS HERO ──────────────────────────────────────────────────────────── */
.plans-hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 4rem;
  text-align: center;
}

.plans-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 6.5rem);
  line-height: .92;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  margin: .8rem 0 1.4rem;
}

.plans-hero-sub {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 2.8rem;
  line-height: 1.65;
}

/* ── BILLING TOGGLE ──────────────────────────────────────────────────────── */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1.4rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(158,122,82,.25);
}

.billing-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.billing-badge {
  font-size: .68rem;
  background: rgba(194,154,104,.18);
  border: 1px solid rgba(194,154,104,.4);
  color: var(--btn);
  padding: .15rem .5rem;
  letter-spacing: .1em;
}

.billing-toggle {
  width: 44px;
  height: 24px;
  background: rgba(158,122,82,.2);
  border: 1px solid rgba(158,122,82,.4);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
  flex-shrink: 0;
}

.billing-toggle.active {
  background: rgba(194,154,104,.35);
  border-color: var(--btn);
}

.billing-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s;
}

.billing-toggle.active .billing-thumb {
  transform: translateX(20px);
  background: var(--btn);
  box-shadow: 0 0 10px rgba(194,154,104,.6);
}

/* ── PLANS SECTION ───────────────────────────────────────────────────────── */
.plans-section {
  padding: 3rem 0 7rem;
}

/* ── CATEGORY TABS ───────────────────────────────────────────────────────── */
.plans-category-tabs {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.cat-tab {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .65rem 1.4rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(158,122,82,.22);
  color: var(--text-sub);
  cursor: pointer;
  transition: all .25s;
}

.cat-tab:hover {
  border-color: var(--gold);
  color: var(--highlight);
  background: rgba(194,154,104,.06);
}

.cat-tab.active {
  background: rgba(194,154,104,.16);
  border-color: var(--btn);
  color: var(--highlight);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(194,154,104,.2);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  /* perspective for 3D tilt */
  perspective: 1200px;
}

/* ── PLAN CARD ───────────────────────────────────────────────────────────── */
.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(158,122,82,.22);
  padding: 2.4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s, opacity .3s, transform .3s;
  cursor: default;
}

.plan-card--featured {
  border-color: rgba(194,154,104,.55);
  background: linear-gradient(145deg, #1E1C19, var(--bg-card));
  box-shadow: 0 0 40px rgba(194,154,104,.08), 0 20px 60px rgba(0,0,0,.5);
}

.plan-card.is-dimmed {
  opacity: .45;
  transform: scale(.97);
}

/* Popular badge */
.plan-popular-tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--btn);
  padding: .28rem .75rem;
}

/* Glow layer (follows cursor via JS) */
.plan-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  border-radius: inherit;
}

.plan-card:hover .plan-glow-layer {
  opacity: 1;
}

/* Shimmer sweep */
.plan-shimmer {
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.04), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  transition: transform .7s ease-out;
}

.plan-card:hover .plan-shimmer {
  transform: translateX(320%) skewX(-12deg);
}

/* Bottom accent line */
.plan-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  pointer-events: none;
  transition: width .5s ease-out;
}

.plan-card:hover .plan-accent-line {
  width: 100%;
}

/* ── PLAN CONTENT ────────────────────────────────────────────────────────── */
.plan-top {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 48px;
}

.plan-icon-badge {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.plan-tier-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--highlight);
  line-height: 1.1;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  margin-top: .2rem;
}

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.plan-pricing {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 68px;
  justify-content: flex-start;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: .25rem;
}

.price-curr {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-sub);
}

.price-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  line-height: 1;
  font-weight: 400;
  color: var(--highlight);
  transition: opacity .3s;
}

.price-per {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: .3rem;
}

.plan-price-custom {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--highlight);
}

.price-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── FEATURES LIST ───────────────────────────────────────────────────────── */
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
  border-top: 1px solid rgba(158,122,82,.15);
  padding-top: 1.4rem;
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-sub);
  line-height: 1.4;
}

.feat--off {
  color: var(--text-muted);
  opacity: .55;
}

.feat-icon {
  flex-shrink: 0;
  margin-top: .05em;
}

.feat-icon--yes {
  color: var(--gold);
}

.feat-icon--no {
  color: rgba(158,122,82,.4);
}

/* ── PLAN CTA BUTTON ─────────────────────────────────────────────────────── */
.plan-btn {
  width: 100%;
  padding: .95rem 1rem;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(158,122,82,.4);
  color: var(--text-sub);
  background: transparent;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}

.plan-btn:hover {
  border-color: var(--gold);
  color: var(--highlight);
  background: rgba(158,122,82,.08);
}

.plan-btn--featured {
  background: var(--btn);
  color: var(--bg);
  border-color: var(--btn);
  box-shadow: 0 4px 24px rgba(194,154,104,.3);
}

.plan-btn--featured:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
  box-shadow: 0 6px 32px rgba(214,190,161,.5);
  transform: translateY(-2px);
}

/* ── TRUST BAR ───────────────────────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid rgba(158,122,82,.15);
  border-bottom: 1px solid rgba(158,122,82,.15);
  padding: 2.2rem 0;
  background: rgba(26,27,29,.5);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section {
  padding: 7rem 0;
}

.faq-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid rgba(158,122,82,.18);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-sub);
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
  color: var(--highlight);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
  overflow: hidden;
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer p {
  min-height: 0;
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.75;
  padding-bottom: 1.5rem;
}

/* ── PRICE FLIP ANIMATION ────────────────────────────────────────────────── */
@keyframes priceFlip {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.price-num.updating {
  animation: priceFlip .25s ease forwards;
}

/* ── SMOOTH DRAWER ───────────────────────────────────────────────────────── */

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Panel — slides up from bottom */
.drawer-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%) rotateX(5deg);
  transform-origin: bottom center;
  perspective: 900px;
  width: 100%;
  max-width: 480px;
  background: #141618;
  border: 1px solid rgba(158,122,82,.4);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  z-index: 1600;
  will-change: transform, opacity;
  opacity: 0;
  transition:
    transform .55s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity   .3s ease;
  box-shadow: 0 -20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(158,122,82,.1);
}

.drawer-panel.open {
  transform: translateX(-50%) translateY(0) rotateX(0deg);
  opacity: 1;
}

/* Drag handle */
.drawer-handle {
  width: 40px;
  height: 4px;
  background: rgba(158,122,82,.35);
  border-radius: 99px;
  margin: 1rem auto .5rem;
}

.drawer-inner {
  padding: .5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* ── STAGGER ANIMATION ───────────────────────────────────────────────────── */
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.drawer-panel.open [data-stagger] {
  animation: staggerIn .4s cubic-bezier(.34,1.4,.64,1) both;
}

.drawer-panel.open [data-stagger]:nth-child(1) { animation-delay: .18s; }
.drawer-panel.open [data-stagger]:nth-child(2) { animation-delay: .27s; }
.drawer-panel.open [data-stagger]:nth-child(3) { animation-delay: .36s; }
.drawer-panel.open [data-stagger]:nth-child(4) { animation-delay: .44s; }

/* Feature items stagger */
.drawer-panel.open .drawer-feat {
  animation: staggerIn .35s cubic-bezier(.34,1.4,.64,1) both;
}

/* ── DRAWER ELEMENTS ─────────────────────────────────────────────────────── */

/* Header */
.drawer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(158,122,82,.15);
  padding-bottom: 1.2rem;
}

.drawer-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-tier {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .15rem;
}

.drawer-plan-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--highlight);
  line-height: 1;
}

.drawer-close {
  margin-left: auto;
  color: var(--text-muted);
  padding: .4rem;
  flex-shrink: 0;
  transition: color .2s;
}

.drawer-close:hover { color: var(--gold); }

/* Price */
.drawer-price-wrap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.drawer-price-row {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.drawer-currency {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-sub);
}

.drawer-price-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 400;
  color: var(--highlight);
}

.drawer-price-per {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: .3rem;
}

.drawer-price-custom {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--highlight);
}

.drawer-description {
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Features */
.drawer-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  border-top: 1px solid rgba(158,122,82,.12);
  padding-top: 1.2rem;
}

.drawer-feat {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.drawer-feat svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Actions */
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-top: .3rem;
}

.drawer-cta {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--btn);
  color: var(--bg);
  cursor: pointer;
  border: none;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(194,154,104,.25);
}

.drawer-cta:hover {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(214,190,161,.4);
}

.drawer-dismiss {
  width: 100%;
  padding: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(158,122,82,.2);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}

.drawer-dismiss:hover {
  color: var(--text-sub);
  border-color: rgba(158,122,82,.4);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .plans-hero {
    text-align: left;
  }

  .billing-toggle-wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}
