/* Pricing page specific styles.
   Relies on ../home/css/base.css (tokens, nav, container) and ../home/css/sections.css (footer, nav-toggle responsive). */

.hero {
  text-align: center;
  padding: 96px 24px 24px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  color: var(--tx);
}
.hero h1 .grad { display: inline-block; margin-top: 6px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1rem;
  color: var(--tx-mute);
  max-width: 480px;
  margin: 0 auto;
}

/* Billing-period toggle */
.toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 8px;
  position: relative;
  z-index: 1;
}
.toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.toggle button {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--tx-mute);
  transition: background .2s, color .2s;
}
.toggle button.active {
  background: var(--brand);
  color: #00161a;
}
.save-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: #2CE070;
  background: rgba(44, 224, 112, .12);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Plan cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 36px auto 56px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl, 16px);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .3s, transform .2s;
}
.card:hover { transform: translateY(-2px); }
.card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 30px rgba(51, 238, 255, .08), inset 0 1px 0 rgba(51, 238, 255, .1);
}
.card.locked { opacity: .55; pointer-events: none; }

.card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #00161a;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.card h3 {
  font-family: var(--head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tx);
  letter-spacing: -.01em;
}
.card .desc {
  font-size: .8rem;
  color: var(--tx-mute);
  margin-bottom: 22px;
  line-height: 1.5;
}

.price-row { margin-bottom: 22px; }
.price {
  font-family: var(--head);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--tx);
}
.price .curr { font-size: 1.1rem; vertical-align: top; margin-right: 2px; color: var(--tx-mute); }
.period {
  font-size: .78rem;
  color: var(--tx-mute);
  margin-top: 2px;
}
.price-annual { display: none; }

.card .price-compare {
  font-size: .78rem;
  color: var(--tx-mute);
  margin-top: 6px;
}
.card .price-compare s { color: #ff6b8a; }
.card .price-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .72rem;
  font-weight: 600;
  color: #2CE070;
}
.card .price-lock svg { width: 14px; height: 14px; fill: #2CE070; }

.features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}
.features li {
  font-size: .82rem;
  color: var(--tx-2);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.features li .check {
  color: #2CE070;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.features li.disabled { color: var(--tx-dim); }
.features li.disabled .check { color: var(--tx-dim); }

/* Buttons */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s, background .2s;
  text-decoration: none;
  text-align: center;
  display: block;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #00161a;
}
.btn-outline {
  background: transparent;
  color: var(--tx-mute);
  border: 1px solid var(--border);
}
.btn-locked {
  background: var(--surface-2);
  color: var(--tx-dim);
  cursor: default;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.faq h2 {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--tx);
  letter-spacing: -.01em;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-q {
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--tx);
}
.faq-q::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--tx-mute);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: .85rem;
  color: var(--tx-2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding-top: 12px;
}

/* Responsive */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; max-width: 420px; }
  .hero h1 { font-size: 1.8rem; }
}
