/* Zapp Player homepage.
   Direction: the living room at 20:15. One lamp on the wall, the TV in its light,
   the printed TV guide as the reference for type and rhythm.
   Signature: the red now-line from Zapp's own programme guide. */

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: 0.01em;
  color: var(--color-muted);
}

.eyebrow-accent {
  color: var(--color-ink);
}

.eyebrow-accent::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: var(--space-xs);
  vertical-align: 0.3em;
  background: var(--color-accent);
}

.section {
  padding-block: clamp(var(--space-3xl), 10vw, 144px) 0;
}

/* Section headings: the same serif voice, set differently in every section */

.programme-copy h2,
.cinema-head h2,
.setup-head h2,
.privacy-copy h2,
.price-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.4vw + 0.6rem, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin-top: var(--space-md);
  max-width: 46ch;
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.55;
}

h3 {
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.fineprint {
  margin-top: var(--space-lg);
  max-width: 72ch;
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 0.35em;
}

.text-link:hover {
  text-decoration-color: var(--color-accent);
}

.rule-list {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.rule-list li {
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.icon-resume {
  display: none;
}

.is-paused .icon-pause {
  display: none;
}

.is-paused .icon-resume {
  display: block;
}

/* ---------- Hero: one scene, the TV in the lamp light ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(var(--space-2xl), 8vw, 112px);
  overflow: clip;
}

.hero-scene {
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background: url("/img/hero-light.webp") 72% 30% / cover no-repeat;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, var(--color-deep) 0%, var(--color-deep) 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, var(--color-deep) 0%, var(--color-deep) 62%, transparent 100%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-paper) 0%, var(--color-scrim) 34%, var(--color-scrim-clear) 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2xl);
  min-height: min(680px, calc(100svh - 220px));
}

.hero-copy {
  animation: rise 500ms var(--ease-out) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 4.2vw + 0.5rem, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.nobr {
  white-space: nowrap;
}

.hero-lead {
  margin-top: var(--space-lg);
  max-width: 34rem;
  color: var(--color-ink-2);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

.hero-tour {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 0.35em;
}

.hero-tour:hover {
  text-decoration-color: var(--color-accent);
}

.hero-trust {
  margin-top: var(--space-lg);
  max-width: 34rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.hero-stage {
  position: relative;
  margin: 0;
  padding: 0 0 56px 16%;
  animation: rise 600ms 80ms var(--ease-out) both;
}

.hero-stage figure {
  margin: 0;
}

.tv-bezel {
  position: relative;
  padding: var(--space-xs);
  background: var(--color-bezel);
  border-radius: 12px;
  box-shadow: var(--highlight-top), var(--shadow-tv);
}

.tv-bezel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.hero-tv figcaption {
  margin-top: var(--space-md);
  text-align: right;
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 21%;
  min-width: 112px;
}

.phone-bezel {
  padding: var(--space-2xs);
  background: var(--color-bezel);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--color-rule-strong), var(--shadow-phone);
}

.phone-bezel img {
  width: 100%;
  aspect-ratio: 1080 / 2160;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

/* ---------- Ticker: the crawl at the foot of the screen ---------- */

.ticker-wrap {
  margin-top: var(--space-2xl);
}

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 60px;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-panel);
  box-shadow: var(--highlight-top);
  overflow: hidden;
}

.ticker-label {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 var(--space-lg);
  background: var(--color-paper-3);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

.ticker-label::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 2px;
  background: var(--color-accent);
}

.ticker-window {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-track ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-outlier);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.ticker-track li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-track li::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: var(--space-xl);
  border-radius: 1px;
  background: var(--color-accent);
}

/* Without script the list stands still on one line, faded at the edges. */
.ticker:not(.is-live) .ticker-track ul[aria-hidden] {
  display: none;
}

.ticker:not(.is-live) .ticker-track ul {
  padding-inline: var(--space-lg);
}

.ticker-window {
  -webkit-mask-image: linear-gradient(to right, transparent, var(--color-deep) 56px, var(--color-deep) calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, var(--color-deep) 56px, var(--color-deep) calc(100% - 56px), transparent);
}

.ticker.is-live .ticker-track {
  animation: crawl 44s linear infinite;
}

.ticker.is-live:hover .ticker-track,
.ticker.is-paused .ticker-track {
  animation-play-state: paused;
}

