/* campow.tv skin. */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--accent-light); }
.nav { display: flex; gap: 16px 24px; flex-wrap: wrap; }
.nav a { color: var(--text-mute); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }

.hero {
  text-align: center;
  padding-block: 72px 40px;
}
.hero .eyebrow {
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero h1 { margin-block: 12px 20px; }
.hero .lede {
  max-width: 620px;
  margin-inline: auto;
  font-size: 1.15rem;
}
.hero .ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---- The channel-flip illustration --------------------------------------------------
 *
 * A CSS-only crossfade standing in for a recorded screen capture. Built because a real
 * capture needs the app running and a build pipeline of its own -- worth doing, tracked
 * separately -- and a static "how it works" bullet list is exactly the wrong container for
 * an idea that is unusual until it is seen. This says the same thing honestly: it is an
 * illustration of the mechanism, not a screenshot, and is captioned as one below it.
 *
 * Numbers and shapes are not decorative guesses: the five-digit zero-padded channel number
 * and the "CH " prefix are lib/channel-catalog.ts's actual format
 * (formatChannelNumber = String(n).padStart(5, "0")), so a viewer who has used the app
 * recognises this rather than meeting a second, invented visual language.
 */
.tv-demo {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.tv-demo-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 26px;
  opacity: 0;
  animation: tv-demo-cycle 9s infinite;
}
.tv-demo-frame.f1 { animation-delay: -0s; background: radial-gradient(120% 100% at 20% 0%, #14243f 0%, var(--bg-raised) 60%); }
.tv-demo-frame.f2 { animation-delay: -3s; background: radial-gradient(120% 100% at 80% 0%, #142a24 0%, var(--bg-raised) 60%); }
.tv-demo-frame.f3 { animation-delay: -6s; background: radial-gradient(120% 100% at 50% 100%, #241a30 0%, var(--bg-raised) 60%); }

@keyframes tv-demo-cycle {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}

.tv-demo-channel {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.tv-demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--live);
  font-weight: 600;
}
.tv-demo-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
}
.tv-demo-mountain { opacity: 0.5; }
.tv-demo-name { font-size: 1.6rem; font-weight: 700; }
.tv-demo-place { color: var(--text-mute); font-size: 0.95rem; }

.tv-demo-caption {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .tv-demo-frame { animation: none; opacity: 0; }
  .tv-demo-frame.f1 { opacity: 1; }
}

.tv-screenshot {
  max-width: 640px;
  margin: 32px auto 0;
}
.tv-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.tv-screenshot figcaption {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 10px;
}

.how-steps { counter-reset: step; margin-top: 40px; }
.how-steps li {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 20px;
}
.how-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--accent-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-steps p { margin: 0; color: var(--text-dim); }
.how-steps b { color: var(--text); }

.audience .cols {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
@media (min-width: 640px) { .audience .cols { grid-template-columns: repeat(3, 1fr); } }

.stores {
  text-align: center;
}
.store-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  min-width: 220px;
}
.store-badge:hover { border-color: var(--accent-light); }
.store-badge .platform { font-weight: 700; }
.store-badge .status { display: block; font-size: 0.85rem; color: var(--text-mute); }
.store-badge[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-mute); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
