/* ==========================================================================
   Beatter — Design System
   Tokens mirror the Flutter app (lib/theme): warm, precise, single confident
   orange with terracotta + gold. Mobile-first, fluid, accessible.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand — from AppColors */
  --orange: #ff7a00;
  --orange-deep: #e65100;
  --orange-soft: #ffa347;
  --terracotta: #c1502e;
  --gold: #ffc266;
  --gold-soft: #ffead1;

  /* Backgrounds */
  --bg-start: #fff8f1;
  --bg-end: #fff0e0;
  --surface: #ffffff;
  --surface-border: #fcd5b5;
  --ink-1: #1c1917;
  /* near-black warm for dark sections */
  --ink-2: #141210;

  /* Text */
  --text-1: #2d2d2d;
  --text-2: #666666;
  --text-3: #999999;
  --text-on-dark: #fdf6ee;
  --text-on-dark-2: rgba(253, 246, 238, 0.62);

  /* Gradients */
  --grad-hero: linear-gradient(155deg, #ff8c1a 0%, #ff7a00 42%, #ef5f00 100%);
  --grad-warm: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  --grad-brand: linear-gradient(135deg, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  --grad-terra: linear-gradient(135deg, #d16a45, var(--terracotta));

  /* Radius scale — from AppRadius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Spacing scale — from AppSpacing */
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-2xl: 32px;
  --s-3xl: 40px;
  --s-huge: 48px;

  /* Shadows — warm-tinted, from AppShadows */
  --sh-card: 0 8px 16px rgba(255, 122, 0, 0.06);
  --sh-raised: 0 6px 20px rgba(0, 0, 0, 0.06), 0 14px 28px rgba(255, 122, 0, 0.08);
  --sh-float: 0 10px 32px rgba(0, 0, 0, 0.10), 0 18px 40px rgba(255, 122, 0, 0.10);
  --sh-glow: 0 0 60px rgba(255, 122, 0, 0.35);

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --nav-h: 68px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg-start);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  z-index: 200;
  transition: top 0.2s var(--ease);
}

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

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(64px, 10vw, 128px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.eyebrow.on-dark {
  color: var(--gold);
}

.eyebrow.on-dark::before {
  background: var(--gold);
}

/* ---- Typography ---------------------------------------------------------- */
.display {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-2);
  line-height: 1.55;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .h2 {
  margin-top: 18px;
}

.section-head .lead {
  margin-top: 20px;
}

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

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 248, 241, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(252, 213, 181, 0.6);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(255, 122, 0, 0.35));
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: none;
}

@media (min-width: 880px) {

  .nav__links,
  .nav__cta {
    display: inline-flex;
  }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-1);
  border: 1.5px solid var(--surface-border);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--sh-card);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* ---- Store buttons ------------------------------------------------------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  background: #1c1917;
  color: #fff;
  min-width: 200px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.18);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(28, 25, 23, 0.26);
}

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

.store-btn__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn__txt small {
  font-size: 0.66rem;
  opacity: 0.72;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn__txt strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.store-btn__soon {
  position: absolute;
  top: -9px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--terracotta);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 10px rgba(193, 80, 46, 0.4);
}

.stores.on-dark .store-btn {
  background: #fff;
  color: #1c1917;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Grain / vignette overlays for depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 80% -10%,
      rgba(255, 220, 150, 0.5),
      transparent 55%),
    radial-gradient(90% 80% at -10% 110%, rgba(200, 60, 0, 0.45), transparent 60%);
  mix-blend-mode: soft-light;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  width: 100%;
}

@media (min-width: 940px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__badge b {
  background: #fff;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em;
}

.hero h1 {
  margin-top: 26px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(150, 50, 0, 0.25);
}

.hero h1 .accent {
  display: block;
  color: #fff2e0;
}

.hero__sub {
  margin-top: 24px;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  margin-top: 36px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b6ff9d;
  box-shadow: 0 0 0 0 rgba(182, 255, 157, 0.7);
  animation: livepulse 2.4s var(--ease) infinite;
}

@keyframes livepulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 255, 157, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(182, 255, 157, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(182, 255, 157, 0);
  }
}

/* Hero visual — bottlecap logo + orbiting rhythm ring + waveform */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero__logo {
  width: clamp(150px, 34%, 230px);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 50px rgba(120, 40, 0, 0.4));
  animation: bob 6s ease-in-out infinite;
  z-index: 3;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

