/* Modern pricing UI — keeps working without a Tailwind rebuild.
   Mirrored in pricing.src.css for the next `npm run build:css`. */

body.pricing-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111827;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #3b82f6 6%, #f4f6fa) 0%,
      #ffffff 20rem,
      #ffffff 100%
    );
}

@media (prefers-color-scheme: dark) {
  body.pricing-page {
    color: #fff;
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, #3b82f6 10%, #111827) 0%,
        #111827 20rem,
        #111827 100%
      );
  }
}

.pricing-hero {
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -4rem;
  width: min(56rem, 120vw);
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, #3b82f6 14%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.pricing-hero > * {
  position: relative;
  z-index: 1;
}

.pricing-eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b82f6;
}

.pricing-title {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
  color: #111827;
}

.pricing-lead {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
  color: #4b5563;
}

@media (prefers-color-scheme: dark) {
  .pricing-title {
    color: #fff;
  }

  .pricing-lead {
    color: #9ca3af;
  }
}

.pricing-freq {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: color-mix(in srgb, #f4f6fa 78%, #d8dee9);
  border: 1px solid color-mix(in srgb, #d8dee9 88%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent);
}

.pricing-freq label {
  position: relative;
  display: flex;
  min-width: 8.5rem;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.pricing-freq label input {
  position: absolute;
  inset: 0;
  margin: 0;
  appearance: none;
  border-radius: 10px;
  cursor: pointer;
}

.pricing-freq label:has(:checked) {
  background: #fff;
  box-shadow:
    0 1px 2px color-mix(in srgb, #1a2332 8%, transparent),
    0 0 0 1px color-mix(in srgb, #d8dee9 55%, transparent);
}

.pricing-freq label:has(:checked) span {
  color: #111827;
}

@media (prefers-color-scheme: dark) {
  .pricing-freq {
    background: color-mix(in srgb, #1f2937 70%, #111827);
    border-color: rgb(255 255 255 / 0.1);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
  }

  .pricing-freq label:has(:checked) {
    background: color-mix(in srgb, #1f2937 92%, #3b82f6);
    box-shadow:
      0 1px 2px rgb(0 0 0 / 0.35),
      0 0 0 1px rgb(255 255 255 / 0.1);
  }

  .pricing-freq label:has(:checked) span {
    color: #fff;
  }
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, #d8dee9 90%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset,
    0 1px 2px color-mix(in srgb, #1a2332 5%, transparent),
    0 14px 32px color-mix(in srgb, #3b82f6 5%, transparent);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pricing-tier:hover {
  border-color: color-mix(in srgb, #3b82f6 35%, #d8dee9);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
    0 1px 2px color-mix(in srgb, #1a2332 5%, transparent),
    0 18px 40px color-mix(in srgb, #3b82f6 10%, transparent);
  transform: translateY(-2px);
}

.pricing-tier--featured {
  position: relative;
  border-color: color-mix(in srgb, #3b82f6 45%, #d8dee9);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
    0 2px 4px color-mix(in srgb, #1a2332 6%, transparent),
    0 22px 48px color-mix(in srgb, #3b82f6 14%, transparent);
}

.pricing-tier--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #3b82f6 28%, transparent) 0%,
    transparent 42%
  );
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .pricing-tier {
    background: color-mix(in srgb, #1f2937 60%, transparent);
    border-color: rgb(255 255 255 / 0.12);
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.05) inset,
      0 14px 32px rgb(0 0 0 / 0.25);
  }

  .pricing-tier--featured {
    border-color: color-mix(in srgb, #3b82f6 45%, transparent);
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.06) inset,
      0 22px 48px color-mix(in srgb, #3b82f6 18%, transparent);
  }
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  background: color-mix(in srgb, #3b82f6 12%, transparent);
  border: 1px solid color-mix(in srgb, #3b82f6 22%, transparent);
}

.pricing-cta-panel {
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid color-mix(in srgb, #3b82f6 28%, transparent);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      color-mix(in srgb, #3b82f6 16%, transparent) 0%,
      transparent 60%
    ),
    color-mix(in srgb, #3b82f6 8%, #fff);
  box-shadow: 0 16px 36px color-mix(in srgb, #3b82f6 8%, transparent);
}

@media (min-width: 640px) {
  .pricing-cta-panel {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (prefers-color-scheme: dark) {
  .pricing-cta-panel {
    background:
      radial-gradient(
        ellipse at 50% 0%,
        color-mix(in srgb, #3b82f6 22%, transparent) 0%,
        transparent 60%
      ),
      color-mix(in srgb, #3b82f6 12%, #111827);
    border-color: color-mix(in srgb, #3b82f6 35%, transparent);
  }
}

.pricing-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #d8dee9 90%, transparent);
  background: color-mix(in srgb, #f4f6fa 70%, #fff);
  font-size: 0.875rem;
  line-height: 1.35;
  cursor: pointer;
}

.pricing-addon-block {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.pricing-addon-block .pricing-addon {
  margin-top: 0;
}

.pricing-addon-help {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b7280;
}

.pricing-addon-note {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, #d8dee9 90%, transparent);
  font-size: 0.875rem;
  line-height: 1.35;
  color: #6b7280;
}

@media (prefers-color-scheme: dark) {
  .pricing-addon {
    border-color: rgb(255 255 255 / 0.1);
    background: color-mix(in srgb, #1f2937 70%, transparent);
  }

  .pricing-addon-help {
    color: #9ca3af;
  }

  .pricing-addon-note {
    border-top-color: rgb(255 255 255 / 0.1);
    color: #9ca3af;
  }
}

.pricing-addon-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 2.35rem;
  height: 1.35rem;
}

.pricing-addon-toggle input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pricing-addon-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.15s ease;
}

@media (prefers-color-scheme: dark) {
  .pricing-addon-toggle-track {
    background: #374151;
  }
}

.pricing-addon-toggle input:checked + .pricing-addon-toggle-track {
  background: #3b82f6;
}

.pricing-addon-toggle input:focus-visible + .pricing-addon-toggle-track {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pricing-addon-toggle-thumb {
  pointer-events: none;
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  transition: transform 0.15s ease;
}

.pricing-addon-toggle input:checked + .pricing-addon-toggle-track + .pricing-addon-toggle-thumb {
  transform: translateX(1rem);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-tier,
  .pricing-freq label {
    transition: none;
  }

  .pricing-tier:hover {
    transform: none;
  }
}
