/* ============================================
   NEXUS AI STUDIO — PRICING SECTION
   ============================================ */

/* ── HERO TRIAL CHIP ─────────────────────── */
.hero-trial-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 8px 8px 8px 10px;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  box-shadow:
    0 4px 14px -4px rgba(124,58,237,0.18),
    var(--shadow-sm);
  transition: border-color .2s, box-shadow .25s, transform .15s;
  position: relative;
}
.hero-trial-chip:hover {
  border-color: var(--accent);
  box-shadow:
    0 10px 28px -8px rgba(124,58,237,0.32),
    var(--shadow-md);
  transform: translateY(-1px);
}
.hero-trial-chip:hover .hero-trial-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.hero-trial-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(124,58,237,0.35);
}
.hero-trial-icon svg { width: 12px; height: 12px; transform: translateX(1px); }
.hero-trial-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.hero-trial-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
}
.hero-trial-text span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.hero-trial-arrow {
  width: 16px; height: 16px;
  margin-right: 8px;
  color: var(--muted-2);
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}

/* ── PRICING TRIAL BANNER (above tabs) ──── */
.pricing-trial-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px -8px rgba(124,58,237,0.2);
  max-width: 100%;
}
.pricing-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pricing-trial-pill svg { width: 10px; height: 10px; }
.pricing-trial-copy {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: -0.1px;
}
.pricing-trial-copy strong {
  color: var(--accent-2);
  font-weight: 700;
}
.pricing-trial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 4px 4px 2px;
  transition: color .2s, transform .15s;
  white-space: nowrap;
}
.pricing-trial-link svg { width: 14px; height: 14px; transition: transform .15s; }
.pricing-trial-link:hover { color: var(--accent-2); }
.pricing-trial-link:hover svg { transform: translateX(2px); }

.pricing-toggle-wrap {
  text-align: center;
  margin-bottom: 52px;
}
.pricing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
  gap: 2px;
}
.pricing-toggle-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: color .2s, background .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pricing-toggle-btn:hover { color: var(--accent); }
.pricing-toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.pricing-toggle-btn.is-active:hover { color: #fff; }
.pricing-toggle-btn .save-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}
.pricing-toggle-btn.is-active .save-pill {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.pricing-toggle-note {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.1px;
}
.pricing-toggle-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* ── PRICING GRID ─────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .2s, box-shadow .25s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
  border-color: #c4b5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── PLUS tier — light tint between Basic and Max ── */
.pricing-card[data-tier="plus"] {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  box-shadow:
    0 6px 18px -6px rgba(124,58,237,0.12),
    var(--shadow-sm);
}
.pricing-card[data-tier="plus"]:hover {
  border-color: #c4b5fd;
  box-shadow:
    0 10px 26px -8px rgba(124,58,237,0.18),
    var(--shadow-md);
}
.pricing-card[data-tier="plus"] .pricing-name { color: var(--accent-2); }

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pricing-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.pricing-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
  min-height: 44px;
}

/* Price block */
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pricing-period {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.pricing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  min-height: 22px;
}
.pricing-meta-monthly {
  font-size: 13px;
  color: var(--muted);
}
.pricing-meta-monthly strong {
  color: var(--text-soft);
  font-weight: 600;
}
.pricing-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pricing-save-badge::before {
  content: '−';
  font-weight: 800;
}
.pricing-save-badge[hidden] { display: none !important; }

/* CTA stack: primary button + trial link */
.pricing-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}
.pricing-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  margin-bottom: 0;
}
.pricing-cta-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.pricing-cta-trial:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.pricing-cta-trial svg {
  flex-shrink: 0;
  color: currentColor;
}

/* Feature list */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 0 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}
.pricing-features li.is-no {
  color: var(--muted-2);
}
.pricing-features li.is-no .pricing-feat-text {
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
}
.pricing-features li strong {
  color: var(--text);
  font-weight: 700;
}
.pricing-features li.is-no strong {
  color: var(--muted-2);
  font-weight: 600;
}
.pricing-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.pricing-features li.is-no .pricing-check {
  background: var(--surface);
  color: var(--muted-2);
}
.pricing-check svg { width: 11px; height: 11px; }
.pricing-features li.is-no .pricing-check svg { width: 9px; height: 9px; }

/* Fine print (3 máy / license) */
.pricing-fineprint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  margin: 0;
}
.pricing-fineprint svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: var(--muted-2);
}
.pricing-fineprint strong {
  color: var(--text-soft);
  font-weight: 700;
}

/* ── FEATURED (MAX) — accent border, lifted ── */
.pricing-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  padding: 31px 27px; /* compensate +1px border so content aligns */
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  box-shadow:
    0 16px 40px -12px rgba(124,58,237,0.28),
    0 4px 12px -4px rgba(124,58,237,0.12);
  transform: translateY(-8px);
}
.pricing-card-featured:hover {
  border-color: var(--accent);
  transform: translateY(-11px);
  box-shadow:
    0 22px 48px -12px rgba(124,58,237,0.38),
    0 6px 16px -4px rgba(124,58,237,0.16);
}
.pricing-card-featured .pricing-name { color: var(--accent); }
.pricing-card-featured .pricing-price {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124,58,237,0.4);
  white-space: nowrap;
}
.pricing-badge-popular svg { width: 12px; height: 12px; }

