/* ParaPrep, Pricing page styles.
 * Loaded after styles.css; reuses the shared design tokens (:root variables). */

/* ---- Accessibility helper ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Public marketing header CTA (Sign up) ---- */
.nav-cta {
  background: var(--teal); color: #fff !important;
  padding: .45rem .9rem; border-radius: 8px;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ---- Page intro ---- */
.pricing-intro { text-align: center; margin-bottom: 1.5rem; }
.pricing-intro h2 { font-size: 1.9rem; margin: 0 0 .4rem; letter-spacing: -.02em; }
.pricing-intro p { color: var(--muted); margin: 0 auto; max-width: 60ch; }

/* "Prices are placeholders" notice */
.tbd-note {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--amber-bg); color: var(--amber);
  border: 1px solid var(--amber-border); border-radius: 999px;
  padding: .35rem .8rem; font-size: .8rem; font-weight: 600; margin-top: .9rem;
}

/* Checkout status banner (success / cancelled / demo notice) */
.checkout-banner {
  border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: 1.5rem;
  font-size: .9rem; border: 1px solid var(--line); background: var(--surface);
}
.checkout-banner.is-success { background: #e6f5ec; border-color: var(--green); color: #1e5b3d; }
.checkout-banner.is-info { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.checkout-banner button {
  float: right; background: none; border: 0; cursor: pointer;
  font-size: 1rem; line-height: 1; color: inherit; opacity: .6;
  padding: .25rem .4rem; min-width: 40px; min-height: 40px;
}
.checkout-banner button:hover { opacity: 1; }
.checkout-banner button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

/* ---- Billing interval toggle ---- */
.plan-toggle-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.plan-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: .25rem; box-shadow: var(--shadow);
}
.plan-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: .88rem; padding: .5rem 1.1rem;
  border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
}
.plan-toggle button.active { background: var(--teal); color: #fff; }
.plan-toggle button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.save-tag {
  background: var(--amber-bg); color: var(--amber); border-radius: 999px;
  padding: .1rem .5rem; font-size: .7rem; font-weight: 800;
}
.plan-toggle button.active .save-tag { background: rgba(255,255,255,.22); color: #fff; }

/* ---- Plan cards ---- */
.plan-grid {
  display: grid; gap: 1.2rem; margin-bottom: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.plan-card.is-highlight { border-color: var(--teal); box-shadow: 0 6px 24px rgba(15,125,119,.16); }
.plan-badge {
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.plan-tagline { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; min-height: 2.4em; }

.plan-price { display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .interval { color: var(--muted); font-size: .9rem; font-weight: 600; }
.price-sub { color: var(--muted); font-size: .82rem; margin: .3rem 0 0; min-height: 1.2em; }
.tbd-pill {
  display: inline-block; background: var(--amber-bg); color: var(--amber);
  border: 1px solid var(--amber-border); border-radius: 6px; padding: .05rem .4rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em; vertical-align: middle;
  margin-left: .4rem;
}

.plan-features { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; flex: 1; }
.plan-features li {
  position: relative; padding: .35rem 0 .35rem 1.6rem; font-size: .9rem;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: 0; }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: .35rem;
  color: var(--teal); font-weight: 800;
}
/* A "header"-style feature line (e.g. "Everything in Free, plus, ") has no tick. */
.plan-features li.is-group::before { content: ""; }
.plan-features li.is-group { color: var(--muted); font-weight: 700; font-size: .82rem; padding-left: 0; }

.plan-cta { width: 100%; text-align: center; padding: .8rem 1rem; font-size: .95rem; }
.plan-cta[disabled] { opacity: .65; cursor: progress; }

/* ---- Comparison table ---- */
.pricing-section { margin: 0 auto 3rem; }
.pricing-section > h3 {
  font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 .25rem; text-align: center;
}
.pricing-section > .section-sub { text-align: center; color: var(--muted); margin: 0 0 1.2rem; font-size: .9rem; }

.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-width: 480px;
}
.compare thead th { background: var(--teal-dark); color: #fff; padding: .75rem .9rem; font-size: .85rem; text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare th[scope="row"] { text-align: left; font-weight: 600; font-size: .88rem; padding: .65rem .9rem; }
.compare td { text-align: center; padding: .65rem .9rem; font-size: .86rem; border-top: 1px solid var(--line); }
.compare th[scope="row"] { border-top: 1px solid var(--line); }
.compare tbody tr:hover th, .compare tbody tr:hover td { background: #f8fbfb; }
.compare .col-paid { background: rgba(15,125,119,.04); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: var(--muted); font-weight: 800; }
.compare .txt { color: var(--ink); }
.compare .txt.muted { color: var(--muted); }
.row-note { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }

/* ---- Institutions panel ---- */
.institutions {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: var(--radius); padding: 2rem; margin: 0 auto 3rem;
}
.institutions h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.institutions p { margin: 0 0 1rem; opacity: .95; max-width: 65ch; }
.institutions ul { margin: 0 0 1.2rem; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.institutions li { margin-bottom: .35rem; opacity: .95; font-size: .9rem; }
.institutions .price-note { font-size: .85rem; opacity: .9; margin-bottom: 1.2rem; }
.institutions .btn {
  background: #fff; color: var(--teal-dark); border: 0;
}
.institutions .btn:hover { background: #eef3ff; }

/* ---- FAQ accordion (native <details>) ---- */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: .7rem; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--teal); font-size: 1.4rem; font-weight: 400;
  line-height: 1; transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: -2px; }
.faq details > p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .92rem; }
.faq a { color: var(--teal-dark); }

/* ---- Richer footer ---- */
.footer-rich {
  max-width: 1000px; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  color: var(--muted); font-size: .8rem;
}
.footer-rich a { color: var(--muted); }
.footer-rich a:hover { color: var(--teal-dark); }
.footer-rich .legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 620px) {
  .institutions ul { columns: 1; }
  .pricing-intro h2 { font-size: 1.5rem; }
}
