/* Songwish homepage, on top of tokens.css: indigo and navy, Inter 600/700, pill buttons, speech-bubble cards,
   the lockup on a navy band. The genie's bubbles are lavender with the tail at the bottom left; indigo bubbles
   have it at the bottom right. Breakpoints: 991px (tablet), 767px (phone landscape), 479px (phone).
   Motion lives in site.js; the .js and .is-loaded classes on <html> gate its starting states. */

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; }
body {
  min-height: 100%;
  margin: 0;
  background-color: var(--canvas);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin-top: 0; font-weight: 700; letter-spacing: -0.05em; }
h1 { margin-bottom: 0; font-size: 4.75rem; line-height: 1; }
h2 { margin-bottom: 10px; font-size: 4rem; line-height: 1.1; }
h3 { margin-bottom: 0; font-size: 2.25rem; line-height: 1.15; }
p { margin: 0; }
a { color: var(--ink-navy); text-decoration: none; }
strong { font-weight: 700; }
img { display: inline-block; max-width: 100%; vertical-align: middle; border: 0; }
ul, ol { margin: 0 0 10px; padding-left: 40px; }
svg:not(:root) { overflow: hidden; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.page { max-width: 100%; overflow-x: clip; }
.wrap { padding-left: 5rem; padding-right: 5rem; }
.container { width: auto; max-width: 80rem; margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--primary); font-weight: 700; }

/* The big display heading (Wish for a beat, Just a chat, Switch on Auto). */
.display { margin-bottom: 0; font-size: 5.75rem; line-height: 90%; }

/* ---------------------------------------------------------------- buttons: pills */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--full);
  font: 600 16px/1.4 var(--font-sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.btn--primary { background-color: var(--primary); color: var(--on-primary); }
.btn--primary:hover { filter: brightness(1.15); }
/* On navy: the white pill with navy text, lilac on hover (the strip's Open chat). */
.btn--light { background-color: var(--on-dark); color: var(--ink-navy); }
.btn--light:hover { background-color: var(--lilac); }
/* On indigo: the dark pill, navy with a hairline edge (the plugin's Listen). */
.btn--dark { align-self: flex-start; background-color: var(--ink-navy); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn--dark:hover { background-color: #1a2637; box-shadow: inset 0 0 0 2px var(--lilac); }

.get-btn {
  position: fixed;
  top: 16px;
  right: 2.5rem;
  z-index: 9999;
  display: inline-flex;
}

/* Icon tiles: an indigo circle with a white line icon (the plugin's file tile). */
.icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--full);
  background-color: var(--primary);
  color: var(--on-primary);
}
.icon svg { width: 24px; height: 24px; }
.icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- loader (desktop and tablet, until load) */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--ink-navy);
  background-image: radial-gradient(circle closest-corner at 50% 100%, rgba(69, 65, 254, 0.2), var(--ink-navy));
}
.loader__ring {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(217, 198, 255, 0.25);
  border-top-color: var(--lilac);
  border-radius: var(--full);
  animation: sw-spin 0.9s linear infinite;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- nav band */
.nav { position: sticky; top: 0; z-index: 8888; max-width: 100%; overflow-x: clip; }
.nav__bar {
  position: sticky;
  top: 0;
  z-index: 1002;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding: 0 2.5rem;
  background-color: var(--ink-navy);
}
.nav__logo {
  position: relative;
  z-index: 901;
  display: flex;
  column-gap: 0.5rem;
  align-items: flex-end;
  justify-content: center;
  justify-self: start;
  max-width: 100%;
}
.logo { display: block; width: auto; }
.logo--nav { height: 40px; }
.logo--footer { height: 48px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin-top: -5rem;
  padding-top: 5rem;
  background-color: var(--ink-navy);
  color: var(--canvas-lavender);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 2rem;
  width: 100%;
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
  padding: 10rem 5rem 3rem;
}
.hero__top { display: flex; flex-direction: column; align-items: center; row-gap: 2rem; }
.hero__title { max-width: 64rem; font-size: 5.75rem; text-align: center; }
.hero__text {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--lilac);
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
}
/* The wave sits behind the copy, centred in the hero like the copy is. */
.hero__wave { position: absolute; z-index: 0; width: 100%; pointer-events: none; }
.hero__wave canvas { display: inline-block; width: 100%; height: auto; aspect-ratio: 1920 / 600; }