.hero__ring {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.4;
}

.hero__ring .dashed {
  stroke-dasharray: 3 12;
  transform-origin: center;
  animation: spin 26s linear infinite;
}

.hero__ring .dashed-rev {
  stroke-dasharray: 2 16;
  stroke: rgba(255, 255, 255, 0.2);
  transform-origin: center;
  animation: spin 40s linear infinite reverse;
}

.hero__ring .beat {
  fill: #fff;
  stroke: none;
  transform-origin: center;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Waveform under hero visual */
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 1vw, 7px);
  height: 90px;
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  z-index: 2;
}

.waveform span {
  flex: 1;
  max-width: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.95));
  transform-origin: bottom;
  animation: eq 1.4s var(--ease) infinite;
  height: 30%;
}

@keyframes eq {

  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

/* Floating notes decorations */
.float-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-notes span {
  position: absolute;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: drift 12s ease-in-out infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-22px) rotate(8deg);
    opacity: 0.9;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  z-index: 4;
}

.scroll-cue .bar {
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  position: relative;
}

.scroll-cue .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ==========================================================================
   Why Beatter — value cards
   ========================================================================== */
.why {
  background: var(--grad-warm);
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--sh-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%,
      rgba(255, 122, 0, 0.06),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-raised);
  border-color: var(--orange-soft);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--orange-deep);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease);
}

.card:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ==========================================================================
   Features — alternating showcase
   ========================================================================== */
.features {
  background: var(--surface);
}

.feature-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.feature:hover {
  background: var(--grad-warm);
  border-color: var(--surface-border);
  transform: translateY(-3px);
}

.feature__ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.28);
}

.feature__ic svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.06rem;
  font-weight: 700;
}

.feature p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ==========================================================================
   Practice modes
   ========================================================================== */
.modes {
  background: var(--grad-warm);
}

.modes__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .modes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .modes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mode {
  position: relative;
  border-radius: var(--r-xl);
  padding: 30px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.mode:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--sh-float);
}

.mode--orange {
  background: var(--grad-brand);
}

.mode--terra {
  background: var(--grad-terra);
}

.mode--dark {
  background: linear-gradient(150deg, #2a2622, #1c1917);
}

.mode--soon {
  background: var(--surface);
  color: var(--text-1);
  border: 1.5px dashed var(--surface-border);
  box-shadow: none;
}

.mode__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(40px);
  top: -60px;
  right: -50px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0.7;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  z-index: -1;
}

.mode:hover .mode__glow {
  transform: scale(1.4);
  opacity: 1;
}

.mode--soon .mode__glow {
  display: none;
}

.mode__ic {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: auto;
  transition: transform 0.4s var(--ease);
}

.mode--soon .mode__ic {
  background: var(--gold-soft);
  border-color: transparent;
  color: var(--orange-deep);
}

.mode:hover .mode__ic {
  transform: rotate(-8deg) scale(1.06);
}

.mode__ic svg {
  width: 30px;
  height: 30px;
}

.mode__body {
  margin-top: 24px;
}

.mode h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode p {
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.mode .mode__tagline {
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #fff2e0;
}

.mode--soon p,
.mode--dark p {
  color: var(--text-2);
}

.mode--dark p {
  color: rgba(253, 246, 238, 0.72);
}

.mode--soon p {
  color: var(--text-2);
}

.badge-soon {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--orange-deep);
}

.mode:not(.mode--soon) .badge-soon {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ==========================================================================
   Screenshots carousel
   ========================================================================== */
.shots {
  background: var(--surface);
  overflow: hidden;
}

.shots__track {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px clamp(20px, 5vw, 40px) 40px;
  margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.shot {
  scroll-snap-align: center;
  flex: none;
  text-align: center;
}

.phone {
  position: relative;
  width: clamp(220px, 62vw, 288px);
  aspect-ratio: 1290 / 2796;
  border-radius: 42px;
  padding: 14px;
  padding-top: 24px;
  background: linear-gradient(160deg, #2a2622, #100e0c);
  box-shadow: var(--sh-float), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 16px;
  background: #000;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 28px 28px;
}

.shot__label {
  margin-top: 22px;
  font-weight: 700;
  font-size: 1.05rem;
}

.shot__desc {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-2);
  max-width: 26ch;
  margin-inline: auto;
}

.shots__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.shots__hint svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Designed for musicians — dark premium section
   ========================================================================== */
.premium {
  background: var(--ink-1);
  color: var(--text-on-dark);
  overflow: hidden;
  position: relative;
}

.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 85% 20%,
      rgba(255, 122, 0, 0.16),
      transparent 60%),
    radial-gradient(60% 50% at 10% 90%, rgba(193, 80, 46, 0.14), transparent 60%);
  pointer-events: none;
}

