/* ============================================================
   Sub-page styles — package detail, checkout, coverage, etc.
   Extends styles.css
   ============================================================ */

/* ─── Page hero (compact, not full-screen) ─── */
.page-hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.page-hero--package {
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, var(--brand-glow-2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-bottom: 1px solid var(--line);
}

/* ─── Page hero with video background ─── */
.page-hero--video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 75vh, 800px);
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 12vw, 160px);
}
.page-hero--video .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero--video .page-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(0.85) contrast(1.05);
}
.page-hero--video .page-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(213,21,31,0.15), transparent 60%),
    linear-gradient(180deg, rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.78) 60%, var(--bg-0) 100%);
  pointer-events: none;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.page-hero__left { min-width: 0; }
.page-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.page-hero__breadcrumbs a { color: var(--ink-2); transition: color 200ms; }
.page-hero__breadcrumbs a:hover { color: var(--brand-bright); }
.page-hero__breadcrumbs svg { opacity: 0.5; }
.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(213,21,31,0.12);
  border: 1px solid var(--brand-deep);
  color: var(--brand-bright);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.page-hero__lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
  margin: 0 0 32px;
}
.page-hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Right side price card ─── */
.price-card {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, rgba(213,21,31,0.10) 0%, var(--bg-2) 60%);
  border: 1px solid var(--brand);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 24px 80px var(--brand-glow-2);
}
.price-card__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--brand-bright);
  margin-bottom: 4px;
}
.price-card__sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-card__price .price-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-card__alt {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.price-card__features li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0 6px 22px;
  position: relative;
}
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 14px;
  background: var(--brand-glow-2);
  border: 1px solid var(--brand-deep);
  border-radius: 50%;
}
.price-card__features li::after {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--brand-bright);
  border-bottom: 1.5px solid var(--brand-bright);
  transform: rotate(45deg);
}

/* ─── Spec strip ─── */
.specs {
  padding: 64px 0;
  background: var(--bg-1);
  border-block: 1px solid var(--line);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.spec {
  padding: 0 16px;
  position: relative;
}
.spec:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px; top: 8px;
  width: 1px; height: calc(100% - 16px);
  background: var(--line);
}
.spec__icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--brand-glow-2);
  border: 1px solid var(--brand-deep);
  color: var(--brand-bright);
}
.spec__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.spec__unit { font-size: 18px; color: var(--ink-3); margin-left: 2px; }
.spec__label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ─── Channel grid ─── */
.channels {
  padding: var(--section-pad) 0;
  background: var(--bg-0);
}
.channels__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.channels__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.channels__count {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  margin-left: 8px;
}
.channels__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 280px;
  max-width: 100%;
}
.channels__search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
}
.channels__search input::placeholder { color: var(--ink-3); }
.channels__search svg { color: var(--ink-3); }

.channels__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.channels__tab {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 200ms var(--ease);
  font-family: var(--f-body);
}
.channels__tab:hover { color: var(--ink); }
.channels__tab.active {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 4px 16px var(--brand-glow);
}
.channels__tab__count {
  margin-left: 6px;
  font-size: 11px;
  color: inherit;
  opacity: 0.65;
  font-family: var(--f-mono);
}

