/* Pricing page. Loads after styles.css. */

/* Category jump links */
.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.jump a:hover {
  background: rgba(76, 201, 240, 0.14);
}

/* How pricing works */
.how-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 940px) {
  .how-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

.how-text {
  max-width: 58ch;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.tier-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.tier-scale li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-scale .bar {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(155, 92, 255, 0.55));
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.25);
}

.tier-label {
  min-height: 2.6em;
  font-family: var(--display);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

/* Phones: six columns are too narrow for the labels, so lay the bars out sideways. */
@media (max-width: 599px) {
  .tier-scale {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tier-scale li {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }

  .tier-scale .bar {
    width: calc(var(--h) * 2.2);
    height: 10px;
    background: linear-gradient(90deg, rgba(155, 92, 255, 0.55), var(--accent));
  }

  .tier-label {
    width: 7.5em;
    min-height: 0;
    font-size: 0.6875rem;
  }
}

.tier-tiny { --h: 12px; --o: 0.4; }
.tier-small { --h: 22px; --o: 0.52; }
.tier-medium { --h: 36px; --o: 0.64; }
.tier-large { --h: 52px; --o: 0.76; }
.tier-extra-large { --h: 72px; --o: 0.88; }
.tier-titanic { --h: 96px; --o: 1; }

.pay-box {
  padding: 24px 22px;
}

.pay-box h3 {
  margin-bottom: 14px;
}

.calc {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calc label {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.calc input {
  width: 100%;
  max-width: 240px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(3, 6, 12, 0.7);
  color: var(--text);
  font: 600 1.125rem var(--body);
  font-variant-numeric: tabular-nums;
}

.calc-out {
  margin-top: 6px;
  color: var(--muted);
}

.calc-out output {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
}

.pay-example {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Tables */
.pay-table,
.price-table,
.terms-table {
  width: 100%;
  border-collapse: collapse;
}

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

.pay-table th,
.pay-table td {
  padding: 10px 12px 10px 0;
  font-size: 0.9375rem;
}

thead th {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.price-table thead th,
.terms-table thead th {
  background: rgba(76, 201, 240, 0.06);
}

tbody th {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-table td,
.terms-table td {
  font-size: 0.9375rem;
  color: var(--muted);
}

.price-table tbody tr:last-child > *,
.terms-table tbody tr:last-child > * {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: rgba(76, 201, 240, 0.045);
}

.tier-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--accent);
  opacity: var(--o, 1);
  transform: translateY(-1px) rotate(45deg);
}

.price {
  display: block;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}

.what {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
}

.terms-table tbody th {
  width: 9.5em;
}

/* Phones: each tier becomes a card with labelled lines. */
@media (max-width: 759px) {
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table tbody th,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .price-table tbody tr:last-child {
    border-bottom: 0;
  }

  .price-table tbody th {
    padding: 0 0 10px;
    border: 0;
  }

  .price-table td {
    display: grid;
    grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr);
    gap: 12px;
    padding: 6px 0;
    border: 0;
  }

  .price-table td::before {
    content: attr(data-label);
    padding-top: 3px;
    font-family: var(--display);
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--accent);
  }

  .price {
    white-space: normal;
  }

  .terms-table thead {
    display: none;
  }

  .terms-table tbody th {
    width: 6.5em;
    white-space: normal;
  }
}

/* UI add-ons */
.addons-title {
  margin: 32px 0 14px;
}

.addons {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .addons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.addons li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.addons strong {
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--accent);
}

.cta {
  background: linear-gradient(180deg, rgba(76, 201, 240, 0.05), transparent);
}
