/* Mobile App page: a dark stage hero with phone mockups of real app screens, feature tiles,
   screen spotlights, the roadmap, and a coming-soon close on the shared red backdrop. */
.app-page .site-nav { --color-primary-light: var(--color-copy-light); }
.app-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Phone mockup. --w sets the width; everything else scales from it. --bar matches the screenshot's top edge. */
.phone {
  --w: 280px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .17);
  background: linear-gradient(145deg,#4a4a50 0%,#111114 38%,#26262b 100%);
  box-shadow: inset 0 0 0 1.5px #ffffff26, 0 48px 80px -24px #1a0000b3, 0 20px 40px -20px #000000a6;
}
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .137); background: var(--bar,#260000); }
.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--w) * .118);
  padding: calc(var(--w) * .012) calc(var(--w) * .07) 0 calc(var(--w) * .1);
  color: #fff;
  font-size: calc(var(--w) * .05);
  font-weight: 600;
  line-height: 1;
}
.phone-status i {
  position: absolute;
  top: calc(var(--w) * .028);
  left: 50%;
  width: calc(var(--w) * .3);
  height: calc(var(--w) * .086);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone-status svg { width: calc(var(--w) * .2); height: calc(var(--w) * .036); }
.phone-screen img { display: block; width: 100%; height: auto; }

/* Hero */
.app-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-height) + 48px) 0 clamp(128px,12vw,184px);
  background:
    radial-gradient(ellipse 46% 52% at 74% 46%,#ff98064d,transparent 70%),
    var(--hero-gradient);
  color: #fff;
}
.app-hero-inner {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  align-items: center;
  gap: 40px;
  width: calc(100% - 112px);
  max-width: 1328px;
  margin-inline: auto;
}
.app-hero-copy { min-width: 0; }
.app-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 9px 18px;
  border: 1px solid #ffb13d80;
  border-radius: 999px;
  background: #ff980624;
  color: #ffd18d;
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.app-soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-action-warm); animation: app-pulse 2s ease-out infinite; }
.app-hero h1 { margin-bottom: 28px; font-size: clamp(4.2rem,7.4vw,8rem); line-height: .9; text-wrap: balance; }
.app-hero h1 span {
  background: linear-gradient(100deg,#ffd18d 0%,var(--color-action-warm) 45%,#ffb13d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-hero-lead { max-width: 34ch; margin: 0 0 32px; color: var(--color-copy-light); font-size: var(--font-size-question); line-height: 1.6; }
/* Official store badges at one height. They become links to the listings once the app is public. */
.app-stores { --badge-h: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.app-stores li { display: block; }
.app-badge { display: block; width: auto; height: var(--badge-h); }
.app-badge--apple { width: calc(var(--badge-h) * 119.66407 / 40); }

.app-hero-phones { position: relative; height: 680px; }
.app-hero-phones::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 46%;
  left: 50%;
  width: 820px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,#ffe1b81f 0 1.5px,transparent 1.5px 46px);
  -webkit-mask-image: radial-gradient(circle,#000 18%,transparent 66%);
  mask-image: radial-gradient(circle,#000 18%,transparent 66%);
  transform: translate(-50%,-50%);
}
.app-hero-phones .phone { position: absolute; top: 0; left: 50%; }
.phone--front { --w: 300px; z-index: 2; translate: -50% 0; animation: app-float 7s ease-in-out infinite; }
.phone--left, .phone--right { --w: 252px; z-index: 1; top: 72px !important; }
.phone--left { translate: -118% 0; rotate: -9deg; animation: app-float 7s ease-in-out -2.4s infinite; }
.phone--right { translate: 18% 0; rotate: 9deg; animation: app-float 7s ease-in-out -4.8s infinite; }

/* Feature tiles, styled like the app's own Home cards */
.app-features {
  position: relative;
  z-index: 1;
  margin-top: -56px;
  padding: clamp(40px,5vw,80px);
  border-radius: clamp(24px,3vw,40px);
  background: var(--color-surface-light);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-lg);
}
.app-features h2 { margin-bottom: clamp(32px,4vw,56px); font-size: clamp(3rem,5vw,5rem); line-height: 1; text-align: center; text-wrap: balance; }
.app-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2vw,24px); margin: 0; padding: 0; list-style: none; }
.app-feature {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: linear-gradient(160deg,#fff 0%,var(--color-surface-tint) 100%);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.app-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 32px #4b010124; }
.app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg,#e3170c,var(--color-primary-dark));
  box-shadow: 0 8px 18px #c7060040;
}
.app-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-feature h3 { margin-bottom: 10px; font-family: var(--interior-display); font-size: 2rem; font-weight: 800; line-height: 1.05; }
.app-feature p { margin: 0; color: var(--interior-muted); font-size: var(--font-size-body); line-height: 1.6; }

/* Spotlights: copy on warm white beside a dark stage holding the real screens */
.app-spotlights { display: grid; gap: 32px; margin-top: 32px; }
.app-spotlight {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  overflow: clip;
  border-radius: clamp(24px,3vw,40px);
  background: var(--color-surface-light);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
}
.app-spotlight--flip .app-stage { order: -1; }
.app-spotlight-copy { align-self: center; min-width: 0; padding: clamp(40px,5.5vw,88px); }
.app-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--color-primary-dark);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.app-kicker span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  letter-spacing: 0;
}
.app-spotlight h2 { margin-bottom: 24px; font-size: clamp(2.8rem,4.4vw,4.6rem); line-height: 1; text-wrap: balance; }
.app-spotlight-copy > p:not(.app-kicker) { margin: 0; color: var(--interior-muted); font-size: var(--font-size-body); line-height: 1.75; }
.app-checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.app-checks li { display: flex; align-items: center; gap: 14px; font-size: var(--font-size-body); font-weight: 600; line-height: 1.4; }
.app-checks svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #ffe7c7; color: var(--color-primary); }