/* ---------------------------------------------------------------- wish for a beat: the indigo bubble */
.beats {
  position: relative;
  width: 100%;
  height: 250vh;
  padding: 10rem 0 0;
  background-color: var(--ink-navy);
}
.beats__bubble {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--bubble-mine);
  background-color: var(--primary);
  color: var(--canvas-lavender);
}
.beats__top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
  max-width: 54rem;
  margin: 0 auto;
  padding-top: 5rem;
  text-align: center;
}
.beats__text { max-width: 28rem; }

/* The indigo glow that rises out of the dark (under the hero and under Switch on Auto). */
.glow { display: flex; width: 100%; }
.glow--hero {
  position: absolute;
  inset: 2% 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 20vh;
}
.glow--auto {
  position: absolute;
  inset: auto 0 -40%;
  align-items: flex-start;
  justify-content: center;
  height: 10vw;
}
.glow__shape {
  width: 100%;
  height: 50vw;
  overflow-x: hidden;
  border-radius: 150% 150% 0 0;
  background-color: var(--primary);
  box-shadow: var(--primary) 40px 0 36rem 10rem;
  filter: blur(0.6rem);
}

/* ---------------------------------------------------------------- just a chat, and what you can wish for */
.chat { position: relative; background-color: var(--canvas); }
.chat__intro { position: relative; z-index: 2; padding-left: 5rem; padding-right: 5rem; }
.chat__box { width: 100%; max-width: 50rem; margin: 0 auto; padding: 9rem 0 6rem; }
.chat__stack { display: flex; flex-direction: column; align-items: center; row-gap: 3rem; }
.chat__heading { text-align: center; }
.accent { padding-right: 0.02em; color: var(--primary); }

.wishes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1rem;
  overflow: hidden;
}
.wishes__top { display: flex; flex-direction: column; align-items: center; }
.wishes__text { max-width: 28rem; margin: 0 auto; color: var(--muted); text-align: center; }

/* The rolling "Wish for …" line: the centred wish is dark, the rest are muted. */
.ticker { position: relative; z-index: 1; width: 100%; }
.ticker__track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100vw; /* not 100 %: the endless row must not widen the block it sits in */
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  padding: 0 1rem 10px 0;
  color: var(--muted);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.ticker__item.is-active { color: var(--foreground); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 2.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 80rem;
  margin: 6rem auto 0;
  padding: 0 5rem 8rem;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  padding: 40px 32px;
  border-radius: var(--bubble);
  background-color: var(--canvas-lavender);
  text-align: center;
}
.feature h3 { font-size: 1.75rem; }
.feature p { max-width: 15.5rem; color: var(--muted); }

/* ---------------------------------------------------------------- switch on auto */
.auto { position: relative; z-index: 3; overflow: hidden; background-color: var(--ink-navy); }
.auto__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 9rem;
  padding: 9.25rem 0 12.25rem;
}
.auto__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}
.auto__heading { color: var(--canvas-lavender); text-align: center; }

/* ---------------------------------------------------------------- your own projects */
.projects {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--canvas-lavender);
}
.projects__pad { padding: 7.5rem 0 20rem; }
.projects__layout { display: flex; flex-direction: column; row-gap: 1rem; }
.projects__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.25rem;
  max-width: 50rem;
  text-align: center;
}
.projects__text { max-width: 28rem; color: var(--muted); }
.shot {
  width: min(24rem, 100%);
  margin: 3rem auto 0;
  overflow: hidden;
  border-radius: var(--md);
  background-color: var(--canvas);
  box-shadow: var(--shadow-lifted);
}
.shot img { display: block; width: 100%; height: auto; }

/* The two bubbles that straddle the edge into Install; they drift apart as you scroll. */
.asides {
  position: absolute;
  top: 100%;
  display: flex;
  justify-content: center;
  column-gap: 2rem;
  transform: translateY(-50%);
}
.aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.75rem;
  max-width: 20rem;
  padding: 48px 40px;
  text-align: center;
}
.aside h3 { font-size: 1.75rem; }
.aside p { font-size: 0.875rem; line-height: 140%; }
.aside--light {
  border-radius: var(--bubble);
  background-color: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transform: translateY(-9%);
}
.aside--light p { color: var(--muted); }
.aside--dark {
  border-radius: var(--bubble-mine);
  background-color: var(--ink-navy);
  color: var(--canvas-lavender);
  transform: translateY(9%);
}
.aside--dark p { color: var(--lilac); }

