/*
 * soundParty website.
 *
 * Same material as the app (src/theme/colors.ts): a warm near-black ground
 * that holds coloured light, the ember ramp as the only accent, and one lime
 * lamp that means "audio is live". Space Grotesk for display, Instrument Sans
 * for reading — the faces the app ships.
 */

:root {
  --ground: #0e0b0a;
  --raised: #17120f;
  --panel: #1d1714;
  --panel-high: #26201c;
  --hot: #f7c664;
  --ember: #f0913f;
  --deep: #e04b3c;
  --live: #a8e84b;
  --ink: #f8f1e9;
  --muted: #b9ab9e;
  --faint: #8a7c71;
  --rule: rgba(255, 236, 214, 0.1);
  --edge: rgba(255, 236, 214, 0.08);
  --ramp: linear-gradient(100deg, var(--hot), var(--ember) 55%, var(--deep));

  --display: 'Space Grotesk', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;

  /* One beat. Everything that pulses uses this, so everything is in step. */
  --beat: 1.2s;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain: keeps the big dark fields from reading as flat fills. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .84 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

p {
  margin: 0;
  text-wrap: pretty;
}

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--measure));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--ground);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.skip:focus {
  left: 0.5rem;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(14, 11, 10, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--rule);
}
.nav__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
}
.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ground);
  background: var(--ramp);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
@media (max-width: 800px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(7rem, 14vh, 10rem) 0 0;
  isolation: isolate;
}

/* Room light: two pools that drift, and one that follows the pointer. */
.lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.lights i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.lights i:nth-child(1) {
  width: 46rem;
  height: 46rem;
  right: -12rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(240, 145, 63, 0.38), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.lights i:nth-child(2) {
  width: 34rem;
  height: 34rem;
  left: -14rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(224, 75, 60, 0.28), transparent 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
.lights i:nth-child(3) {
  width: 26rem;
  height: 26rem;
  left: calc(var(--mx, 70%) - 13rem);
  top: calc(var(--my, 30%) - 13rem);
  background: radial-gradient(circle, rgba(247, 198, 100, 0.16), transparent 65%);
  transition: left 0.6s ease-out, top 0.6s ease-out;
}
@keyframes drift-a {
  to {
    transform: translate(-6rem, 5rem) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate(8rem, -4rem) scale(0.9);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.3vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero h1 span > b {
  display: block;
  font-weight: inherit;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 span:nth-child(2) > b {
  animation-delay: 0.1s;
}
.hero h1 span:nth-child(3) > b {
  animation-delay: 0.2s;
}
@keyframes rise {
  to {
    transform: none;
  }
}

.hero__lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
  opacity: 0;
  animation: fade 0.8s 0.45s ease-out forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  opacity: 0;
  animation: fade 0.8s 0.6s ease-out forwards;
}
.hero__facts {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--faint);
  opacity: 0;
  animation: fade 0.8s 0.75s ease-out forwards;
}
@keyframes fade {
  to {
    opacity: 1;
  }
}

/* Store button. A plain, honest placeholder until the listing is live; swap
   for Google's official badge artwork at launch (see website/README.md). */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(240, 145, 63, 0.5), 0 18px 50px -12px rgba(240, 145, 63, 0.55);
  transition: transform 0.2s, box-shadow 0.3s;
}
.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(240, 145, 63, 0.25), 0 22px 60px -12px rgba(240, 145, 63, 0.7);
}
.store svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.1;
  opacity: 0.7;
}
.store strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.store[aria-disabled='true'] {
  cursor: default;
}

.textlink {
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 0.15rem;
}
.textlink:hover {
  color: var(--hot);
}

