/* ============================================
   SHARED PAGE PATTERNS
   ============================================ */

/* ============================================
   THREE PRINCIPLES SECTION
   Used by company.html
   ============================================ */
.principles-section {
  padding: var(--space-20) 0;
  padding-top: calc(var(--space-20) - 50px);
  padding-bottom: calc(var(--space-20) + 30px);
  background: var(--off-white);
}

.principles-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.principles-title .accent {
  font-weight: var(--font-extrabold);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--content-max-width);
  margin: 0 auto;
  align-items: start;
}

.principle-card {
  text-align: left;
  padding: 36px 32px;
  border-radius: 20px;
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-xl-soft);
  border: 1px solid transparent;
  transition: border-color 300ms ease;
}

.principle-card:hover {
  border-color: var(--cyan);
}

.principle-card:nth-child(1) { margin-top: 60px; }
.principle-card:nth-child(2) { margin-top: 0; }
.principle-card:nth-child(3) { margin-top: 98px; }
.principle-card:nth-child(4) { margin-top: 0; }
.principle-card:nth-child(5) { margin-top: -110px; }
.principle-card:nth-child(6) { margin-top: -40px; }


.principle-icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-5);
  color: var(--navy);
  opacity: 0.7;
}

.principle-card .principle-card-title {
  color: var(--navy);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.principle-card .principle-card-desc {
  color: var(--ink-2);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

.principle-card-img-wrap {
  width: 65%;
  aspect-ratio: 1 / 1;
  margin: 0 auto var(--space-6);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.principle-card-rose { background: var(--purple); }
.principle-card-pink { background: var(--cyan); }
.principle-card-gold { background: var(--yellow); }

.principle-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12%;
}

.principle-card-title {
  margin-bottom: var(--space-3);
}


/* ============================================
   COMPANY PAGE (/about)
   ============================================ */
.company-hero {
  text-align: center;
  max-width: 1060px;
}

.company-hero .section-desc {
  text-align: center;
}


.company-section-grey {
  background: var(--yellow);
}


.company-section-desc {
  max-width: 640px;
  margin: 0 auto;
}

.company-careers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.company-careers-card {
  background: var(--white);
  border: 1px solid var(--gray-light, var(--gray-light));
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  cursor: pointer;
}


.company-careers-note {
  text-align: center;
  margin-top: var(--space-10);
}

.company-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.company-support-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--gray-light, var(--gray-light));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.company-support-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.company-support-icon--purple { background: var(--purple); }
.company-support-icon--pink { background: var(--pink); }
.company-support-icon--yellow { background: var(--yellow); }

.company-support-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}


.company-contact {
  text-align: center;
}

.company-contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.company-contact-row {
  display: flex;
  gap: var(--space-4);
}

.company-contact-row > * {
  flex: 1;
}

.company-contact-input,
.company-contact-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-light, var(--gray-light));
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}

.company-contact-input:focus,
.company-contact-textarea:focus {
  border-color: var(--pink);
}

.company-contact-textarea {
  min-height: 140px;
  resize: vertical;
}


.company-contact-alt {
  margin-top: var(--space-6);
}

.company-divider {
  border: none;
  border-top: 1px solid var(--gray-light, var(--gray-light));
  margin: 0;
}

.company-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.company-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.company-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
}

.company-modal--founder {
  max-width: 860px;
  position: relative;
}

.company-modal--founder .company-modal-header {
  padding: var(--space-2) var(--space-3) 0 0;
  border-bottom: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.company-modal--founder .company-modal-body {
  padding: 0;
  overflow: hidden;
}

.founder-photo-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-6);
  background-color: var(--gray-background);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.founder-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--navy);
  margin: 0 0 var(--space-1) 0;
}

.founder-role {
  color: var(--pink);
  font-weight: var(--font-medium);
  margin: 0 0 var(--space-2) 0;
}

.founder-bio {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.founder-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  justify-content: center;
}

.founder-socials img {
  width: 48px;
  height: 48px;
}

