/* CueBeat – landing page. The app's own world: near-black stage, neon green, gold stars. */
:root {
  --ink: #050507;
  --ink-2: #0d0d15;
  --card: #1a1a26;
  --card-2: #22222f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f6fa;
  --text-2: rgba(245, 246, 250, 0.84);
  --muted: rgba(228, 230, 242, 0.68);
  --soft: rgba(228, 230, 242, 0.58);
  --green: #00e676;
  --green-2: #7cff9f;
  --green-ink: #03140a;
  --gold: #fecc03;
  --violet: #c586ff;
  --pink: #ff5f6d;
  --blue: #5ab7ff;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --topbar: 66px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Stage light, like the glows behind the app's screens. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34vmax 28vmax at 6% 6%, rgba(0, 230, 118, 0.14), transparent 70%),
    radial-gradient(38vmax 30vmax at 96% 24%, rgba(150, 70, 255, 0.2), transparent 70%),
    radial-gradient(36vmax 28vmax at 40% 104%, rgba(90, 183, 255, 0.1), transparent 70%);
}

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

a {
  color: inherit;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 700;
  text-decoration: none;
}

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

.kicker {
  color: var(--green-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 0.95;
}

/* The marketing's short underline under a word. */
.mark {
  position: relative;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: 0.02em;
  bottom: 0;
  width: 42%;
  height: 0.09em;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.6);
}

.green {
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 700 0.98rem/1 var(--body);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.btn-green {
  border-color: transparent;
  background: var(--green);
  color: var(--green-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 34px rgba(0, 230, 118, 0.3);
}

.btn-green:hover {
  background: #33ec8f;
  box-shadow: 0 14px 40px rgba(0, 230, 118, 0.42);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 118, 0.6);
  box-shadow: 0 12px 30px rgba(0, 230, 118, 0.18);
}

.store-btn svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}

.store-btn span {
  display: grid;
  line-height: 1.1;
}

.store-btn small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
}

.store-btn strong {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 0.9rem;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.74);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar);
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.wordmark {
  color: var(--green);
  font: 900 1.3rem/1 var(--round);
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(0, 230, 118, 0.5);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.topnav .lang-switch {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.topnav .nav-cta {
  margin-left: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 700;
}

.topnav .nav-cta:hover {
  color: var(--green-ink);
  background: #33ec8f;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(820px, calc(100svh - var(--topbar)));
  padding-block: clamp(40px, 6vw, 80px);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.3rem, 7.6vw, 6.6rem);
  line-height: 1.02;
}

.hero h1 > span {
  display: block;
}

.hero .lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

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

.hero .store-row {
  margin-top: 32px;
}

.hero-stage {
  position: relative;
  height: 640px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 230, 118, 0.3), rgba(150, 70, 255, 0.18) 55%, transparent);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 600 / 1304;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #2d2d35, #0b0b0f 55%, #24242b);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  background: #000;
  object-fit: cover;
}

.hero-stage .phone {
  position: absolute;
}

.phone-back {
  top: 30px;
  left: 4%;
  transform: rotate(-8deg);
  opacity: 0.7;
}

