/* ==========================================================================
   ARF Pricing Page — v2.0
   Builds on arf-tokens.css + arf-ui.css. Load after those layers.
   ========================================================================== */

/* ── 1. Hero band ─────────────────────────────────────────────────────────── */

.arf-pricing-hero {
  background: linear-gradient(135deg, var(--arf-ink-deep) 0%, #1a0507 100%);
  border-radius: var(--arf-radius-xl);
  padding: 52px 40px 44px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

/* subtle grid texture overlay */
.arf-pricing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* faint radial glow from the center-bottom */
.arf-pricing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(138, 26, 31, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.arf-pricing-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e07c80;
  background: rgba(138, 26, 31, 0.2);
  border: 1px solid rgba(138, 26, 31, 0.4);
  border-radius: var(--arf-radius-pill);
  padding: 5px 14px;
  margin-bottom: 20px;
}

.arf-pricing-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--arf-font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.arf-pricing-hero__subtitle {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── 2. Upgrade notice (inside hero) ─────────────────────────────────────── */

.arf-upgrade-notice {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--arf-radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
}

.arf-upgrade-notice strong { color: #fff; }

/* ── 3. Duration toggle ───────────────────────────────────────────────────── */

.arf-duration-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--arf-radius-pill);
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.arf-duration-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border: none;
  border-radius: var(--arf-radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--arf-font-body);
  cursor: pointer;
  transition: background var(--arf-transition), color var(--arf-transition), box-shadow var(--arf-transition);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.arf-duration-btn:hover { color: rgba(255, 255, 255, 0.85); }

.arf-duration-btn.is-active {
  background: var(--arf-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(138, 26, 31, 0.45);
}

.arf-save-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--arf-radius-pill);
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}

.arf-duration-btn.is-active .arf-save-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── 4. Section labels ────────────────────────────────────────────────────── */

.arf-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arf-section-label__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--arf-radius-sm);
  background: var(--arf-primary-subtle);
  color: var(--arf-primary);
  flex-shrink: 0;
}

.arf-section-label__text {
  font-family: var(--arf-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--arf-ink);
  white-space: nowrap;
}

.arf-section-label__subtitle {
  font-size: 12px;
  color: var(--arf-muted);
  white-space: nowrap;
}

.arf-section-label__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--arf-border) 0%, transparent 100%);
  min-width: 20px;
}

@media (max-width: 576px) {
  .arf-section-label__rule,
  .arf-section-label__subtitle { display: none; }
}

/* ── 5. Plan cards ────────────────────────────────────────────────────────── */

.arf-plan-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--arf-radius-xl);
  box-shadow: var(--arf-shadow-xs);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--arf-transition), transform var(--arf-transition), border-color var(--arf-transition);
  position: relative;
  height: 100%;
}

.arf-plan-card:hover {
  box-shadow: var(--arf-shadow-md);
  transform: translateY(-5px);
  border-color: rgba(138, 26, 31, 0.12);
}

/* highlighted (most popular) card — slow gradient shimmer is the signature */
.arf-plan-card--highlight {
  background: linear-gradient(160deg, #8a1a1f 0%, #3d0a0d 50%, #1c0407 100%);
  background-size: 200% 200%;
  border-color: rgba(138, 26, 31, 0.45);
  box-shadow: 0 20px 60px -20px rgba(138, 26, 31, 0.5);
  animation: arf-card-shimmer 6s ease-in-out infinite;
}

.arf-plan-card--highlight:hover {
  box-shadow: 0 28px 72px -18px rgba(138, 26, 31, 0.7);
  transform: translateY(-7px);
  border-color: rgba(138, 26, 31, 0.65);
}

@keyframes arf-card-shimmer {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .arf-plan-card--highlight { animation: none; }
  .arf-plan-card { transition: none; }
}

/* ── 6. Card badge ────────────────────────────────────────────────────────── */

.arf-plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 var(--arf-radius-md) var(--arf-radius-md);
  white-space: nowrap;
}

