/* =========================================
   PRICING PAGE  —  tmind.ai/pricing/
   All classes prefixed with pg- to avoid
   conflicts with existing site CSS.
   ========================================= */

/* ── Shared section shell ── */
.pg-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════
   1. PRICING PLAN SECTION
   ══════════════════════════════════════════ */
.pg-plan {
  background: #fff;
  padding: 96px 96px;
}

.pg-plan__inner {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.pg-plan__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.96px;
  color: #1C5B5D;
  text-align: center;
}

/* ── Individual / Institution Switch ── */
.pg-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 340px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 154, 115, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 6px 8px;
  gap: 0;
}

.pg-switch__pill {
  position: absolute;
  top: 6px;
  left: 8px;
  width: calc(50% - 12px);
  bottom: 6px;
  background: #1f9a73;
  border-radius: 999px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.pg-switch--institution .pg-switch__pill {
  transform: translateX(calc(100% + 8px));
}

.pg-switch__option {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1C5B5D;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
}

.pg-switch__option--active {
  color: #fff;
}

/* ── Cards Grid ── */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(3, 405px);
  gap: 16px;
  align-items: stretch;
}

.pg-cards--hidden {
  display: none;
}

/* ── Base Card ── */
.pg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 48px 16px;
  border-radius: 32px;
}

.pg-card--default {
  background: #f7f7f8;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 15px rgba(0, 0, 0, 0.05);
}

.pg-card--featured {
  background: linear-gradient(141.66deg, #229085 24.21%, #1f9a73 89.52%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

/* ── Card Head ── */
.pg-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pg-card__plan-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 52px;
  color: #1C5B5D;
  white-space: nowrap;
}

.pg-card--featured .pg-card__plan-name {
  color: #fff;
}

/* Institution plan name (larger text sometimes) */
.pg-card__plan-name--lg {
  font-size: 32px;
}

/* ── Billing Toggle (Basic & Pro) ── */
.pg-card__price-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pg-card__billing {
  display: flex;
  align-items: center;
  width: 147px;
  height: 44px;
  position: relative;
  cursor: pointer;
}

.pg-card__billing-pill {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 72px;
  height: 32px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.pg-card--default .pg-card__billing-pill {
  background: rgba(28, 91, 93, 0.12);
}

.pg-card__billing-pill--yearly {
  transform: translateX(73px);
}

.pg-card__billing-option {
  flex: 1;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
  position: relative;
  z-index: 1;
  user-select: none;
  transition: font-weight 0.1s ease;
}

.pg-card--default .pg-card__billing-option {
  color: #03494B;
}

.pg-card__billing-option--active {
  font-weight: 600;
}

.pg-card__billing-option:not(.pg-card__billing-option--active) {
  font-weight: 500;
}

/* Free card empty placeholder (same height as toggle) */
.pg-card__billing-placeholder {
  width: 147px;
  height: 44px;
  flex-shrink: 0;
}

/* ── Price Display ── */
.pg-card__price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.pg-card__price-amount {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: 70px;
  line-height: normal;
  font-weight: 500;
  color: #1C5B5D;
}

.pg-card--featured .pg-card__price-amount {
  color: #fff;
}

.pg-card__price-period {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 400;
  color: #1C5B5D;
  padding-bottom: 8px;
}

.pg-card--featured .pg-card__price-period {
  color: #fff;
}

/* Institution — contact pricing */
.pg-card__contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #444846;
  letter-spacing: -0.2px;
}

.pg-card--featured .pg-card__contact-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Card CTA Button ── */
.pg-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 42px);
  max-width: 330px;
  height: 60px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.pg-card__btn:hover {
  opacity: 0.88;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pg-card__btn--outline {
  background: transparent;
  border: 2px solid #1f9a73;
  color: #1f9a73;
}

.pg-card__btn--white {
  background: #D8FCEC;
  border: 2px solid #C7F0EC;
  color: #1C5B5D;
}

/* ── Card Description ── */
.pg-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #1a1c1b;
  text-align: center;

  max-width: 330px;
  height: 84px;
  flex-shrink: 0;
}

.pg-card--featured .pg-card__desc {
  font-weight: 500;
  color: #fff;
}

.pg-card__desc strong {
  font-weight: 700;
  color: #1f9a73;
}

.pg-card--featured .pg-card__desc strong {
  color: #fff;
  font-weight: 700;
}

/* ── Feature List ── */
.pg-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 42px);
  max-width: 330px;
}

.pg-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pg-card__feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.8);
}

.pg-card--featured .pg-card__feature-icon {
  color: #fff;
}

.pg-card__feature-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.54px;
  color: rgba(0, 0, 0, 0.8);
}

.pg-card--featured .pg-card__feature-text {
  color: #fff;
}

