/* ==========================================================================
   ACX TOTALITY — Pricing Page
   Builds on the master stylesheet tokens (styles.css). All classes are
   prefixed with .pr- to stay isolated from the home page sections.
   ========================================================================== */

.pricing-page {
  --pr-text: #ffffff;
  --pr-text-soft: #c9c7d6;
  --pr-muted: var(--color-text-muted);
  --pr-card: rgba(255, 255, 255, 0.03);
  --pr-card-strong: rgba(255, 255, 255, 0.06);
  --pr-border: rgba(255, 255, 255, 0.1);
  --pr-divider: rgba(255, 255, 255, 0.07);
  --pr-band: rgba(255, 255, 255, 0.02);
  --pr-check: #a855f7;
  --pr-bar: rgba(168, 85, 247, 0.28);
  --pr-shadow: none;
  color: var(--pr-text);
}

[data-theme="light"] .pricing-page {
  --pr-text: #0f172a;
  --pr-text-soft: #334155;
  --pr-muted: #64748b;
  --pr-card: #ffffff;
  --pr-card-strong: #f8fafc;
  --pr-border: rgba(15, 23, 42, 0.1);
  --pr-divider: rgba(15, 23, 42, 0.07);
  --pr-band: #f8f7fc;
  --pr-check: #7c3aed;
  --pr-bar: rgba(168, 85, 247, 0.22);
  --pr-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pr-section {
  padding: var(--section-gap) 0;
  position: relative;
}

.pr-section--band {
  background: var(--pr-band);
  border-top: 1px solid var(--pr-divider);
  border-bottom: 1px solid var(--pr-divider);
}

.pr-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.pr-section-head--center {
  align-items: center;
  text-align: center;
}

.pr-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
}

.pr-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.pr-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--pr-muted);
  max-width: 720px;
}

.pr-note {
  font-size: 14px;
  color: var(--pr-muted);
}

.pr-card {
  background: var(--pr-card);
  border: 1px solid var(--pr-border);
  border-radius: 20px;
  box-shadow: var(--pr-shadow);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Hero + offer bar
   -------------------------------------------------------------------------- */
.pr-hero {
  position: relative;
  padding: 150px 0 72px;
  overflow: hidden;
  text-align: center;
}

.pr-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: var(--color-gradient-glow);
  opacity: 0.6;
  pointer-events: none;
}

.pr-hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pr-offer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 10px 10px 10px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.1);
  font-size: 14px;
  color: var(--pr-text);
}

.pr-offer-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-gradient-primary);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pr-offer strong {
  font-weight: 700;
}

.pr-offer-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  padding: 4px 10px 4px 4px;
  color: var(--pr-text);
}

.pr-offer-link:hover {
  color: var(--color-accent-purple);
}

.pr-hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 980px;
}

.pr-hero-title span {
  display: block;
}

.pr-hero-desc {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pr-muted);
  max-width: 680px;
}

.pr-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--pr-card-strong);
  border: 1px solid var(--pr-border);
  font-size: 15px;
  font-weight: 600;
}

.pr-chip i {
  color: var(--color-accent-purple);
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.pr-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.pr-step {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--pr-border);
}

.pr-step:last-child {
  border-right: none;
}

.pr-step-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.pr-step-title {
  font-size: 18px;
  font-weight: 700;
}

.pr-step-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--pr-muted);
}

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pr-plan {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pr-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
}

.pr-plan--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) padding-box,
    var(--color-gradient-primary) border-box;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.28);
}

.pr-plan--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.16), rgba(59, 130, 246, 0.06) 60%, transparent);
  pointer-events: none;
}

.pr-plan--featured:hover {
  border-color: transparent;
}

.pr-plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

.pr-plan-head,
.pr-plan-price {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pr-plan-head {
  gap: 6px;
}

.pr-plan-price {
  gap: 4px;
}

.pr-plan-name {
  font-size: 20px;
  font-weight: 700;
}

.pr-plan-tagline,
.pr-plan-unit {
  font-size: 14px;
  color: var(--pr-muted);
}

.pr-plan-unit {
  font-size: 13px;
}

.pr-plan-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pr-plan-specs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--pr-divider);
  list-style: none;
}

.pr-plan-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pr-plan-specs .pr-spec-label {
  color: var(--pr-muted);
}

.pr-plan-specs .pr-spec-value {
  font-weight: 700;
}

