/* marqueebrowser.com
   The page is a dark room: a TV over a console with an Apple TV, and the
   TV is the only light. Everything else stays quiet. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/unbounded-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/unbounded-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #7f8cff;
}

:root {
  /* The room */
  --room: #000;
  --ink: #f2f0f6;
  --dim: #aaa5b6;
  --faint: #77728a;
  --line: rgb(255 255 255 / 0.11);
  /* The icon's violet, from its dark corner to its bright one */
  --indigo: #36208e;
  --violet: #8d44e6;
  --orchid: #b06bff;

  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 40rem;
  --tv-radius: clamp(6px, 0.8vw, 12px);

  color-scheme: dark;
}

/* Scripts Unbounded doesn't cover use the system face, a step bolder. */
:lang(zh-Hans), :lang(zh-Hant), :lang(ja), :lang(ko), :lang(ar), :lang(hi) {
  --display: var(--text);
}

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

html {
  background: var(--room);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

:lang(zh-Hans) :is(h1, h2, h3), :lang(zh-Hant) :is(h1, h2, h3),
:lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3),
:lang(ar) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) {
  font-weight: 700;
  letter-spacing: 0;
}

p { margin: 0; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #000;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: "Unbounded", var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 6px;
  box-shadow: 0 0 24px rgb(141 68 230 / 0.45);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
}
.site-header nav a {
  color: var(--dim);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current] { color: var(--ink); }

/* Buttons */

.cta {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgb(176 107 255 / 0.35);
}
.cta.is-soon {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}

.text-link {
  color: var(--orchid);
  text-underline-offset: 0.2em;
}

/* The stage: the hero room */

.stage {
  position: relative;
  padding-top: clamp(2rem, 6vw, 5rem);
}

.stage-copy {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.stage h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.stage .lead {
  max-width: 38rem;
  margin: 1.5rem auto 2rem;
  color: var(--dim);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
}

.requirement {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.9rem;
}

/* The room: a render of a TV over a console with an Apple TV on it
   (tools/images.py room). The page's own TV sits exactly over the render's
   screen, which is a touch wider than 16:9, so the TV grows a few pixels. */
.scene {
  position: relative;
  width: min(100vw, 1500px);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  /* The render's dark grey fades into the page's black on every side. */
  -webkit-mask-image:
    linear-gradient(transparent, #000 14%, #000 80%, transparent),
    linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(transparent, #000 14%, #000 80%, transparent),
    linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.scene-room {
  display: block;
  width: 100%;
  height: auto;
}
.tv.scene-tv {
  position: absolute;
  left: 19.86%;
  top: 6.71%;
  width: 60.29%;
  padding: 0.25%;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07);
}
.scene-tv img { border-radius: 1px; }
.tv video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  background: #000;
}

.tv {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--tv-radius);
  /* A thin bezel with a lit outer edge. */
  padding: clamp(3px, 0.45%, 7px);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16),
    0 2px 0 1px rgb(0 0 0 / 0.9),
    0 40px 120px -20px rgb(0 0 0 / 0.9);
}
.tv img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--tv-radius) - 3px);
}

/* Sections */

.section-title {
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tour, .remote, .more, .privacy-note, .languages, .faq {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 9rem) var(--gutter) 0;
}

/* Tour: the steps scroll by while the TV stays and changes channel. */

