/* ===========================================================================
   Billing - pricing section, credits upsell, payment success.

   The pricing section's structure, the animated monthly/annual toggle, the
   cursor-follow card glow and the attention-pulse hint are ported from
   ../thesisai's landing.css (.pricing-section / .pc-*), then restyled onto
   siriusly's dark orange/black tokens. thesisai inverts its "Pro" card to dark
   on a light page; siriusly is already dark, so the featured card inverts the
   other way - a warm orange-lit surface against the coal cards.

   bl- classes below are the standalone billing pages (credits, success).
   =========================================================================== */

/* ---- Pricing section --------------------------------------------------- */
.pricing-section {
  width: 100%;
  padding: var(--space-24, 6rem) var(--space-8, 2rem) var(--space-20, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-inner {
  width: 100%;
  max-width: 1080px;
}
.pricing-head {
  text-align: center;
  margin-bottom: var(--space-12, 3rem);
}
.pricing-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #8A8379);
}
.pricing-head .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500, #D07E45);
  box-shadow: 0 0 0 0 rgba(208, 126, 69, 0.5);
  animation: pcPulse 2.4s ease-out infinite;
}
@keyframes pcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(208, 126, 69, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(208, 126, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(208, 126, 69, 0); }
}
.pricing-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--text-strong, #fff);
  margin: 0.9rem 0 0.75rem;
}
.pricing-headline em {
  font-style: italic;
  font-weight: 400;
  /* Signature orange->gold, the same treatment the hero uses for brand moments */
  background: linear-gradient(100deg, var(--orange-400, #E29D6B), var(--gold-400, #F4B72E));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-400, #F4B72E);
}
.pricing-subhead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-body, #D8D3C9);
  max-width: 40rem;
  margin: 0 auto;
}

/* Billing toggle */
.pricing-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-12, 2.75rem);
}
.pc-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 5px;
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-card, #1C1A17);
  border: 1px solid var(--border-subtle, #262320);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.pc-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--text-muted, #8A8379);
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}
.pc-toggle button.active { color: var(--text-on-brand, #14120F); }
.pc-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  z-index: 0;
  border-radius: var(--radius-pill, 999px);
  background: var(--orange-500, #D07E45);
  box-shadow: 0 2px 8px rgba(208, 126, 69, 0.4);
  transition: left 240ms cubic-bezier(.2,.7,.2,1), width 240ms cubic-bezier(.2,.7,.2,1);
}
.pc-thumb.pc-hint { animation: pcThumbHint 1.1s cubic-bezier(.2,.7,.2,1) 1; }
@keyframes pcThumbHint {
  0%   { transform: translateX(0); }
  35%  { transform: translateX(-42px); }
  70%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}
.pc-toggle.pc-attn { animation: pcTogglePulse 1.4s ease-out 3; }
@keyframes pcTogglePulse {
  0%   { box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 0 0 rgba(208,126,69,0.45); }
  60%  { box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 0 12px rgba(208,126,69,0); }
  100% { box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 0 0 rgba(208,126,69,0); }
}
@media (prefers-reduced-motion: reduce) {
  .pc-thumb.pc-hint, .pc-toggle.pc-attn, .pricing-head .pulse { animation: none; }
  .pc-thumb { transition: none; }
}
.pc-save-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--gold-400, #F4B72E);
  color: var(--coal-950, #14120F);
}

/* Credit calculator - replaces the old static two-card grid. Controls panel on
   the left; the right slot still renders both real .pc-card elements (see
   below), with JS toggling `hidden` on whichever the calculator doesn't
   currently recommend. */
.cc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.cc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-card, 1rem);
  background: var(--surface-card, #1C1A17);
  border: 1px solid var(--border-subtle, #262320);
}
.cc-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.cc-field label,
.cc-field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong, #fff);
  margin-bottom: 0.6rem;
}
.cc-field-head label { margin-bottom: 0; }
.cc-field-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-primary, #D07E45);
}
.cc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill, 999px);
  outline: none;
  cursor: pointer;
  background: var(--border-default, #34302B);
  accent-color: var(--color-primary, #D07E45);
}
.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary, #D07E45);
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.cc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary, #D07E45);
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.cc-slider:focus-visible::-webkit-slider-thumb,
.cc-slider:focus-visible::-moz-range-thumb { box-shadow: var(--ring-focus); }
/* Positioned (not flex space-between): a tick's X must match the native
   range input's own thumb-position formula, (value-min)/(max-min), which is
   only 0%/50%/100% when the middle tick is exactly the midpoint - neither
   slider's middle tick is (15 of 5-30 is 40%, 60 of 5-120 is ~47.8%). Middle
   ticks carry an inline `left` percentage computed the same way; first/last
   just anchor to the track's own ends. */
.cc-ticks {
  position: relative;
  height: 1rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle, #5F5950);
}
.cc-ticks span { position: absolute; top: 0; }
.cc-ticks span:first-child { left: 0; }
.cc-ticks span:last-child { right: 0; }
.cc-ticks span:not(:first-child):not(:last-child) { transform: translateX(-50%); }

.cc-annual-note {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: var(--text-subtle, #5F5950);
}

.cc-breakdown {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle, #262320);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted, #8A8379);
}
.cc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.cc-mono { font-family: var(--font-mono); color: var(--text-body, #D8D3C9); }
.cc-model-note { display: block; margin-top: 0.15rem; font-size: 0.78em; color: var(--text-subtle, #5F5950); }
.cc-model-note a { color: var(--color-primary-text, #EEB88F); text-decoration: underline; text-underline-offset: 2px; }
.cc-model-note a:hover { color: var(--color-primary, #D07E45); }
.cc-row-total {
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle, #262320);
}
.cc-row-total span:first-child { font-weight: 700; color: var(--text-strong, #fff); }
.cc-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary, #D07E45);
}
.cc-row-sub { font-size: 0.82rem; }

/* Billing toggle: centered above both the controls panel and the plan card. */
.cc-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.cc-plan-col { display: flex; flex-direction: column; height: 100%; }
.cc-plan-slot { display: flex; flex-direction: column; flex: 1; }
.cc-plan-slot .pc-card { height: 100%; }

.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 1.85rem;
  border-radius: var(--radius-card, 1rem);
  background: var(--surface-card, #1C1A17);
  border: 1px solid var(--border-subtle, #262320);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease, border-color 320ms ease;
  will-change: transform;
}
.pc-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(208,126,69,0.14), transparent 55%);
  transition: opacity 320ms ease;
}
.pc-card > * { position: relative; z-index: 1; }
.pc-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong, #4A453E);
  box-shadow: 0 28px 64px rgba(0,0,0,0.45);
}
.pc-card:hover::before { opacity: 1; }

/* Featured (Creator) card - warm orange-lit surface */
.pc-card.pc-pro {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(208,126,69,0.12), transparent 60%),
    var(--coal-800, #262320);
  border-color: rgba(208,126,69,0.45);
}
.pc-card.pc-pro::before {
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(244,183,46,0.16), transparent 55%);
}
.pc-card.pc-pro:hover {
  border-color: rgba(244,183,46,0.55);
  box-shadow: 0 32px 72px rgba(0,0,0,0.5), 0 0 0 1px rgba(244,183,46,0.28);
}

.pc-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle, #5F5950);
  margin: 0 0 0.4rem;
}
.pc-card.pc-pro .pc-card-tag { color: var(--orange-300, #EEB88F); }

.pc-tier-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.pc-tier-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-strong, #fff);
}
.pc-pop-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill, 999px);
  background: var(--orange-500, #D07E45);
  color: var(--coal-950, #14120F);
  transition: transform 280ms cubic-bezier(.3,1.6,.5,1);
}
.pc-card.pc-pro:hover .pc-pop-pill { transform: translateY(-1px) scale(1.04); }
.pc-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted, #8A8379);
  margin: 0 0 1.5rem;
  min-height: 2.6rem;
}

/* Price block */
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.pc-symbol {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted, #8A8379);
}
.pc-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong, #fff);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), letter-spacing 320ms ease;
}
.pc-card:hover .pc-amount { transform: translateY(-1px); letter-spacing: -0.032em; }
.pc-period {
  align-self: center;
  font-size: 0.9rem;
  color: var(--text-subtle, #5F5950);
}
.pc-price-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.15rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-subtle, #5F5950);
}
.pc-strike { text-decoration: line-through; text-decoration-color: rgba(180,173,162,0.5); }
.pc-saved { color: var(--gold-400, #F4B72E); }

/* Features */
.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  /* Push CTA to the bottom so buttons line up across cards */
  flex: 1;
}
.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-body, #D8D3C9);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.pc-card:hover .pc-features li { transform: translateX(2px); }
.pc-features li strong { color: var(--text-strong, #fff); font-weight: 600; }
.pc-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(208,126,69,0.16);
  color: var(--orange-400, #E29D6B);
  transition: transform 280ms cubic-bezier(.3,1.6,.5,1);
}
.pc-card.pc-pro .pc-check { background: rgba(244,183,46,0.18); color: var(--gold-400, #F4B72E); }
.pc-card:hover .pc-features li:hover .pc-check { transform: scale(1.15) rotate(-6deg); }

/* CTA */
.pc-cta {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font: 600 0.95rem/1 var(--font-body);
  border-radius: var(--radius-control, 0.6rem);
  border: 1px solid var(--border-default, #34302B);
  background: transparent;
  color: var(--text-strong, #fff);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 200ms ease, background 140ms ease, border-color 140ms ease;
}
.pc-card:hover .pc-cta { border-color: var(--border-strong, #4A453E); }
.pc-card.pc-basic:hover .pc-cta { transform: translateY(-1px); }
/* Featured CTA is the solid brand button */
.pc-card.pc-pro .pc-cta {
  background: var(--orange-500, #D07E45);
  border-color: var(--orange-500, #D07E45);
  color: var(--coal-950, #14120F);
}
.pc-card.pc-pro:hover .pc-cta {
  background: var(--orange-400, #E29D6B);
  box-shadow: 0 8px 22px rgba(208,126,69,0.3);
}
.pc-cta[disabled] { opacity: 0.5; cursor: not-allowed; }
.pc-arrow { transition: transform 180ms ease; }
.pc-cta:hover .pc-arrow { transform: translateX(3px); }
.pc-cta-foot {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle, #5F5950);
}

.pc-checkout-error {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--red-500, #FF5A4D);
}

/* Invite token: checkout is closed, so this sits between the billing toggle and
   the cards - it has to be filled in before any plan button will do anything. */
.pc-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: var(--space-10, 2.25rem) 0 0;
}
.pc-invite label {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #8A8379);
}
.pc-invite input {
  width: min(320px, 100%);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-default, #332F2A);
  background: var(--surface-card, #191715);
  color: var(--text-strong, #F5F1EA);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pc-invite input::placeholder { color: var(--text-muted, #8A8379); }
.pc-invite input:focus {
  outline: none;
  border-color: var(--color-primary, #E9741F);
  box-shadow: var(--ring-focus, 0 0 0 3px rgba(233, 116, 31, 0.25));
}
.pc-invite-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted, #8A8379);
}

/* Social proof */
.pc-social-proof {
  margin-top: var(--space-16, 3.5rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-subtle, #262320);
  border-bottom: 1px solid var(--border-subtle, #262320);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.pc-sp-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle, #5F5950);
}
.pc-sp-logos { display: flex; align-items: center; gap: 2.25rem; flex-wrap: wrap; }
.pc-uni {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted, #8A8379);
  opacity: 0.8;
}

@media (max-width: 720px) {
  .pricing-section { padding: 4.5rem 1.25rem 3.5rem; }
  .cc-grid { grid-template-columns: 1fr; }
  .pc-social-proof { flex-direction: column; gap: 1rem; }
}

/* ---- Payment success --------------------------------------------------- */
.bl-success {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--space-16, 4rem) var(--space-5, 1.5rem);
}

.bl-success { display: grid; place-items: center; min-height: 70vh; }

.bl-success-card {
  text-align: center;
  max-width: 32rem;
  padding: var(--space-12, 3rem);
  border: 1px solid var(--border-subtle, #262320);
  border-radius: var(--radius-card, 1rem);
  background: var(--surface-card, #1C1A17);
}

.bl-success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-5, 1.5rem);
  border-radius: 50%;
  background: var(--orange-500, #D07E45);
  color: var(--coal-950, #14120F);
  font-size: 1.75rem;
}

.bl-success-lead {
  color: var(--text-body, #D8D3C9);
  margin-bottom: var(--space-6, 2rem);
}
