/* ===== Design System (shared across pages) ===== */
:root {
  --bg: #0f172a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);

  --text: #e5e7eb;
  --muted: rgba(255, 255, 255, 0.78);

  --accent: #6366f1;
  --accent-2: #59407d;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  --container: 1100px;
  --pad-x: 20px;
  --pad-y: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Source Sans Pro",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* A consistent page container helper */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Consistent headings */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--muted);
}

/* Shared button style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(33, 42, 62, 0.55);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(33, 42, 62, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--primary {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.55);
}

.btn--primary:hover {
  background: rgba(99, 102, 241, 1);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: #fff;
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(135deg, #0f172a, #111827);
}

/* ===== Layout ===== */
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.container {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

/* ===== Header ===== */
.pricing-header {
  margin-bottom: 26px;
}

.heading {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.3px;
}

.subheading {
  margin: 12px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* ===== Toggle ===== */
.billing-toggle {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.billing-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  user-select: none;
}

.billing-label.is-active {
  color: #fff;
  font-weight: 700;
}

.billing-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.45);
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
}

input:checked + .slider {
  background: rgba(99, 102, 241, 0.8);
}

input:checked + .slider::before {
  transform: translateX(20px);
}

/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.plan-card {
  position: relative;
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.plan-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-card--featured {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.plan-head {
  margin-bottom: 10px;
}

.plan-name {
  margin: 0;
  font-size: 18px;
}

.plan-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ===== Prices ===== */
.plan-price {
  margin: 10px 0 12px;
}

.price {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition:
    opacity 0.2s ease,
    text-decoration 0.2s ease;
}

.price--muted {
  opacity: 0.45;
  text-decoration: line-through;
}

.price span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hidden {
  display: none !important;
}

.price--monthly.is-striked {
  text-decoration: line-through;
  opacity: 0.7;
}

/* ===== Features ===== */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
  display: grid;
  gap: 10px;
}

.plan-features li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

/* ===== CTA Buttons ===== */
.plan-cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(33, 42, 62, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.18s ease;
}

.plan-cta:hover {
  background: rgba(99, 102, 241, 0.55);
  border-color: rgba(99, 102, 241, 0.7);
}

/* Footer CTA */
.pricing-footer {
  margin-top: 18px;
}

.signup-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.7);
}

.signup-button:hover {
  background: rgba(99, 102, 241, 0.7);
}

.footer-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}