.arf-plan-badge--current {
  background: #15803d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.arf-plan-badge--popular {
  background: #fff;
  color: var(--arf-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* ── 7. Card body ─────────────────────────────────────────────────────────── */

.arf-plan-body {
  flex: 1;
  padding: 28px 24px 20px;
}

.arf-plan-body--has-badge { padding-top: 44px; }

.arf-plan-name {
  font-family: var(--arf-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.arf-plan-name--light { color: #fff; }
.arf-plan-name--dark  { color: var(--arf-ink); }

.arf-plan-desc {
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 24px;
  min-height: 36px;
}

.arf-plan-desc--light { color: rgba(255, 255, 255, 0.68); }
.arf-plan-desc--dark  { color: var(--arf-body); }

/* ── 8. Price block ───────────────────────────────────────────────────────── */

.arf-price-block {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  margin-bottom: 24px;
}

.arf-price-block--light { border-color: rgba(255, 255, 255, 0.12); }
.arf-price-block--dark  { border-color: #f1f5f9; }

.arf-price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.arf-price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 8px;
}

.arf-price-currency--light { color: rgba(255, 255, 255, 0.65); }
.arf-price-currency--dark  { color: var(--arf-muted); }

.arf-price-number {
  font-family: var(--arf-font-display);
  font-size: clamp(2.8rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.arf-price-number--light { color: #fff; }
.arf-price-number--dark  { color: var(--arf-ink-deep); }

.arf-price-cadence {
  font-size: 12px;
  margin-top: 8px;
}

.arf-price-cadence--light { color: rgba(255, 255, 255, 0.55); }
.arf-price-cadence--dark  { color: var(--arf-muted); }

.arf-price-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--arf-radius-pill);
  margin-top: 10px;
}

.arf-price-savings--light { background: rgba(255, 255, 255, 0.15); color: #fff; }
.arf-price-savings--dark  { background: #dcfce7; color: #15803d; }

/* ── 9. Feature list ──────────────────────────────────────────────────────── */

.arf-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arf-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid;
}

.arf-feature-item:last-child { border-bottom: none; }

.arf-feature-item--light { border-color: rgba(255, 255, 255, 0.07); }
.arf-feature-item--dark  { border-color: #f8fafc; }

.arf-feature-item__icon {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.arf-feature-item__icon--check-light { color: rgba(255, 255, 255, 0.9); }
.arf-feature-item__icon--check-dark  { color: #16a34a; }
.arf-feature-item__icon--miss-light  { color: rgba(255, 255, 255, 0.22); }
.arf-feature-item__icon--miss-dark   { color: #cbd5e1; }

.arf-feature-item__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.arf-feature-item__label--light { color: rgba(255, 255, 255, 0.9); }
.arf-feature-item__label--dark  { color: #334155; }

.arf-feature-item__label--unavailable {
  text-decoration: line-through;
  font-weight: 400;
}

.arf-feature-item__label--unavailable-light { color: rgba(255, 255, 255, 0.3); }
.arf-feature-item__label--unavailable-dark  { color: #94a3b8; }

/* ── 10. Card CTA ─────────────────────────────────────────────────────────── */

.arf-plan-cta { padding: 0 24px 24px; }

.arf-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--arf-font-body);
  border-radius: var(--arf-radius-md);
  border: none;
  cursor: pointer;
  transition: box-shadow var(--arf-transition), transform var(--arf-transition);
  text-decoration: none;
}

.arf-cta-btn:active { transform: translateY(1px) !important; }

.arf-cta-btn--primary {
  background: linear-gradient(135deg, var(--arf-primary) 0%, #b52229 100%);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(138, 26, 31, 0.5);
}

.arf-cta-btn--primary:hover {
  box-shadow: 0 10px 28px -8px rgba(138, 26, 31, 0.7);
  transform: translateY(-2px);
  color: #fff;
}

.arf-cta-btn--white {
  background: #fff;
  color: var(--arf-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.arf-cta-btn--white:hover {
  background: #fdf2f2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
  color: var(--arf-primary);
}

.arf-cta-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--arf-radius-md);
  border: 1.5px solid;
}

.arf-cta-current--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.arf-cta-current--dark {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

/* ── 11. Trust bar ────────────────────────────────────────────────────────── */

.arf-trust-bar {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--arf-border-soft);
  text-align: center;
}

.arf-trust-items {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}

.arf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--arf-body);
  font-weight: 500;
}

.arf-trust-item i { font-size: 15px; }

.arf-trust-sep {
  color: var(--arf-border);
  font-size: 18px;
  line-height: 1;
  display: none;
}

@media (min-width: 576px) { .arf-trust-sep { display: block; } }

.arf-trust-footnote {
  font-size: 11px;
  color: var(--arf-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── 12. Mobile tweaks ────────────────────────────────────────────────────── */

@media (max-width: 576px) {
  .arf-pricing-hero {
    padding: 36px 20px 32px;
    border-radius: var(--arf-radius-lg);
    margin-bottom: 32px;
  }

  .arf-plan-body        { padding: 24px 20px 16px; }
  .arf-plan-body--has-badge { padding-top: 40px; }
  .arf-plan-cta         { padding: 0 20px 20px; }
}

/* ── 13. CSS variable fallbacks (website layout context) ─────────────────── */
:root {
  --arf-ink-deep:       #171a21;
  --arf-radius-xl:      16px;
  --arf-radius-lg:      12px;
  --arf-radius-md:      8px;
  --arf-radius-sm:      6px;
  --arf-radius-pill:    100px;
  --arf-font-display:   'Outfit', 'Inter', sans-serif;
  --arf-font-body:      'Inter', sans-serif;
  --arf-primary:        #8a1a1f;
  --arf-primary-subtle: rgba(138,26,31,0.08);
  --arf-ink:            #24272c;
  --arf-body:           #696665;
  --arf-muted:          #8e8e93;
  --arf-border:         #ededed;
  --arf-border-soft:    rgba(0,0,0,0.06);
  --arf-surface-alt:    #f8f8f9;
  --arf-shadow-xs:      0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --arf-shadow-md:      0 8px 24px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  --arf-transition:     0.2s ease;
}

/* ── 14. Page wrapper ────────────────────────────────────────────────────── */
.pr-page {
  padding: 2rem 0 4.5rem;
  background: #f8f8f9;
  min-height: 60vh;
}

.pr-breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.pr-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.14s;
}

.pr-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.pr-breadcrumb .pr-sep  { color: rgba(255,255,255,0.25); margin: 0 0.4rem; }

/* ── 15. Category selector tabs ──────────────────────────────────────────── */
.pr-cat-tabs {
  position: relative;
  z-index: 1;
  display: inline-flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pr-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--arf-font-body);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  background: transparent;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}

.pr-cat-btn:hover { color: rgba(255,255,255,0.85); }

.pr-cat-btn.is-active {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── 16. Plan group & comparison section visibility ──────────────────────── */
.pr-plans-group { display: none; }
.pr-plans-group.is-active { display: block; }

.pr-cmp-section { display: none; }
.pr-cmp-section.is-active { display: block; }

/* ── 17. Comparison table ───────────────────────────────────────────────── */
.pr-cmp-wrap { margin-top: 3rem; }

.pr-cmp-header { margin-bottom: 1.25rem; }

.pr-cmp-title {
  font-family: var(--arf-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #24272c;
  margin: 0 0 0.25rem;
}

.pr-cmp-sub {
  font-size: 0.875rem;
  color: #696665;
  margin: 0;
}

.pr-cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid #ededed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pr-cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.875rem;
  min-width: 460px;
}

.pr-cmp-table thead tr {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
}

.pr-cmp-table thead th {
  padding: 1rem 1.25rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.pr-cmp-table thead th:first-child {
  text-align: left;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pr-cmp-table thead th:last-child { border-right: none; }

.pr-cmp-table thead th .pr-th-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.175rem;
}

.pr-cmp-table thead th .pr-th-price {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.pr-cmp-table tbody tr {
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.1s;
}

.pr-cmp-table tbody tr:last-child { border-bottom: none; }
.pr-cmp-table tbody tr:hover { background: #fafafa; }

.pr-cmp-table tbody td {
  padding: 0.75rem 1.25rem;
  color: #24272c;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #f5f5f5;
}

.pr-cmp-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  font-size: 0.875rem;
}

.pr-cmp-table tbody td:last-child { border-right: none; }

.pr-cmp-popular { background: rgba(138,26,31,0.03); }

.pr-cmp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20,160,119,0.1);
  color: #14a077;
  font-size: 0.875rem;
}

.pr-cmp-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #c8c8cc;
  font-size: 0.875rem;
}

.pr-cmp-unlimited {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a1a1f;
  background: rgba(138,26,31,0.07);
  border-radius: 100px;
  padding: 0.2rem 0.5rem;
}

/* ── 18. Responsive additions ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .pr-page { padding: 1.5rem 0 3rem; }
}

@media (max-width: 576px) {
  .arf-duration-toggle { flex-direction: column; align-items: stretch; }
  .arf-duration-btn    { justify-content: center; }
  .pr-cat-tabs         { flex-direction: column; align-items: stretch; border-radius: 14px; }
  .pr-cat-btn          { border-radius: 10px; justify-content: center; }
}
