/* ============================================================
   EQUALA — pricing.css
   Consistent with platform UI color system
   Signature element: tier cards with blue gradient → gold apex
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:      #020305;
  --dark:       #080c12;
  --card:       #0d1420;
  --border:     rgba(255,255,255,0.07);
  --text:       #e8edf5;
  --muted:      #4a5568;
  --muted2:     #8899aa;
  --accent:     #1a6cff;
  --accent2:    #00d4ff;
  --gold:       #e8b84b;
  --gold2:      #f0c96a;

  /* Tier colors — blue gradient → gold */
  --basic:      #4a90d9;
  --pro:        #2d6db5;
  --enterprise: #1a4a8a;
  --ailab:      #e8b84b;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html, body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── NAV ── */
.pricing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-eqa {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(26,108,255,0.5);
}

.logo-equala {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.nav-link:hover, .nav-link.active { color: var(--text); }

.btn-nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.06em;
  transition: background 0.15s;
}

.btn-nav-cta:hover { background: var(--accent2); color: var(--black); }

/* ── HERO ── */
.pricing-hero {
  text-align: center;
  padding: 80px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent2);
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-sub {
  font-size: 16px;
  color: var(--muted2);
  max-width: 560px;
  line-height: 1.7;
}

/* Billing toggle */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.toggle-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle {
  width: 48px;
  height: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  position: relative;
  transition: background 0.2s;
}

.billing-toggle.active { background: var(--accent); border-color: var(--accent); }

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--muted2);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.billing-toggle.active .toggle-thumb {
  transform: translateX(22px);
  background: #fff;
}

.save-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(232,184,75,0.12);
  border: 1px solid rgba(232,184,75,0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── PRICING GRID ── */
.pricing-cards-section {
  padding: 0 32px 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TIER CARD ── */
.tier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.tier-card:hover { transform: translateY(-4px); }

/* Featured card */
.tier-featured {
  border-color: rgba(26,108,255,0.4);
  background: linear-gradient(160deg, var(--card) 0%, rgba(26,108,255,0.06) 100%);
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  background: var(--accent2);
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

/* AI-Lab card */
.tier-ailab {
  border-color: rgba(232,184,75,0.3);
  background: linear-gradient(160deg, var(--card) 0%, rgba(232,184,75,0.05) 100%);
}

.tier-ailab:hover { border-color: rgba(232,184,75,0.5); }

/* Card header */
.tier-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-icon {
  font-size: 24px;
  line-height: 1;
}

/* Tier badges */
.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.basic-badge      { background: rgba(74,144,217,0.15); color: var(--basic); border: 1px solid rgba(74,144,217,0.3); }
.pro-badge        { background: rgba(45,109,181,0.15); color: #5a9fd4; border: 1px solid rgba(45,109,181,0.3); }
.enterprise-badge { background: rgba(26,74,138,0.2); color: #7aa8e0; border: 1px solid rgba(26,74,138,0.4); }
.ailab-badge      { background: rgba(232,184,75,0.12); color: var(--gold); border: 1px solid rgba(232,184,75,0.3); }

.tier-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.tier-for {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.6;
}

/* Price */
.tier-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted2);
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ailab-price .price-amount { color: var(--gold); }

.price-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted2);
  margin-left: 4px;
}

.price-annual-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* CTA buttons */
.tier-cta {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.basic-cta      { background: rgba(74,144,217,0.15); color: var(--basic); border-color: rgba(74,144,217,0.3); }
.basic-cta:hover { background: rgba(74,144,217,0.25); }

.pro-cta        { background: rgba(45,109,181,0.15); color: #5a9fd4; border-color: rgba(45,109,181,0.3); }
.pro-cta:hover  { background: rgba(45,109,181,0.25); }

.enterprise-cta { background: var(--accent); color: #fff; }
.enterprise-cta:hover { background: var(--accent2); color: var(--black); }

.ailab-cta      { background: var(--gold); color: var(--black); }
.ailab-cta:hover { background: var(--gold2); }

/* Divider */
.tier-divider      { height: 1px; background: var(--border); }
.tier-divider-gold { background: rgba(232,184,75,0.2); }

/* Features */
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.feature-item, .feature-no {
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-item { color: var(--text); }
.feature-no   { color: var(--muted); }

/* ── FAQ ── */
.faq-section {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-q:hover { background: rgba(255,255,255,0.04); }
.faq-q.open  { color: var(--accent2); }

.faq-icon {
  font-size: 10px;
  color: var(--muted2);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-q.open .faq-icon { transform: rotate(180deg); }

.faq-a {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.7;
  background: var(--card);
}

.faq-a.hidden { display: none; }

/* ── FOOTER CTA ── */
.pricing-footer-cta {
  text-align: center;
  padding: 80px 48px 100px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.btn-footer-cta {
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.06em;
  transition: background 0.15s, transform 0.1s;
}

.btn-footer-cta:hover {
  background: var(--accent2);
  color: var(--black);
  transform: translateY(-2px);
}

.hidden { display: none !important; }