/* =========================================
   Pricing page
   Ported from src/pages/Pricing.tsx in the client's Lovable project. Values
   were read off the running design with getComputedStyle rather than inferred
   from the Tailwind classes - several of them disagree, notably the headings,
   where the size utility's line-height beats the leading-* written beside it.

   Loaded automatically for every page (see Page::getStyleSheets, which walks
   all pages because of partial navigation), so everything is scoped to
   body.Pricing - the class getBodyClass() emits from simpleName().
   ========================================= */

body.Pricing .app-page-content {
  padding: 0 !important;
}

/* usesWebFont() loads Montserrat and adds .modern-type, but moved.css pins the
   system stack on `body, button, input, select, textarea`; the family still has
   to be declared. Same pattern as body.About and body.doc-page. */
body.Pricing,
body.Pricing button,
body.Pricing input,
body.Pricing select,
body.Pricing textarea {
  font-family: "Montserrat", sans-serif;
}

body.Pricing .pricing-page {
  color: #25153c;
}

/* react.css sets `p { margin-bottom: 0 !important }` globally, so every
   paragraph rule below has to answer in kind. */

/* --- Shared ----------------------------------------------------------- */

body.Pricing .pricing-gradient-text {
  background-image: linear-gradient(to right, #9333ea, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.Pricing .pricing-eyebrow {
  margin: 0 0 40px !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #9333ea; /* purple-600 */
}

body.Pricing .pricing-eyebrow--tight {
  margin-bottom: 16px !important;
  letter-spacing: 0.35em;
}

body.Pricing .pricing-h2 {
  margin: 0;
  font-size: 30px; /* text-3xl */
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Pricing .pricing-section-head {
  margin-bottom: 56px; /* mb-14 */
  text-align: center;
}

/* --- Hero ------------------------------------------------------------- */

body.Pricing .pricing-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6dbf0;
  /* from-purple-50/60 via-background to-orange-50/30 */
  background-image: linear-gradient(
    to bottom right,
    rgba(250, 245, 255, 0.6),
    #ffffff,
    rgba(255, 247, 237, 0.3)
  );
}

body.Pricing .pricing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.Pricing .pricing-orb {
  position: absolute;
  width: 384px; /* w-96 */
  height: 384px;
  border-radius: 9999px;
  filter: blur(64px); /* blur-3xl */
}

body.Pricing .pricing-orb--purple {
  top: 33.333%;
  left: -128px;
  background: rgba(216, 180, 254, 0.2); /* purple-300/20 */
}

body.Pricing .pricing-orb--orange {
  bottom: 0;
  right: -128px;
  background: rgba(253, 186, 116, 0.2); /* orange-300/20 */
}

body.Pricing .pricing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1024px; /* max-w-5xl */
  margin: 0 auto;
  padding: 128px 24px 112px; /* pt-32 px-6 pb-28 */
  text-align: center;
}