/* ══════════════════════════════════════════
   2. FAQ SECTION
   ══════════════════════════════════════════ */
.pg-faq {
  background: #fff;
  padding: 96px 144px;
}

.pg-faq__inner {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pg-faq__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.96px;
  color: #1C5B5D;
  text-align: center;
}

/* ── Audience Tabs ── */
.pg-faq__tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.pg-faq__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 21px 10px;
  border-radius: 360px;
  border: 1px solid #c4c7c5;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #444846;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.pg-faq__tab--active {
  background: #1C5B5D;
  border-color: #1C5B5D;
  color: #fff;
}

/* ── Panels ── */
.pg-faq__panel {
  display: none;
}

.pg-faq__panel--active {
  display: block;
}

.pg-faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Accordion Items ── */
.pg-faq__item {
  border-bottom: 1px solid #c4c7c5;
  width: 100%;
  max-width: 1104px;
}


.pg-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.pg-faq__question-text {
  flex: 1;
  min-width: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #1a1c1b;
}

.pg-faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #444846;
  transition: transform 0.25s ease;
  overflow: visible;
  display: block;
}

.pg-faq__item--open .pg-faq__chevron {
  transform: rotate(90deg);
}

.pg-faq__item--open .pg-faq__question {
  color: #1C5B5D;
}

.pg-faq__item--open .pg-faq__chevron {
  color: #1C5B5D;
}

.pg-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pg-faq__item--open .pg-faq__answer {
  max-height: 600px;
}

.pg-faq__answer-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1a1c1b;
  padding: 0 24px 32px;
  max-width: 1000px;
}

.pg-faq__answer-body strong { font-weight: 600; }
.pg-faq__answer-body a { text-decoration: underline; color: inherit; }
.pg-faq__answer-body ul {
  margin: 8px 0 12px;
  padding-left: 1.4em;
  list-style: disc;
}
.pg-faq__answer-body ul li { margin-bottom: 6px; }
.pg-faq__answer-body p + p { margin-top: 8px; }
/* When answer-body is a div wrapper (institution Q2) */
div.pg-faq__answer-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1a1c1b;
  padding: 0 24px 32px;
  max-width: 1000px;
}

/* ══════════════════════════════════════════
   3. CTA SECTION
   ══════════════════════════════════════════ */
.pg-cta {
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Green radial blob — centered, exact Figma size 382×248 */
.pg-cta::before {
  content: '';
  position: absolute;
  width: 382px;
  height: 248px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-23.37deg);
  filter: blur(50px);
  background: radial-gradient(ellipse at center, rgba(157, 237, 193, 1) 0%, rgba(143, 231, 182, 0.3) 100%);
  pointer-events: none;
}

/* Yellow linear blob — lower-left, exact Figma size 190×276 */
.pg-cta::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 276px;
  left: 25%;
  top: 34%;
  transform: rotate(-38.53deg);
  filter: blur(50px);
  background: linear-gradient(175.44deg, rgba(244, 225, 79, 0.3) 12.89%, rgba(229, 253, 106, 0.3) 27.36%);
  pointer-events: none;
}

.pg-cta__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
}

.pg-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.pg-cta__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary, #1C5B5D);
  text-align: center;
  max-width: 700px;
}

.pg-cta__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: #1c4f44;
  text-align: center;
}

.pg-cta__buttons {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.pg-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 16px 32px;
  border-radius: 360px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.pg-cta__btn:hover { opacity: 0.88; }

.pg-cta__btn--signup {
  width: 125px;
  background: linear-gradient(93.6deg, #F99522 50%, #FEE478 100%);
  color: #fff;
}

.pg-cta__btn--demo {
  width: 178px;
  background: transparent;
  border: 1px solid #447569;
  color: #1c4f44;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1350px) {
  .pg-plan { padding: 96px 48px; }
  .pg-cards { grid-template-columns: repeat(3, 1fr); }
  .pg-faq { padding: 96px 48px; }
}

@media (max-width: 1024px) {
  .pg-plan__title,
  .pg-faq__title,
  .pg-cta__title { font-size: clamp(2rem, 4vw, 3rem); }
  .pg-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .pg-card { border-radius: 24px; }
}

@media (max-width: 768px) {
  .pg-plan { padding: 64px 24px; }
  .pg-faq { padding: 64px 24px; }
  .pg-switch { width: 280px; font-size: 16px; }
  .pg-faq__list { padding: 0; }
  .pg-cta__title { font-size: 32px; line-height: 40px; }
  .pg-cta__subtitle { white-space: normal; }
  .pg-cta__buttons { flex-direction: column; width: 100%; max-width: 280px; }
  .pg-cta__btn { width: 100%; justify-content: center; }
}