/* The stage: one source, the room in step. */
.stage {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  aspect-ratio: 1;
  opacity: 0;
  animation: fade 1.2s 0.3s ease-out forwards;
}
.stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring {
  fill: none;
  stroke: url(#ramp);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring calc(var(--beat) * 4) linear infinite;
  opacity: 0;
}
.ring:nth-of-type(2) {
  animation-delay: calc(var(--beat) * 1);
}
.ring:nth-of-type(3) {
  animation-delay: calc(var(--beat) * 2);
}
.ring:nth-of-type(4) {
  animation-delay: calc(var(--beat) * 3);
}
@keyframes ring {
  0% {
    transform: scale(0.14);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.link {
  stroke: rgba(247, 198, 100, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  animation: flow calc(var(--beat) * 1) linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -12;
  }
}
.beat {
  transform-box: fill-box;
  transform-origin: center;
  animation: beat var(--beat) cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}
.halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo var(--beat) ease-out infinite;
}
@keyframes beat {
  0% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes halo {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.node__plate {
  fill: var(--panel);
  stroke: rgba(255, 236, 214, 0.16);
}
.node__glyph {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node__lamp {
  fill: var(--live);
}
.node text {
  font-family: var(--text);
  font-size: 13px;
  fill: var(--muted);
}

/* Waveform band — the app's signature motif, full bleed. */
.wave {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.35vw, 5px);
  height: clamp(4.5rem, 10vw, 8rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-inline: var(--gutter);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave i {
  flex: 1;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--hot), var(--ember) 50%, var(--deep));
  transform: scaleY(var(--h, 0.3));
  animation: bar var(--d, 1.2s) ease-in-out var(--o, 0s) infinite alternate;
}
@keyframes bar {
  to {
    transform: scaleY(var(--h2, 0.8));
  }
}

/* ----------------------------------------------------------- sections */

.section {
  padding-block: clamp(5rem, 11vw, 9rem);
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--rule);
}
.section h2 {
  font-size: clamp(2.125rem, 4.8vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.section__lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--flip > :first-child {
  order: 2;
}

.points {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
}
.points li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.points h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.points p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- sync demo */

.sync {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, var(--panel), var(--raised));
  border: 1px solid var(--edge);
  box-shadow: 0 40px 100px -40px rgba(240, 145, 63, 0.35);
}
.sync__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sync__title {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.sync__state {
  font-size: 0.875rem;
  color: var(--faint);
}
.sync__state.live {
  color: var(--live);
}
.sync__state::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}
.track {
  display: grid;
  grid-template-columns: 6.5rem 1fr 4.75rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.track__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track__name small {
  display: block;
  color: var(--faint);
  font-size: 0.78rem;
}
.track__lane {
  position: relative;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 236, 214, 0.04);
  overflow: hidden;
}
.track__lane canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.track__drift {
  text-align: right;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ember);
  transition: color 0.4s;
}
.track__drift.ok {
  color: var(--live);
}
.sync__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.sync__note {
  font-size: 0.8125rem;
  color: var(--faint);
  max-width: 22rem;
}
.key {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ground);
  background: var(--ramp);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 36px -8px rgba(240, 145, 63, 0.7);
  transition: transform 0.15s;
}
.key:hover {
  transform: translateY(-1px);
}
.key:active {
  transform: scale(0.97);
}
.confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
}

/* ------------------------------------------------------------- routes */

.routes {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  overflow: hidden;
}
.route {
  background: var(--ground);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color 0.3s;
}
.route:hover {
  background: var(--raised);
}
.route__count {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--ramp);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.route__count small {
  font-size: 1rem;
  letter-spacing: 0;
  -webkit-text-fill-color: var(--muted);
  font-family: var(--text);
  font-weight: 400;
  margin-left: 0.4rem;
}
.route h3 {
  margin-top: 1.25rem;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
}
.route p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9875rem;
}
.route dl {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}
.route dt {
  color: var(--faint);
}
.route dd {
  margin: 0;
}

.pledge {
  margin-top: 3rem;
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 44rem;
}
.pledge em {
  font-style: normal;
  color: var(--muted);
}

