/* ==========================================================
   Master Class — sales page + gate modal
   ========================================================== */

/* Preview cards (locked look) */
.mod-card-preview .num { color: var(--color-secondary); }
.mod-card-preview:hover .lock-ic { color: var(--color-primary-ink); }
.mod-card .lock-ic { color: var(--color-text-faint); transition: color var(--transition-interactive); }

.curriculum-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Pricing card */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: var(--color-primary);
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 12px);
  opacity: 0.15;
}
.pricing-name {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.price-amt {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-text);
  font-weight: 400;
}
.price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}
.pricing-features li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  position: relative;
  color: var(--color-text);
  font-size: var(--text-base);
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  width: 100%;
  justify-content: center;
}
.btn-block { width: 100%; justify-content: center; }
.pricing-alt {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing-alt.small { font-size: var(--text-xs); margin-top: var(--space-3); }
.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-secondary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--color-secondary-hover); }

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  position: relative;
  padding-right: var(--space-10);
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-secondary);
  transition: transform var(--transition-interactive);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
  max-width: none;
}

/* Gate modal */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in oklab, var(--color-text) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.gate-modal[data-open="true"] {
  display: flex;
  animation: fade-in 200ms ease both;
}
.gate-modal-panel {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  animation: rise-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gate-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gate-modal-close:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.gate-modal-panel h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.gate-modal-panel p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.gate-modal-panel input[data-gate-input] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.gate-modal-panel input[data-gate-input]:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px var(--color-secondary-highlight);
}
.gate-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  min-height: 1.4em;
  display: none;
}
.gate-help {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.gate-help a { color: var(--color-secondary); }

/* Hide/show helpers already used by gate.js */
[data-locked-only][hidden],
[data-unlocked-only][hidden] { display: none !important; }

/* Header nav: lock icon before "Buy" */
.site-nav a[data-locked-only] {
  color: var(--color-primary-ink);
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 700;
}
.site-nav a[data-locked-only]:hover {
  background: var(--color-primary-hover);
  color: var(--color-primary-ink);
}
.site-nav a[data-unlocked-only] {
  color: var(--color-text-faint);
  font-size: 0.85em;
}
