/* ============================================
   PRICING (/pricing, loaded after shared.css)
   Buttons and cards follow the landing page's inline styles (index.html).
   ============================================ */

/* Hero */
.pricing-hero {
  padding: 150px 0 40px;
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 780px;
  margin: 0 auto 24px;
}

.pricing-sub {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Buttons (same as the landing page) */
.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-align: center;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--accent-glow-soft);
}

/* shared.css removes the browser's focus ring from every button; give the keyboard the amber one. */
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Plan cards */
.plans {
  padding: 40px 0 24px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.plan-card.builder {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 45%);
  /* /pricing#notify scrolls the card's top below the sticky header (65px; 57px on phones). */
  scroll-margin-top: 80px;
}

.plan-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.plan-tag {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 3px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 6px 0 20px;
}

.plan-pitch {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.plan-features-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
}

.plan-action {
  margin-top: auto;
}

/* "Not available yet": body weight, not fine print */
.plan-availability {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Helper line under the Builder notification toggle */
.plan-helper {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Inline Builder notification form */
#builder-notify-form:not([hidden]) {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#builder-notify-email {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.builder-notify-help,
#builder-notify-status {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.builder-notify-help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#builder-notify-status:not(:empty) {
  margin-top: 16px;
}

#builder-notify-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

#builder-notify-form input:focus-visible,
#builder-notify-form button:focus-visible,
#builder-notify-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.plans-shop {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 28px;
}

/* Tester strip */
.tester-strip {
  padding: 32px 0;
}

.tester-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
}

.tester-inner p {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tester-inner .btn-secondary {
  width: auto;
  flex: none;
}

/* FAQ */
.faq {
  padding: 56px 0 100px;
}

.faq .container {
  max-width: 760px;
}

.faq h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 32px;
}

.faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-bottom: 22px;
}

.pricing-footnote {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 40px;
}

/* Responsive: stack the cards, Free first */
@media (max-width: 640px) {
  .pricing-hero {
    padding: 120px 0 30px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .tester-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .tester-inner .btn-secondary {
    width: 100%;
  }
}
