/* Pricing / checkout page. Uses the app's native design system — Space Grotesk
   (display) + Inter (body) and the --forest (var(--forest)) brand green — so it reads
   as a native app page. Fonts + tokens come from styles.css. */

:root {
  --pr-green: var(--forest, #00d4aa);
  --pr-green-light: var(--forest-light, #00e6b8);
  --pr-green-dim: rgba(var(--forest-rgb),0.12);
  --pr-green-border: rgba(var(--forest-rgb),0.45);
}

.pr-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 28px 72px;
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  color: var(--ink, #e8ecf0);
}

/* ── Header ── */
.pr-head { text-align: center; margin: 8px 0 24px; }
.pr-title {
  font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 8px;
  color: var(--sage-pale, #f0f3f6); line-height: 1.2;
}
/* Inline Dhan-X wordmark in the heading — sized to the heading (em-based so it
   scales with the responsive font-size), vertically centered, no layout break. */
.pr-title-logo {
  height: 1.05em; width: auto; vertical-align: middle;
  display: inline-block; margin: 0 0.12em; position: relative; top: -0.06em;
}
.pr-brand { color: var(--pr-green); }
.pr-sub { font-size: 14px; color: var(--text-muted, #93a0ad); margin: 0; }

/* ── Status banner (trialing / active) ── */
.pr-status {
  max-width: 640px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 12px;
  background: var(--pr-green-dim); border: 1px solid var(--pr-green-border);
  color: var(--sage-pale, #e8ecf0); font-size: 14px; text-align: center; line-height: 1.5;
}
.pr-status strong { color: var(--pr-green-light); }

/* ── Controls: period + region ── */
.pr-controls {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 14px; margin: 0 0 28px;
}
.pr-toggle, .pr-region {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(var(--wash-rgb),0.04); border: 1px solid rgba(var(--wash-rgb),0.08);
  border-radius: 999px;
}
.pr-toggle-btn, .pr-region-btn {
  border: 0; background: transparent; color: var(--text-muted, #93a0ad);
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.pr-toggle-btn:hover, .pr-region-btn:hover { color: var(--sage-pale, #e8ecf0); }
.pr-toggle-btn.active, .pr-region-btn.active {
  background: var(--pr-green); color: var(--on-accent); font-weight: 600;
}
.pr-save {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--chip-bg); color: inherit; padding: 2px 7px; border-radius: 999px;
}

/* ── Plans ── */
.pr-plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  max-width: 760px; margin: 0 auto;
}
.pr-plan {
  position: relative; display: flex; flex-direction: column;
  background: rgba(var(--wash-rgb),0.03); border: 1px solid rgba(var(--wash-rgb),0.09);
  border-radius: 16px; padding: 28px 24px;
}
.pr-plan-premium {
  background: linear-gradient(180deg, rgba(var(--forest-rgb),0.08) 0%, rgba(var(--wash-rgb),0.03) 60%);
  border-color: var(--pr-green-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.pr-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--pr-green); color: var(--on-accent);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 11px; border-radius: 999px;
}
.pr-plan-name { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #93a0ad); margin: 0 0 12px; }
.pr-plan-premium .pr-plan-name { color: var(--pr-green-light); }
.pr-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.pr-amount {
  font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: 40px; font-weight: 700; letter-spacing: -1px; color: var(--sage-pale, #f0f3f6);
}
.pr-per { font-size: 15px; font-weight: 500; color: var(--text-muted, #93a0ad); }
.pr-price-note { font-size: 12.5px; color: var(--text-muted, #93a0ad); margin: 6px 0 18px; min-height: 16px; }

.pr-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pr-features li { position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.45; color: var(--sage, #cdd6df); }
.pr-features li::before {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.pr-features li.pr-ok::before { content: '✓'; background: var(--pr-green-dim); color: var(--pr-green-light); }
.pr-features li.pr-no { color: var(--text-faint, #6b7a8d); }
.pr-features li.pr-no::before { content: '✕'; background: rgba(var(--wash-rgb),0.05); color: var(--text-faint, #6b7a8d); }

/* ── CTAs ── */
.pr-cta {
  width: 100%; font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  padding: 13px 18px; border-radius: 10px; border: 1px solid transparent; transition: filter .15s, opacity .15s;
}
.pr-cta-primary { background: var(--pr-green); color: var(--on-accent); }
.pr-cta-primary:hover:not(:disabled) { filter: brightness(1.06); }
.pr-cta-ghost { background: transparent; color: var(--sage, #cdd6df); border-color: rgba(var(--wash-rgb),0.15); margin-top: 8px; }
.pr-cta-ghost:hover:not(:disabled) { border-color: var(--pr-green-border); color: var(--pr-green-light); }
.pr-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.pr-cta.is-busy { opacity: 0.7; cursor: progress; }

.pr-fine { font-size: 11.5px; color: var(--text-muted, #93a0ad); line-height: 1.5; margin: 12px 0 0; text-align: center; }
.pr-fine.is-warn { color: var(--amber, #f0b55a); }

.pr-disclaimer {
  max-width: 640px; margin: 36px auto 0; font-size: 11px; line-height: 1.6;
  color: var(--text-faint, #6b7a8d); text-align: center;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .pr-wrap { padding: 20px 16px 56px; }
  .pr-title { font-size: 28px; }
  .pr-plans { grid-template-columns: 1fr; max-width: 420px; }
  .pr-plan-premium { order: -1; }
  .pr-controls { gap: 10px; }
}
