/* SoundSlide: a pale gallery wall, the film hung in the middle, and its soundtrack drawn as one line through it. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f0f4;
  --tint: #e7e4ed;
  --ink: #232029;
  --muted: #5f5969;
  --line: rgba(35, 32, 41, 0.13);
  --rec: #d23f2e;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  top: 16px;
}

/* Type: Archivo Light, a touch wide. Quiet letters, lots of air. */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-stretch: 110%;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 32em;
  text-wrap: pretty;
}

.intro {
  color: var(--muted);
  max-width: 34em;
  margin-top: 20px;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: #3a3544;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -14px rgba(35, 32, 41, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  min-height: 40px;
  padding: 0.45em 1.1em;
  font-size: 0.95rem;
}

.rec {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--rec);
  flex: none;
  animation: rec 2.4s ease-out infinite;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.soon {
  color: var(--muted);
}

/* Header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-head::before {
  /* frosted strip, full-bleed behind the centred header */
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: rgba(241, 240, 244, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav .nav-link {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav .lang {
    display: none;
  }
}

/* Hero: headline, then the film hung on the wall, its sound running out past both edges */
.hero {
  padding-block: clamp(28px, 5vw, 64px) clamp(72px, 9vw, 120px);
  text-align: center;
  overflow-x: clip; /* the glow behind the film must not widen the page on phones */
}

.hero h1 {
  margin-inline: auto;
  max-width: 12em;
}

.hero .lead {
  margin: 22px auto 0;
}

.film {
  --h: clamp(420px, 64svh, 720px);
  position: relative;
  margin: clamp(36px, 5vw, 60px) auto 0;
  width: min(calc(var(--h) * 9 / 16), calc(100% - 2 * var(--gutter)));
}

.frame {
  position: relative;
}

.wave {
  /* full-bleed, centred on the film */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 40%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.film video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  background: #2a2730;
  box-shadow: 0 2px 4px rgba(35, 32, 41, 0.08), 0 40px 70px -36px rgba(35, 32, 41, 0.55);
}

.film-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.film-ui[hidden] {
  display: none;
}

.glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: rgba(241, 240, 244, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.45);
  transition: background-color 0.2s;
}

.glass:hover {
  background: #fff;
}

.sound-btn {
  padding: 0.5em 1.25em 0.5em 1em;
}

.sound-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.sound-btn .waves {
  transition: opacity 0.2s;
}

.sound-btn:not(.on) .waves {
  opacity: 0.35;
}

.play-btn {
  width: 46px;
  padding: 0;
}

.play-btn::before {
  /* pause bars, or a play triangle while paused */
  content: "";
  width: 12px;
  height: 14px;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px);
}