.channels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 200ms var(--ease);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.channel-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  padding: 8px 10px;
  line-height: 1.05;
  position: relative;
  overflow: hidden;
}
.channel-card__logo--img {
  background: #FAFAFC;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  text-shadow: none;
}
.channel-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.channel-card__logo--text {
  /* fallback to colored block when img fails */
}
.channel-card__name {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.channel-card__badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.ch-badge {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.ch-badge--hd { background: rgba(213,21,31,0.15); color: var(--brand-bright); border-color: var(--brand-deep); }
.ch-badge--4k { background: rgba(92,43,255,0.15); color: #B6A0FF; border-color: #5C2BFF; }
.ch-badge--star { background: rgba(255,193,7,0.15); color: #FFB300; border-color: #F57C00; }
.channel-card.featured { border-color: var(--brand); box-shadow: 0 0 24px var(--brand-glow-2); }

/* ─── Comparison table ─── */
.compare {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
}
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare__table th, .compare__table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.compare__table th { font-weight: 500; color: var(--ink-3); background: var(--bg-1); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.compare__table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare__table th:first-child, .compare__table td:first-child { text-align: left; color: var(--ink-2); }
.compare__col--current { background: rgba(213,21,31,0.06); }
.compare__col--current th { color: var(--brand-bright); }
.compare__price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.compare__check { color: var(--green); font-size: 18px; }
.compare__cross { color: var(--ink-4); font-size: 18px; }

/* ─── Sticky bottom bar (mobile + always-visible CTA) ─── */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 80;
  background: rgba(7,8,10,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line-2);
  padding: 14px 0;
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-cta__price strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}
.sticky-cta__price small {
  font-size: 12px;
  color: var(--ink-3);
}

/* ─── FAQ accordion ─── */
.faq {
  padding: var(--section-pad) 0;
  background: var(--bg-0);
}
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms;
}
.faq__q:hover { color: var(--brand-bright); }
.faq__q__icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: all 200ms var(--ease);
}
.faq__item.open .faq__q__icon { background: var(--brand); color: var(--ink); border-color: var(--brand); transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.faq__item.open .faq__a { max-height: 400px; padding-bottom: 22px; }

/* ─── Page generic content ─── */
.page-section {
  padding: var(--section-pad) 0;
}
.page-section + .page-section { padding-top: 0; }
.page-section__head {
  margin-bottom: 48px;
}
.page-section__head--center { text-align: center; }

/* ─── Checkout wizard ─── */
.wizard {
  padding: clamp(48px, 8vw, 120px) 0;
  background: var(--bg-0);
  min-height: calc(100vh - 200px);
}
.wizard__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.wizard__steps {
  display: flex;
  margin-bottom: 48px;
  padding: 0;
  list-style: none;
  gap: 8px;
}
.wizard__step {
  flex: 1;
  position: relative;
  padding-top: 32px;
}
.wizard__step__dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  z-index: 2;
}
.wizard__step.active .wizard__step__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 16px var(--brand-glow);
}
.wizard__step.done .wizard__step__dot {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.wizard__step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.wizard__step:last-child::after { display: none; }
.wizard__step.done::after { background: var(--green); }
.wizard__step__label {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.wizard__step.active .wizard__step__label { color: var(--ink); font-weight: 500; }

.wizard__panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
}
.wizard__panel h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.wizard__panel > p {
  color: var(--ink-3);
  margin: 0 0 32px;
}

.wizard__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  justify-content: space-between;
}

.field {
  display: block;
  margin-bottom: 20px;
}
.field__label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.field__input, .field__select, .field__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms;
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow-2);
}
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.option-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  text-align: left;
}
.option-card:hover { border-color: var(--line-3); }
.option-card.selected {
  border-color: var(--brand);
  background: rgba(213,21,31,0.06);
  box-shadow: 0 0 0 1px var(--brand), 0 8px 24px var(--brand-glow-2);
}
.option-card__title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.option-card__price {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--brand-bright);
}
.option-card__desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* Cart summary sidebar */
.cart {
  position: sticky;
  top: 96px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.cart__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cart__line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--ink-2);
}
.cart__line--total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.cart__line--alt {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ─── Map full page ─── */
.coverage-page__map-wrap {
  height: clamp(500px, 70vh, 800px);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card { position: static; }
  .specs__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .spec:not(:last-child)::after { display: none; }
  .spec:nth-child(2n)::after { display: none; }
  .wizard__inner { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 640px) {
  .specs__grid { grid-template-columns: 1fr; }
  .wizard__panel { padding: 24px; }
  .channels__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .channel-card__logo { font-size: 14px; height: 48px; }
  .compare__table th, .compare__table td { padding: 10px 8px; font-size: 12px; }
  .compare__price { font-size: 16px; }
  .field__row { grid-template-columns: 1fr; }
}
