/* ============================================================
   PRICING PAGE STYLES — pricing.html
   ============================================================ */

/* TIERS SECTION */
.pricing-section {
  padding: 64px 32px 96px;
  background: var(--bg-deep);
}

/* PRICING CARDS */
.pricing-cards {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.pricing-card {
  position: relative;
  flex: 1;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.40);
  box-shadow:
    0 0 0 1px hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.20),
    0 20px 60px hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.10);
}
.pricing-card.featured:hover {
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
}

.pricing-card .tag {
  position: absolute;
  top: -11px; left: 32px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
}
.pricing-card .tag.popular {
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: #fff;
}

.pricing-card h3 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}

.pricing-card .price {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  margin: 0 0 6px;
}

.pricing-card .price-note {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 28px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.pricing-card li {
  font-size: 14px;
  padding: 10px 0;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.pricing-card li:last-child { border-bottom: none; }

.pricing-card li .check {
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.pricing-card li .cross {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}
.pricing-card li.disabled { opacity: 0.45; }

/* EARLY ACCESS SECTION */
.early-access-section {
  padding: 96px 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.early-access-section .section-head {
  text-align: center;
  margin: 0 auto 48px;
}
.early-access-section .section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}
.pricing-cards.single-card {
  max-width: 480px;
}
.pricing-cards.single-card .pricing-card { flex: 1; }

.card-fineprint {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 0;
  text-align: center;
}

/* WHAT'S INCLUDED */
.included-section {
  padding: 96px 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.included-section .section-head {
  text-align: center;
  margin: 0 auto 48px;
}
.included-section .section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.included-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.included-item .check {
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* FAQ */
.faq-section {
  padding: 96px 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.faq-section .section-head {
  text-align: center;
  margin: 0 auto 48px;
}
.faq-section .section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: color .15s ease;
}
.faq-item h3:hover {
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
}

.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.faq-item h3:hover::after {
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
}

.faq-item.open h3 {
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
}
.faq-item.open h3::after {
  content: '\2212';
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 22px;
}

.faq-item p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.faq-item a {
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  text-decoration: none;
}
.faq-item a:hover { text-decoration: underline; }

/* BILLING TOGGLE */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

.billing-toggle span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .15s ease;
}
.billing-toggle span.active { color: var(--text); }

.toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.toggle-track.on {
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}
.toggle-track.on .toggle-thumb { transform: translateX(20px); }

.billing-save-wrap {
  text-align: center;
  margin-top: 0;
  margin-bottom: 48px;
  min-height: 24px;
}

.billing-save {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 70%);
  background: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.12);
  border: 1px solid hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.30);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.billing-save.visible { opacity: 1; }

/* UPGRADE CHECK */
.upgrade-check {
  max-width: 460px;
  margin: 40px auto 0;
  text-align: center;
}

.upgrade-check > p {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.upgrade-check-form {
  display: flex;
  gap: 8px;
}

.upgrade-check-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.upgrade-check-form input:focus {
  border-color: hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60%);
  box-shadow: 0 0 0 3px hsl(var(--ml-accent-h, 212) var(--ml-accent-s, 100%) 60% / 0.15);
}

.upgrade-check-form .btn { white-space: nowrap; }

.upgrade-check-result {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: 12px;
  min-height: 20px;
  color: var(--ink-3);
}

.upgrade-check.has-credit { display: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .pricing-cards { flex-wrap: wrap; max-width: 720px; }
  .pricing-card { min-width: 280px; }
}
@media (max-width: 768px) {
  .pricing-section { padding: 20px 16px 60px; }
  .pricing-cards { flex-direction: column; max-width: 480px; }
  .included-grid { grid-template-columns: 1fr; }
}
