/* assets/ss-price-index.css
 *
 * Extends the shared "ss-" design system in ss-homepage.css.
 */

.ss-price-index {
  --ss-navy: #12305c;
  --ss-blue: #2b6cb0;
  --ss-blue-dark: #215387;
  --ss-muted: rgba(14, 27, 42, .7);
  --ss-border: rgba(18, 48, 92, .14);
  --ss-alt-bg: rgba(18, 48, 92, .04);
  --ss-sand: #e8eef5;
  color: #1a202c;
}

.ss-price-index .ss-h2 {
  margin: 0 0 10px;
  color: var(--ss-navy);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 800;
}

.ss-price-index .ss-h3 {
  margin: 0 0 16px;
  color: var(--ss-navy);
  font-size: 22px;
  font-weight: 750;
}

.ss-price-index .ss-muted {
  margin: 0;
  color: var(--ss-muted);
  max-width: 62ch;
}

/* Hero: full-bleed featured image + navy wash, brand-first, one lead number */
.ss-pi-hero {
  position: relative;
  padding: clamp(120px, 16vw, 160px) 0 72px;
  color: #fff;
  overflow: hidden;
}

.ss-pi-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #12305c;
  background-image:
    linear-gradient(100deg, rgba(18, 48, 92, .92) 0%, rgba(18, 48, 92, .78) 42%, rgba(18, 48, 92, .45) 100%),
    var(--ss-hero-image, none);
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

.ss-pi-hero__inner {
  position: relative;
  z-index: 1;
}

.ss-pi-hero__copy {
  max-width: 34rem; /* ~544px: keeps brand + headline + stat as one column */
}

.ss-pi-brand {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ss-pi-edition {
  color: rgba(255, 255, 255, .72);
}

.ss-pi-title {
  margin: 8px 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  max-width: 16ch;
}

.ss-pi-lede {
  margin: 0 0 28px;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.ss-pi-stat {
  display: inline-block;
  margin: 0 0 28px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.ss-pi-stat__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.ss-pi-stat__value {
  margin: 0;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ss-pi-stat__meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.ss-pi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ss-pi-hero .ss-btn--primary {
  background: #fff;
  color: #12305c;
}

.ss-pi-hero .ss-btn--primary:hover,
.ss-pi-hero .ss-btn--primary:focus,
.ss-pi-hero .ss-btn--primary:active {
  background: #f0f4fa;
  color: #12305c;
}

.ss-pi-btn--on-dark {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .35) !important;
}

.ss-pi-btn--on-dark:hover,
.ss-pi-btn--on-dark:focus {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.ss-pi-missing {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
}

/* Tables */
.ss-pi-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ss-border);
  border-radius: 16px;
  background: #fff;
}

.ss-pi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
}

.ss-pi-table th,
.ss-pi-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ss-border);
}

.ss-pi-table thead th {
  background: var(--ss-alt-bg);
  color: var(--ss-navy);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ss-pi-table tbody th {
  color: var(--ss-navy);
  font-weight: 700;
}

.ss-pi-table tbody tr:last-child th,
.ss-pi-table tbody tr:last-child td {
  border-bottom: 0;
}

.ss-pi-table a {
  color: var(--ss-blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ss-pi-sea {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ss-muted);
}

.ss-pi-primary {
  display: block;
  font-weight: 750;
  color: var(--ss-navy);
}

.ss-pi-secondary {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ss-muted);
}

/* Kind cards: interaction-free summary blocks, not marketing cards */
.ss-pi-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ss-pi-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.ss-pi-card {
  padding: 22px 20px;
  border-top: 3px solid var(--ss-navy);
  background: #fff;
}

.ss-section--alt .ss-pi-card {
  background: #fff;
  box-shadow: 0 0 0 1px var(--ss-border);
}

.ss-pi-card__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 750;
  color: var(--ss-navy);
}

.ss-pi-card__value {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ss-navy);
  line-height: 1;
}

.ss-pi-card__meta,
.ss-pi-card__range {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ss-muted);
}

.ss-pi-split {
  margin-top: 40px;
}

.ss-pi-method {
  max-width: 760px;
}

.ss-pi-method__list {
  margin: 0 0 22px;
  padding-left: 1.2em;
  color: #2d3748;
  line-height: 1.6;
}

.ss-pi-method__list li {
  margin: 0 0 10px;
}

.ss-pi-method__list code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ss-alt-bg);
}

.ss-pi-method__note {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--ss-navy);
  background: var(--ss-alt-bg);
  color: var(--ss-muted);
  line-height: 1.55;
}

.ss-pi-method__actions {
  margin: 0;
}

.ss-price-index .ss-cta {
  background: var(--ss-navy);
  color: #fff;
}

.ss-price-index .ss-cta .ss-h2,
.ss-price-index .ss-cta .ss-muted {
  color: #fff;
}

.ss-price-index .ss-cta .ss-muted {
  opacity: 0.85;
  margin-bottom: 22px;
}

.ss-price-index .ss-cta__inner {
  max-width: 640px;
}

@media (max-width: 900px) {
  .ss-pi-cards {
    grid-template-columns: 1fr;
  }

  .ss-pi-cards--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ss-pi-hero {
    padding-top: 110px;
  }

  .ss-pi-stat {
    display: block;
  }
}