body.Pricing .pricing-h1 {
  margin: 0;
  font-size: 48px; /* text-5xl */
  line-height: 1; /* the size utility wins over leading-[1.05] */
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Pricing .pricing-quote-wrap {
  max-width: 768px; /* max-w-3xl */
  margin: 56px auto 0; /* mt-14 */
}

body.Pricing .pricing-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto 32px;
  background-image: linear-gradient(to right, #9333ea, #f97316);
}

body.Pricing .pricing-quote {
  margin: 0 !important;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 30px; /* text-3xl */
  line-height: 36px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Pricing .pricing-quote-emphasis {
  font-style: normal;
  font-weight: 500;
}

/* --- Plan cards ------------------------------------------------------- */

body.Pricing .pricing-plans {
  max-width: 1152px; /* max-w-6xl */
  margin: 0 auto;
  padding: 96px 24px; /* py-24 px-6 */
}

body.Pricing .pricing-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

body.Pricing .pricing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6dbf0;
  border-radius: 16px; /* rounded-2xl */
  background: #ffffff;
  padding: 32px; /* p-8 */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.Pricing .pricing-plan:not(.is-popular):hover {
  border-color: #d8b4fe; /* purple-300 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* The middle card carries the brand gradient and sits fractionally proud of
   its neighbours. */
body.Pricing .pricing-plan.is-popular {
  border-color: transparent;
  background-image: linear-gradient(to bottom right, #9333ea, #f97316);
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

body.Pricing .pricing-plan-badge {
  position: absolute;
  top: -12px; /* -top-3 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px; /* gap-1.5 */
  padding: 4px 12px;
  border-radius: 9999px;
  background: #25153c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

body.Pricing .pricing-plan-badge svg {
  width: 12px; /* w-3 */
  height: 12px;
}

body.Pricing .pricing-plan h3 {
  margin: 0;
  font-size: 24px; /* text-2xl */
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #25153c;
}

body.Pricing .pricing-plan.is-popular h3 {
  color: #ffffff;
}

body.Pricing .pricing-plan-tagline {
  margin: 8px 0 0 !important;
  font-size: 14px;
  line-height: 20px;
  color: #6c5393;
}

body.Pricing .pricing-plan.is-popular .pricing-plan-tagline {
  color: rgba(255, 255, 255, 0.8);
}

body.Pricing .pricing-plan-price {
  margin: 32px 0; /* mt-8 mb-8 */
}

body.Pricing .pricing-plan-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 !important;
}

body.Pricing .pricing-plan-figure {
  font-size: 48px; /* text-5xl */
  line-height: 48px;
  font-weight: 800;
  color: #25153c;
}

body.Pricing .pricing-plan-period {
  font-size: 14px;
  line-height: 20px;
  color: #6c5393;
}

body.Pricing .pricing-plan-billing {
  margin: 8px 0 0 !important;
  font-size: 12px; /* text-xs */
  line-height: 16px;
  color: #6c5393;
}

body.Pricing .pricing-plan.is-popular .pricing-plan-figure {
  color: #ffffff;
}

body.Pricing .pricing-plan.is-popular .pricing-plan-period,
body.Pricing .pricing-plan.is-popular .pricing-plan-billing {
  color: rgba(255, 255, 255, 0.7);
}

body.Pricing .pricing-plan-features {
  flex: 1;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

body.Pricing .pricing-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #25153c;
}

/* space-y-3 in the design: the gap sits between items, not around them. */
body.Pricing .pricing-plan-features li + li {
  margin-top: 12px;
}

body.Pricing .pricing-plan-features svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px; /* mt-0.5 */
  color: #9333ea;
}

body.Pricing .pricing-plan.is-popular .pricing-plan-features li {
  color: rgba(255, 255, 255, 0.9);
}

body.Pricing .pricing-plan.is-popular .pricing-plan-features svg {
  color: #ffffff;
}

/* --- Buttons ---------------------------------------------------------- */

body.Pricing .pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px; /* shadcn Button size="lg" */
  padding: 0 32px;
  border: 0;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.Pricing .pricing-btn svg {
  width: 16px;
  height: 16px;
}

body.Pricing .pricing-btn--plan,
body.Pricing .pricing-btn--primary {
  background-image: linear-gradient(to right, #9333ea, #f97316);
  color: #ffffff;
}

body.Pricing .pricing-btn--plan {
  width: 100%;
}

body.Pricing .pricing-btn--plan:hover,
body.Pricing .pricing-btn--primary:hover {
  opacity: 0.9;
  color: #ffffff;
}

/* On the gradient card the button inverts, so it stays readable. */
body.Pricing .pricing-plan.is-popular .pricing-btn--plan {
  background-image: none;
  background-color: #ffffff;
  color: #7e22ce; /* purple-700 */
}

body.Pricing .pricing-plan.is-popular .pricing-btn--plan:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9);
  color: #7e22ce;
}

body.Pricing .pricing-btn--primary,
body.Pricing .pricing-btn--outline {
  padding: 0 28px; /* px-7 */
}

body.Pricing .pricing-btn--outline {
  border: 1px solid #e9d5ff; /* purple-200 */
  background: #ffffff;
  color: #25153c;
}

body.Pricing .pricing-btn--outline:hover {
  border-color: #c084fc; /* purple-400 */
  background: rgba(250, 245, 255, 0.5);
  color: #25153c;
}

/* --- Principles ------------------------------------------------------- */

body.Pricing .pricing-principles {
  border-top: 1px solid #e6dbf0;
  border-bottom: 1px solid #e6dbf0;
  background: rgba(245, 240, 250, 0.3); /* bg-muted/30 */
}

body.Pricing .pricing-principles-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 80px 24px; /* py-20 px-6 */
}

body.Pricing .pricing-principle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

body.Pricing .pricing-principle {
  border: 1px solid #e6dbf0;
  border-radius: 16px;
  background: #ffffff;
  padding: 28px; /* p-7 */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.Pricing .pricing-principle:hover {
  border-color: #d8b4fe;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body.Pricing .pricing-principle-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

body.Pricing .pricing-principle-number {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  /* the design runs this one top-left to bottom-right, unlike the headings */
  background-image: linear-gradient(to bottom right, #9333ea, #f97316);
}

body.Pricing .pricing-principle h3 {
  margin: 0;
  font-size: 18px; /* text-lg */
  line-height: 28px;
  font-weight: 700;
  color: #25153c;
}

body.Pricing .pricing-principle p {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.625; /* leading-relaxed */
  color: #6c5393;
}

/* --- FAQ -------------------------------------------------------------- */

body.Pricing .pricing-faq {
  max-width: 768px; /* max-w-3xl */
  margin: 0 auto;
  padding: 96px 24px;
}

body.Pricing .pricing-faq-list {
  border-top: 1px solid #e6dbf0;
  border-bottom: 1px solid #e6dbf0;
}

body.Pricing .pricing-faq-item {
  padding: 28px 0; /* py-7 */
}

body.Pricing .pricing-faq-item + .pricing-faq-item {
  border-top: 1px solid #e6dbf0; /* divide-y */
}

body.Pricing .pricing-faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #25153c;
}

body.Pricing .pricing-faq-item p {
  margin: 0 !important;
  font-size: 16px;
  line-height: 26px;
  color: #6c5393;
}

/* --- Closing call to action ------------------------------------------- */

body.Pricing .pricing-closing {
  padding: 96px 24px;
}

body.Pricing .pricing-closing-inner {
  max-width: 576px; /* max-w-xl */
  margin: 0 auto;
  text-align: center;
}

body.Pricing .pricing-closing .pricing-eyebrow {
  margin-bottom: 12px !important; /* mb-3 */
}

body.Pricing .pricing-h2--small {
  margin-bottom: 16px;
}

body.Pricing .pricing-closing-lead {
  max-width: 448px; /* max-w-md */
  margin: 0 auto 40px !important;
  font-size: 16px;
  line-height: 26px;
  color: #6c5393;
}

body.Pricing .pricing-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* --- Wider screens ---------------------------------------------------- */

@media (min-width: 640px) {
  body.Pricing .pricing-principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* sm:grid-cols-2 */
  }
}

@media (min-width: 768px) {
  body.Pricing .pricing-hero-inner,
  body.Pricing .pricing-plans,
  body.Pricing .pricing-principles-inner,
  body.Pricing .pricing-faq,
  body.Pricing .pricing-closing {
    padding-left: 48px; /* md:px-12 */
    padding-right: 48px;
  }

  body.Pricing .pricing-h1 {
    font-size: 72px; /* md:text-7xl */
  }

  body.Pricing .pricing-quote {
    font-size: 36px; /* md:text-4xl */
    line-height: 40px;
  }

  body.Pricing .pricing-h2 {
    font-size: 48px; /* md:text-5xl */
    line-height: 48px;
  }

  body.Pricing .pricing-h2--small {
    font-size: 36px; /* md:text-4xl */
    line-height: 40px;
  }

  body.Pricing .pricing-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
