/* ═══════════════════════════════════════════════════════════════════════
   Pricing - carrying the homepage's language
   ═══════════════════════════════════════════════════════════════════════
   Same three rules as the rest of the site: one obsidian ground with light
   pooling rather than coloured boxes, light-weight type at large sizes, and
   hairline markers instead of filled chips.

   Pricing pages fail when they shout. This one has a single plan and no
   tiers, so the job is to make that read as confidence rather than as a
   page with something missing - which means restraint, not decoration.

   Loaded after pricing.page.css and intentionally overrides it.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --pr-void:  #07070C;
  --pr-lilac: #A78BFA;
  --pr-ice:   #EEEDFF;
  --pr-mute:  rgba(238, 237, 255, .56);
  --pr-faint: rgba(238, 237, 255, .34);
  --pr-line:  rgba(238, 237, 255, .08);
}

body.glow-top { background: var(--pr-void); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.pricing-hero {
  position: relative;
  padding: clamp(96px, 12vw, 150px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 620px;
  max-width: 130%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(48% 48% at 50% 50%, rgba(124, 58, 237, .26), transparent 70%);
}

.pricing-hero .container { position: relative; }

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 100px;
  background: rgba(167, 139, 250, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(238, 237, 255, .72);
}

.trial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
}

.pricing-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem) !important;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.036em;
  color: var(--pr-ice);
}

.pricing-hero p {
  max-width: 33rem !important;
  font-size: 1.0313rem !important;
  line-height: 1.72;
  color: var(--pr-mute) !important;
}

/* ── Billing toggle ────────────────────────────────────────────────── */
/* A segmented control on one surface, rather than three separate buttons -
   these are three ways to pay for one thing, and the control should say so. */

.billing-toggle {
  display: inline-flex;
  gap: 2px;
  margin: 0 auto 44px;
  padding: 4px;
  border: 1px solid var(--pr-line);
  border-radius: 100px;
  background: rgba(238, 237, 255, .03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.billing-toggle { display: flex; width: fit-content; }

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 0;
  border-radius: 100px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8438rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: rgba(238, 237, 255, .5);
  transition: color .25s ease, background .3s cubic-bezier(.16, 1, .3, 1);
}

.toggle-btn:hover { color: rgba(238, 237, 255, .82); }

.toggle-btn.active {
  color: #0B0A14;
  background: linear-gradient(180deg, #F4F2FF, #C9C3F5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset,
              0 6px 18px -8px rgba(124, 58, 237, .8);
}

.toggle-save {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pr-lilac);
  background: rgba(167, 139, 250, .16);
  border: 1px solid rgba(167, 139, 250, .26);
}

.toggle-btn.active .toggle-save {
  color: #5B21B6;
  background: rgba(91, 33, 182, .12);
  border-color: rgba(91, 33, 182, .22);
}

/* ── Plan card ─────────────────────────────────────────────────────── */

.plan-card,
.plan-card.featured {
  position: relative;
  padding: 44px 40px !important;
  border: 1px solid rgba(167, 139, 250, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 24, 58, .5), rgba(14, 12, 26, .72));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 110px -40px rgba(0, 0, 0, .85),
              0 0 90px -34px rgba(124, 58, 237, .5);
  text-align: center;
  overflow: hidden;
}

/* Lit along the top edge, like every other card on the site. */
.plan-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pr-lilac), transparent);
}

.plan-badge {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pr-faint);
}

.plan-name {
  margin-top: 10px !important;
  font-size: 1.375rem !important;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--pr-ice);
}

.plan-desc {
  max-width: 26rem;
  margin: 10px auto 30px;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--pr-mute);
}

/* The number is the one place this page raises its voice. */
.plan-price {
  font-size: clamp(3.2rem, 7vw, 4.25rem) !important;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--pr-ice);
  font-variant-numeric: tabular-nums;
}

.plan-period {
  margin-top: 8px;
  font-size: .8438rem;
  color: var(--pr-faint);
}

.plan-users {
  margin: 22px auto 0;
  padding: 9px 16px;
  width: fit-content;
  border: 1px solid var(--pr-line);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--pr-mute);
}

/* ── Feature list ──────────────────────────────────────────────────── */

.plan-features {
  margin: 30px 0 32px !important;
  padding: 30px 0 0 !important;
  border-top: 1px solid var(--pr-line);
  list-style: none;
  text-align: left;
  column-gap: 30px !important;
}

.plan-features li {
  position: relative;
  padding: 0 0 11px 22px;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(238, 237, 255, .62);
  break-inside: avoid;
}

/* Hairline tick, the same mark used beside the AI bullets and footer facts. */
.plan-features li::before {
  content: '';
  position: absolute;
  left: 1px; top: .42em;
  width: 9px; height: 5px;
  border-left: 1.4px solid var(--pr-lilac);
  border-bottom: 1.4px solid var(--pr-lilac);
  transform: rotate(-45deg);
}

.plan-cta,
.plan-cta-primary {
  width: 100%;
  height: 52px;
  border: 0 !important;
  border-radius: 100px !important;
  cursor: pointer;
  font-family: inherit;
  font-size: .9375rem !important;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #0B0A14 !important;
  background: linear-gradient(180deg, #F4F2FF, #C9C3F5) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset,
              0 14px 36px -12px rgba(124, 58, 237, .85);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
}

.plan-cta:hover { transform: translateY(-2px); }

/* ── Regional table ────────────────────────────────────────────────── */

.region-section { margin-top: clamp(72px, 9vw, 110px); }

.region-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
  font-weight: 300 !important;
  letter-spacing: -.03em;
  color: var(--pr-ice);
}