.pr-plan-specs--features li {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.pr-plan-specs--features i {
  color: var(--pr-check);
  font-size: 18px;
}

.pr-plan-spacer {
  flex-grow: 1;
}

.pr-plan .btn {
  position: relative;
  width: 100%;
}

.pr-btn-outline {
  background: transparent;
  color: var(--pr-text);
  border: 1px solid var(--pr-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pr-btn-outline:hover {
  border-color: var(--color-accent-purple);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.pr-plans-foot {
  margin-top: 28px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Usage rates (tabs)
   -------------------------------------------------------------------------- */
.pr-usage-head {
  margin-bottom: 32px;
}

.pr-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--pr-card-strong);
  border: 1px solid var(--pr-border);
}

.pr-tab {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  color: var(--pr-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.pr-tab:hover {
  color: var(--pr-text);
}

.pr-tab[aria-selected="true"] {
  background: var(--color-gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.pr-tab:focus-visible,
.pr-faq summary:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: 2px;
}

.pr-rates {
  list-style: none;
  overflow: hidden;
  border-radius: 16px;
}

.pr-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--pr-divider);
}

.pr-rate:last-child {
  border-bottom: none;
}

.pr-rate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pr-rate-name {
  font-size: 17px;
  font-weight: 700;
}

.pr-rate-note {
  font-size: 14px;
  color: var(--pr-muted);
}

.pr-rate-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.pr-rate-amount {
  font-size: 22px;
  font-weight: 800;
}

.pr-rate-unit {
  font-size: 14px;
  color: var(--pr-muted);
}

.pr-usage-foot {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Channel activations
   -------------------------------------------------------------------------- */
.pr-channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.pr-channel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
}

.pr-channel--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) padding-box,
    var(--color-gradient-primary) border-box;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.22);
}

.pr-channel-icon {
  font-size: 24px;
  color: var(--color-accent-purple);
  margin-bottom: 4px;
}

.pr-channel-name {
  font-size: 16px;
  font-weight: 700;
}

.pr-channel-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pr-channel-amount small {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 6px;
  color: var(--pr-text-soft);
}

.pr-channel-note {
  font-size: 14px;
  color: var(--pr-muted);
}

/* --------------------------------------------------------------------------
   Expert help
   -------------------------------------------------------------------------- */
.pr-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pr-help-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pr-help-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-help-card-title {
  font-size: 20px;
  font-weight: 700;
}

.pr-demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 180px;
  list-style: none;
}

.pr-demo-bar {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-demo-bar-value {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.pr-demo-bar-fill {
  background: var(--pr-bar);
  border-radius: 6px;
}

.pr-demo-bar--free .pr-demo-bar-value {
  font-weight: 800;
  color: var(--color-accent-purple);
}

.pr-demo-bar--free .pr-demo-bar-fill {
  background: var(--color-gradient-primary);
}

.pr-demo-bar-label {
  font-size: 12px;
  text-align: center;
  color: var(--pr-muted);
}

.pr-services {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pr-services li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pr-divider);
  font-size: 16px;
}

.pr-services li:last-child {
  border-bottom: none;
}

.pr-services small {
  color: var(--pr-muted);
  font-size: 14px;
}

.pr-services strong {
  font-weight: 800;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Compliance + FAQ (split layouts)
   -------------------------------------------------------------------------- */
.pr-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 24px 48px;
  align-items: start;
}

.pr-split .pr-section-head {
  margin-bottom: 0;
}

.pr-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pr-check {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
}

.pr-check i {
  font-size: 24px;
  color: var(--pr-check);
  flex-shrink: 0;
}

.pr-check-title {
  font-weight: 700;
}

.pr-check-text {
  font-size: 14px;
  color: var(--pr-muted);
}

.pr-faq {
  border-top: 1px solid var(--pr-border);
}

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

.pr-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

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

.pr-faq summary i {
  font-size: 22px;
  color: var(--color-accent-purple);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pr-faq details[open] summary i {
  transform: rotate(45deg);
}

.pr-faq-answer {
  padding: 0 48px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pr-muted);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.pr-cta {
  padding: 0 0 var(--section-gap);
}

.pr-cta-card {
  position: relative;
  overflow: hidden;
  padding: 64px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px 48px;
  border-radius: 24px;
}

.pr-cta-card::before {
  content: '';
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px;
  height: 600px;
  background: var(--color-gradient-glow);
  pointer-events: none;
}

.pr-cta-text,
.pr-cta-actions {
  position: relative;
}

.pr-cta-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pr-fineprint {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--pr-muted);
}

.pr-fineprint-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* --------------------------------------------------------------------------
   Light theme adjustments
   -------------------------------------------------------------------------- */
[data-theme="light"] .pr-plan--featured,
[data-theme="light"] .pr-channel--featured {
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.18);
}

[data-theme="light"] .pr-btn-outline {
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .pr-cta .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .pr-offer {
  background: rgba(168, 85, 247, 0.07);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pr-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .pr-channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pr-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-step:nth-child(2) {
    border-right: none;
  }

  .pr-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--pr-border);
  }
}

@media (max-width: 900px) {
  .pr-help-grid,
  .pr-split {
    grid-template-columns: 1fr;
  }

  .pr-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
  }
}

@media (max-width: 640px) {
  .pr-section {
    padding: 64px 0;
  }

  .pr-hero {
    padding: 120px 0 48px;
  }

  .pr-hero-desc {
    font-size: 17px;
  }

  .pr-offer {
    border-radius: 18px;
    padding: 14px 16px;
  }

  .pr-plans,
  .pr-steps,
  .pr-checks {
    grid-template-columns: 1fr;
  }

  .pr-step,
  .pr-step:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid var(--pr-border);
  }

  .pr-step:last-child {
    border-bottom: none;
  }

  .pr-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-tabs {
    display: flex;
  }

  .pr-tab {
    flex: 1 1 auto;
    padding: 10px 14px;
  }

  .pr-rate {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .pr-rate-price {
    white-space: normal;
    flex-wrap: wrap;
  }

  .pr-help-card {
    padding: 24px;
  }

  .pr-demo-bars {
    gap: 6px;
  }

  .pr-demo-bar-value {
    font-size: 12px;
  }

  .pr-services li {
    flex-direction: column;
    gap: 4px;
  }

  .pr-services strong {
    text-align: left;
  }

  .pr-faq summary {
    font-size: 16px;
    padding: 20px 0;
  }

  .pr-faq-answer {
    padding-right: 0;
  }

  .pr-cta-card {
    padding: 40px 24px;
  }

  .pr-cta-actions,
  .pr-cta-actions .btn {
    width: 100%;
  }
}
