@font-face {
  font-family: "Figtree";
  src: url(fonts/figtree.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0b0d10;
  --bg2: #13161b;
  --bg3: #1b1f25;
  --line: #242930;
  --text: #eef0f3;
  --text2: #a0a7b2;
  --text3: #737b87;
  --accent: #71a9ff;
  --accent-ink: #0a1a3a;
  --bezel: #1c1f24;
  --radius: 12px;
  --wrap: 1200px;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-padding-top: 24px;
  scrollbar-color: var(--line) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, svg { display: block; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2 { font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
p, li, dd, .flow span { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 16px; }

/* Header */

.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; height: 76px; gap: 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand .dim { color: var(--text2); font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a { color: var(--text2); transition: color .15s; }
.nav a:hover { color: var(--text); text-decoration: none; }

.nav .gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  transition: border-color .15s, background-color .15s;
}
.nav .gh:hover { border-color: #3a404a; background: var(--bg2); }
.stars {
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}

/* Hero */

.hero { padding-top: 88px; }
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.lede {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 46ch;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stores .badge:focus-visible { outline-offset: 4px; }

.badge { display: block; border-radius: 9px; transition: opacity .15s, transform .15s; }
.badge img { height: 54px; width: auto; }
.badge:hover { opacity: .85; }
.badge:active { transform: translateY(1px); }

.also { margin-top: 20px; font-size: 14px; color: var(--text3); }

.hero-shots { position: relative; padding: 8px 0 180px 72px; }

.shot-tv {
  width: 100%;
  border: 8px solid var(--bezel);
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}

.shot-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 31%;
  max-width: 196px;
  border: 7px solid var(--bezel);
  border-radius: 32px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04);
}

/* The one authored moment: the devices settle in once. Without motion, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .hero-shots { animation: fade .6s ease-out both; }
  .shot-tv { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .shot-phone { animation: settle 1s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes settle { from { transform: translateY(18px); } to { transform: none; } }
}

.platforms {
  list-style: none;
  padding: 0;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.platforms li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 22px 0;
}
.platforms li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.platforms svg {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platforms b { font-size: 16px; line-height: 1.3; }
.platforms span { font-size: 13px; color: var(--text3); line-height: 1.3; }

/* Feature sections */

.feature { padding: 120px 0 0; }
.feature-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }

.feature-copy { max-width: 470px; }
.feature.flip .feature-copy { justify-self: end; }
.feature-copy p { margin-top: 20px; color: var(--text2); }

.switch {
  display: inline-flex;
  margin-top: 32px;
  padding: 4px;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.switch button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.switch button:hover { color: var(--text); }
.switch button[aria-pressed="true"] { background: var(--bg3); color: var(--text); box-shadow: inset 0 0 0 1px #2e333b; }

.screen {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 560px;
}
.screen img {
  border: 8px solid var(--bezel);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  transition: opacity .2s;
}
.screen[data-shape="phone"] img { width: 280px; border-radius: 36px; border-width: 8px; }
.screen[data-shape="wide"] img { width: 100%; border-radius: 14px; }
.screen.swapping img { opacity: 0; }

/* Notifications */

.notify { padding-top: 140px; }
.section-lede { margin-top: 20px; max-width: 54ch; color: var(--text2); }

.flow {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.flow li {
  position: relative;
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.flow li::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}
.flow b { display: block; font-size: 17px; }
.flow span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text2); }
.flow .locked::before { border-color: var(--accent); color: var(--accent); }
.flow .locked svg {
  position: absolute;
  top: -10px;
  left: 40px;
  width: 20px;
  height: 20px;
  padding: 2px;
  background: var(--bg);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more { margin-top: 32px; font-size: 15px; font-weight: 600; }
.more a { display: inline-flex; align-items: center; gap: 6px; }
.more .arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.more a:hover .arr { transform: translateX(2px); }

/* Android TV */

.tv { padding-top: 140px; }
.tv-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: end;
}
.tv-head p { max-width: 54ch; color: var(--text2); }
.tv-frame { margin-top: 48px; }
.tv-frame img {
  width: 100%;
  border: 10px solid var(--bezel);
  border-radius: 16px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
}

/* Everything else, as a list */

.more-features { padding-top: 140px; }
.list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 72px;
  border-bottom: 1px solid var(--line);
}
.list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.list dt { font-weight: 700; }
.list dd { color: var(--text2); font-size: 16px; }

/* Privacy */

.privacy { padding-top: 140px; }
.privacy-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 72px;
}
.privacy ul { list-style: none; padding: 0; }
.privacy li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text2); }
.privacy li:first-child { border-top: 0; padding-top: 6px; }
.privacy li b { color: var(--text); font-weight: 700; }
.privacy .more { grid-column: 2; margin-top: 8px; }

/* Open source */

.oss { padding-top: 140px; }
.oss-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 48px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.oss p { margin-top: 16px; max-width: 54ch; color: var(--text2); }
.oss-links { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: #fff; }
.btn.quiet { background: none; color: var(--text); border: 1px solid var(--line); }
.btn.quiet:hover { background: var(--bg3); border-color: #3a404a; }

/* Close */

.close { padding: 140px 0 120px; }
.close-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.close-in > img { border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }
.close h2 { margin-top: 28px; }
.close .stores { justify-content: center; margin-top: 28px; }

/* Footer */

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--text3); }
.foot-in { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.foot p { max-width: 56ch; }
.foot nav { display: flex; gap: 24px; flex-shrink: 0; }
.foot a { color: var(--text2); }
.foot a:hover { color: var(--text); }

/* Smaller screens */

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 620px; }
  .hero-shots { max-width: 760px; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .platforms li:nth-child(4) { border-left: 0; padding-left: 0; }
  .platforms li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .feature-in { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-copy { order: 0; justify-self: start; }
  .feature-copy { max-width: 620px; }
  .screen { min-height: 0; }
  .tv-head, .privacy-in { grid-template-columns: 1fr; gap: 20px; }
  .privacy .more { grid-column: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .list { grid-template-columns: 1fr; }
  .oss-in { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top-in { height: 64px; }
  .brand .dim { display: none; }
  .nav { gap: 18px; font-size: 14px; }
  .nav a:not(.gh) { display: none; }
  .hero { padding-top: 48px; }
  .lede { font-size: 17px; }
  .stores { gap: 10px; }
  .badge img { height: 48px; }
  .hero-shots { padding-left: 40px; padding-bottom: 96px; }
  .shot-tv { border-width: 5px; border-radius: 10px; }
  .shot-phone { width: 30%; border-width: 4px; border-radius: 18px; }
  .platforms { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 40px; padding: 22px 0; }
  .platforms li, .platforms li + li, .platforms li:nth-child(n) { padding: 0; border: 0; }
  .feature { padding-top: 88px; }
  .switch { display: flex; flex-wrap: wrap; }
  .switch button { flex: 1 1 auto; padding: 8px 8px; font-size: 13px; white-space: nowrap; }

  .screen[data-shape="phone"] img { width: 240px; border-radius: 30px; }
  .screen[data-shape="wide"] img { border-width: 5px; border-radius: 10px; }
  .notify, .tv, .more-features, .privacy, .oss { padding-top: 96px; }
  .flow { grid-template-columns: 1fr; }
  .tv-frame img { border-width: 5px; border-radius: 10px; }
  .list div { grid-template-columns: 1fr; gap: 4px; }
  .oss-in { padding: 28px; }
  .close { padding: 96px 0 88px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 16px; }
}
