:root {
  color-scheme: dark;

  /* Tokyo Night, the same colours as the app and its screenshots. */
  --bg: #16161e;
  --glow: #232638;
  --panel: #1a1b26;
  --raised: #1f2335;
  --line: #292e42;
  --line-strong: #3b4261;
  --heading: #c0caf5;
  --text: #a9b1d6;
  --muted: #828bb8;
  --dim: #6f79a8;
  --accent: #7aa2f7;
  --on-accent: #16161e;

  --width: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: linear-gradient(var(--glow), var(--bg)) top / 100% 900px no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(122, 162, 247, 0.3);
}

img,
svg {
  display: block;
}

a {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
}

strong {
  color: var(--heading);
  font-weight: 600;
}

/* Holds the logo shapes that the page reuses. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Top bar. */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(24px, calc((100% - var(--width)) / 2 + 24px));
  border-bottom: 1px solid rgba(192, 202, 245, 0.06);
  background: rgba(31, 34, 51, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(192, 202, 245, 0.14);
  border-radius: 8px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav nav a {
  color: var(--text);
}

.nav nav a:hover,
.nav nav a[aria-current] {
  color: var(--heading);
}

.nav nav .outline {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--heading);
}

.nav nav .outline:hover {
  border-color: var(--accent);
}

/* Opening. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 24px 84px;
  text-align: center;
}

/* A field of dots that fades out towards the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(192, 202, 245, 0.1) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 62% 80% at 50% 36%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 80% at 50% 36%, #000 20%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  z-index: -2;
  width: 900px;
  height: 560px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 162, 247, 0.24), transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 22, 30, 0.45);
  color: var(--heading);
  font-size: 13.5px;
  line-height: 1.4;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  max-width: 900px;
  margin: 26px auto 0;
  font-size: clamp(40px, 6.8vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* The words that get struck out. */
.slashed {
  position: relative;
  color: var(--dim);
  white-space: nowrap;
}

.slashed::after {
  content: "";
  position: absolute;
  top: 54%;
  right: -0.1em;
  left: -0.1em;
  height: 0.065em;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0.4em rgba(122, 162, 247, 0.6);
  clip-path: inset(-1em);
  rotate: -3deg;
}

.lede {
  max-width: 620px;
  margin: 28px auto 0;
  text-wrap: balance;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.button,
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
}