.ticker-clock {
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  border-left: var(--rule-hair) solid var(--color-rule);
  font-family: var(--font-outlier);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-2);
}

.ticker-toggle {
  display: grid;
  place-items: center;
  width: 60px;
  padding: 0;
  border: 0;
  border-left: var(--rule-hair) solid var(--color-rule);
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.ticker-toggle:hover {
  color: var(--color-ink);
  background: var(--color-wash);
}

.ticker-toggle svg {
  width: 16px;
  height: 16px;
}

.ticker-toggle:focus-visible {
  outline-offset: -4px;
}

.ticker-note {
  margin-top: var(--space-sm);
  text-align: right;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

@keyframes crawl {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Programme: the evening schedule beside one phone ---------- */

.programme-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-2xl);
}

.programme-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  margin: 0;
  padding-block: var(--space-xl) 0;
}

.programme-stage::before {
  content: "";
  position: absolute;
  inset: -6% -14% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--color-glow), var(--color-glow-soft) 55%, transparent);
}

.programme-screen {
  position: relative;
  width: min(100%, 400px);
  padding: var(--space-xs);
  background: var(--color-bezel);
  border-radius: 44px;
  box-shadow: inset 0 0 0 1px var(--color-rule-strong), var(--highlight-top), var(--shadow-tv);
}

.programme-screen::before {
  content: "";
  display: block;
  aspect-ratio: 9 / 16;
}

.programme-screen img {
  position: absolute;
  inset: var(--space-xs);
  width: calc(100% - 2 * var(--space-xs));
  height: calc(100% - 2 * var(--space-xs));
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms var(--ease-out), transform 900ms var(--ease-out);
}

.programme-screen img.is-on {
  opacity: 1;
  transform: none;
}

.programme-stage figcaption {
  margin-top: var(--space-md);
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.schedule {
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.schedule li {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.schedule button {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: var(--space-lg);
  row-gap: var(--space-2xs);
  width: 100%;
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.schedule button::before {
  content: "";
  position: absolute;
  top: var(--space-md);
  bottom: var(--space-md);
  left: 0;
  width: 2px;
  background: transparent;
  transition: background-color var(--dur-short) var(--ease-out);
}

.schedule .is-on button::before {
  background: var(--color-accent);
}

.slot-meta {
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: var(--space-3xs);
  padding-top: 0.35em;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-muted);
}

.slot-meta time {
  font-family: var(--font-outlier);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-2);
}

.slot-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 0.8vw + 1rem, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink-2);
  transition: color var(--dur-short) var(--ease-out);
}

.slot-text {
  max-width: 46ch;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  transition: color var(--dur-short) var(--ease-out);
}

.schedule button:hover .slot-title,
.schedule .is-on .slot-title,
.schedule .is-on .slot-meta time {
  color: var(--color-ink);
}

.schedule .is-on .slot-text {
  color: var(--color-ink-2);
}

.slot-bar {
  grid-column: 2;
  display: none;
  height: 2px;
  margin-top: var(--space-xs);
  border-radius: 1px;
  background: var(--color-rule);
  overflow: hidden;
}

.slot-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-ink-2);
  transform: scaleX(0);
  transform-origin: left;
}

.is-auto .slot-bar {
  display: block;
}

.is-auto .is-on .slot-bar i {
  animation: slot-fill 6.5s linear forwards;
}

.is-held .is-on .slot-bar i {
  animation-play-state: paused;
}

.programme-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-lg);
}

.programme-foot .fineprint {
  flex: 1 1 28ch;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-sm) 0 var(--space-xs);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}

.motion-toggle:hover {
  color: var(--color-ink);
  border-color: var(--color-rule-hover);
}

.motion-toggle svg {
  width: 14px;
  height: 14px;
}

@keyframes slot-fill {
  to { transform: scaleX(1); }
}

/* ---------- Film: the programme guide on the big screen ---------- */

.film-frame {
  margin: 0;
}

.film-surface {
  position: relative;
  padding: var(--space-xs);
  background: var(--color-bezel);
  border-radius: 14px;
  box-shadow: var(--highlight-top), var(--shadow-film);
}

.film-frame video,
.tour-preview-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-screen-off);
}

.tour-preview-media {
  position: relative;
}

.tour-preview-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-preview-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  background: var(--color-note);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 12px;
}

.tour-preview-note p {
  margin: 0;
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  color: var(--color-ink-2);
}