.play-btn.paused::before {
  width: 12px;
  height: 14px;
  margin-left: 3px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* The wall label: beside the film on wide screens, under it on narrow ones */
.label {
  margin: 22px auto 0;
  max-width: 22em;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.label strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 1100px) {
  .label {
    position: absolute;
    left: calc(100% + 40px);
    bottom: 4px;
    width: 17em;
    margin: 0;
    text-align: left;
  }
}

.hero .cta-row {
  justify-content: center;
  margin-top: 30px;
}

.req {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding-block: clamp(80px, 11vw, 150px);
}

.section+.section {
  border-top: 1px solid var(--line);
}

.tint {
  background: var(--tint);
  border-top-color: transparent !important;
}

.tint+.section {
  border-top-color: transparent;
}

/* Listening notes */
.notes {
  list-style: none;
  padding: 0;
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(32px, 7vw, 96px);
}

.notes li {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.notes p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 30em;
}

@media (max-width: 720px) {
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Privacy */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.privacy .more {
  margin-top: 24px;
  color: var(--muted);
}

.checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  font-size: 1.06rem;
}

.checks li {
  position: relative;
  padding-left: 26px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

@media (max-width: 760px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pricing: a small Free/Pro table, then three plans side by side, nothing boxed */
.compare {
  width: 100%;
  max-width: 680px;
  margin-top: clamp(40px, 5vw, 56px);
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(35, 32, 41, 0.2);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  padding-top: 0;
  font-weight: 500;
  border-bottom-color: var(--ink);
}

.compare tbody th {
  padding-right: 16px;
  text-wrap: pretty;
}

.compare td,
.compare thead th+th {
  width: 7em;
  text-align: center;
}

.compare .y::before {
  /* check mark */
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-bottom: 3px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.compare .n::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1.5px;
  vertical-align: middle;
  background: var(--muted);
}

@media (max-width: 480px) {

  .compare td,
  .compare thead th+th {
    width: 5.5em;
  }

  .compare {
    font-size: 0.95rem;
  }
}

.plans {
  list-style: none;
  padding: 0;
  margin-top: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans li {
  padding: 6px clamp(18px, 3vw, 40px) 4px;
  border-left: 1px solid rgba(35, 32, 41, 0.2);
}

.plans li:first-child {
  padding-left: 0;
  border-left: 0;
}

.plan-name {
  font-weight: 500;
}

.plan-price {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 300;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.plan-per {
  display: block;
  color: var(--muted);
}

.plan-note {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
}

@media (max-width: 680px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .plans li,
  .plans li:first-child {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(35, 32, 41, 0.2);
  }
}

.fine {
  margin-top: clamp(40px, 5vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52em;
}

/* Download */
.get {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.get img {
  width: clamp(120px, 16vw, 190px);
  filter: drop-shadow(0 24px 28px rgba(35, 32, 41, 0.22));
}

.get .cta-row {
  margin-top: 28px;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin-top: 36px;
  max-width: 40em;
}

.facts dt {
  font-weight: 500;
}

.facts dd {
  color: var(--muted);
}

@media (max-width: 680px) {
  .get {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 12px;
  }
}

/* FAQ */
.faq-list,
.support {
  max-width: 800px;
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 1.12rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: linear-gradient(var(--muted), var(--muted)) center / 100% 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 40em;
}

.support {
  margin-top: 64px;
}

.support p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 36em;
}

.support a {
  color: var(--ink);
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Motion. Everything below is decoration: the page reads the same with it switched off. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
}

@keyframes hang {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
  }
}

@keyframes rec {
  from {
    box-shadow: 0 0 0 0 rgba(210, 63, 46, 0.7);
  }

  70%,
  to {
    box-shadow: 0 0 0 0.6em rgba(210, 63, 46, 0);
  }
}

@keyframes breathe {
  to {
    transform: rotate(40deg) scale(1.15);
    opacity: 0.75;
  }
}

@keyframes drift {
  to {
    transform: translateX(-100%);
  }
}

@keyframes float {
  to {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Hero arrives in order: headline, lead, button, then the film */
.hero .wrap>*,
.film {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero .lead {
  animation-delay: 0.12s;
}

.hero .cta-row {
  animation-delay: 0.24s;
}

.hero .req {
  animation-delay: 0.32s;
}

.film {
  animation-name: hang;
  animation-duration: 1.2s;
  animation-delay: 0.35s;
}

/* A slow wash of the icon's colours behind the film */
.frame::before {
  content: "";
  position: absolute;
  inset: -12% -45%;
  background:
    radial-gradient(38% 38% at 30% 30%, rgba(221, 151, 57, 0.5), transparent 70%),
    radial-gradient(42% 42% at 72% 58%, rgba(146, 116, 226, 0.45), transparent 70%),
    radial-gradient(36% 36% at 38% 80%, rgba(78, 158, 51, 0.32), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  animation: breathe 11s ease-in-out infinite alternate;
}

/* The sounds drifting past, between the film and the first section */
.sounds {
  display: flex;
  overflow: hidden;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 300;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.sounds p {
  flex: none;
  animation: drift 48s linear infinite;
}

.sounds span::after {
  content: "";
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  margin: 0 0.9em 0.16em;
  border-radius: 50%;
  background: #4e9e33;
}

.sounds span:nth-child(3n + 2)::after {
  background: #dd9739;
}

.sounds span:nth-child(3n)::after {
  background: var(--rec);
}

/* Scroll reveals; app.js adds .reveal, then .in once the element is on screen */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.notes li {
  position: relative;
  border-top-color: transparent;
}

.notes li::before {
  /* the rule above each note draws itself in */
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: inherit;
}

.notes li.reveal:not(.in)::before {
  transform: scaleX(0);
}

.get img {
  animation: float 5s ease-in-out infinite alternate;
}

.faq details[open] p {
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Legal page */
.legal {
  max-width: 760px;
  padding-block: 40px 96px;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
}

.legal p,
.legal ul,
.legal table {
  margin-top: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li+li {
  margin-top: 6px;
}

.legal address {
  font-style: normal;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

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

.legal th {
  font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }

  .sounds {
    flex-wrap: wrap;
    white-space: normal;
    padding-inline: var(--gutter);
  }
}