/* Latin only: Chinese punctuation stays with the system Chinese font. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/assets/fonts/sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2122, U+2212;
}

:root {
  --ground: #0a0a12;
  --panel: #191a2b;
  --line: #35364a;
  --line-soft: #1f2033;
  --text: #f1f2fa;
  --muted: #a8adc3;
  --quiet: #8b90a8;
  --pink: #ff2d78;
  --action: #e00061;
  --cyan: #00ffcc;
  --header-h: 64px;
  --vh: 100vh;
  /* On narrow screens the particles sit above the text, this tall. */
  --stage-h: clamp(232px, calc(var(--vh) * 0.42), 520px);
  --pad: clamp(20px, 5vw, 56px);
  --wide: 1360px;
  /* From a side of the page to the side of its content. */
  --edge: max(var(--pad), calc(50% - var(--wide) / 2 + var(--pad)));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Sora', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', system-ui, sans-serif;
}

/* Small viewport units keep the layout still while a phone's address bar moves. */
@supports (height: 1svh) {
  :root {
    --vh: 100svh;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--ground);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.8 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 45, 120, 0.4);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--edge);
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 18, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: border-color 0.3s ease;
}

.site-header[data-scrolled],
.site-header[data-open] {
  border-bottom-color: var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
}

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

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name b {
  color: var(--pink);
  font-weight: inherit;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  margin-left: clamp(24px, 4vw, 52px);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    top 0.25s ease;
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  top: 26px;
}