.region-section > p { color: var(--pr-mute) !important; font-size: .9375rem !important; }

.region-table {
  width: 100%;
  max-width: 760px;
  margin: 30px auto 0;
  border-collapse: collapse;
  font-size: .875rem;
}

.region-table th {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--pr-line);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pr-faint);
  text-align: right;
}
.region-table th:first-child { text-align: left; }

.region-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(238, 237, 255, .05);
  color: rgba(238, 237, 255, .68);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.region-table td:first-child { text-align: left; color: var(--pr-ice); }
.region-table tr:last-child td { border-bottom: none; }
.region-table tbody tr { transition: background .22s ease; }
.region-table tbody tr:hover { background: rgba(167, 139, 250, .05); }

/* ── "No tiers" note ───────────────────────────────────────────────── */
/* Was a green box, which read as a system success message and clashed with
   the palette. It is the page's thesis, so it gets the page's own colour. */

.region-section + div > div {
  border: 1px solid rgba(167, 139, 250, .18) !important;
  background: rgba(167, 139, 250, .05) !important;
  border-radius: 16px !important;
  padding: 28px 30px !important;
}

.region-section + div h3 {
  font-size: 1.0625rem !important;
  font-weight: 500 !important;
  color: var(--pr-ice) !important;
  margin-bottom: 8px !important;
}

.region-section + div p {
  font-size: .8438rem !important;
  line-height: 1.7;
  color: var(--pr-mute) !important;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq-wrap { margin-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(60px, 8vw, 100px); }

.faq-wrap h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem) !important;
  font-weight: 300 !important;
  letter-spacing: -.03em;
  color: var(--pr-ice);
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 0 !important;
  border-bottom: 1px solid var(--pr-line) !important;
  border-radius: 0 !important;
  background: none !important;
  margin: 0 !important;
}

.faq-q {
  width: 100%;
  padding: 22px 4px !important;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-family: inherit;
  font-size: .9375rem !important;
  font-weight: 450;
  letter-spacing: -.01em;
  color: rgba(238, 237, 255, .82) !important;
  transition: color .22s ease;
}

.faq-q:hover { color: var(--pr-ice) !important; }

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pr-line);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 300;
  color: var(--pr-lilac);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .22s ease;
}

.faq-item.open .faq-icon,
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: rgba(167, 139, 250, .45);
}

.faq-a-inner {
  padding: 0 4px 24px !important;
  max-width: 60ch;
  font-size: .875rem !important;
  line-height: 1.75;
  color: var(--pr-mute) !important;
}

.plan-cta:focus-visible,
.toggle-btn:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--pr-lilac);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .plan-card, .plan-card.featured { padding: 32px 22px !important; }
  .plan-features { column-count: 1 !important; }
  .billing-toggle { width: 100%; flex-direction: column; border-radius: 18px; }
  .toggle-btn { justify-content: center; border-radius: 14px; }
  .region-table { font-size: .8125rem; }
  .region-table th, .region-table td { padding-left: 8px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .toggle-btn, .plan-cta, .faq-icon, .faq-q, .region-table tbody tr { transition: none; }
}

/* ── Entitlement panel ──────────────────────────────────────────────────
   Replaces the toggle, price and trial CTA once the account already has a
   plan. Someone who is paying should never be shown a price or offered a
   trial they are already using. */

.sub-status {
  max-width: 520px;
  margin: 0 auto 56px;
  padding: 34px 32px;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .16), transparent 70%),
    rgba(255, 255, 255, .028);
  text-align: center;
}
.sub-status[hidden] { display: none; }

.ss-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  color: rgba(196, 181, 253, .85);
}
.ss-headline {
  margin-top: 12px;
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.15;
  color: var(--color-text, #F0F4FF);
  text-wrap: balance;
}
.ss-detail {
  margin-top: 10px;
  font-size: 14.5px; line-height: 1.65;
  color: var(--color-text-muted, #94A3B8);
}

/* Time remaining. Empties left-to-right as the period runs down. */
.ss-meter {
  height: 4px; margin-top: 22px; border-radius: 3px;
  background: rgba(255, 255, 255, .08); overflow: hidden;
}
.ss-meter[hidden] { display: none; }
.ss-meter i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}

.ss-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 26px;
}
.ss-actions .plan-cta { width: 100%; text-decoration: none; }
.ss-quiet {
  font-size: 13px; color: var(--color-text-muted, #94A3B8); text-decoration: none;
}
.ss-quiet:hover { color: var(--color-text, #F0F4FF); text-decoration: underline; }
.ss-quiet[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .ss-meter i { transition: none; } }

/* Checkout failures surface here rather than in an alert() that browsers
   can suppress - a silent failure is indistinguishable from a dead button. */
.cta-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(244, 63, 94, .3);
  border-radius: 10px;
  background: rgba(244, 63, 94, .09);
  font-size: 13px; line-height: 1.55; text-align: center;
  color: #FDA4AF;
}
.cta-error[hidden] { display: none; }