.premium__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .premium__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.premium h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.premium h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium p {
  margin-top: 24px;
  color: var(--text-on-dark-2);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 46ch;
}

.premium__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 4vw, 44px);
  justify-content: start;
}

.stat__num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__lbl {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-on-dark-2);
  letter-spacing: 0.02em;
}

/* Polyrhythm animation — nested rotating polygons on dark */
.poly {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.poly svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Shapes stay still and concentric; the markers ride their perimeters.
   Triangle marker crosses 3 vertices per cycle, square 4 — that offset is
   the polyrhythm (a 3:4 feel at equal cycle length). */
.poly .shape {
  fill: none;
  stroke-width: 1.5;
}

.poly .square {
  stroke: rgba(255, 122, 0, 0.55);
}

.poly .triangle {
  stroke: var(--orange);
  filter: drop-shadow(0 0 6px rgba(255, 122, 0, 0.6));
}

.poly .ring {
  stroke: rgba(255, 255, 255, 0.08);
}

/* Static vertex ticks */
.poly .vtx {
  fill: rgba(255, 255, 255, 0.4);
}

.poly .vtx-o {
  fill: rgba(255, 122, 0, 0.55);
}

/* Travelling markers — driven by SMIL animateMotion along the shape paths.
   JS pauses SVG animations when the user prefers reduced motion. */
.poly .runner {
  filter: drop-shadow(0 0 8px rgba(255, 200, 120, 0.95));
}

.poly .runner-tri {
  fill: #fff;
}

.poly .runner-sq {
  fill: var(--orange);
  filter: drop-shadow(0 0 8px rgba(255, 122, 0, 0.9));
}

.poly .runner-oct {
  fill: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 200, 120, 0.95));
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%,
      rgba(255, 220, 150, 0.4),
      transparent 60%);
  mix-blend-mode: soft-light;
  z-index: -1;
}

.cta h2 {
  color: #fff;
  max-width: 16ch;
  margin-inline: auto;
}

.cta p {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  margin-inline: auto;
}

.cta .stores {
  justify-content: center;
  margin-top: 40px;
}

.cta__pulse {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: -1;
  animation: ripple 4s var(--ease) infinite;
}

.cta__pulse.p2 {
  animation-delay: 1.3s;
}

.cta__pulse.p3 {
  animation-delay: 2.6s;
}

@keyframes ripple {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-2);
  color: var(--text-on-dark-2);
  padding-block: clamp(48px, 7vw, 80px) 32px;
}

.footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer .brand {
  color: #fff;
  font-size: 1.3rem;
}

.footer__motto {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-style: italic;
  background: linear-gradient(120deg, var(--gold), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__tag {
  margin-top: 14px;
  max-width: 34ch;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer__powered strong {
  color: var(--gold);
  font-weight: 700;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}

.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__bar .made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bar .made svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Legal / content pages
   ========================================================================== */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 56px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
}

.prose {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 80px);
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 48px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 28px;
}

.prose p {
  margin-top: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.prose ul.bullets {
  margin-top: 14px;
  padding-left: 4px;
  display: grid;
  gap: 10px;
}

.prose ul.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  line-height: 1.6;
}

.prose ul.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.prose a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text-1);
}

.callout {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--grad-warm);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-lg);
  font-size: 0.95rem;
  color: var(--text-2);
}

.toc {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.toc h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  gap: 8px;
}

.toc li {
  padding: 4px 0;
}

.toc a {
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}

.toc a:hover {
  color: var(--orange-deep);
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

/* ==========================================================================
   Auth action (Firebase placeholder)
   ========================================================================== */
.auth-wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--grad-warm);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--sh-raised);
  text-align: center;
}

.auth-card img {
  width: 64px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 20px rgba(255, 122, 0, 0.3));
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card p {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.auth-card .btn {
  margin-top: 24px;
}

.auth-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}