/* =============================================================================
   /checkout and /terms — Jill's checkout artboards: 03 pay, E3 returning,
   04 activating, 05 you're in, T1 terms. Ported from
   docs/specs/updates/2026-10-25-stripe-checkout/reference/checkout.html onto
   the growth-coach.css tokens; load it after growth-coach.css.

   Phase 1 has no seat picker, promo field, Stripe element or terms checkbox:
   ThriveCart's embed brings its own. The step bar lives in growth-coach.css
   because /signup shows it too.
   ============================================================================= */

/* growth-coach.css pins body to the viewport and hides overflow for the
   dashboard shell. These are ordinary scrolling documents. */
body.gc-page {
  display: block;
  height: auto;
  min-height: 100%;
  overflow: visible;
  /* Light violets for text on the navy panel, measured from Jill's mockup.
     Local to these pages; promote them to :root (and to PAIRS in
     test_theme_contrast.py) if the dashboard ever needs them. */
  --gc-accent-on-dark: #A39CF6;
  --gc-badge-ink: #C9C5FA;
  --gc-accent-hover: #4E40CC;
}
.gc-page [hidden] { display: none !important; }
.gc-page a { color: var(--accent-deep); }
.gc-page a:hover { color: var(--gc-accent-hover); }

/* A button that reads as a link (sign out). */
.gc-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: underline;
  cursor: pointer;
}
.gc-link:hover { color: var(--gc-accent-hover); }
.gc-link:focus-visible,
.gc-primary:focus-visible,
.gc-page summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-glow-primary);
  border-radius: var(--radius);
}

/* ── Pay / renew: two columns, stacks on phones ───────────────────────── */
.gc-checkout { min-height: 100vh; display: flex; flex-wrap: wrap; }

.gc-pitch {
  flex: 1 1 420px;
  min-width: 0;
  padding: 48px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: var(--ink-surface);
  color: var(--ink-on-dark);
}
.gc-brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.gc-brand-mark { width: 26px; height: 26px; color: var(--accent); }
.gc-pitch-head { display: flex; flex-direction: column; gap: 16px; }
.gc-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink-surface-raised);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gc-badge-ink);
}
.gc-pitch h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink-on-dark);
}
.gc-pitch h1 em { font-style: normal; color: var(--gc-accent-on-dark); }
.gc-pitch p {
  margin: 0;
  max-width: 440px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
}
.gc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gc-price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.gc-price span { font-size: 15px; color: var(--ink-on-dark-muted); }
.gc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.gc-features li { display: flex; gap: 12px; }
.gc-features li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-surface-raised);
  color: var(--gc-accent-on-dark);
  font-size: 12px;
  font-weight: 800;
}
.gc-features span { color: var(--ink-on-dark-muted); }
.gc-next {
  margin-top: auto;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--ink-surface-soft);
  border: 1px solid var(--rule-on-dark);
  font-size: 14px;
  font-weight: 600;
}
.gc-next small {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}

.gc-pay {
  flex: 1.25 1 480px;
  min-width: 0;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
}
.gc-pay-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gc-pay h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.gc-muted { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-faded); }
.gc-period { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* ThriveCart mounts its own form (terms box, coupon, pay button) in here,
   inside its own card and backdrop, so no card of ours around it: that read
   as a card in a card. The wrapper only holds the space while it loads. Its
   loader also injects a large inline <style> into this document, which works
   only because style-src allows 'unsafe-inline'. */
.gc-embed { min-height: 360px; }
.gc-embed-status { margin: 0; padding: 14px 0; font-size: 14px; color: var(--ink-faded); }
.gc-embed-status.is-error { color: var(--danger-deep); font-weight: 600; }
.gc-embed-host { min-width: 0; }

.gc-small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-faded); }
.gc-small a { font-weight: 600; }
.gc-notes { display: flex; flex-direction: column; gap: 6px; }
.gc-fine {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faded);
}
.gc-fine strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.gc-fine svg { width: 14px; height: 14px; flex: none; }

/* ── Centred card: loading, activating, you're in, not the owner, error ── */
.gc-center { min-height: 100vh; display: flex; flex-direction: column; }
.gc-center::before {
  content: "";
  flex: none;
  height: 2px;
  background: var(--gradient-sunrise);
}
.gc-center-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.gc-panel {
  width: 100%;
  max-width: 540px;
  padding: 44px 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.gc-panel-centered { align-items: center; text-align: center; }
.gc-panel-small { max-width: 440px; padding: 32px 32px 28px; gap: 18px; }
.gc-panel h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
}
.gc-panel-small h1 { font-size: 22px; }
.gc-panel p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.gc-panel p.gc-small { font-size: 13px; color: var(--ink-faded); }
.gc-panel-copy { display: flex; flex-direction: column; gap: 12px; }
.gc-later { align-self: center; font-size: 14px; font-weight: 600; }

.gc-loading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-faded);
}
.gc-spinner {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 6px solid var(--accent-soft);
  border-top-color: var(--accent-deep);
  animation: gc-spin 1s linear infinite;
}
.gc-spinner-sm { width: 22px; height: 22px; border-width: 3px; }
@keyframes gc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gc-spinner { animation: none; } }
.gc-tick {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-soft);
  color: var(--success-deep);
  font-size: 28px;
  font-weight: 800;
}
.gc-setup {
  margin: 0;
  padding: 6px 20px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface-sunk);
}
.gc-setup li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 700;
}
.gc-setup li:last-child { border-bottom: 0; }
.gc-setup li span { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

.gc-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-deep);
  color: #fff;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(93, 79, 220, .28);
}
.gc-page a.gc-primary,
.gc-page a.gc-primary:hover { color: #fff; }
.gc-primary:hover { background: var(--gc-accent-hover); }
.gc-panel-small .gc-primary { min-height: 46px; font-size: 15px; }

/* ── /terms (artboard T1) ─────────────────────────────────────────────── */
.gc-doc { min-height: 100vh; }
.gc-doc::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--gradient-sunrise);
}
.gc-doc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gc-page .gc-doc-brand,
.gc-page .gc-doc-brand:hover { color: var(--ink); text-decoration: none; }
.gc-doc-head { display: flex; flex-direction: column; gap: 8px; }
.gc-doc-head h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.gc-version { margin: 0; font-size: 13px; color: var(--ink-faded); }
.gc-keypoints {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.gc-keypoints h2 { margin: 0 0 12px; font-size: 18px; }
.gc-keypoints ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.gc-sections { display: flex; flex-direction: column; gap: 10px; }
.gc-sections details {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.gc-sections summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.gc-sections summary::-webkit-details-marker { display: none; }
.gc-sections summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-faded);
}
.gc-sections details[open] summary::after { content: "−"; }
.gc-section-body {
  padding: 0 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.gc-section-body p { margin: 0; }
.gc-placeholder {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning-deep);
  font-size: 12.5px;
  font-weight: 700;
}
.gc-doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-faded);
}

@media (max-width: 560px) {
  .gc-pitch { padding: 32px 20px; gap: 26px; }
  .gc-pay { padding: 28px 16px 40px; }
  .gc-panel { padding: 32px 22px 26px; }
}
