/* ============================================================
   /pricing — builds on styles.css (tokens, header, buttons,
   fluid background). Order: top band → plans band → founders
   card → feature list and pop-ups → footer → responsive.
   ============================================================ */

.pricing-page main { position: relative; z-index: 2; }

/* ---------- top band: plain dark, the free card ---------- */

.pricing-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}

.free-card {
  max-width: 26rem;
  margin: 2.5rem auto 0;
  padding: 2rem 1.9rem;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-align: left;
}
.free-price { display: flex; align-items: baseline; gap: 0.5rem; }
.free-amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.free-term { color: var(--text-muted); font-size: 1.05rem; }
.free-card .btn { width: 100%; margin-top: 1.5rem; }
.free-note { color: var(--text-faint); font-size: 0.8125rem; text-align: center; margin-top: 0.75rem; }
.free-list { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.free-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.875rem; }

.ck { color: var(--accent); flex: 0 0 auto; display: inline-flex; }
.ck .icon { width: 15px; height: 15px; }

/* ---------- plans band: on the moving background ---------- */

.pricing-plans { padding: var(--section-pad) 0; text-align: center; }

.term-switch {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(12, 17, 28, 0.85);
  border: 1px solid var(--border-strong);
}
.term-switch button {
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.term-switch button.active { background: var(--accent); color: #04150a; }
.save-chip {
  margin-left: 0.45rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
}
.term-switch button.active .save-chip { background: rgba(0, 0, 0, 0.25); color: #eafce6; }

/* ---------- the founders card ---------- */

.founders-card {
  position: relative;
  max-width: 58rem;
  margin: 2.25rem auto 0;
  padding: 2.4rem 2.25rem 1.6rem;
  border-radius: var(--radius-2xl);
  background: rgba(12, 17, 28, 0.9);
  border: 1px solid var(--border-brand);
  box-shadow: var(--glow), var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.founders-card .featured-tag { left: 2.25rem; right: auto; }

.founders-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.founders-head .plan-name { font-size: 1.35rem; }
.term-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; margin-top: 0.9rem; }
.term-price .plan-price { color: var(--accent); }
.plan-billed { flex-basis: 100%; color: var(--text-muted); font-size: 0.8125rem; }
.plan-change { color: var(--text-faint); font-size: 0.75rem; margin-top: 0.35rem; }

.founders-rule {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ---------- feature list, pop-ups, opener ---------- */

.feature-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem 2rem; margin-top: 1.75rem; }
.feature-list-more { margin-top: 0.2rem; }
.feature-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.feature-text { flex: 1 1 auto; }
.soon {
  flex: 0 0 auto;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}
.feature-info {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  color: var(--text-faint);
  transition: color 0.2s;
}
.feature-info:hover, .feature-info:focus-visible { color: var(--accent); }
.feature-info .icon { width: 16px; height: 16px; }

/* Browsers without the popover attribute keep tips hidden until
   pricing.js opens one with .is-open. */
.feature-tip { display: none; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; }
.feature-tip.is-open { display: block; flex-basis: 100%; margin: 0 0 0.75rem 1.6rem; }
.feature-tip:popover-open {
  display: block;
  max-width: min(22rem, calc(100vw - 2rem));
  margin: auto;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.feature-tip::backdrop { background: rgba(3, 5, 9, 0.45); }

.more-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.25rem auto 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}
.more-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.pricing-plans .plan-trust { margin-top: 1.5rem; }
.pricing-plans .price-fine { max-width: 40rem; margin-left: auto; margin-right: auto; border-top: none; }

/* ---------- footer ---------- */

.pricing-footer { padding: 2.5rem 0 2rem; background: var(--bg); }
.pricing-footer .footer-links-bottom { margin-top: 0; }

/* ---------- responsive: one column on phones, two-column list on desktop ---------- */

@media (min-width: 768px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .founders-card { padding: 2.2rem 1.4rem 1.4rem; }
  .founders-card .featured-tag { left: 1.4rem; }
  .founders-head { flex-direction: column; align-items: stretch; }
  .founders-head .btn { width: 100%; }
  .free-card { padding: 1.6rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .more-toggle .icon, .feature-info { transition: none; }
}
