/**
 * Pricing Cards Block — Scoped Styles
 *
 * All classes prefixed with `pc-` to avoid conflicts with existing
 * evaluation-table, landing-page, or theme styles.
 *
 * Ported from: prototype-pricing-module.html (approved 2026-03-16)
 * Updated: 2026-03-16 — wider grid, larger card fonts, more vertical spacing
 */

/* === Section Container === */
.pc-section {
  width: 100%;
  padding: 64px 0;
}

.pc-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* === Section Heading === */
/* Heading now uses .title.title--2.titlebox__title from the theme.
   We only force white color here to ensure it works on the dark bg. */
.pc-section .titlebox__title {
  color: #fff !important;
  text-align: center;
  margin-bottom: 0;
}

/* === Account Size Selector === */
.pc-sizes {
  width: 100%;
  max-width: 1100px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #008DF3;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  gap: 8px;
}

.pc-size-btn {
  display: block;
  width: 100%;
  padding: 18px 16px;
  border-radius: 64px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
  background: transparent;
  border: none;
  transition: all 0.3s ease-in-out;
  font-family: inherit;
}

.pc-size-btn.active,
.pc-size-btn:hover {
  background: #008DF3;
  border-radius: 12px;
  transform: scale(1.05);
  font-weight: 700;
}

/* === Plan Cards Grid === */
.pc-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin-top: 0;
}

/* === Individual Plan Card === */
.pc-plan {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(0, 141, 243, 0.2);
  background: rgba(255, 255, 255, 0.02);
  overflow: visible;
  transition: opacity 0.3s, transform 0.3s;
}

.pc-plan-inner {
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Featured card */
.pc-plan--featured {
  border-color: #008DF3;
  box-shadow: 0 4px 24px rgba(0, 141, 243, 0.18);
}

.pc-plan--featured .pc-plan-inner {
  padding-top: 40px;
}

/* Unavailable card */
.pc-plan--unavailable {
  opacity: 0.35;
  pointer-events: none;
}

/* === Plan Name === */
.pc-plan-name {
  font-size: 26px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.pc-plan--featured .pc-plan-name {
  color: #008DF3;
}

/* === Plan Tagline === */
.pc-plan-tag {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === Price === */
.pc-plan-fee {
  font-size: 52px;
  font-weight: 700;
  color: #008DF3;
  line-height: 1;
  margin-bottom: 4px;
}

.pc-plan-once {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.pc-plan-upgrade {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.pc-plan-upgrade strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* === Spec Rows === */
.pc-plan-specs {
  list-style: none;
  width: 100%;
  margin: 0 0 24px 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-plan-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: 17px;
}

.pc-plan-specs li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.pc-spec-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.pc-spec-val {
  color: #fff;
  font-weight: 600;
}

/* === CTA Button === */
.pc-plan-cta {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  background: #008DF3;
  border: 1.5px solid transparent;
  color: #fff;
  font-family: inherit;
}

.pc-plan-cta:hover {
  background: #1a9cff;
  color: #fff;
  text-decoration: none;
}

/* === Footnote === */
.pc-footnote {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 600px;
  margin: 0;
}

/* === Tooltip Trigger === */
.pc-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.pc-tooltip-trigger:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Tooltip bubble */
.pc-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2d45;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 141, 243, 0.25);
  width: 260px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}

/* Arrow */
.pc-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a2d45;
}

/* === Swipe hint (hidden on desktop) === */
.pc-swipe-hint {
  display: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin: 0;
}

/* ============================================================
   Responsive: Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .pc-plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .pc-size-btn {
    font-size: 20px;
    padding: 14px 12px;
  }

  .pc-plan-fee {
    font-size: 46px;
  }
}

/* ============================================================
   Responsive: Mobile
   ============================================================ */
@media (max-width: 600px) {
  .pc-container {
    padding: 0 16px;
    gap: 28px;
  }

  /* Size selector: wrap to 2 rows (3 per row) */
  .pc-sizes {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
    justify-content: center;
  }

  .pc-size-btn {
    flex: 0 0 calc(33.333% - 4px);
    width: auto;
    min-width: 0;
    padding: 12px 8px;
    font-size: 16px;
  }

  /* Plan cards: horizontal scroll */
  .pc-plans {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 20px 4px 24px;
    scrollbar-width: none;
  }

  .pc-plans::-webkit-scrollbar {
    display: none;
  }

  .pc-plan {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .pc-plan--featured {
    flex: 0 0 85%;
  }

  .pc-plan--unavailable {
    display: none;
  }

  .pc-plan-fee {
    font-size: 42px;
  }

  .pc-swipe-hint {
    display: block;
  }
}