/* -------------------------------------------------------------- phone */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 36rem;
}
.phone {
  position: relative;
  width: 17.5rem;
  aspect-ratio: 9 / 19;
  border-radius: 2.6rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #3a302a, #15100d 40%, #2a221d);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 90px -30px rgba(240, 145, 63, 0.45);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 2.1rem;
  background: var(--ground);
  overflow: hidden;
  padding: 2.4rem 1.1rem 1.1rem;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
}
.phone__screen::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: -0.3rem;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone--back {
  position: absolute;
  transform: translate(-7.5rem, 2.5rem) rotate(-7deg) scale(0.92);
  filter: brightness(0.75);
}
.phone--front {
  transform: translate(5rem, 0) rotate(4deg);
  animation: bob 7s ease-in-out infinite alternate;
}
@keyframes bob {
  to {
    transform: translate(5rem, -0.9rem) rotate(3deg);
  }
}
.ph-glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  left: 50%;
  top: 3rem;
  margin-left: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 145, 63, 0.45), transparent 65%);
  filter: blur(18px);
  animation: beat var(--beat) ease-out infinite;
}
.ph-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.1rem;
  background: conic-gradient(from 210deg at 60% 40%, #e04b3c, #f7c664, #f0913f, #5a1524, #e04b3c);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.ph-art::after {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 0.55rem solid rgba(14, 11, 10, 0.55);
  box-shadow: 0 0 0 1.6rem rgba(14, 11, 10, 0.18);
}
.ph-title {
  position: relative;
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.ph-sub {
  position: relative;
  color: var(--muted);
}
.ph-live {
  color: var(--live);
}
.ph-wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 2.2rem;
  margin-top: 0.9rem;
}
.ph-wave i {
  flex: 1;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--hot), var(--deep));
  transform: scaleY(var(--h, 0.4));
}
.ph-wave i.rest {
  background: rgba(255, 236, 214, 0.16);
}
.ph-keys {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin-top: auto;
  padding-bottom: 0.4rem;
}
.ph-keys span {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  background: var(--muted);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ph-keys span:first-child {
  transform: scaleX(-1);
}
.ph-keys b {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--ramp);
  box-shadow: 0 0 30px rgba(240, 145, 63, 0.7);
  display: grid;
  place-items: center;
}
.ph-keys b::after {
  content: '';
  width: 0.95rem;
  height: 1.05rem;
  border-inline: 0.3rem solid var(--ground);
}
.ph-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.ph-code {
  margin-top: 0.9rem;
  padding: 0.8rem;
  border-radius: 0.9rem;
  background: var(--panel);
  text-align: center;
}
.ph-code b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--hot);
}
.ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.ph-label {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: var(--faint);
  font-size: 0.75rem;
}
.ph-seg {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-weight: 500;
  color: var(--faint);
}
.ph-seg .on {
  color: var(--ink);
  box-shadow: 0 0.35rem 0 -0.2rem var(--ember);
}

/* -------------------------------------------------------------- steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--ramp);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s;
}
.steps.in::before {
  transform: none;
}
.steps li {
  counter-increment: step;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--ember);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--hot);
}
.steps h3 {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ unlocks */