.app-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  min-width: 0;
  min-height: 600px;
  padding-top: 64px;
  overflow: hidden;
  contain: size; /* the phone is cropped to the panel, never sets its height */
  background:
    radial-gradient(circle at 50% 38%,#ff980659,transparent 58%),
    linear-gradient(160deg,#4a0602 0%,#1c0100 100%);
}
.app-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 40%,#ffe1b814 0 1.5px,transparent 1.5px 40px);
  -webkit-mask-image: radial-gradient(circle at 50% 40%,#000 10%,transparent 62%);
  mask-image: radial-gradient(circle at 50% 40%,#000 10%,transparent 62%);
}
.app-stage .phone { --w: 290px; }
.app-stage--pair .phone { --w: 262px; translate: 22% 0; }
.app-stage--pair .phone--back { position: absolute; top: 96px; left: 50%; translate: -92% 0; rotate: -7deg; opacity: .94; }

/* Music: a soft level meter behind the player */
.app-eq { position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; justify-content: space-evenly; height: 72%; opacity: .55; }
.app-eq i { width: 18px; height: 100%; border-radius: 13px 13px 0 0; background: linear-gradient(0deg,var(--color-action-warm),transparent); transform-origin: bottom; animation: app-eq 1.6s ease-in-out infinite alternate; }
.app-eq i:nth-child(2n) { animation-duration: 1.1s; }
.app-eq i:nth-child(3n) { animation-duration: 1.9s; animation-delay: -.6s; }
.app-eq i:nth-child(4n+1) { animation-delay: -1.1s; }
.app-eq i:nth-child(5n+2) { animation-duration: 1.3s; animation-delay: -.3s; }

/* Roadmap */
.app-roadmap { padding-top: clamp(96px,9vw,152px); color: #fff; text-align: center; }
.app-roadmap h2 { margin-bottom: 20px; font-size: clamp(3.2rem,5.5vw,5.6rem); line-height: 1; }
.app-roadmap-lead { max-width: 46ch; margin: 0 auto clamp(40px,5vw,64px); color: var(--color-copy-light); font-size: var(--font-size-body); line-height: 1.65; text-wrap: balance; }
.app-roadmap-steps { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; text-align: left; }
.app-roadmap-steps::before {
  content: "";
  position: absolute;
  top: 58px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg,var(--color-action-warm),#ffe1b833);
}
.app-step {
  position: relative;
  min-width: 0;
  padding: 36px;
  border: 1px solid #ffd18d40;
  border-radius: 28px;
  background: #26000059;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.app-step--now { border-color: transparent; background: var(--color-surface-light); color: var(--color-text-dark); box-shadow: var(--shadow-lg); }
.app-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 7px 16px;
  border: 1px solid #ffd18d80;
  border-radius: 999px;
  background: var(--interior-deep);
  color: #ffd18d;
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.app-step--now .app-step-badge { border-color: transparent; background: var(--color-action-warm); color: #fff; }
.app-step--now .app-step-badge span { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: app-pulse-light 2s ease-out infinite; }
.app-step h3 { margin-bottom: 16px; font-family: var(--interior-display); font-size: 2.3rem; font-weight: 800; line-height: 1.05; }
.app-step p:not(.app-step-badge) { margin: 0; color: var(--interior-muted); font-size: var(--font-size-body); line-height: 1.65; }
.app-step ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.app-step li { position: relative; padding-left: 22px; color: var(--color-copy-light); font-size: var(--font-size-body); line-height: 1.5; }
.app-step li::before { content: ""; position: absolute; top: .6em; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--color-action-warm); }

/* Closing */
.app-closing h2 { max-width: 16ch; text-wrap: balance; }
.app-closing .app-stores { justify-content: center; margin-top: 12px; }

/* Sections rise in once; see the inline script. */
.app-reveal [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.app-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(40px); }

@keyframes app-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes app-pulse { 0% { box-shadow: 0 0 0 0 #ff9806b3; } 100% { box-shadow: 0 0 0 12px #ff980600; } }
@keyframes app-pulse-light { 0% { box-shadow: 0 0 0 0 #ffffffb3; } 100% { box-shadow: 0 0 0 10px #ffffff00; } }
@keyframes app-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .phone, .app-soon-dot, .app-step--now .app-step-badge span, .app-eq i { animation: none; }
  .app-feature { transition: none; }
  .app-feature:hover { transform: none; }
}

@media (max-width: 1100px) {
  .app-hero-inner { grid-template-columns: minmax(0,1fr); gap: 56px; width: calc(100% - 72px); text-align: center; }
  .app-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .app-hero-lead { margin-inline: auto; }
  .app-stores { justify-content: center; }
  .app-hero-phones { height: 620px; }
  .app-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-spotlight { grid-template-columns: minmax(0,1fr); }
  .app-spotlight--flip .app-stage { order: 0; }
  .app-stage { min-height: 520px; }
  .app-roadmap-steps { grid-template-columns: minmax(0,1fr); max-width: 640px; margin-inline: auto; }
  .app-roadmap-steps::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; background: linear-gradient(180deg,var(--color-action-warm),#ffe1b833); }
}

@media (max-width: 760px) {
  .app-hero { padding: calc(var(--nav-height) + 32px) 0 104px; }
  .app-hero-inner { width: calc(100% - 32px); gap: 40px; }
  .app-hero h1 { font-size: clamp(3.4rem,14vw,4.6rem); }
  .app-hero-lead { font-size: var(--font-size-body); }
  .app-stores { --badge-h: 48px; gap: 12px; }
  .app-hero-phones { height: 470px; }
  .app-hero-phones::before { width: 560px; }
  .phone--front { --w: 206px; }
  .phone--left, .phone--right { --w: 168px; top: 52px !important; }
  .phone--left { translate: -112% 0; }
  .phone--right { translate: 12% 0; }
  .app-features { margin-top: -32px; padding: 36px 20px; border-radius: 24px; }
  .app-feature-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .app-feature { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 4px 16px; padding: 20px; }
  .app-icon { grid-row: span 2; width: 48px; height: 48px; margin: 2px 0 0; border-radius: 14px; }
  .app-icon svg { width: 24px; height: 24px; }
  .app-feature h3 { margin-bottom: 4px; font-size: 1.7rem; }
  .app-spotlights { gap: 24px; margin-top: 24px; }
  .app-spotlight { border-radius: 24px; }
  .app-spotlight-copy { padding: 36px 24px; }
  .app-stage { min-height: 470px; padding-top: 48px; }
  .app-stage .phone { --w: 250px; }
  .app-stage--pair .phone { --w: 210px; translate: 26% 0; }
  .app-stage--pair .phone--back { top: 80px; translate: -90% 0; }
  .app-step { padding: 28px 24px; }
  .app-step h3 { font-size: 2rem; }
}