/* ---------------------------------------------------------------- install */
.install { background-color: var(--primary); color: var(--canvas-lavender); }
.install__pad { padding: 21.5rem 0 5rem; }
.install__layout { display: flex; flex-direction: column; align-items: center; }
.install__top { display: flex; flex-direction: column; align-items: center; row-gap: 0.25rem; text-align: center; }
.install__heading { max-width: 61.125rem; }
.install__text { max-width: 34rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--md);
  width: 100%;
  max-width: 64rem;
  margin: 4rem auto 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  padding: 28px 28px 32px;
  border-radius: var(--bubble);
  background-color: var(--canvas);
  color: var(--foreground);
  text-align: left;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--full);
  background-color: var(--ink-navy);
  color: var(--on-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.step p { color: var(--muted); line-height: 1.5; }
.step strong { color: var(--foreground); }

/* ---------------------------------------------------------------- pricing */
/* The plans are the genie's lavender bubbles; the one most people pick is the indigo bubble. */
.pricing { padding-top: 7rem; background-color: var(--canvas); }
.pricing__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.pricing__top h2 { margin-bottom: 0; }
.pricing__top p { max-width: 28rem; color: var(--muted); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--md);
  max-width: 64rem;
  margin: 4rem auto 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
  padding: 32px 32px 36px;
  border-radius: var(--bubble);
  background-color: var(--canvas-lavender);
  color: var(--foreground);
}
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sm); margin-bottom: var(--md); }
.plan__name h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.plan .icon { width: 40px; height: 40px; }
.plan .icon svg { width: 20px; height: 20px; }
.plan__badge {
  margin-left: auto;
  padding: 4px var(--sm);
  border-radius: var(--full);
  background-color: var(--lilac);
  color: var(--ink-navy);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__amount { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan__per,
.plan__local,
.plan p { color: var(--muted); }
.plan__credits { margin-top: var(--md); font-size: 1.25rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan p { line-height: 1.5; }
.plan--featured { border-radius: var(--bubble-mine); background-color: var(--primary); color: var(--on-primary); }
.plan--featured .icon { background-color: var(--on-dark); color: var(--primary); }
.plan--featured .plan__per,
.plan--featured .plan__local,
.plan--featured p { color: var(--lilac); }

/* ---------------------------------------------------------------- closing call */
.cta > .wrap { width: 100%; }
.cta__pad { padding: 5rem 0; }
.cta__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  padding: 7.5rem 6.5rem 7.5rem 3.5rem;
  border-radius: var(--bubble-mine);
  background-color: var(--primary);
}
.cta__left { display: flex; flex-direction: column; align-items: flex-start; row-gap: 3rem; max-width: 30rem; }
.cta__heading { color: var(--canvas-lavender); text-align: left; }
.cta__right { position: relative; display: flex; align-items: center; justify-content: center; }
.cta__mark { display: block; width: 10rem; height: auto; }

/* ---------------------------------------------------------------- footer: the navy band again */
.footer { background-color: var(--ink-navy); color: var(--on-dark); }
.footer__pad { padding: 4rem 0; }
.footer__layout { display: flex; flex-direction: column; row-gap: 5rem; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; }
.footer__logo { display: block; max-width: 100%; }
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 3rem 6rem; }
.footer__col { display: flex; flex-direction: column; row-gap: 0.5rem; }
.footer__title { font-weight: 700; }
.footer__col a,
.footer__col span { color: var(--lilac); text-decoration: none; }
.footer__col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; }
.footer__copy { color: var(--lilac); font-size: 0.875rem; line-height: 140%; }

/* ---------------------------------------------------------------- motion: starting states (site.js plays them) */
/* Split headings: each word rises out of its own clipped box. */
.word, .word__in {
  display: inline-block;
  margin: -0.2em;
  padding: 0.2em;
  overflow: hidden;
  white-space: nowrap;
}
.js [data-rise] { opacity: 0; transform: translate3d(0, 2rem, 0); }