.team-modal-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.team-modal-photo {
  flex: 0 0 40%;
  overflow: hidden;
}

.team-modal-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.team-modal-profiles {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: var(--space-4);
}

.team-member {
  text-align: center;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #dddddd;
}

.team-member:last-child {
  border-right: none;
}

.team-member .founder-name {
  font-size: var(--text-sm);
}

.team-member .founder-role {
  font-size: var(--text-xs);
}

.team-member .founder-bio {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

.team-member .founder-socials {
  margin-top: auto;
  padding-top: var(--space-3);
  gap: var(--space-2);
}

.team-member .founder-socials img {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .team-modal-layout {
    flex-direction: column;
  }
  .team-modal-photo {
    flex: none;
    width: 100%;
    max-height: 250px;
  }
  .team-modal-profiles {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .team-member {
    border-right: none;
    border-bottom: 1px solid #dddddd;
    padding-bottom: var(--space-4);
  }
  .team-member:last-child {
    border-bottom: none;
  }
}

.company-section-desc--italic {
  font-style: italic;
  color: var(--ink-2);
}

.company-modal-overlay.active .company-modal {
  transform: translateY(0) scale(1);
}

.company-modal-header {
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--gray-background);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.company-modal-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.company-modal-role-title {
  font-size: var(--title-2);
  font-weight: var(--font-bold);
  color: var(--navy);
  line-height: 1.2;
}

.company-modal-role-meta {
  font-size: var(--text-sm);
  color: var(--gray-mid);
}

.company-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--gray-background);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--ink-2);
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.company-modal-close:hover {
  background: var(--gray-light);
  color: var(--navy);
}

.company-modal-close svg {
  width: 16px;
  height: 16px;
}

.company-modal-body {
  padding: var(--space-6) var(--space-8) var(--space-8);
  overflow-y: auto;
  flex: 1;
}

.company-modal-section {
  margin-bottom: var(--space-6);
}

.company-modal-section:last-child {
  margin-bottom: 0;
}

.company-modal-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  margin-bottom: var(--space-3);
}

.company-modal-section-text {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.company-modal-section-text:last-child {
  margin-bottom: 0;
}

.company-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
}

.company-modal-list li {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.company-modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--pink);
}

.company-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.company-tag {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--ink-2);
  background: var(--gray-background);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.company-modal-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--gray-background);
  flex-shrink: 0;
}

.company-modal-divider {
  height: 1px;
  background: var(--gray-background);
  margin: var(--space-6) 0;
}

/* ============================================
   LEGAL PAGE (/legal)
   ============================================ */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-tabs-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 var(--space-8);
}

.legal-content .tab-content {
  display: none;
}

.legal-content .tab-content.active {
  display: block;
}

.legal-content h2 {
  font-size: var(--title-3);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-base);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-1);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: var(--space-8) 0;
}

.legal-content strong {
  color: var(--navy);
}

.legal-summary-box {
  background: var(--gray-background);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.legal-summary-box h3 {
  margin-top: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  margin: var(--space-4) 0;
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--gray-light);
  vertical-align: top;
}

.legal-table th {
  background: var(--gray-background);
  font-weight: 600;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.legal-table td a {
  color: var(--cyan);
}

/* ============================================
   PARTNER PAGE (/partner)
   ============================================ */
.partner-hero-layout {
  display: flex;
  align-items: center;
  gap: var(--space-20);
}

.partner-hero-text {
  flex: 1;
  max-width: 540px;
}

.partner-hero-desc {
  margin-bottom: var(--space-8);
  max-width: 480px;
}



.partner-hero-visual {
  width: 480px;
  flex-shrink: 0;
}

.partner-traction {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-12) 0;
  text-align: center;
}

.partner-traction-inner {
  max-width: var(--landing-container);
  margin: 0 auto;
  padding: 0 var(--landing-container-padding);
}

.partner-traction-headline {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.partner-traction-subline {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-3);
}

.partner-traction-note {
  font-size: var(--text-sm);
  opacity: 0.7;
}

