/* TP-SPEC-PTV-001 public pages: /pricing and /about.

   Every rule is scoped under .tp-page, the root element of each page (App.razor renders one <body> for every
   route, so the scope sits on the page root rather than on body). Colours come only from tokens: the shared
   --tp-* vocabulary and this app's own --tv-* and --ptv-* surfaces. The HTML prototypes in
   Apps.PulseTV/prototypes inline this file verbatim; PrototypeParityTests keep the two identical. */

.tp-page {
  --tp-page-gap: 20px;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: var(--tv-text);
  font-family: var(--ptv-font-body);
}

.tp-page h1,
.tp-page h2,
.tp-page h3 {
  font-family: var(--ptv-font-display);
  color: var(--tv-text);
  margin: 0;
}

.tp-page p { margin: 0; }

.tp-page a:focus-visible,
.tp-page button:focus-visible,
.tp-page summary:focus-visible {
  outline: 3px solid var(--ptv-focus);
  outline-offset: 3px;
}

/* --- proposed-prices banner --- */
.tp-page .tp-banner {
  margin-bottom: var(--tp-page-gap);
  padding: 10px 14px;
  border: 1px solid var(--tp-gold-line);
  border-radius: var(--tp-radius-sm);
  background: var(--tp-gold-tint);
  color: var(--tp-accent-gold);
  font-size: 14px;
}

/* --- hero --- */
.tp-page .tp-hero { padding: 24px 0 8px; }

.tp-page .tp-eyebrow {
  margin-bottom: 10px;
  color: var(--tp-accent-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tp-page .tp-hero__title {
  max-width: 22ch;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.08;
}

.tp-page .tp-hero__lede {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--tv-text-dim);
  font-size: 17px;
  line-height: 1.55;
}

/* --- buttons and links: every control at least 44px --- */
.tp-page .tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tp-page .tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--tp-radius-pill);
  font-weight: 700;
  text-decoration: none;
}

.tp-page .tp-btn--primary { background: var(--ptv-primary-strong); color: var(--tp-white); }

.tp-page .tp-btn--primary:hover { background: var(--ptv-primary); }

.tp-page .tp-btn--ghost { border-color: var(--tv-fill-border); color: var(--tv-text); }

.tp-page .tp-btn--ghost:hover { border-color: var(--tv-hover-border); }

.tp-page .tp-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tv-link);
  font-weight: 600;
}

/* --- zone and billing switches --- */
.tp-page .tp-zone {
  margin: 28px 0 8px;
  padding: 18px;
  border: 1px solid var(--tv-hairline);
  border-radius: var(--tp-radius-md);
  background: var(--tv-surface);
}

.tp-page .tp-zone__title { font-size: 20px; }

.tp-page .tp-zone__note {
  margin: 6px 0 14px;
  color: var(--tv-text-dim);
  font-size: 14px;
}

.tp-page .tp-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 12px 12px 0;
  padding: 4px;
  border: 1px solid var(--tv-control-border);
  border-radius: var(--tp-radius-pill);
  background: var(--tv-control-fill);
}

.tp-page .tp-toggle__option {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--tp-radius-pill);
  background: transparent;
  color: var(--tv-text-dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tp-page .tp-toggle__option[aria-pressed="true"] {
  background: var(--ptv-primary-strong);
  color: var(--tp-white);
}

/* --- sections --- */
.tp-page .tp-section { padding-top: 48px; }

.tp-page .tp-section__title { font-size: clamp(24px, 4vw, 34px); }

.tp-page .tp-section__lede {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--tv-text-dim);
  font-size: 16px;
  line-height: 1.55;
}

.tp-page .tp-section__more { margin-top: 12px; }

.tp-page .tp-section .tp-toggle { margin-top: 18px; }

/* --- cards --- */
.tp-page .tp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.tp-page .tp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--tv-hairline);
  border-radius: var(--tp-radius-md);
  background: var(--tv-surface);
}

.tp-page .tp-card--highlight {
  border-color: var(--tp-accent-gold);
  background: var(--tv-surface-2);
}

.tp-page .tp-card__flag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-gold-tint);
  color: var(--tp-accent-gold);
  font-size: 12px;
  font-weight: 700;
}

.tp-page .tp-card__title { font-size: 20px; }

.tp-page .tp-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 28px;
  font-weight: 700;
}

.tp-page .tp-card__per {
  color: var(--tv-text-dim);
  font-size: 14px;
  font-weight: 500;
}

.tp-page .tp-card__saving {
  color: var(--tp-accent-gold);
  font-size: 14px;
  font-weight: 600;
}

.tp-page .tp-card__body {
  color: var(--tv-text-dim);
  font-size: 15px;
  line-height: 1.5;
}

.tp-page .tp-price--tbc,
.tp-page .tp-price--muted {
  color: var(--tv-text-faint);
  font-size: 15px;
  font-weight: 600;
}

.tp-page .tp-compare {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--tp-accent-gold);
  background: var(--tv-fill);
  color: var(--tv-text);
  line-height: 1.5;
}

.tp-page .tp-soon {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 3px 10px;
  border: 1px solid var(--tv-fill-border);
  border-radius: var(--tp-radius-pill);
  color: var(--tv-text-dim);
  font-size: 13px;
  font-weight: 700;
}