.tour-preview-note a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-md);
  border-radius: 8px;
  background: var(--color-pill-bg);
  color: var(--color-pill-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.tour-preview-note a:hover {
  background: var(--color-pill-hover);
  color: var(--color-pill-ink);
}

.film-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.film-frame figcaption span:first-child {
  color: var(--color-ink);
}

.film-frame figcaption span:last-child {
  font-family: var(--font-outlier);
  font-size: 0.75rem;
}

/* ---------- Cinema: lights down, the guide on the big screen ---------- */

.section.cinema {
  margin-top: clamp(var(--space-3xl), 10vw, 144px);
  padding-block: clamp(var(--space-3xl), 9vw, 128px);
  background:
    radial-gradient(ellipse 58% 42% at 50% 0%, var(--color-glow-soft), transparent 72%),
    var(--color-deep);
  border-block: var(--rule-hair) solid var(--color-rule);
}

.cinema-head {
  display: grid;
  justify-items: center;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.cinema-head h2 {
  max-width: 18ch;
}

.cinema-head .lede {
  max-width: 52ch;
}

.cinema-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-2xl);
}

.cinema-note h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.cinema-note p {
  margin-top: var(--space-sm);
  max-width: 52ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.cinema-note .text-link {
  margin-top: var(--space-sm);
}

.cinema-foot .fineprint {
  margin: 0;
}

/* ---------- Setup: the hand-off from phone to TV ---------- */

.setup-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--space-md) var(--space-2xl);
}

.setup-head h2 {
  max-width: 16ch;
}

.setup-head .lede {
  margin: 0;
}

.relay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
}

.relay-step {
  position: relative;
}

.relay-node {
  position: relative;
  height: 60px;
  margin-bottom: var(--space-lg);
}

.relay-art {
  width: 80px;
  height: 58px;
}

.relay-art-phone {
  width: 36px;
  height: 60px;
}

.ra-frame {
  fill: none;
  stroke: var(--color-ink-2);
  stroke-width: 1.5;
}

.ra-ink {
  fill: var(--color-ink);
}

.ra-soft {
  fill: var(--color-rule-hover);
}

.ra-accent {
  fill: var(--color-accent);
}

.relay-wire {
  position: absolute;
  top: 26px;
  left: calc(var(--art-w, 80px) + var(--space-md));
  right: calc(var(--space-md) - var(--space-xl));
  height: 1px;
}

.relay-phone {
  --art-w: 36px;
}

.relay-wire-scan {
  background-image: linear-gradient(to right, var(--color-rule-hover) 50%, transparent 0);
  background-size: 8px 1px;
}

.relay-wire-data {
  background: var(--color-rule-hover);
}

/* The pulse rides on a layer as long as the wire, so it can travel by transform alone. */
.relay-wire-data i {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.relay-wire-data i::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-halo);
}

.is-live .relay-wire-data i {
  animation: relay-run 2.3s var(--ease-in-out) 2;
}