/* ── PRICING FOOTNOTES ───────────────────── */
.pricing-footnotes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
.pricing-footnotes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pricing-footnotes svg {
  width: 14px; height: 14px;
  color: var(--accent);
}

/* ── DARK MODE ───────────────────────────── */
[data-theme="dark"] .hero-trial-chip {
  background: var(--surface);
  border-color: rgba(167,139,250,0.3);
  color: var(--text);
  box-shadow:
    0 6px 18px -6px rgba(139,92,246,0.4),
    var(--shadow);
}
[data-theme="dark"] .hero-trial-chip:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .hero-trial-text strong { color: var(--text); }
[data-theme="dark"] .hero-trial-text span { color: var(--muted); }
[data-theme="dark"] .hero-trial-icon {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  box-shadow: 0 4px 12px rgba(139,92,246,0.5);
}

[data-theme="dark"] .pricing-trial-banner {
  background: linear-gradient(135deg, rgba(167,139,250,0.08) 0%, rgba(139,92,246,0.06) 100%);
  border-color: rgba(167,139,250,0.3);
  box-shadow: 0 6px 18px -8px rgba(139,92,246,0.4);
}
[data-theme="dark"] .pricing-trial-copy { color: var(--text-soft); }
[data-theme="dark"] .pricing-trial-copy strong { color: var(--accent); }
[data-theme="dark"] .pricing-trial-pill { background: var(--accent-2); }
[data-theme="dark"] .pricing-trial-link { color: var(--accent); }
[data-theme="dark"] .pricing-trial-link:hover { color: #c4b5fd; }

[data-theme="dark"] .pricing-toggle {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .pricing-toggle-btn { color: var(--text-soft); }
[data-theme="dark"] .pricing-toggle-btn:hover { color: var(--accent); }
[data-theme="dark"] .pricing-toggle-btn.is-active {
  background: var(--accent-2);
  color: #fff;
}
[data-theme="dark"] .pricing-toggle-btn .save-pill {
  background: rgba(16,185,129,0.14);
  color: #34d399;
  border-color: rgba(16,185,129,0.3);
}

[data-theme="dark"] .pricing-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .pricing-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .pricing-card[data-tier="plus"] {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(167,139,250,0.05) 100%);
  border-color: rgba(167,139,250,0.3);
  box-shadow:
    0 8px 22px -8px rgba(139,92,246,0.25),
    var(--shadow-sm);
}
[data-theme="dark"] .pricing-card[data-tier="plus"]:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .pricing-card[data-tier="plus"] .pricing-name { color: var(--accent); }
[data-theme="dark"] .pricing-price { color: var(--text); }
[data-theme="dark"] .pricing-check {
  background: rgba(167,139,250,0.14);
  color: var(--accent);
}
[data-theme="dark"] .pricing-features li.is-no .pricing-check {
  background: var(--bg-soft);
  color: var(--muted-2);
}
[data-theme="dark"] .pricing-features { border-top-color: var(--border); }
[data-theme="dark"] .pricing-fineprint { border-top-color: var(--border); }
[data-theme="dark"] .pricing-features li.is-no .pricing-feat-text {
  text-decoration-color: var(--border-strong);
}
[data-theme="dark"] .pricing-save-badge {
  background: rgba(16,185,129,0.14);
  color: #34d399;
  border-color: rgba(16,185,129,0.3);
}
[data-theme="dark"] .pricing-cta-trial { color: var(--accent); }
[data-theme="dark"] .pricing-cta-trial:hover {
  background: rgba(167,139,250,0.14);
  color: #c4b5fd;
}

[data-theme="dark"] .pricing-card-featured {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(167,139,250,0.08) 100%);
  border-color: var(--accent);
  box-shadow:
    0 18px 44px -12px rgba(139,92,246,0.45),
    0 4px 12px -4px rgba(0,0,0,0.35);
}
[data-theme="dark"] .pricing-card-featured:hover {
  border-color: var(--accent);
  box-shadow:
    0 24px 52px -12px rgba(139,92,246,0.55),
    0 6px 16px -4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .pricing-card-featured .pricing-name { color: var(--accent); }
[data-theme="dark"] .pricing-card-featured .pricing-price {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 16px;
  }
  .pricing-card-featured {
    transform: translateY(0);
    order: -1;
  }
  .pricing-card-featured:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 560px) {
  .pricing-toggle {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius);
    padding: 6px;
  }
  .pricing-toggle-btn {
    padding: 9px 14px;
    font-size: 13px;
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
  .pricing-card { padding: 26px 22px; }
  .pricing-card-featured { padding: 25px 21px; }
  .pricing-price { font-size: 30px; }
  .pricing-footnotes { gap: 14px; font-size: 12.5px; }

  .hero-trial-chip {
    gap: 10px;
    padding: 7px 8px 7px 8px;
    max-width: calc(100% - 16px);
  }
  .hero-trial-text strong { font-size: 13px; }
  .hero-trial-text span { font-size: 11.5px; }

  .pricing-trial-banner {
    border-radius: var(--radius);
    padding: 10px 14px 10px 10px;
    gap: 8px;
  }
  .pricing-trial-copy { font-size: 13px; text-align: center; }
  .pricing-trial-link { font-size: 12.5px; }
}
