/* House Lights marketing site. One look, committed: a darkened auditorium in the app icon's
   navy, lit by the icon's tungsten bulbs. The only flourish is the letter board in the hero;
   its bulbs chase once on load, and the house lights dim as you scroll down to the screens. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/display-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --auditorium: #060D1F;   /* page ground, the icon's navy taken down a stop */
  --velvet: #0E1F44;       /* sign body, straight from the icon's frame */
  --velvet-edge: #1B3366;
  --tungsten: #FFE9A8;     /* bulb filament */
  --glow: #FFD470;         /* bulb halo */
  --signal: #0066D6;       /* AccentColor, deepened so white text on it passes AA */
  --signal-text: #7DBBFF;  /* AccentColor, lifted for links on navy */
  --screen: #EEF3FB;
  --dim: #9AAACB;
  --rule: rgba(154, 170, 203, 0.18);
  --panel-top: #FFFBF1;    /* the backlit letter board */
  --panel-bottom: #EFE6D0;
  --letter: #15120D;

  --display: "Big Shoulders Display", "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 70rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--auditorium);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-inline: var(--gutter);
  color: var(--screen);
  font: 400 1.0625rem/1.6 var(--body);
}

img { max-width: 100%; }

a { color: var(--signal-text); text-underline-offset: 0.18em; }
a:hover { color: var(--screen); }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

code { font: 0.92em var(--mono); color: var(--screen); }

/* ---------- The room: house lights that dim as you scroll ---------- */

.room {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 26vmax at 6% -4%, rgba(255, 212, 112, 0.16), transparent 70%),
    radial-gradient(38vmax 26vmax at 94% -4%, rgba(255, 212, 112, 0.16), transparent 70%),
    radial-gradient(70vmax 50vmax at 50% 6%, rgba(0, 122, 250, 0.16), transparent 70%);
}

@supports (animation-timeline: scroll()) {
  .room {
    animation: house-lights linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
}

@keyframes house-lights { to { opacity: 0.12; } }

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--screen);
  font-weight: 650;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 22.37%; }
.brand-for { color: var(--dim); font-weight: 400; }

.top nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.6rem); font-size: 0.95rem; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--screen); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 0;
  text-align: center;
}

.marquee {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 26px;
  background: var(--velvet);
  border: 2px solid rgba(0, 122, 250, 0.85);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px rgba(127, 184, 255, 0.22),
    0 40px 120px -40px rgba(255, 212, 112, 0.4);
}

.panel {
  container-type: inline-size;
  overflow: hidden;
  padding: clamp(0.7rem, 2.4vw, 1.5rem) clamp(0.6rem, 2vw, 1.4rem);
  background: linear-gradient(var(--panel-top), var(--panel-bottom));
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    inset 0 0 60px rgba(255, 214, 140, 0.55),
    0 0 50px rgba(255, 233, 168, 0.22);
}

/* Every line at the size that fits the longest, the way a real board uses one set of letters. */
.board-line {
  margin: 0;
  padding-block: 0.1em 0.05em;
  font: 800 min(5rem, calc(100cqi / (var(--n) * 0.6))) / 1 var(--display);
  letter-spacing: 0.05em;
  color: var(--letter);
  text-transform: uppercase;
  white-space: nowrap;
  /* the rail each row of letters hangs on */
  background: linear-gradient(transparent calc(100% - 2px), rgba(60, 40, 10, 0.16) 0);
}

.board-line + .board-line { margin-top: 0.14em; }
.board-line span { display: inline-block; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
.board-line .gap { width: 0.36em; }

.bulbs { position: absolute; display: flex; justify-content: space-between; }
.bulbs-top, .bulbs-bottom { left: 26px; right: 26px; }
.bulbs-top { top: 5px; }
.bulbs-bottom { bottom: 5px; }
.bulbs-left, .bulbs-right { top: 26px; bottom: 26px; flex-direction: column; justify-content: space-evenly; }
.bulbs-left { left: 5px; }
.bulbs-right { right: 5px; }

.bulbs i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff 0 16%, var(--tungsten) 38%, #E9B650 100%);
  box-shadow: 0 0 8px 2px rgba(255, 212, 112, 0.6), 0 0 22px 6px rgba(255, 212, 112, 0.22);
  animation: chase 1.4s ease-out calc(var(--i) * 30ms) both;
}

@keyframes chase {
  from { opacity: 0.15; box-shadow: none; }
  45% { opacity: 1; box-shadow: 0 0 14px 5px rgba(255, 212, 112, 0.95), 0 0 34px 10px rgba(255, 212, 112, 0.4); }
}

.hero h1 {
  max-width: 19ch;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  font: 700 clamp(2rem, 1.2rem + 3.2vw, 3.4rem) / 1.08 var(--body);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  color: var(--dim);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #0A74F0; color: #fff; }
.button-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--velvet-edge); color: var(--screen); }
.button-quiet:hover { background: var(--velvet); }

.soon {
  margin: 0;
  color: var(--dim);
  font: 500 0.8rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* The hero's screens: the Apple TV screenshot, with the iPhone one in front of it. Bare
   screenshots, no drawn device frames: Apple's marketing guidelines allow only its own bezels. */
.stage {
  position: relative;
  max-width: 60rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  padding-bottom: 7%;
}

.stage .tv { margin-right: 9%; }

.stage .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
}