.phone-front {
  top: 60px;
  right: 6%;
  transform: rotate(5deg);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(254, 204, 3, 0.35);
  border-radius: 16px;
  background: rgba(13, 13, 21, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.float-chip .stars {
  font-size: 1.1rem;
}

.chip-verdict {
  bottom: 70px;
  left: 0;
}

.chip-verdict small {
  display: block;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stars .off {
  color: rgba(254, 204, 3, 0.25);
}

/* Section scaffolding */
.band {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 760px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}

.section-head > p:not(.kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

/* The pitch: a round played out on the page */
.pitch {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.pitch-copy h2 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
}

.pitch-copy > p:not(.kicker) {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.pitch-copy > p:not(.kicker) strong {
  color: var(--text);
  font-weight: 600;
}

.rules {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: flex;
  gap: 14px;
  color: var(--text-2);
}

.rules li::before {
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.7);
}

.table {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(28rem 20rem at 50% 0%, rgba(150, 70, 255, 0.24), transparent 70%),
    radial-gradient(22rem 16rem at 100% 100%, rgba(0, 230, 118, 0.12), transparent 70%),
    var(--ink-2);
}

.prompt-card {
  padding: 22px 24px;
  border: 2px solid var(--green);
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.07);
  box-shadow: 0 0 34px rgba(0, 230, 118, 0.22), inset 0 0 24px rgba(0, 230, 118, 0.08);
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.prompt-card .kicker {
  font-size: 0.72rem;
}

.prompt-text {
  min-height: 2.5em;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.songs {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.song {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.song img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.song strong {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}

.song small {
  color: var(--soft);
  font-size: 0.86rem;
}

.song .stars {
  font-size: 1.05rem;
}

.song.is-winner {
  border-color: var(--green);
  box-shadow: 0 0 26px rgba(0, 230, 118, 0.25);
}

.winner-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  display: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1600;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.song.is-winner .winner-badge {
  display: inline-block;
}

.table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.jury {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.88rem;
}

.jury-faces {
  display: flex;
}

.jury-faces img {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
}

.jury-faces img:first-child {
  margin-left: 0;
}

.shuffle {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.92rem;
  cursor: pointer;
}

.shuffle svg {
  width: 18px;
  height: 18px;
}

.table.is-dealing .prompt-card {
  transform: rotateX(90deg);
  opacity: 0;
}

.table.is-dealing .song {
  transform: translateY(6px);
}

/* A round, step by step */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step .phone {
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
  border-radius: 38px;
  padding: 7px;
}

.step .phone img {
  border-radius: 31px;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.step h3::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-ink);
  font: 800 1rem/1 var(--body);
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Why it works */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.feature {
  --c: var(--green);
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.feature::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.18;
  filter: blur(36px);
}

.feature .badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
  font-size: 1.35rem;
}

.feature h3 {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
}

/* Themes */
.decks {
  display: flex;
  gap: 16px;
  margin: 40px calc(-1 * var(--gutter)) 0;
  padding: 6px var(--gutter) 24px;
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.decks::-webkit-scrollbar {
  display: none;
}

.deck {
  position: relative;
  display: flex;
  flex: 0 0 min(72vw, 250px);
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 7 / 10;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--card);
  scroll-snap-align: start;
}

.deck > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 7, 0.92) 78%);
}

.deck-festival {
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(254, 204, 3, 0.45), transparent 70%),
    radial-gradient(70% 60% at 20% 40%, rgba(255, 95, 109, 0.45), transparent 70%),
    linear-gradient(180deg, #3a1e4d, #120a1c);
}

.deck > * {
  position: relative;
  z-index: 1;
}

.deck-tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.deck-tag.is-free {
  background: var(--green);
  color: var(--green-ink);
}

.deck h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.deck p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Download band */
.download {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(30rem 22rem at 0% 0%, rgba(0, 230, 118, 0.2), transparent 70%),
    radial-gradient(30rem 22rem at 100% 100%, rgba(150, 70, 255, 0.26), transparent 70%),
    var(--ink-2);
  text-align: center;
}

.occasions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.occasions li {
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
}

.download h2 {
  max-width: 14em;
  margin: 26px auto 0;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}

.download .store-row {
  justify-content: center;
  margin-top: 34px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list {
  margin-top: 36px;
}

.faq details {
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-2);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq details p {
  margin-top: 12px;
  color: var(--muted);
}

/* Guidelines and legal: calm, readable, unchanged wording */
.legal-wrap {
  max-width: 860px;
  margin-inline: auto;
}

.guidelines {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.guidelines h2,
.legal-wrap > h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.guidelines ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 1.2em;
  color: var(--text-2);
}

.legal-wrap > h2 {
  margin-top: 64px;
}

.legal-intro {
  margin-top: 14px;
  color: var(--muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legal-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover {
  border-color: var(--green);
}

.legal-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  scroll-margin-top: calc(var(--topbar) + 16px);
}

.legal-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-card > p:first-of-type {
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.legal-card h4 {
  margin: 26px 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: rgba(245, 246, 250, 0.8);
  font-size: 0.97rem;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  margin: 8px 0;
  padding-left: 1.2em;
}

.legal-card li {
  margin: 5px 0;
}

.legal-card a {
  color: var(--green-2);
}

/* Footer */
.footer {
  margin-top: clamp(60px, 8vw, 100px);
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Motion, only when welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .phone-front {
    animation: bob 7s ease-in-out infinite;
  }

  .chip-verdict {
    animation: bob 6s ease-in-out -2s infinite;
  }

  .stars .pop {
    display: inline-block;
    animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-card,
  .song {
    transition: none;
  }

  .table.is-dealing .prompt-card {
    transform: none;
    opacity: 1;
  }
}

@keyframes bob {
  50% { translate: 0 -10px; }
}

@keyframes pop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Tablet */
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .pitch {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .hero-stage {
    width: 100%;
    max-width: 480px;
    height: 540px;
    margin-inline: auto;
  }

  .phone {
    width: 240px;
    border-radius: 40px;
  }

  .phone img {
    border-radius: 32px;
  }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --topbar: 60px;
  }

  body {
    font-size: 16px;
  }

  .topnav a:not(.lang-switch):not(.nav-cta) {
    display: none;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .store-row {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
  }

  .hero-stage {
    height: 440px;
  }

  .phone {
    width: 190px;
    padding: 7px;
    border-radius: 32px;
  }

  .phone img {
    border-radius: 26px;
  }

  .phone-back {
    left: 0;
    top: 10px;
  }

  .phone-front {
    right: 0;
    top: 40px;
  }

  .chip-verdict {
    bottom: 20px;
    left: 4px;
    padding: 10px 12px;
  }

  .song {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 12px;
  }

  .song img {
    width: 44px;
    height: 44px;
  }

  .song .stars {
    grid-column: 2;
    font-size: 0.98rem;
  }

  /* Rounds become a swipeable strip. */
  .steps {
    display: flex;
    gap: 18px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }

  .step .phone {
    max-width: 210px;
    margin-inline: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .download {
    padding: 34px 20px;
    border-radius: 26px;
  }

  .guidelines {
    padding: 22px 20px;
  }
}