.partner-section-title {
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.partner-section-cta {
  text-align: center;
}

.partner-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.partner-product-card {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.partner-product-card:nth-child(1) { background-color: rgba(255, 126, 126, 0.7); }
.partner-product-card:nth-child(2) { background-color: rgba(255, 116, 193, 0.7); }
.partner-product-card:nth-child(3) { background-color: rgba(255, 200, 114, 0.7); }

.partner-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.partner-step {
  text-align: center;
}

.partner-step-num {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.partner-cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================
   SUPPORT PAGE (/support)
   ============================================ */
.holder-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.holder-layout {
  width: 100%;
  display: flex;
  align-items: center;
}

.holder-left {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 823px;
}

.holder-section .accent {
  font-weight: var(--font-extrabold);
}

.holder-body {
  max-width: 800px;
  margin-bottom: var(--space-4);
}


.holder-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.holder-right lottie-player {
  width: 100%;
  min-height: 380px;
}


/* ============================================
   RESPONSIVE — ALL PAGE SECTIONS
   ============================================ */
/* iPad (768px+) gets desktop layout; mobile-only collapses at ≤767px */
@media (max-width: 767px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .principles-title {
    font-size: var(--text-5xl);
  }

  .partner-section-title {
    font-size: var(--text-4xl);
  }

  .partner-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .holder-body {
    font-size: var(--text-lg);
  }
}

@media (max-width: 768px) {
  .company-support-grid {
    grid-template-columns: 1fr;
  }

  .company-careers-grid {
    grid-template-columns: 1fr;
  }

  .principles-section {
    padding: 10px 20px;
  }

  .principles-title {
    font-size: 32px;
    line-height: 40px;
    text-align: center;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .principle-card {
    text-align: left;
    padding: var(--space-6);
  }

  .principle-card:nth-child(n) {
    margin-top: 0;
  }

  .company-contact-row {
    flex-direction: column;
  }

  .legal-container {
    padding: 0 var(--space-4);
  }

  .partner-hero-layout {
    flex-direction: column;
    gap: var(--space-10);
  }

  .partner-hero-visual {
    width: 100%;
  }

  .partner-traction {
    padding: var(--space-10) 0;
  }

  .partner-traction-inner {
    padding: 0 var(--space-5);
  }

  .partner-traction-headline {
    font-size: var(--text-2xl);
  }

  .partner-section-title {
    font-size: 28px;
  }

  .partner-products-grid {
    grid-template-columns: 1fr;
  }

  .partner-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .partner-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .holder-layout {
    flex-direction: column;
    gap: var(--space-10);
  }

  .holder-left {
    flex: none;
    width: 100%;
  }

  .holder-right {
    order: -1;
  }

  .holder-body {
    font-size: var(--text-base);
  }
}


/* ============================================
   PRICING PAGE
   ============================================ */

.pricing-page {
  background: var(--white);
  color: var(--navy);
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  min-height: auto;
}

main.pricing-main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-height));
}

.pricing-tabs-container {
  flex: 1;
}

.pricing-heading {
  text-align: center;
  padding-bottom: var(--space-1);
}
/* Previous rule pulled the heading up by 40px on desktop, leaving
   /pricing's heading visibly closer to the navbar than /free,
   /explore, and /work. Removed so the heading sits at the natural
   topbar + space-16 distance the .page-section-hero wrapper already
   provides — matches the rhythm of the other listing pages. */

.pricing-tabs-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 var(--space-8);
}

.pricing-content {
  padding: 0 0 var(--space-20);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.credits-grid {
  display: flex;
  justify-content: center;
  gap: var(--pricing-card-gap);
  padding: var(--space-12) 0;
  max-width: var(--pricing-card-container);
  margin: 0 auto;
}

.credit-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--pricing-card-padding-y) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pricing-card-internal-gap);
  flex: 0 0 auto;
  box-shadow: var(--shadow-md);
  width: var(--pricing-card-width);
  transition: all var(--transition-base);
  /* Cards are now <button> elements — reset native chrome and make the
     pointer affordance match the existing hover lift. Inherit font from
     the page so the rendered text matches the prior <div> markup. */
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.credit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.credit-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.credit-card-amount {
  font-size: var(--text-price);
  font-weight: var(--font-bold);
  color: var(--navy);
  line-height: var(--lh-price);
  letter-spacing: var(--ls-secondary-cta);
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 1.2em;
}