.stage img { display: block; width: 100%; height: auto; }

.stage .tv img {
  border-radius: clamp(6px, 1vw, 12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 140px -30px rgba(0, 122, 250, 0.4);
}

.stage .phone img {
  border-radius: 12% / 5.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -10px rgba(0, 0, 0, 0.85);
}

/* Until there are Apple TV shots: three iPhone screens in a row, Home in front. */
.stage-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 3vw, 2rem);
  max-width: 52rem;
  padding-bottom: 0;
}

.stage-phones .phone { position: static; width: 28%; }
.stage-phones .phone:nth-child(2) { width: 33%; }

/* ---------- Sections ---------- */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: clamp(4.5rem, 10vw, 7rem) 0;
}

.section h2, .prose h1 {
  margin: 0;
  font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem) / 1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tungsten);
}

.section-lede { max-width: 40rem; margin: 0.8rem 0 0; color: var(--dim); }

.eyebrow, .group h3, .strip-title, .ticket h3 {
  font: 600 0.78rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Features */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.group h3 { margin: 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.group dl { margin: 0; }
.group dl > div { padding-block: 1rem; border-bottom: 1px solid var(--rule); }

.group dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  font-weight: 650;
}

.group dd { margin: 0.3rem 0 0; color: var(--dim); }

.where {
  margin-left: auto;
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.pro, .soon-tag {
  padding: 0.3em 0.5em;
  border-radius: 4px;
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro { background: var(--tungsten); color: var(--auditorium); }
.soon-tag { box-shadow: inset 0 0 0 1px var(--rule); color: var(--dim); }

[data-pro="off"] .pro, [data-pro="off"] .pro-only { display: none; }

/* Screens */
.strip-title { margin: 2.25rem 0 0.9rem; }

.strip {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-color: var(--velvet-edge) transparent;
}

.strip figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.strip img { display: block; width: 100%; height: auto; background: var(--velvet); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.strip figcaption { margin-top: 0.6rem; color: var(--dim); font-size: 0.9rem; }
.strip-appletv figure { width: min(82vw, 34rem); }
.strip-appletv img { border-radius: 10px; }
.strip-ipad figure { width: min(62vw, 20rem); }
.strip-ipad img { border-radius: 14px; }
.strip-iphone figure { width: min(52vw, 14rem); }
.strip-iphone img { border-radius: 22px; }

/* Price */
.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.ticket {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(14, 31, 68, 0.7);
  border: 1px solid var(--velvet-edge);
  border-radius: 16px;
}

.ticket-pro { border-color: rgba(255, 212, 112, 0.55); box-shadow: 0 0 60px -20px rgba(255, 212, 112, 0.35); }
.ticket h3 { margin: 0; }
.amount { margin: 0.4rem 0 1rem; font: 800 3rem/1 var(--display); letter-spacing: 0.01em; }
.amount span { font: 500 1rem var(--body); color: var(--dim); letter-spacing: 0; }
.ticket ul { margin: 0; padding: 0; list-style: none; }
.ticket li { position: relative; padding: 0.55rem 0 0.55rem 1.5rem; border-top: 1px solid var(--rule); }

/* list markers are small lit bulbs */
.ticket li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tungsten);
  box-shadow: 0 0 8px rgba(255, 212, 112, 0.7);
}

.fine, .note { color: var(--dim); font-size: 0.92rem; }
.fine { margin: 1rem 0 0; }
.note { margin: 1.25rem 0 0; }

/* Questions */
.faq { max-width: 48rem; margin-top: 2rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  position: relative;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.9rem; font-size: 1.4rem; line-height: 1; color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 44rem; margin: 0 0 1.1rem; color: var(--dim); }

/* ---------- Privacy, support ---------- */

.prose { max-width: 44rem; margin: 0 auto; padding-block: clamp(2rem, 6vw, 4rem) 0; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { margin: 2.4rem 0 0.6rem; font-size: 1.25rem; }
.prose p, .prose li { color: #C9D3E6; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.45rem 0; }
.prose strong { color: var(--screen); }
.updated { font: 500 0.8rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }

/* ---------- Footer ---------- */

.foot {
  max-width: var(--measure);
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.92rem;
}

.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.25rem; margin: 0.8rem 0; }
.legal { font-size: 0.82rem; }

/* ---------- Narrow screens ---------- */

@media (max-width: 600px) {
  .top nav a:not([href="/support/"]) { display: none; }
  .marquee { padding: 20px; border-radius: 16px; }
  .bulbs-top, .bulbs-bottom { left: 20px; right: 20px; }
  .bulbs-top { top: 5.5px; }
  .bulbs-bottom { bottom: 5.5px; }
  .bulbs-left, .bulbs-right { top: 20px; bottom: 20px; }
  .bulbs-left { left: 5.5px; }
  .bulbs-right { right: 5.5px; }
  .bulbs i { width: 9px; height: 9px; }
  .stage .tv { margin-right: 14%; }
  .stage .phone { width: 30%; }
  .where { margin-left: 0; }
  .brand-for { display: none; }
  .stage-phones .phone:not(:nth-child(2)) { display: none; }
  .stage-phones .phone:nth-child(2) { width: 62%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bulbs i { animation: none; }
}