.ladders {
  margin-top: 3rem;
  display: grid;
  gap: 0;
}
.ladder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.ladder h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.ladder p {
  color: var(--muted);
}
.segments {
  display: flex;
  gap: 0.4rem;
}
.segments i {
  flex: 1;
  height: 0.7rem;
  border-radius: 99px;
  background: rgba(255, 236, 214, 0.13);
  position: relative;
  overflow: hidden;
}
.segments i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ramp);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease-out calc(var(--i) * 0.16s + 0.2s);
}
.ladder.in .segments i::after {
  transform: none;
}
.segments + small {
  display: block;
  margin-top: 0.5rem;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------ privacy */

.ledger {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.ledger h3 {
  font-size: 1.125rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger li {
  padding: 0.95rem 0 0.95rem 1.9rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.ledger li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--live);
}
.ledger .never li::before {
  background: none;
  border: 2px solid var(--faint);
}
.ledger b {
  font-weight: 600;
}
.ledger span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- faq */

.faq {
  margin-top: 2.5rem;
  max-width: 50rem;
}
.faq details {
  border-top: 1px solid var(--rule);
}
.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq details p {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--muted);
  max-width: 44rem;
}
.faq details p + p {
  margin-top: -0.75rem;
}

/* ---------------------------------------------------------------- end */

.finale {
  text-align: center;
  padding-block: clamp(6rem, 13vw, 11rem);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.finale::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -28rem;
  width: 60rem;
  height: 44rem;
  margin-left: -30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 145, 63, 0.42), rgba(224, 75, 60, 0.15) 45%, transparent 68%);
  filter: blur(30px);
  animation: beat var(--beat) ease-out infinite;
  z-index: -1;
}
.finale img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.4rem;
  margin: 0 auto 2rem;
  box-shadow: 0 20px 60px -10px rgba(240, 145, 63, 0.6);
}
.finale h2 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-inline: auto;
}
.finale p {
  margin: 1.5rem auto 2.5rem;
  color: var(--muted);
  max-width: 30rem;
}

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.foot__legal {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--faint);
  max-width: 52rem;
}

/* --------------------------------------------------------- doc pages */

.doc {
  padding: 8.5rem 0 5rem;
}
.doc__head {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.doc h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.doc__meta {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.9375rem;
}
.doc__grid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 44rem);
  gap: 4rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 6rem;
  font-size: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li + li {
  margin-top: 0.55rem;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--hot);
}
.prose h2 {
  font-size: 1.625rem;
  letter-spacing: -0.025em;
  margin: 3rem 0 0.9rem;
  scroll-margin-top: 6rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}
.prose p,
.prose li {
  color: #d9cdc1;
}
.prose p + p,
.prose ul + p,
.prose p + ul,
.prose ol + p {
  margin-top: 1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}
.prose li + li {
  margin-top: 0.45rem;
}
.prose a {
  color: var(--hot);
  text-underline-offset: 0.2em;
}
.prose strong {
  color: var(--ink);
}
.callout {
  padding: 1.4rem 1.6rem;
  border-radius: 1.1rem;
  background: var(--panel);
  border-left: 3px solid var(--ember);
  margin-bottom: 2.5rem;
}
.callout p {
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: #d9cdc1;
}
.prose th {
  color: var(--faint);
  font-weight: 500;
}
.tablewrap {
  overflow-x: auto;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero__grid,
  .split,
  .ledger {
    grid-template-columns: 1fr;
  }
  .split--flip > :first-child {
    order: 0;
  }
  .stage {
    max-width: 30rem;
    margin-top: 1rem;
  }
  .routes {
    grid-template-columns: 1fr;
  }
  .ladder {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .doc__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .toc {
    position: static;
    columns: 2;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
  }
}
@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    top: 1.5rem;
    bottom: 1.5rem;
    left: calc(1.5rem - 1px);
    right: auto;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }
  .phones {
    min-height: 32rem;
  }
  .phone {
    width: 15rem;
  }
  .phone--back {
    transform: translate(-4.5rem, 2rem) rotate(-7deg) scale(0.9);
  }
  .phone--front {
    transform: translate(3.5rem, 0) rotate(4deg);
    animation: none;
  }
  .track {
    grid-template-columns: 4.75rem 1fr 4rem;
    gap: 0.6rem;
  }
  .toc {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .ring {
    opacity: 0.35;
    animation: none !important;
  }
  .ring:nth-of-type(1) {
    transform: scale(0.4);
  }
  .ring:nth-of-type(2) {
    transform: scale(0.6);
  }
  .ring:nth-of-type(3) {
    transform: scale(0.8);
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
