@font-face {
  font-family: "Bowlby One";
  src: url("fonts/bowlby-one-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

/* Sky and mist are the app's library gradient; the bar uses the app icon's gradient. */
:root {
  color-scheme: light dark;
  --sky: #b8d8fa;
  --mist: #f5f8fc;
  --ink: #12233a;
  --ink-soft: #44566e;
  --link: #3f35d6;
  --rail: #12233a2e;
  --line: #12233a26;
  --band: #12233a;
  --on-band: #f5f8fc;
  --on-band-link: #b8d8fa;
  --bar-end: #6155f5;
  --display: "Bowlby One", "Arial Black", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #172c46;
    --mist: #0d141f;
    --ink: #eaf1fa;
    --ink-soft: #a9b8cb;
    --link: #8fc1ff;
    --rail: #eaf1fa33;
    --line: #eaf1fa26;
    --band: #172c46;
    --on-band: #eaf1fa;
    --on-band-link: #8fc1ff;
    --bar-end: #0088ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist) linear-gradient(var(--sky), var(--mist) 42rem) no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

/* Landing page */

.hero {
  padding-top: clamp(40px, 7vw, 88px);
}

.hero-copy,
.section {
  padding-inline: var(--gutter);
}

.wordmark {
  margin: 0;
  font-size: clamp(3.25rem, 15.5vw, 15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 24em;
  margin: clamp(16px, 2.5vw, 28px) 0 0;
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.availability {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.scrubber {
  --position: 64%;
  --walker: clamp(120px, 17vw, 240px);
  margin-top: clamp(4px, 1vw, 16px);
}

.track {
  position: relative;
  height: calc(var(--walker) * 1.2 + 6px);
}

.rail,
.played {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
}

.rail {
  right: 0;
  background: var(--rail);
}

.played {
  width: var(--position);
  background: linear-gradient(90deg, #ff383c, var(--bar-end));
  animation: play 1.8s cubic-bezier(0.3, 0, 0.3, 1) both;
}

.walker {
  position: absolute;
  bottom: 6px;
  left: var(--position);
  width: var(--walker);
  margin-left: calc(var(--walker) * -0.28);
  animation: walk 1.8s cubic-bezier(0.3, 0, 0.3, 1) both;
}

.walker svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 28% 100%;
  animation: step 0.45s ease-in-out 4;
}

.walker stop:first-child {
  stop-color: #ff383c;
}

.walker stop:last-child {
  stop-color: var(--bar-end);
}

.times {
  display: flex;
  justify-content: space-between;
  padding: 8px var(--gutter) 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

@keyframes play {
  from {
    width: 0;
  }
}

@keyframes walk {
  from {
    left: 0;
  }
}

@keyframes step {
  25% {
    transform: rotate(-2.5deg);
  }

  75% {
    transform: rotate(2.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .played,
  .walker,
  .walker svg {
    animation: none;
  }
}

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.02;
}

.steps {
  max-width: 60rem;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: clamp(8px, 2vw, 24px);
  padding-block: clamp(18px, 2.5vw, 28px);
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  grid-row: span 2;
  content: counter(step);
  font: 1.5rem/1.2 var(--display);
  color: var(--ink-soft);
}

.steps h3 {
  margin: 0;
  font: 700 1.3125rem/1.3 var(--text);
}

.steps p {
  max-width: 34em;
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.band {
  background: var(--band);
  color: var(--on-band);
}

.band p {
  max-width: 34em;
  margin: 20px 0 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  line-height: 1.45;
}

.band a {
  color: var(--on-band-link);
}

.band :focus-visible {
  outline-color: var(--on-band-link);
}

.notes {
  max-width: 38em;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.notes li + li {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Privacy policy */

.doc-header {
  padding: 20px var(--gutter) 0;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 1.25rem/1 var(--display);
  text-decoration: none;
}

.home-link img {
  width: 32px;
  height: 32px;
}

.policy {
  max-width: calc(40rem + 2 * var(--gutter));
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px);
}

.policy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.15;
}

.policy h2 {
  margin: 2em 0 0.5em;
  font: 700 1.5rem/1.25 var(--text);
  letter-spacing: -0.01em;
}

.policy h3 {
  margin: 1.5em 0 0.25em;
  font: 600 1.0625rem/1.4 var(--text);
}

.policy p,
.policy ul {
  margin: 0 0 1em;
}

.policy li + li {
  margin-top: 0.4em;
}

.updated {
  margin-top: 12px;
  color: var(--ink-soft);
}

.summary {
  margin-top: 28px;
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  line-height: 1.4;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.policy table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
}

.policy th,
.policy td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy th {
  font-weight: 600;
}

.policy td:first-child {
  width: 45%;
}