.credit-card-amount-suffix {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--gray-mid);
  letter-spacing: normal;
  margin-left: 4px;
}

.credit-card-label {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--navy);
  line-height: var(--lh-price-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4em;
}

.credit-card-spacer {
  flex: 1;
  min-height: var(--pricing-spacer-height-lg);
}

.credit-card-input-wrap {
  width: var(--pricing-input-width);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit-card-input {
  width: 100%;
  height: 100%;
  padding: var(--space-2) var(--space-4);
  border: none;
  font-size: var(--text-price-sub);
  font-weight: var(--font-normal);
  text-align: center;
  color: var(--navy);
  background: transparent;
  outline: none;
}

.credit-card-input::placeholder {
  color: var(--gray-mid);
}

.pricing-stripe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-4) 0 var(--space-12);
  max-width: var(--pricing-card-container);
  margin: 0 auto;
}

.pricing-stripe-text {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
}

.pricing-stripe-text .ask-ren-link {
  color: var(--pink);
  text-decoration: none;
  cursor: pointer;
}

.pricing-stripe-text .ask-ren-link:hover {
  text-decoration: underline;
}

.stripe-badge {
  height: var(--pricing-stripe-badge-height);
  width: auto;
  border: none;
  outline: none;
  box-shadow: none;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) 0 0;
}
@media (min-width: 641px) {
  .billing-toggle {
    margin-top: -20px;
  }
}

.billing-label {
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: var(--font-normal);
  transition: font-weight var(--transition-base);
}

#monthlyLabel {
  font-weight: var(--font-semibold);
}

.billing-save {
  font-size: var(--text-xs);
  color: var(--cyan);
  font-weight: var(--font-semibold);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-mid);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  border-radius: 50%;
  transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--navy);
}

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

.subscription-grid {
  display: flex;
  justify-content: center;
  gap: var(--pricing-card-gap);
  padding: var(--space-12) 0;
  max-width: var(--pricing-card-container);
  margin: 0 auto;
}

/* 4-card variant (Solo · Facilitator · Teams · Enterprise).
   Widens the container and tightens gap/card width slightly so all
   four fit on one row at desktop widths without changing the 3-card
   layout used elsewhere. */
.subscription-grid-4 {
  max-width: 1320px;
  gap: 22px;
}
.subscription-grid-4 .subscription-card {
  width: 300px;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.subscription-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--pricing-card-padding-y) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pricing-card-internal-gap);
  width: var(--pricing-card-width);
  min-height: var(--pricing-sub-card-min-height);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.subscription-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.subscription-card-name {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--navy);
  letter-spacing: var(--ls-secondary-cta);
  line-height: var(--lh-body-large);
  width: var(--pricing-feature-width);
  text-align: left;
}

.subscription-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: var(--pricing-input-width);
}

.subscription-card-amount {
  font-size: var(--text-price);
  font-weight: var(--font-bold);
  color: var(--navy);
  line-height: var(--lh-price);
  letter-spacing: var(--ls-secondary-cta);
}

.subscription-card-period {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--navy);
  line-height: var(--line-height-tight);
}

.subscription-card-spacer {
  height: var(--pricing-spacer-height-sm);
}

.subscription-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: var(--pricing-feature-width);
  flex: 1;
}

.subscription-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--navy);
  line-height: var(--lh-list);
}

.subscription-feature-icon {
  width: var(--icon-size-check);
  height: var(--icon-size-check);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.subscription-features-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: var(--pricing-feature-width);
  margin: calc(-1 * var(--space-1)) 0 0 calc(var(--icon-size-check) + var(--space-2));
  padding: 0;
}

