/* Pricing & options page: Buy / Details buttons on every plan card, and the MS Timetable tiles.
   Loaded from pricing.php with ?v= (pages.css is cached for 7 days without a version). */

.pricing-hero-actions {
  margin-top: 1.25rem;
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.plan-card .plan-actions .btn {
  margin-top: 0;
}

/* Cards without a check-list (MS Timetable) still line their buttons up at the bottom */
.plan-card .plan-price {
  flex: 0 0 auto;
}

.pricing-group-tt {
  background: var(--mint-soft);
}

.pricing-group-tt .plan-card-featured,
.pricing-group-ek .plan-card-featured {
  border-color: var(--teal);
}

.pricing-group-ce .plan-card-featured {
  border-color: var(--navy);
}

.pricing-group-ce .plan-badge {
  background: var(--navy);
}

.pricing-choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-choice-tt {
  background: var(--mint-soft);
}

.pricing-choice-tt .pricing-choice-icon {
  background: rgba(13, 115, 119, 0.14);
  color: var(--teal);
}

.pricing-choice-tt .eyebrow {
  color: var(--teal);
}

/* IDStudio (v=2) */
.pricing-group-id {
  background: #eef1fb;
}

.pricing-group-id .plan-card-featured {
  border-color: var(--navy);
}

.pricing-group-id .plan-badge {
  background: var(--navy);
}

.pricing-choice-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.pricing-choice-id {
  background: #eef1fb;
}

.pricing-choice-id .pricing-choice-icon {
  background: rgba(11, 34, 64, 0.1);
  color: var(--navy);
}

.pricing-choice-id .eyebrow {
  color: var(--navy);
}

@media (max-width: 900px) {
  .pricing-choice-grid-4,
  .pricing-choice-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------------------
   Plan layout (v=3): the product intro is a header row above the plans, so the plans get
   the full width instead of being squeezed beside it; each price shows its total large,
   with the GST breakdown and terms beneath.
   --------------------------------------------------------------------------------------- */
.pricing-group {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.pricing-group-intro {
  max-width: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1.1rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid rgba(11, 34, 64, 0.1);
}

.pricing-group-intro .pricing-product-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  margin: 0.2rem 0 0;
}

.pricing-group-intro h2,
.pricing-group-intro .pricing-tagline,
.pricing-group-intro .muted {
  grid-column: 2;
  margin: 0;
}

.pricing-group-intro .muted {
  max-width: 46rem;
}

.pricing-group-intro .pricing-intro-actions {
  grid-column: 3;
  grid-row: 1 / span 3;
  margin: 0;
}

.pricing-plans {
  gap: 1.1rem;
}

.pricing-plans-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.plan-card {
  padding: 1.5rem 1.4rem 1.4rem;
}

.plan-card-featured {
  padding-top: 1.5rem;
  box-shadow: 0 14px 34px rgba(11, 34, 64, 0.14);
}

.plan-meta {
  min-height: 2.7em;
  line-height: 1.35;
}

.pricing-group-ek .plan-meta {
  min-height: 4.05em;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0.95rem 0 1rem;
  border-top: 1px solid rgba(11, 34, 64, 0.08);
  border-bottom: 1px solid rgba(11, 34, 64, 0.08);
  font-weight: 500;
}

.plan-amount {
  font-family: var(--font-body);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.plan-per {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-gst {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-price small {
  flex-basis: 100%;
  margin-top: 0.45rem;
  line-height: 1.45;
}

.plan-card .check-list {
  margin-top: 1rem;
  align-content: start;
  gap: 0.5rem;
}

.plan-card .check-list li {
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .pricing-plans-4,
  .pricing-plans-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pricing-group {
    padding: 1.25rem;
  }

  .pricing-group-intro {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-group-intro .pricing-intro-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0.9rem;
  }

  .pricing-plans-4,
  .pricing-plans-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-meta,
  .pricing-group-ek .plan-meta {
    min-height: 0;
  }
}