@media screen and (min-width: 768px) {
  /* Desktop and tablet open behind the loader, then the band, the wave and the button come in. */
  .js:not(.is-loaded) .page { display: none; }
  .js:not(.is-loaded) .loader { display: flex; }
  .js .nav__bar { opacity: 0; }
  .js .hero__btn { opacity: 0; transform: translate3d(0, 2rem, 0); }
  .js .hero__wave,
  .js .glow--hero { opacity: 0; }
}

/* ---------------------------------------------------------------- tablet */
@media screen and (max-width: 991px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3.25rem; }
  .display { font-size: 4.5rem; }
  .wrap,
  .chat__intro { padding-left: 2rem; padding-right: 2rem; }

  .nav__bar { grid-template-rows: 5rem; gap: 0; padding: 0; }
  .nav__logo { order: -1; align-self: center; margin-left: 2rem; }

  .hero { height: auto; }
  .hero__inner { padding-left: 2rem; padding-right: 2rem; }
  .beats__bubble { row-gap: 3rem; }
  .beats__top { padding: 10rem 2rem 0; }
  .ticker__item { font-size: 3.25rem; }
  .features { padding-left: 2rem; padding-right: 2rem; }
  .aside--dark { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 32rem; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
  .cta { display: flex; }
  .cta__pad { padding: 4rem 0; }
  .cta__card { grid-template-columns: 1.5fr 1fr; column-gap: 1rem; padding: 3rem 2rem; }
}

/* ---------------------------------------------------------------- phone landscape */
@media screen and (max-width: 767px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  .display,
  .hero__title { font-size: 3rem; }

  .get-btn { top: 20px; right: 16px; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .logo--nav { height: 32px; }

  .hero {
    height: auto;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 140%, var(--primary) 17%, rgba(16, 23, 34, 0) 55%);
  }
  .hero__inner { row-gap: 11rem; padding-bottom: 8.75rem; }
  .hero__wave { transform: scale(2); }

  .beats { height: auto; padding: 0; }
  .glow--hero { position: static; height: 7rem; filter: blur(0.6rem); transform: translateY(-40%); }
  .glow__shape { box-shadow: var(--primary) 20px 0 36rem 10rem; }
  .beats__bubble { height: auto; margin-top: -5.5rem; padding: 5.5rem 2rem; border-radius: 0; }
  .beats__top { padding-top: 0; }

  .chat {
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .chat__box { padding: 6rem 0; }
  .chat__stack { row-gap: 1.5rem; }
  .wishes { order: 1; }
  .wishes__text { padding: 0 2rem; }
  .ticker__item { font-size: 2.25rem; }
  .features { order: 3; grid-template-columns: 1fr; gap: 3rem 0; margin-top: 3rem; padding-bottom: 5rem; }

  .auto__layout { row-gap: 4rem; padding: 6rem 0 9rem; }

  .projects__pad { padding: 6rem 0 14rem; }
  .projects__top { row-gap: 1rem; }
  .asides { column-gap: 1rem; padding: 0 1rem; }
  .aside { flex: 1 1 0%; padding: 32px 20px; }
  .aside h3 { font-size: 1.375rem; }

  .install__pad { padding: 17rem 0 5.5rem; }
  .install__top { row-gap: 1rem; }

  .plan { padding: 28px 24px 32px; }
  .plan__badge { margin-left: 0; }

  .cta__card { grid-template-columns: 1fr; row-gap: 3rem; justify-items: center; padding-top: 7rem; }
  .cta__left { align-items: center; row-gap: 2rem; text-align: center; }

  .footer__top { flex-direction: column; row-gap: 3rem; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; row-gap: 1rem; }
}

/* ---------------------------------------------------------------- phone */
@media screen and (max-width: 479px) {
  .container { max-width: none; }
  .hero__wave { width: 200%; transform: scale(1.25); }
  .beats__bubble { row-gap: 4rem; padding-left: 1rem; padding-right: 1rem; }
  .asides { column-gap: 0.5rem; padding: 0 0.5rem; }
  .aside--light { width: 100%; }
  .footer__layout { align-items: center; padding-top: 3rem; text-align: center; }
  .footer__top { align-items: center; }
  .footer__logo { width: 100%; }
  .footer__links { row-gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