.subscription-feature-sub {
  position: relative;
  padding-left: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--gray-mid);
  line-height: var(--lh-list);
}

.subscription-feature-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-mid);
}

.subscription-card-subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--navy);
  opacity: 0.6;
  width: var(--pricing-feature-width);
  text-align: left;
  line-height: var(--lh-body);
}

/* Fixed-height slot directly under the price. Reserved on every card
   so adding a subtitle to one tier (e.g. Teams' "Min 3 facilitators")
   doesn't push the feature list down on its neighbours. The line-height
   is matched to .subscription-feature so an empty slot occupies exactly
   one feature row's worth of vertical space. */
.subscription-card-note-slot {
  min-height: calc(var(--text-base) * var(--lh-list));
  width: var(--pricing-feature-width);
  /* Cancel the parent flex gap so the note (e.g. "100 credits" or
     "Min 3 facilitators") sits directly under the price instead of
     being pushed down a full row. */
  margin-top: calc(-1 * var(--pricing-card-internal-gap));
}

.subscription-card-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--navy);
  line-height: var(--lh-list);
}

.subscription-card-featured {
  border: 2px solid var(--navy);
  position: relative;
}

.subscription-coming-soon {
  pointer-events: none;
  cursor: default;
}

.subscription-card-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-height: 1px;
  padding: var(--pricing-cta-wrap-padding) 0;
  width: 100%;
}

.feature-comparison {
  max-width: 900px;
  margin: var(--space-12) auto 0;
  padding: 0 var(--space-4);
}

.feature-comparison-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-8);
}

.feature-comparison-wrap {
  overflow-x: auto;
}

.feature-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  color: var(--navy);
}

.feature-comparison-table th,
.feature-comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-comparison-table th:first-child,
.feature-comparison-table td:first-child {
  text-align: left;
}

.feature-comparison-feature-col {
  width: 40%;
}

.feature-comparison-table th {
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.feature-comparison-highlighted {
  background: rgba(0, 0, 0, 0.02);
}

.feature-comparison-category td {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  padding-top: var(--space-6);
  border-bottom: none;
}

.feature-check {
  color: var(--navy);
  font-size: var(--text-lg);
}

.feature-dash {
  opacity: 0.25;
  font-size: var(--text-lg);
}

.feature-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 1100px) {
  .credits-grid,
  .subscription-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .pricing-heading .section-title {
    font-size: var(--text-5xl);
  }

  .credits-grid,
  .subscription-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-8) 0;
  }

  .credit-card,
  .subscription-card {
    width: 100%;
    max-width: var(--pricing-card-width);
  }

  .pricing-stripe-text {
    font-size: var(--text-lg);
    line-height: 1.6;
    padding: 0 var(--space-4);
  }

  .stripe-badge {
    height: var(--space-20);
  }
}

@media (max-width: 500px) {
  .pricing-heading .section-title {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  /* Smaller pill-tab toggles on pricing (and globally at this width) */
  .pill-tab {
    font-size: 13px;
    padding: 7px 14px;
    height: auto;
    min-height: 0;
  }

  /* Tighter grid gaps + horizontal padding */
  .pricing-page .credits-grid,
  .pricing-page .subscription-grid {
    gap: var(--space-4);
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Tighter card padding */
  .pricing-page .credit-card,
  .pricing-page .subscription-card {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  /* Smaller price display (61px → 40px) */
  .pricing-page .credit-card-amount,
  .pricing-page .subscription-card-amount {
    font-size: 2.5rem;
  }

  /* Smaller plan name heading */
  .pricing-page .subscription-card-name {
    font-size: var(--text-2xl);
  }

  /* Remove enforced min-height — cards shrink to their content */
  .pricing-page .subscription-card {
    min-height: 0;
  }

  /* Shrink internal spacers */
  .pricing-page .credit-card-spacer {
    min-height: 24px;
  }
  .pricing-page .subscription-card-spacer {
    height: 16px;
  }
}