.site-header[data-open] .nav-toggle::before {
  top: 21px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle::after {
  top: 21px;
  transform: rotate(-45deg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.button:hover {
  box-shadow: 0 0 0 5px rgba(255, 45, 120, 0.22);
}

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

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-ghost:hover {
  border-color: #6a6d8a;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.actions .button:not(.button-ghost) {
  animation: breathe 3.2s ease-in-out infinite;
}

.actions .button:not(.button-ghost):hover {
  animation-play-state: paused;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 45, 120, 0),
      0 10px 30px -12px rgba(255, 45, 120, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(255, 45, 120, 0.13),
      0 10px 36px -8px rgba(255, 45, 120, 0.8);
  }
}

/* Showcase: one stage of particles behind the text of each feature */

.show {
  --col: min(540px, 37vw);
  --gap: clamp(24px, 3.4vw, 56px);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(var(--vh) - var(--header-h));
  /* Clipped, where the browser can, rather than hidden: a hidden box can
     still be scrolled by the browser, and this one has no way back. */
  overflow: hidden;
  overflow: clip;
  scroll-margin-top: var(--header-h);
  touch-action: pan-y pinch-zoom;
}

/* A faint grid that fades out away from the particles. */
.show::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(241, 242, 250, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 242, 250, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(64% 72% at 70% 46%, #000 0, transparent 76%);
  mask-image: radial-gradient(64% 72% at 70% 46%, #000 0, transparent 76%);
  pointer-events: none;
}

.show::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 150px;
  background: linear-gradient(rgba(10, 10, 18, 0), var(--ground));
  pointer-events: none;
}

.show-stage {
  position: absolute;
  inset: 0;
}

.show-stage::before,
.show-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.show-stage::before {
  inset: -8%;
  background: radial-gradient(44% 50% at 69% 47%, rgba(255, 45, 120, 0.18) 0, rgba(0, 255, 204, 0.07) 42%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}

.show-stage::after {
  inset: 0;
  background:
    radial-gradient(36% 44% at 4% 100%, rgba(0, 255, 204, 0.09), transparent 70%),
    radial-gradient(30% 36% at 100% 0%, rgba(96, 112, 255, 0.11), transparent 70%);
}

@keyframes drift {
  from {
    transform: translate3d(-2%, 1.5%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1.5%, 0) scale(1.08);
  }
}

.show-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Where the particles gather: beside the text, reaching a little past the
   content on the right. The script reads this box. */
.show-focus {
  position: absolute;
  left: calc(var(--edge) + var(--col) + var(--gap));
  right: max(3%, calc(50% - var(--wide) / 2 - 40px));
  top: 4%;
  bottom: 13%;
  container-type: size;
}

.stage-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(60%, 60vh);
  max-width: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease;
}

/* The brand image sits exactly where the particles form the same mark. */
@supports (width: 1cqmin) {
  .stage-mark {
    width: min(103.1cqmin, 1009px);
    transform: translate(calc(-50% + min(1.516cqmin, 14.8px)), calc(-50% + min(1.516cqmin, 14.8px)));
  }
}

.show-stage[data-live] .show-canvas {
  opacity: 1;
}

.show-stage[data-live] .stage-mark {
  opacity: 0;
}

.stage-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--text);
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stage-cue span {
  padding-left: 0.3em;
  letter-spacing: 0.3em;
}

.stage-cue b {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.show-stage[data-form='breath'] .stage-cue[data-on] {
  opacity: 1;
}

.show-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  padding: 0 var(--edge);
}

.scenes {
  grid-row: 1;
  align-self: center;
  width: var(--col);
  padding: 36px 0 20px;
}

.scene {
  padding: 30px 0;
}

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

/* With the script running the scenes share one place and take turns. */
.show[data-enhanced] .scenes {
  display: grid;
}

.show[data-enhanced] .scene {
  grid-area: 1 / 1;
  align-self: center;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  /* A scene on its way out no longer takes clicks meant for the next one. */
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease,
    transform 0.6s ease,
    visibility 0s linear 0.45s;
}

.show[data-enhanced] .scene[data-active] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.6s ease 0.12s,
    transform 0.7s var(--ease) 0.12s,
    visibility 0s;
}

/* Without the script the stage keeps to the first screen. */
.show:not([data-enhanced]) .show-stage {
  bottom: auto;
  height: calc(var(--vh) - var(--header-h));
}

.scene h1 {
  margin-bottom: 26px;
  background: linear-gradient(100deg, #ffffff 24%, #ffd3e2 58%, #b9fff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.scene h2,
.band h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.scene h2 {
  font-size: clamp(30px, 3.7vw, 50px);
}

/* A heading breaks between phrases, never inside one. */
.phrase {
  display: inline-block;
}

.scene p,
.band p {
  margin-bottom: 20px;
  color: var(--muted);
}

.scene .lead {
  margin-bottom: 30px;
  font-size: clamp(17px, 1.5vw, 20px);
}

.scene .fine,
.band .fine {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.7;
}

.scene .actions {
  margin-bottom: 22px;
}

.scene .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.kicker b {
  padding: 2px 10px;
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.fine a,
.trust-head a,
.about-list a,
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Showcase navigation: one labelled progress bar per scene */

.show-nav {
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 22px;
}

.show-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 14px);
}

.show-tab {
  --dwell: 7s;
  padding: 14px 0 6px;
  border: 0;
  background: none;
  color: var(--quiet);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.show-tab[data-tab='mark'] {
  --dwell: 6s;
}

.show-tab[data-tab='heart'] {
  --dwell: 9s;
}

/* One whole breath: in for 4, hold for 7, out for 8. */
.show-tab[data-tab='breath'] {
  --dwell: 19s;
}

.show-tab:hover,
.show-tab[aria-selected='true'] {
  color: var(--text);
}

.show-bar {
  position: relative;
  display: block;
  height: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(241, 242, 250, 0.16);
}

.show-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.show-tab[aria-selected='true'] .show-bar::after {
  animation: show-progress var(--dwell) linear forwards;
}

.show[data-paused] .show-tab[aria-selected='true'] .show-bar::after {
  animation-play-state: paused;
}

/* Nothing advances by itself here, so the bar only marks the open scene. */
.show[data-static] .show-tab[aria-selected='true'] .show-bar::after {
  animation: none;
  transform: none;
}

@keyframes show-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.show-pause {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(25, 26, 43, 0.6);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.show-pause:hover {
  border-color: #6a6d8a;
  background: rgba(255, 255, 255, 0.05);
}

.show-pause::before,
.show-pause::after {
  content: '';
  position: absolute;
  top: 13px;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}

.show-pause::before {
  left: 14px;
}

.show-pause::after {
  right: 14px;
}

.show-pause[data-paused]::before {
  left: 15px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
  border-radius: 0;
  background: none;
}

.show-pause[data-paused]::after {
  display: none;
}

.show[data-static] .show-pause {
  display: none;
}

/* Mood demo */

.moods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 18px;
}

.mood {
  --mood: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(25, 26, 43, 0.55);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mood::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mood);
  box-shadow: 0 0 10px var(--mood);
}

.mood:hover {
  border-color: #6a6d8a;
  color: var(--text);
}

.mood[aria-pressed='true'] {
  border-color: var(--mood);
  background: var(--panel);
  color: var(--text);
  box-shadow:
    0 0 0 1px var(--mood),
    0 12px 32px -16px var(--mood);
}

.mood[data-mood='joy'] {
  --mood: #ffd23f;
}

.mood[data-mood='grateful'] {
  --mood: #ffa45c;
}

.mood[data-mood='energized'] {
  --mood: #b8f03a;
}

.mood[data-mood='relieved'] {
  --mood: #5cc8ff;
}

.mood[data-mood='anxious'] {
  --mood: #b388ff;
}

.mood[data-mood='tired'] {
  --mood: #8ea0cc;
}

.mood[data-mood='low'] {
  --mood: #4d7dff;
}

.mood[data-mood='tense'] {
  --mood: #ff2d78;
}

.mood[data-mood='lost'] {
  --mood: #b9a8cc;
}

.energy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 3ch;
  align-items: center;
  gap: 14px;
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.energy input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.energy output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Without the script, or when the stage could not start, nothing can be
   tried: the invitations and controls of the demos stay out of the page. */
.show:not([data-enhanced]) [data-demo],
.show[data-still] [data-demo],
.show[data-still] .stage-cue {
  display: none;
}

.show:not([data-enhanced]) .mood,
.show[data-still] .mood {
  pointer-events: none;
}

/* Breathing pacer */

.pacer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 2px 0 20px;
}

.pacer .pacer-status {
  min-height: 1.8em;
  margin: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Course */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.legend li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  background: #3d4060;
}

.legend .legend-open::before {
  background: #03e1d6;
}

.legend .legend-today::before {
  background: var(--pink);
}

/* Numbers */

.numbers {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(255, 45, 120, 0.06), rgba(0, 255, 204, 0.04));
}