.relay-device {
  display: flex;
  gap: var(--space-xs);
  margin: 0 0 var(--space-xs);
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.relay-device span {
  color: var(--color-ink);
}

.relay-step h3 {
  margin-bottom: var(--space-xs);
}

.relay-step h3 + p {
  max-width: 38ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@keyframes relay-run {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes relay-run-down {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ---------- Privacy: two routes your data can take ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--space-2xl);
}

.privacy-copy h2 {
  max-width: 14ch;
}

.privacy-copy .text-link {
  margin-top: var(--space-lg);
}

.lanes {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.lane {
  padding-block: var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.lane-path {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-sm) 0 var(--space-lg);
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  color: var(--color-ink);
}

.lane-path span {
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  background: var(--color-paper-2);
  white-space: nowrap;
}

.lane-path .lane-cloud {
  border-style: dashed;
  border-color: var(--color-rule-hover);
}

.lane-path i {
  position: relative;
  flex: 1 1 0;
  min-width: var(--space-lg);
  height: 1px;
  background: var(--color-rule-hover);
}

.lane-path small {
  position: absolute;
  left: 50%;
  bottom: var(--space-xs);
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.lane h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lane h3 + p {
  margin-top: var(--space-sm);
  max-width: 56ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ---------- Pricing ----------
   Three tiers. The yearly Plus plan is the lit one: the lamp glow sits behind
   it, the red now-line runs along its top edge, and it stands a step forward. */

.price-head {
  display: grid;
  justify-items: center;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.price-head h2 {
  max-width: 20ch;
}

.price-head .lede {
  max-width: 52ch;
}

.price-tiers {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-lg);
  isolation: isolate;
}

/* The lamp: a warm pool of light behind the Plus card */
.price-tiers::before {
  content: "";
  position: absolute;
  inset: -12% 18% -8%;
  z-index: -1;
  background:
    radial-gradient(closest-side, var(--color-glow), transparent 72%),
    radial-gradient(40% 30% at 50% 8%, var(--color-accent-halo), transparent 80%);
  filter: blur(24px);
  pointer-events: none;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(var(--space-lg), 2.6vw, 40px);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 20px;
}

.tier-name {
  font-family: var(--font-outlier);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
}

.tier-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.tier-amount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.4vw + 1.4rem, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.tier-unit {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.tier-note,
.tier-equiv,
.tier-alt {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.tier-includes {
  margin-top: var(--space-xl);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.tier-list {
  margin: var(--space-md) 0 var(--space-xl);
  padding: 0;
  list-style: none;
}

.tier-list li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) 28px;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* A small check, drawn in CSS so it follows the text colour */
.tier-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(var(--space-xs) + 0.32em);
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(-45deg);
}

.tier-free .tier-list {
  margin-top: var(--space-xl);
}

.tier .price-cta {
  margin-top: auto;
  width: 100%;
}

/* The lit card */
.tier-plus {
  padding-top: clamp(var(--space-xl), 3.4vw, 52px);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--color-glow), transparent 70%),
    var(--color-paper-2);
  border-color: var(--color-rule-hover);
  box-shadow:
    0 0 0 1px var(--color-accent-halo),
    0 30px 80px -20px var(--color-shadow),
    0 0 90px -10px var(--color-glow);
  transform: translateY(calc(-1 * var(--space-lg)));
}

/* Red now-line along the top edge: Zapp's signature */
.tier-plus::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 16px var(--color-accent-halo);
}

.tier-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-outlier);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tier-plus .tier-name {
  color: var(--color-ink);
}

.tier-plus .tier-amount {
  font-size: clamp(3.25rem, 3.2vw + 1.4rem, 4.75rem);
  color: var(--color-white);
}

.tier-equiv {
  margin-top: var(--space-xs);
}

.tier-trial {
  align-self: flex-start;
  margin-top: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-error-rule);
  border-radius: 999px;
  background: var(--color-error-bg);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 600;
}

.tier-plus .tier-list li {
  color: var(--color-ink);
}

.tier-plus .tier-list li::before {
  border-color: var(--color-accent);
}

.tier-plus .price-cta {
  min-height: 52px;
  font-size: var(--text-md);
}

.tier-alt {
  text-align: center;
  font-size: var(--text-xs);
}

.tier-offer {
  align-self: flex-start;
  margin-top: var(--space-md);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.45;
}

.tier-offer::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: var(--space-xs);
  vertical-align: 0.3em;
  background: var(--color-accent);
}

.price-fine {
  margin-inline: auto;
  margin-top: var(--space-2xl);
  text-align: center;
}

@media (hover: hover) {
  .tier {
    transition: border-color var(--dur-micro) var(--ease-out);
  }
  .tier-free:hover,
  .tier-life:hover {
    border-color: var(--color-rule-hover);
  }
}

/* ---------- Get Zapp ---------- */

.get-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  padding: clamp(var(--space-lg), 4vw, 56px);
  background: var(--color-paper-2) url("/img/hero-light.webp") right 10% / cover no-repeat;
  background-blend-mode: soft-light;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 20px;
}

.get-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.4vw + 0.6rem, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.get-copy h2 + p {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
}

.get-options {
  display: grid;
  align-content: center;
  gap: 0;
}