/* --- tables --- */
.tp-page .tp-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.tp-page .tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tp-page .tp-table caption {
  caption-side: top;
  padding-bottom: 8px;
  color: var(--tv-text-dim);
  font-size: 13px;
  text-align: left;
}

.tp-page .tp-table th,
.tp-page .tp-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--tv-hairline);
  text-align: left;
  vertical-align: top;
}

.tp-page .tp-table thead th {
  color: var(--tv-text-dim);
  font-size: 13px;
  font-weight: 600;
}

.tp-page .tp-table--compact th,
.tp-page .tp-table--compact td { padding: 8px 6px; }

.tp-page [data-access="Included"],
.tp-page [data-access="Yes"],
.tp-page [data-access="IncludedOnIsland"] { color: var(--tv-text); font-weight: 600; }

.tp-page [data-access="Discount"] { color: var(--tp-accent-gold); font-weight: 600; }

.tp-page [data-access="No"],
.tp-page [data-access="Buy"] { color: var(--tv-text-faint); }

/* The matrix is a table from tablet width up; below it, one card per plan. Both come from the same data. */
.tp-page .tp-matrix { display: none; }

.tp-page .tp-matrix-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tp-page .tp-unlocks { margin: 0; }

.tp-page .tp-unlocks__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tv-hairline);
  font-size: 14px;
}

.tp-page .tp-unlocks__row dt { color: var(--tv-text-dim); }

.tp-page .tp-unlocks__row dd { margin: 0; text-align: right; }

/* --- questions --- */
.tp-page .tp-faq { margin-top: 18px; }

.tp-page .tp-faq__item { border-bottom: 1px solid var(--tv-hairline); }

.tp-page .tp-faq__item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
}

.tp-page .tp-faq__item p {
  padding-bottom: 14px;
  color: var(--tv-text-dim);
  line-height: 1.55;
}

.tp-page .tp-placeholder {
  padding: 10px 12px;
  border: 1px dashed var(--tv-warn);
  border-radius: var(--tp-radius-sm);
  color: var(--tv-warn);
}

/* --- about: steps --- */
.tp-page .tp-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--tv-text-dim);
  line-height: 1.55;
}

.tp-page .tp-steps__item strong { color: var(--tv-text); }

/* --- closing call to action and the family links --- */
.tp-page .tp-cta {
  margin-top: 56px;
  padding: 28px 20px;
  border-radius: var(--tp-radius-lg);
  background: var(--tv-surface-2);
}

.tp-page .tp-eco {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.tp-page .tp-eco__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--tv-fill-border);
  border-radius: var(--tp-radius-md);
  color: var(--tv-text);
  font-weight: 700;
  text-decoration: none;
}

.tp-page .tp-eco__link span {
  color: var(--tv-text-dim);
  font-size: 13px;
  font-weight: 500;
}

.tp-page .tp-eco__link:hover { border-color: var(--tv-hover-border); }

/* --- pictures: split hero, bands, card images and the strip of what's on --- */
.tp-page .tp-media {
  margin: 0;
}

.tp-page .tp-media img,
.tp-page .tp-card__media img,
.tp-page .tp-genre img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tp-page .tp-media img { border-radius: var(--tp-radius-lg); }

.tp-page .tp-hero--split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.tp-page .tp-media--hero img { aspect-ratio: 16 / 9; }

.tp-page .tp-media--band { margin-top: 20px; }

.tp-page .tp-media--band img { aspect-ratio: 21 / 9; }

.tp-page .tp-card__media {
  margin: -20px -20px 6px;
}

.tp-page .tp-card__media img {
  aspect-ratio: 4 / 3;
  border-radius: var(--tp-radius-md) var(--tp-radius-md) 0 0;
}

.tp-page .tp-media-pair {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tp-page .tp-media-pair img { aspect-ratio: 4 / 3; }

.tp-page .tp-genres { margin-top: 28px; }

.tp-page .tp-genres__label {
  margin-bottom: 12px;
  color: var(--tv-text-dim);
  font-size: 14px;
  font-weight: 600;
}

.tp-page .tp-genres__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-page .tp-genre {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--tp-radius-md);
}

.tp-page .tp-genre img { aspect-ratio: 16 / 9; }

.tp-page .tp-genre figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 10px 8px;
  background: linear-gradient(to top, var(--tv-tile-scrim), transparent);
  color: var(--tp-white);
  font-size: 14px;
  font-weight: 700;
}

/* --- Buy now (spec §6.5) --- */
.tp-page .tp-buy {
  align-self: flex-start;
  margin-top: auto;
}

.tp-page .tp-buy__error,
.tp-page .tp-buy__status {
  color: var(--tp-accent-gold);
  font-size: 14px;
}

.tp-page .tp-buy__status {
  margin-bottom: var(--tp-page-gap);
}

@media (min-width: 768px) {
  .tp-page .tp-hero--split { grid-template-columns: 1.05fr 1fr; gap: 36px; }

  .tp-page .tp-media-pair { grid-template-columns: repeat(2, 1fr); }

  .tp-page .tp-genres__list { grid-template-columns: repeat(3, 1fr); }

  .tp-page { padding: 32px 28px 72px; }

  .tp-page .tp-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  .tp-page .tp-matrix { display: table; }

  .tp-page .tp-matrix-cards { display: none; }

  .tp-page .tp-eco { grid-template-columns: repeat(3, 1fr); }

  .tp-page .tp-cta { padding: 40px; }
}