/* Centred like the hero: it heads both columns below it. */
.tour > .section-title {
  max-width: 18em;
  margin-inline: auto;
  text-align: center;
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step h3 {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step p {
  max-width: 30rem;
  margin-top: 0.8rem;
  color: var(--dim);
}
.step .tv-inline { margin-top: 1.5rem; }
.steps { display: grid; gap: 3.5rem; }

.tour-screen { display: none; }

[data-step="0"] { --glow: #7f8cff; }
[data-step="1"] { --glow: #8a4fe8; }
[data-step="2"] { --glow: #4fb3d9; }
[data-step="3"] { --glow: #e8a030; }

@media (min-width: 960px) {
  .js .tour-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .js .steps { gap: 0; }
  .js .step {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.32;
    transition: opacity 0.4s ease;
  }
  .js .step.is-on { opacity: 1; }
  /* The first step starts level with the TV, right under the title: its
     text sits at the TV's middle (the TV is ~36% of the content width tall). */
  .js .step:first-child {
    justify-content: flex-start;
    padding-top: max(0px, calc((min(100vw, 1320px) - 2 * var(--gutter)) * 0.18 - 4.5rem));
  }
  .js .step .tv-inline { display: none; }

  .js .tour-screen {
    display: block;
    position: sticky;
    top: calc(50vh - 15vw);
    align-self: start;
    margin-bottom: 18vh;
    isolation: isolate;
  }
  .tour-light {
    position: absolute;
    z-index: -1;
    inset: -30% -20%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    opacity: 0.32;
    filter: blur(40px);
    transition: --glow 0.7s ease;
  }
  .tv-tour img {
    position: absolute;
    inset: clamp(3px, 0.45%, 7px);
    width: calc(100% - 2 * clamp(3px, 0.45%, 7px));
    height: calc(100% - 2 * clamp(3px, 0.45%, 7px));
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .tv-tour img.is-on { opacity: 1; }
}

/* Remote */

.remote {
  display: grid;
  gap: 2.5rem;
}
.remote-copy p {
  max-width: var(--measure);
  margin-top: 1.2rem;
  color: var(--dim);
}
.remote-list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.remote-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.remote-list dt { color: var(--dim); }
.remote-list dd { margin: 0; }

@media (min-width: 960px) {
  .remote { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6rem; }
  .remote-list { border-top: 0; }
  .remote-list div:first-child { padding-top: 0.4rem; }
}

/* More */

.more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.more-list li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.more-list h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.more-list p {
  margin-top: 0.6rem;
  color: var(--dim);
  font-size: 1rem;
}

/* Privacy: the room goes dark. */

.privacy-note {
  text-align: center;
}
.privacy-note .section-title {
  max-width: 15em;
  margin: 0 auto;
}
.privacy-note p {
  max-width: 36rem;
  margin: 1.4rem auto 0;
  color: var(--dim);
}

/* Languages */

.languages > p {
  max-width: var(--measure);
  margin-top: 1.2rem;
  color: var(--dim);
}
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
}
.language-list a {
  text-decoration: none;
  color: var(--ink);
}
.language-list a:hover { color: var(--orchid); }

/* FAQ (home and support) */

.faq-list {
  max-width: 52rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--faint);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  max-width: var(--measure);
  padding-bottom: 1.4rem;
  color: var(--dim);
}

/* Support and privacy pages */

.doc {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 0;
}
.doc h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.doc .lead {
  margin: 1.4rem 0 2rem;
  color: var(--dim);
  font-size: 1.2rem;
}
.doc h2 {
  margin: 3.5rem 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.doc section h2 { margin-top: 2.6rem; }
.doc p + p { margin-top: 1rem; }
.doc section p { color: var(--dim); }
.doc .remote-list { margin-top: 1.5rem; }
.updated {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.95rem;
}
.email-address {
  margin-top: 0.8rem;
  color: var(--faint);
  font-size: 0.95rem;
}
.not-found { min-height: 50vh; }

/* Footer */

.site-footer {
  max-width: 1320px;
  margin: clamp(5rem, 11vw, 10rem) auto 0;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.95rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-tagline { color: var(--ink); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a, .footer-langs a {
  text-decoration: none;
}
.footer-links a:hover, .footer-langs a:hover { color: var(--ink); }
.footer-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.footer-langs a[aria-current] { color: var(--ink); }
.footer-legal {
  max-width: 48rem;
  margin-top: 2rem;
  color: var(--faint);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

