/* Pricing page — same Tesla/SpaceX language as the homepage */

.pricing-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pricing-nav {
  padding: 22px 40px 18px;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.pricing-page main {
  flex: 1 1 auto;
  width: 100%;
}

.pricing-hero {
  text-align: center;
  padding: 48px 24px 40px;
}

.pricing-hero h1 {
  font-weight: 300;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.pricing-hero p {
  margin-top: 18px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--mute-strong);
  letter-spacing: 0.01em;
}

/* ----- Tier cards ----- */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.tier {
  position: relative;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.25), 0 18px 50px rgba(0, 0, 0, 0.4);
}

.badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.tier h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-strong);
}

.tier.featured h2 { color: var(--white); }

.price {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
  vertical-align: 8px;
}

.tier-for {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute-strong);
  min-height: 2.9em;
}

.tier ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.tier li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--red);
}

/* ----- Compare ----- */
.compare,
.addons,
.faq {
  width: min(1180px, calc(100% - 40px));
  margin: 64px auto 0;
}

.compare h2,
.addons h2,
.faq h2 {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13px;
  line-height: 1.4;
}

.compare th,
.compare td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid rgba(60, 90, 154, 0.45);
}

.compare tbody th {
  font-weight: 500;
  color: var(--white);
  width: 22%;
  padding-left: 0;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  font-weight: 600;
  border-bottom: 0;
  padding-top: 16px;
}

.compare thead th:nth-child(3),
.compare tbody td:nth-child(3) {
  color: var(--white);
}

/* ----- Add-ons + FAQ ----- */
.addon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.addon-card {
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 28px 26px;
  height: 100%;
}
.addon-card.featured-addon {
  border-color: rgba(60, 90, 154, 0.7);
}
.addon-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.addon-price {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
}
.addon-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute-strong);
  max-width: 46em;
}
.addon-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.addon-card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.addon-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--red);
}

.faq dl {
  margin: 0;
  display: grid;
  gap: 22px;
}

.faq dt {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.faq dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute-strong);
  max-width: 42em;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  padding: 64px 24px 24px;
}

.pricing-page .site-footer {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .pricing-hero { padding: 56px 40px 52px; }
  .tiers {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    width: min(1180px, calc(100% - 80px));
  }
  .tier { padding: 36px 28px 32px; }
  .compare,
  .addons,
  .faq {
    width: min(1180px, calc(100% - 80px));
    margin-top: 80px;
  }
  .faq dl {
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
  }
  .addon-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

@media (max-width: 800px) {
  .pricing-nav { padding: 18px 20px 14px; }
  .pricing-hero { padding: 36px 20px 32px; }
  .tiers { width: min(1180px, calc(100% - 32px)); }
  .compare,
  .addons,
  .faq { width: min(1180px, calc(100% - 32px)); margin-top: 52px; }
  .tier-for { min-height: 0; }
  .pricing-cta { padding: 52px 24px 12px; }
  .pricing-cta .btn { width: min(320px, 100%); }
}


@media (max-width: 800px) {
  .table-wrap { overflow: visible; }
  .compare table { min-width: 0; font-size: 13px; }
  .compare thead { display: none; }
  .compare tbody th,
  .compare tbody td,
  .compare thead th {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }
  .compare tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .compare tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .compare tbody th {
    padding: 0 0 8px;
    font-weight: 600;
    color: var(--white);
  }
  .compare tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.86);
  }
  .compare tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
    flex: 0 0 auto;
  }
  .compare tbody td { text-align: right; }
  .compare tbody tr:last-child th,
  .compare tbody tr:last-child td { font-weight: 600; padding-top: 3px; }
  .compare tbody tr:last-child th { padding-top: 0; }
}