.button {
  background: var(--accent);
  box-shadow: 0 12px 32px -14px rgba(122, 162, 247, 0.8);
  color: var(--on-accent);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover {
  box-shadow: 0 18px 38px -14px rgba(122, 162, 247, 0.9);
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* The App Store, until the app is listed there. */
.soon {
  border-color: var(--line-strong);
  color: var(--heading);
}

.soon small {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(122, 162, 247, 0.14);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.fine {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* The networks' logos around the headline, each cut in two. */

.marks {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.mark {
  position: absolute;
  width: var(--size);
  height: var(--size);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.4));
  rotate: var(--tilt);
}

.mark:nth-child(1) { top: 9%; left: 12%; --size: 96px; --tilt: -9deg; }
.mark:nth-child(2) { top: 11%; right: 12%; --size: 92px; --tilt: 8deg; }
.mark:nth-child(3) { top: 39%; left: 1.5%; --size: 82px; --tilt: 7deg; }
.mark:nth-child(4) { top: 42%; right: 1.5%; --size: 82px; --tilt: -7deg; }
.mark:nth-child(5) { top: 72%; left: 11%; --size: 88px; --tilt: -5deg; }
.mark:nth-child(6) { top: 74%; right: 11%; --size: 88px; --tilt: 6deg; }

/* The logo is drawn twice, and each copy keeps one side of the cut. */
.half {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(192, 202, 245, 0.14);
  border-radius: 26%;
  background: linear-gradient(160deg, #2d3350, #1e2132);
  filter: saturate(0.45) brightness(0.82);
}

.half svg {
  width: 58%;
  height: 58%;
  overflow: visible;
}

.half:first-child {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  transform: translate(-6%, -6%) rotate(-4deg);
}

.half:nth-child(2) {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform: translate(6%, 6%) rotate(4deg);
}

.cut {
  position: absolute;
  top: 50%;
  right: -22%;
  left: -22%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, #dbe6ff 50%, var(--accent) 82%, transparent);
  box-shadow: 0 0 14px rgba(122, 162, 247, 0.75);
  clip-path: inset(-20px);
  transform: rotate(-45deg);
}

/* The App Store screenshots, side by side. */

.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
}

.shots li:nth-child(even) {
  margin-top: 36px;
}

.shots img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(192, 202, 245, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.shots li:hover img {
  border-color: rgba(122, 162, 247, 0.4);
  transform: translateY(-8px);
}

/* Sections. */

main > section {
  max-width: var(--width);
  margin: 0 auto;
  padding: 136px 24px 0;
}

.head {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.head p {
  margin-top: 14px;
  font-size: 18px;
}

/* Rows of feed names drifting past, each one struck out. */

main > .flow {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.rows {
  max-width: 1500px;
  margin: 44px auto 0;
  overflow: hidden;
}

.rows ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 12px;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(31, 35, 53, 0.6);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.rows svg {
  width: 18px;
  height: 18px;
  fill: var(--heading);
}

.rows s {
  color: var(--muted);
  text-decoration-line: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Three steps in a row. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(rgba(31, 35, 53, 0.75), rgba(26, 27, 38, 0.75));
  transition: border-color 0.3s var(--ease);
}

.steps li:hover {
  border-color: var(--line-strong);
}

.steps li::before {
  content: counter(step);
  display: block;
  background: linear-gradient(var(--accent), rgba(122, 162, 247, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  counter-increment: step;
}

.steps h3 {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps p {
  margin-top: 8px;
  font-size: 16px;
}

/* The closing box. */

.close {
  padding: 76px 24px 72px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(640px 320px at 50% 0, rgba(122, 162, 247, 0.18), transparent 70%), var(--panel);
  text-align: center;
}

.close p {
  margin-top: 14px;
  font-size: 18px;
}

/* Support and privacy: one column of text. */

.prose {
  max-width: 768px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.prose h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.prose h2 {
  margin-top: 56px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p,
.prose ol,
.prose ul {
  margin-top: 14px;
}

.prose ol,
.prose ul {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--muted);
}

.prose .updated {
  margin-top: 18px;
  color: var(--muted);
}

/* Footer. */

.foot {
  max-width: var(--width);
  margin: 136px auto 0;
  padding: 0 24px 56px;
  color: var(--muted);
  font-size: 14px;
}

.foot::before {
  content: "";
  display: block;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 14px;
}

.foot a {
  color: var(--text);
  text-decoration: none;
}

.foot a:hover {
  color: var(--heading);
}

.foot p {
  max-width: 720px;
}

/* Movement. The page sets "motion" on <html> unless the visitor asked for less of it,
   so without it everything simply sits in its final place. */

.motion .hero::after {
  animation: drift 16s ease-in-out infinite alternate;
}

.motion .hero > :not(.marks) {
  animation: rise 0.8s var(--ease) backwards;
}

.motion .hero > h1 { animation-delay: 0.08s; }
.motion .hero > .lede { animation-delay: 0.16s; }
.motion .hero > .cta { animation-delay: 0.24s; }
.motion .hero > .fine { animation-delay: 0.32s; }

.motion .mark {
  animation:
    pop 0.7s var(--ease) calc(var(--i) * 70ms) backwards,
    bob calc(6s + var(--i) * 0.6s) ease-in-out calc(var(--i) * -1.3s) infinite alternate;
}

.motion .half:first-child {
  animation: part-a 0.95s var(--ease) calc(0.8s + var(--i) * 0.24s) backwards;
}

.motion .half:nth-child(2) {
  animation: part-b 0.95s var(--ease) calc(0.8s + var(--i) * 0.24s) backwards;
}

.motion .cut {
  animation: cut 0.95s var(--ease) calc(0.8s + var(--i) * 0.24s) backwards;
}

.motion .slashed {
  animation: dim 0.6s ease 2.6s backwards;
}

.motion .slashed::after {
  animation: strike 0.45s var(--ease) 2.4s backwards;
}

.motion .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  transition-delay: calc(var(--n, 0) * 80ms);
}

.motion .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.motion .rows {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* The page repeats each row four times, so half its width is a whole number of copies. */
.motion .rows ul {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  animation: flow 60s linear infinite;
}

.motion .rows ul + ul {
  animation-duration: 72s;
  animation-direction: reverse;
}

.motion .rows:hover ul {
  animation-play-state: paused;
}

@keyframes drift {
  from { transform: translate3d(-90px, 0, 0); }
  to { transform: translate3d(90px, 30px, 0) scale(1.12); }
}

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
}

@keyframes pop {
  from { opacity: 0; scale: 0.5; }
}

@keyframes bob {
  from { translate: 0 -7px; }
  to { translate: 0 9px; }
}

/* Whole and in colour until the cut lands, then the two sides slide apart and fade. */
@keyframes part-a {
  0%, 38% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); filter: none; transform: none; }
  39% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); filter: none; transform: none; }
}

@keyframes part-b {
  0%, 39% { filter: none; transform: none; }
}

@keyframes cut {
  0% { clip-path: inset(-20px 100% -20px -20px); }
  38% { clip-path: inset(-20px); }
}

@keyframes dim {
  from { color: var(--accent); }
}

@keyframes strike {
  from { clip-path: inset(-1em 100% -1em -1em); }
}

@keyframes flow {
  to { transform: translateX(-50%); }
}

@media (max-width: 1099px) {
  /* No room beside the headline, so the logos line up above it. */
  .hero {
    padding-top: 56px;
  }

  .marks {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: none;
    margin-bottom: 34px;
  }

  .mark:nth-child(n) {
    position: relative;
    inset: auto;
    flex: none;
    --size: clamp(38px, 11.5vw, 60px);
  }
}

@media (max-width: 1020px) {
  /* A row to swipe through, running off the edge of the screen. */
  .shots {
    display: flex;
    gap: 14px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    scrollbar-width: none;
  }

  .shots::-webkit-scrollbar {
    display: none;
  }

  .shots li {
    flex: none;
    width: min(60vw, 264px);
    scroll-snap-align: start;
  }

  .shots li:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }

  main > section {
    padding-top: 96px;
  }

  .foot {
    margin-top: 104px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .nav {
    padding: 12px 20px;
  }

  .nav nav {
    gap: 18px;
  }

  .nav nav .optional {
    display: none;
  }

  .hero {
    padding: 40px 20px 56px;
  }

  .marks {
    gap: 9px;
    margin-bottom: 28px;
  }

  .shots {
    padding-right: 20px;
    padding-left: 20px;
    scroll-padding: 0 20px;
  }

  main > section,
  .prose,
  .foot {
    padding-right: 20px;
    padding-left: 20px;
  }

  main > .flow {
    padding-right: 0;
    padding-left: 0;
  }

  .prose {
    padding-top: 44px;
  }

  .head p,
  .close p {
    font-size: 17px;
  }

  .rows li {
    padding: 9px 15px 9px 12px;
    font-size: 15px;
  }

  .steps li {
    padding: 24px 24px 26px;
  }

  .steps li::before {
    font-size: 56px;
  }

  .close {
    padding: 52px 20px 48px;
    border-radius: 22px;
  }
}