.numbers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  list-style: none;
}

.numbers-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  padding: 30px 0;
}

.numbers-list li + li {
  padding-left: clamp(16px, 3.4vw, 44px);
  border-left: 1px solid var(--line-soft);
}

.numbers-list b {
  background: linear-gradient(120deg, #ffffff 20%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.numbers-list span {
  color: var(--muted);
  font-size: 15px;
}

/* Sections */

.band {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--pad);
  scroll-margin-top: var(--header-h);
}

.band-head {
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.band-head > :last-child {
  margin-bottom: 0;
}

.band .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

/* Parts that rise into place when they are scrolled to. The script marks the
   ones still below the screen; without it everything is simply there. */
[data-reveal] {
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

[data-reveal='wait'] {
  opacity: 0;
  transform: translateY(26px);
}

.feature-grid > li:nth-child(4n + 2),
.numbers-list li:nth-child(2),
.about-list > div:nth-child(2) {
  transition-delay: 0.08s;
}

.feature-grid > li:nth-child(4n + 3),
.numbers-list li:nth-child(3),
.about-list > div:nth-child(3) {
  transition-delay: 0.16s;
}

.feature-grid > li:nth-child(4n + 4),
.about-list > div:nth-child(4) {
  transition-delay: 0.24s;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid > li {
  display: flex;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(25, 26, 43, 0.86), rgba(15, 16, 27, 0.7));
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

/* A glow that follows the pointer; the script moves it. */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--glow-x, 50%) var(--glow-y, 0%), rgba(255, 45, 120, 0.2), rgba(0, 255, 204, 0.06) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature:hover,
.feature:focus-within {
  border-color: #4a4c66;
  box-shadow: 0 28px 60px -34px rgba(255, 45, 120, 0.55);
  transform: translateY(-4px);
}

.feature:hover::before,
.feature:focus-within::before {
  opacity: 1;
}

.feature > * {
  position: relative;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(0, 255, 204, 0.28);
  border-radius: 14px;
  background: rgba(0, 255, 204, 0.06);
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-fill {
  fill: currentColor;
  stroke: none;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.band .feature p {
  flex: 1;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.feature-link::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid var(--pink);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.feature-link:hover::after {
  transform: translateX(4px) rotate(45deg);
}

.features-note {
  max-width: 46em;
  margin-top: 28px;
}

/* Screenshots: a row of phones that moves by itself */

.screens {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.screens .band-head {
  max-width: var(--wide);
  margin: 0 auto clamp(20px, 3vw, 36px);
  padding: 0 var(--pad);
}

.screens .band-head p:not(.eyebrow) {
  max-width: 40em;
}

.reel-track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.reel[data-enhanced] .reel-track {
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.reel[data-enhanced] .reel-track::-webkit-scrollbar {
  display: none;
}

.reel-list {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  width: max-content;
  margin: 0;
  padding: 28px var(--pad) 36px;
  list-style: none;
}

.shot {
  flex: none;
  width: clamp(196px, 21vw, 264px);
}

/* Seven shots make one set. Counting within the set keeps the pattern the
   same in the copies the script adds for the endless row. */
.shot:nth-child(7n + 2),
.shot:nth-child(7n + 4),
.shot:nth-child(7n + 6) {
  margin-top: 40px;
}

.shot figure {
  margin: 0;
}

.shot figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.reel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.reel-button {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(25, 26, 43, 0.6);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.reel-button:hover {
  border-color: #6a6d8a;
  background: rgba(255, 255, 255, 0.05);
}

.reel-button::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translate(-70%, -50%) rotate(45deg);
}

.reel-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.reel-pause::before,
.reel-pause::after {
  content: '';
  position: absolute;
  left: auto;
  top: 16px;
  width: 3px;
  height: 12px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
  transform: none;
}

.reel-pause::before {
  left: 16px;
}

.reel-pause::after {
  right: 16px;
}

.reel-pause[data-paused]::before {
  left: 17px;
  top: 15px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
  border-radius: 0;
  background: none;
}

.reel-pause[data-paused]::after {
  display: none;
}

/* Nothing moves by itself here, so there is nothing to pause. */
.reel[data-static] .reel-pause {
  display: none;
}

/* Themes: radios drive the preview without script */

.theme-picker {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  column-gap: clamp(32px, 8vw, 128px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-copy p:not(.eyebrow) {
  max-width: 34em;
}

.theme-options {
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.theme-option {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 16px 6px 16px 26px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-option::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 1px solid #6a6d8a;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-option:hover {
  color: var(--text);
}

.theme-name {
  font-size: 18px;
  font-weight: 600;
}

.theme-note {
  font-size: 14px;
}

#theme-neon-light:checked ~ .theme-copy [for='theme-neon-light'],
#theme-neon-dark:checked ~ .theme-copy [for='theme-neon-dark'],
#theme-sky-blue:checked ~ .theme-copy [for='theme-sky-blue'],
#theme-deep-sea:checked ~ .theme-copy [for='theme-deep-sea'] {
  color: var(--text);
}

#theme-neon-light:checked ~ .theme-copy [for='theme-neon-light']::before,
#theme-neon-dark:checked ~ .theme-copy [for='theme-neon-dark']::before,
#theme-sky-blue:checked ~ .theme-copy [for='theme-sky-blue']::before,
#theme-deep-sea:checked ~ .theme-copy [for='theme-deep-sea']::before {
  border-color: var(--pink);
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}

#theme-neon-light:focus-visible ~ .theme-copy [for='theme-neon-light'],
#theme-neon-dark:focus-visible ~ .theme-copy [for='theme-neon-dark'],
#theme-sky-blue:focus-visible ~ .theme-copy [for='theme-sky-blue'],
#theme-deep-sea:focus-visible ~ .theme-copy [for='theme-deep-sea'] {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.phone {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: clamp(230px, 25vw, 310px);
  padding: 10px;
  border: 1px solid #3a3b52;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a2b40, #12131f);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.9);
}

.phone::before {
  content: '';
  position: absolute;
  inset: -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 45, 120, 0.2), rgba(0, 255, 204, 0.07) 56%, transparent 76%);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 941 / 1672;
  border-radius: 32px;
  background: #000;
}

/* The phones of the screenshot row: smaller, without a glow of their own. */
.phone-shot {
  width: 100%;
  padding: 8px;
  border-radius: 36px;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s ease;
}

.phone-shot::before {
  display: none;
}

.phone-shot .phone-screen {
  aspect-ratio: 585 / 1266;
  border-radius: 28px;
}

.phone-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:hover .phone-shot {
  box-shadow: 0 50px 90px -40px rgba(255, 45, 120, 0.6);
  transform: translateY(-10px);
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0s linear 0.6s;
}

#theme-neon-light:checked ~ .phone .art-neon-light,
#theme-neon-dark:checked ~ .phone .art-neon-dark,
#theme-sky-blue:checked ~ .phone .art-sky-blue,
#theme-deep-sea:checked ~ .phone .art-deep-sea {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.6s ease,
    visibility 0s;
}

/* Boundaries and about: a heading beside a list of short entries */

.trust,
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  column-gap: clamp(32px, 6vw, 96px);
}

.trust-head,
.about-head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.trust-head a {
  white-space: nowrap;
}

.trust-list,
.about-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.trust-list > div,
.about-list > div {
  display: grid;
  grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.trust-list dt,
.about-list dt {
  font-weight: 600;
}

.trust-list dd,
.about-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.about {
  position: relative;
  isolation: isolate;
}

/* The glow ends inside the section: anything past its sides would make the
   page scroll sideways. */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(34% 50% at 24% 46%, rgba(255, 45, 120, 0.11), transparent 70%);
  pointer-events: none;
}

/* Footer */

.site-footer {
  padding: 56px var(--edge) 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.footer-main,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-main {
  gap: 36px 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.footer-line {
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(36px, 6vw, 88px);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 6em;
}

.footer-title {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-legal {
  align-items: center;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal documents */

.legal {
  max-width: 47em;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--pad) 96px;
}

.legal h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.3;
}

.legal h1 + p {
  color: var(--quiet);
  font-size: 14px;
}

.legal h2,
.legal h3,
.legal h4 {
  scroll-margin-top: calc(var(--header-h) + 16px);
  line-height: 1.4;
}

.legal h2 {
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 24px;
}

.legal h3 {
  margin: 36px 0 12px;
  font-size: 19px;
}

.legal h4 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.legal p,
.legal li {
  color: #c6c9da;
}

.legal p {
  margin-bottom: 18px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal ul,
.legal ol {
  margin: 0 0 20px;
  padding-left: 1.6em;
}

.legal li {
  margin: 6px 0;
}

.table-scroll {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.legal table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.65;
}

.legal th,
.legal td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: #c6c9da;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(25, 26, 43, 0.75);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal tbody tr:last-child td {
  border-bottom: 0;
}

/* Not found */

.missing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: var(--wide);
  min-height: calc(var(--vh) - var(--header-h) - 260px);
  margin: 0 auto;
  padding: 64px var(--pad);
}

.missing .missing-code {
  align-self: flex-start;
  margin-bottom: 12px;
  background: linear-gradient(110deg, var(--cyan), #ffffff 46%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(96px, 20vw, 220px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.missing h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
}

.missing p {
  margin-bottom: 30px;
  color: var(--muted);
}

/* Medium screens */

@media (max-width: 1099px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid > li:nth-child(odd) {
    transition-delay: 0s;
  }

  .feature-grid > li:nth-child(even) {
    transition-delay: 0.08s;
  }
}

/* Narrow screens: the particles stay on top and the text sits beneath them */

@media (max-width: 959px) {
  .show {
    display: block;
  }

  .show::before {
    -webkit-mask-image: radial-gradient(90% 34% at 50% 22%, #000 0, transparent 80%);
    mask-image: radial-gradient(90% 34% at 50% 22%, #000 0, transparent 80%);
  }

  .show-stage::before {
    inset: 0;
    background: radial-gradient(70% 30% at 50% 22%, rgba(255, 45, 120, 0.2) 0, rgba(0, 255, 204, 0.07) 46%, transparent 74%);
    animation: none;
  }

  .show-focus {
    left: 0;
    right: 0;
    top: 12px;
    bottom: auto;
    height: calc(var(--stage-h) - 16px);
  }

  .show:not([data-enhanced]) .show-stage {
    height: var(--stage-h);
  }

  .show-inner {
    display: flex;
    flex-direction: column;
    padding-top: var(--stage-h);
  }

  .show-nav {
    gap: 8px;
    padding-bottom: 4px;
  }

  .show-tabs {
    gap: 4px;
  }

  .show-tab {
    font-size: 13px;
    text-align: center;
  }

  .scenes {
    align-self: stretch;
    width: auto;
    padding: 22px 0 32px;
  }

  .show[data-enhanced] .scene {
    align-self: start;
  }

  .theme-picker {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }

  .theme-copy {
    display: contents;
  }

  .theme-copy .eyebrow,
  .theme-copy h2,
  .theme-copy p {
    order: 1;
    margin-bottom: 0;
  }

  .theme-copy .eyebrow,
  .theme-copy h2 {
    margin-bottom: -16px;
  }

  .phone {
    order: 2;
    width: min(62vw, 280px);
    margin: 0 auto;
  }

  .theme-options {
    order: 3;
    margin-top: 0;
  }

  .trust,
  .about {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .trust-head,
  .about-head {
    position: static;
  }
}

/* An upright tablet has room to spare: the particles take half the screen. */
@media (min-width: 600px) and (max-width: 959px) and (min-height: 880px) {
  :root {
    --stage-h: calc(var(--vh) * 0.5);
  }
}

@media (max-width: 759px) {
  :root {
    --header-h: 56px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px var(--pad) 14px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(10, 10, 18, 0.97);
  }

  .site-header[data-open] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .numbers-list li {
    flex-direction: column;
    gap: 2px;
    padding: 22px 0;
  }

  .numbers-list li + li {
    padding-left: 12px;
  }

  .numbers-list b {
    font-size: clamp(22px, 7.4vw, 32px);
  }

  .numbers-list span {
    font-size: 14px;
  }

  .trust-list > div,
  .about-list > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .feature-grid > li:nth-child(n) {
    transition-delay: 0s;
  }

  .shot {
    width: min(58vw, 230px);
  }

  .shot:nth-child(7n + 2),
  .shot:nth-child(7n + 4),
  .shot:nth-child(7n + 6) {
    margin-top: 28px;
  }
}

@media (max-width: 479px) {
  .moods {
    gap: 6px;
  }

  .mood {
    gap: 6px;
    padding: 8px 4px;
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  .mood::before {
    display: none;
  }

  .show-tab {
    font-size: 12px;
  }
}

@media print {
  [data-reveal='wait'] {
    opacity: 1;
    transform: none;
  }
}

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

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