.store-option {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.store-option:first-child {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.store-option p {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.store-option .play-badge {
  justify-self: start;
  margin-top: var(--space-xs);
}

.get-options .apk {
  margin-top: var(--space-lg);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-stage {
    animation: none;
  }
  /* The crawl and the programme keep moving (both have a pause button,
     WCAG 2.2.2), only slower and without the zoom. !important beats the
     global reduced-motion reset in site.css. */
  .ticker.is-live .ticker-track {
    animation-duration: 72s !important;
    animation-iteration-count: infinite !important;
  }
  .is-auto .is-on .slot-bar i {
    animation-duration: 8s !important;
  }
  .programme-screen img {
    transform: none;
    transition: opacity 520ms linear !important;
  }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: var(--space-2xl);
  }
  .hero-stage {
    max-width: 760px;
  }
  .hero-scene {
    inset: 36% 0 0;
    background-position: 70% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, var(--color-deep) 24%, var(--color-deep) 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, var(--color-deep) 24%, var(--color-deep) 70%, transparent 100%);
  }
  .hero-scene::after {
    background: none;
  }
  .ticker-clock {
    display: none;
  }
  .programme-grid,
  .privacy-grid,
  .setup-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .programme-copy {
    display: contents;
  }
  .programme-copy h2 { order: 1; }
  .programme-copy .lede { order: 2; margin-top: calc(var(--space-md) - var(--space-2xl)); }
  .programme-stage { order: 3; }
  .schedule { order: 4; margin-top: 0; }
  .programme-foot { order: 5; margin-top: calc(-1 * var(--space-xl)); }
  .cinema-foot,
  .get-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .price-tiers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
    gap: var(--space-xl);
  }
  .tier-plus {
    order: -1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .play-badge {
    justify-content: flex-start;
  }
  .hero-tour {
    justify-content: center;
  }
  .hero-stage {
    padding: 0 0 var(--space-xl) 18%;
  }
  .hero-phone {
    width: 26%;
    min-width: 0;
  }
  .hero-tv figcaption {
    display: none;
  }
  .ticker {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ticker-label {
    grid-column: 1 / -1;
    min-height: 44px;
    white-space: normal;
  }
  .ticker-label::after {
    top: auto;
    bottom: 0;
    left: var(--space-lg);
    right: auto;
    width: 32px;
    height: 2px;
  }
  .ticker-window {
    min-height: 52px;
  }
  .ticker-toggle {
    width: 52px;
  }
  .ticker-note {
    text-align: left;
  }
  .programme-screen {
    width: min(86%, 340px);
  }
  .schedule button {
    grid-template-columns: minmax(0, 1fr);
    padding-left: var(--space-md);
  }
  .slot-meta {
    grid-row: auto;
    display: flex;
    gap: var(--space-sm);
    padding-top: 0;
  }
  .slot-bar {
    grid-column: 1;
  }
  .relay {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
  }
  .relay-step {
    padding-left: 104px;
  }
  .relay-node {
    position: absolute;
    top: 0;
    bottom: calc(-1 * var(--space-2xl));
    left: 0;
    width: 80px;
    height: auto;
    margin: 0;
  }
  .relay-phone .relay-node {
    display: grid;
    justify-items: center;
    align-content: start;
  }
  .relay-wire {
    top: 72px;
    bottom: 12px;
    left: 40px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .relay-wire-scan {
    background-image: linear-gradient(to bottom, var(--color-rule-hover) 50%, transparent 0);
    background-size: 1px 8px;
  }
  .is-live .relay-wire-data i {
    animation-name: relay-run-down;
  }
  .lane-path {
    flex-wrap: wrap;
  }
  .lane-path i {
    flex-basis: var(--space-lg);
  }
  .film-frame figcaption {
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .tour-preview-note {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: space-between;
  }
  .tour-preview-note p {
    display: none;
  }
}

/* Pressed states */

.schedule button:active .slot-title,
.ticker-toggle:active,
.motion-toggle:active {
  opacity: 0.72;
}

.get-options .apk .apk-more {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.get-options .apk .apk-more:hover {
  color: var(--color-ink);
}

/* Hero: Google Play and the direct APK side by side */
.hero-actions .play-badge-store svg {
  width: 24px;
  height: 24px;
}

.hero-apk {
  min-height: 52px;
  padding: var(--space-xs) 20px var(--space-xs) var(--space-md);
}

.hero-apk span {
  display: grid;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}

.hero-apk small {
  color: var(--color-ink-2);
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-apk strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .hero-actions .hero-apk {
    justify-content: flex-start;
  }
}

/* APK box: short checksum with copy button, trust note */
.apk .apk-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
}

.apk .apk-copy {
  font: inherit;
  font-size: var(--text-xs);
  min-height: 32px;
  padding: 2px var(--space-sm);
  border-radius: 999px;
  border: var(--rule-hair) solid var(--color-rule-strong);
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
}

.apk .apk-copy:hover {
  color: var(--color-ink);
}

.apk .apk-trust {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
