/* Mobile conversion layout; the desktop product tour keeps its composition. */
:root {
  --bg: #141312;
  --surface: #211e1a;
  --surface-strong: #2a2621;
  --text: #f3eee5;
  --muted: #b5aea3;
  --muted-dark: #b5aea3;
  --teal: #c9ad85;
  --teal-bright: #d9bd96;
  --coral: #d9bd96;
  --border: #39342d;
}

[hidden] { display: none !important; }

.site-header { background: rgba(20, 19, 18, .96); }
.brand-wordmark strong { color: #c9ad85; }
.button--solid { color: #141312; background: #f3eee5; box-shadow: none; }
.button:focus-visible, .brand-link:focus-visible, .desktop-nav a:focus-visible,
.store-badge:focus-visible, .sound-control:focus-visible, .world-progress button:focus-visible,
.download-button:focus-visible, .store-alternative:focus-visible, .sample-button:focus-visible,
.sample-poster:focus-visible, .sample-close:focus-visible, .desktop-sample-link:focus-visible,
summary:focus-visible { outline: 3px solid #d9bd96; outline-offset: 4px; }
.scroll-world { background: #141312; }
.world-light { background: radial-gradient(circle at 78% 48%, rgba(201, 173, 133, .08), transparent 34%); }
.store-badge { background: #211e1a; border-color: #39342d; }
.world-bridge, .js .world-bridge { border-color: #39342d; box-shadow: 0 24px 72px rgba(0, 0, 0, .3); }
.world-bridge svg { filter: none; }
.header-download { max-width: 240px; text-align: center; line-height: 1.3; }
.access-note { margin: 12px 0 0; font-size: .8125rem; color: #b5aea3; line-height: 1.5; }
.desktop-sample-link { margin-top: 16px; padding: 8px 0; min-height: 44px; border: 0; color: #d9bd96; background: transparent; cursor: pointer; font-size: .9rem; }
.mobile-landing { display: none; }

.download-section { padding-block: 88px 40px; text-align: center; }
.download-section h2 { margin-inline: auto; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.1; }
.download-lede { margin: 20px 0 24px; color: var(--muted); }
.download-choice { width: 100%; }
.download-buttons { display: flex; gap: 12px; justify-content: center; }
.download-button { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 1px solid transparent; border-radius: 12px; background: #f3eee5; color: #141312; font-size: .9375rem; font-weight: 800; line-height: 1.35; text-align: center; }
.download-button svg { width: 22px; height: 25px; flex: 0 0 auto; fill: currentColor; }
.store-alternative { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 2px; color: #b5aea3; font-size: .8125rem; text-decoration: underline; text-underline-offset: 4px; }
.landing-faq { max-width: 680px; padding-bottom: 64px; }
.landing-faq details { border-bottom: 1px solid var(--border); }
.landing-faq summary { padding: 20px 0; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.landing-faq p { color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.site-footer { background: #141312; }

.sample-is-open { overflow: hidden; }
.sample-dialog { position: fixed; inset: 0; width: min(calc(100% - 28px), 430px); max-height: calc(100dvh - 28px); padding: 14px; overflow-y: auto; border: 1px solid #39342d; border-radius: 18px; color: #f3eee5; background: #141312; }
.sample-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.sample-dialog-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sample-dialog-header h2 { font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.sample-dialog-header h2 span { display: block; color: #b5aea3; font-size: .8125rem; font-weight: 500; }
.sample-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #39342d; border-radius: 50%; background: #211e1a; color: #f3eee5; font-size: 1.75rem; cursor: pointer; }
.sample-video { width: 100%; height: min(61dvh, 580px); object-fit: contain; background: #080808; border-radius: 10px; }
.sample-dialog .download-button { margin-top: 14px; }
.sample-error { margin: 12px 0 0; font-size: .875rem; color: #f3eee5; }
.sticky-mobile-cta { display: none; }

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  body::before { display: none; }
  .shell, .header-inner { width: min(calc(100% - 40px), 480px); }
  .site-header, .site-header.is-scrolled { background: #141312; }
  .header-inner { justify-content: center; min-height: 64px; }
  .brand-mark { width: 34px; height: 34px; background: transparent; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-wordmark { font-size: 1.125rem; }
  .header-download, .desktop-nav { display: none; }
  .mobile-landing { display: block; }
  .mobile-hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; padding-block: 20px 18px; text-align: center; }
  .mobile-hero-copy { order: 0; }
  .mobile-hero .eyebrow { margin: 0 0 8px; font-size: .6875rem; color: #c9ad85; letter-spacing: .16em; }
  .mobile-hero h1 { margin: 0 auto; max-width: 460px; font-size: clamp(2.3rem, 9.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.05em; }
  .mobile-hero-lede { margin: 12px 0 0; color: #b5aea3; font-size: 1rem; line-height: 1.5; }
  .music-sample-card { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 20px 16px; margin: 0; padding: 22px; overflow: hidden; border: 1px solid #39342d; border-radius: 20px; background: #211e1a; text-align: left; }
  .sample-poster { position: relative; grid-column: 2; grid-row: 1; display: block; width: 88px; height: 110px; padding: 0; overflow: hidden; border: 1px solid #514737; border-radius: 12px; background: #211e1a; cursor: pointer; }
  .sample-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
  .sample-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; padding-left: 2px; border: 1px solid rgba(243, 238, 229, .65); border-radius: 50%; background: rgba(20, 19, 18, .82); color: #f3eee5; font-size: .6875rem; transform: translate(-50%, -50%); }
  .sample-duration { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(20, 19, 18, .88); color: #f3eee5; font-size: .6875rem; }
  .music-sample-card figcaption { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 0; min-width: 0; }
  .sample-kind { color: #b5aea3; font-size: .625rem; letter-spacing: .12em; font-weight: 700; }
  .music-sample-card strong { margin-top: 12px; font-size: clamp(1.5rem, 6.5vw, 1.875rem); line-height: 1.15; letter-spacing: -.035em; }
  .sample-translation { margin-top: 4px; color: #b5aea3; font-size: .9375rem; }
  .sample-button { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; margin-top: 0; padding: 8px 14px; border: 1px solid #5d5142; border-radius: 999px; background: transparent; color: #f3eee5; font-size: .875rem; font-weight: 700; cursor: pointer; }
  .sample-button > span:first-child { color: #d9bd96; }
  .sample-card-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid #39342d; }
  .sample-time { color: #b5aea3; font-size: .6875rem; font-weight: 500; }
  .sample-rhythm { width: 70px; height: 24px; fill: none; stroke: #c9ad85; stroke-width: 2; stroke-linecap: round; opacity: .6; }
  .mobile-hero-download { order: 2; }
  .download-buttons { flex-direction: column; gap: 10px; }
  .download-button { width: 100%; min-height: 54px; padding: 14px 12px; font-size: .875rem; }
  .access-note { font-size: .8125rem; margin-top: 10px; }
  .store-alternative { font-size: .8125rem; }
  .download-section .eyebrow { margin-bottom: 16px; font-size: .6875rem; color: #c9ad85; }
  .download-section { padding-block: 44px 32px; border-top: 1px solid #39342d; }
  .download-section h2 { font-size: clamp(1.875rem, 7.7vw, 2.5rem); line-height: 1.15; }
  .download-lede { font-size: .9375rem; margin: 18px 0 22px; }
  .landing-faq { padding-bottom: 40px; }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .has-sticky-download .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { justify-items: start; text-align: left; gap: 20px; }
  .footer-links { justify-content: flex-start; gap: 6px 16px; }
  .footer-links a { min-height: 36px; display: inline-flex; align-items: center; font-size: .8125rem; }
  .sticky-mobile-cta { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: block; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #39342d; background: rgba(20, 19, 18, .97); }
  .sticky-mobile-cta .download-button { max-width: 480px; margin-inline: auto; min-height: 50px; }
}

/* Short viewports and larger text can reach a store before the optional sample. */
@media (max-width: 820px) and (max-height: 650px) {
  .mobile-hero { gap: 12px; padding-block: 14px; }
  .mobile-hero .eyebrow { display: none; }
  .mobile-hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .mobile-hero-lede { font-size: .875rem; }
  .mobile-hero .music-sample-card { padding: 14px; gap: 10px; }
  .mobile-hero .sample-poster { height: 84px; }
  .mobile-hero .sample-card-footer { padding-top: 8px; }
  .mobile-hero-download { order: 1; }
  .music-sample-card { order: 2; }
}

@media (max-width: 360px) {
  .music-sample-card { padding: 18px; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px 10px; }
  .sample-poster { width: 72px; height: 96px; }
  .sample-rhythm { width: 44px; }
  .sample-card-footer { gap: 8px; }
}

/* Keep the moving music world on phones, with one uncluttered idea per scene. */
@media (max-width: 820px) {
  .scroll-world { display: block; }
  .js .scroll-world { display: block; height: 600svh; min-height: 0; }
  .js .world-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); }
  .world-scene--hero, .js .world-scene--hero { display: block; padding: 0; }
  .world-scene--hero > .world-copy, .world-scene--hero > .world-visual { display: none; }
  .music-sample-card { padding: 18px; gap: 14px 16px; }
  .sample-card-footer { padding-top: 12px; }
  .world-shade { background: linear-gradient(180deg, rgba(20, 19, 18, .92), rgba(20, 19, 18, .65) 52%, rgba(20, 19, 18, .8)); }
  .js .world-scene { padding: 22px 0 58px; gap: 16px; grid-template-rows: auto minmax(0, 1fr); }
  .js .world-scene.world-scene--hero { padding: 0; }
  .world-copy { width: 100%; }
  .world-copy .eyebrow { margin-bottom: 12px; font-size: .75rem; }
  .world-copy h2 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); line-height: 1.1; }
  .world-lede { max-width: 350px; margin-top: 12px; font-size: .9375rem; line-height: 1.5; }
  .feature-pills, .visual-note, .reel-player, .store-badges--final { display: none; }
  .world-visual--listen { display: flex; align-items: center; justify-content: center; }
  .phone-device--lesson { width: min(52vw, 31svh, 230px); }
  .js .world-progress { bottom: 14px; padding: 0 8px; min-height: 44px; background: rgba(20, 19, 18, .92); }
  .world-progress__steps { gap: 0; }
  .world-progress button, .world-progress button.is-active { position: relative; width: 44px; height: 44px; background: transparent; }
  .world-progress button::after { position: absolute; content: ""; top: 20px; left: 12px; right: 12px; height: 3px; background: #736b61; border-radius: 2px; }
  .world-progress button.is-active::after { left: 8px; right: 8px; background: #d9bd96; }
  .scroll-world[data-active-stage="0"] .world-progress { visibility: hidden; }
  .js .has-sticky-download .world-progress { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .js .has-sticky-download .world-scene { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  .has-sticky-download .phone-device--lesson { width: min(45vw, 27svh, 205px); }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .js .scroll-world { height: auto; }
  .js .world-stage { position: relative; top: auto; height: auto; }
  .js .world-scenes { display: grid; height: auto; }
  .js .world-scene { position: relative; min-height: calc(100svh - var(--header-height)); height: auto; opacity: 1; transform: none; }
  .js .world-progress { display: none; }
}

@supports (width: 49cqh) {
  @media (max-width: 820px) {
    .world-visual { container-type: size; }
    .phone-device--lesson, .has-sticky-download .phone-device--lesson { width: min(52vw, 48cqh, 230px); }
  }
}

@media (max-width: 820px) {
  .js.static-mobile-tour .scroll-world { height: auto; }
  .js.static-mobile-tour .world-stage { position: relative; top: auto; height: auto; }
  .js.static-mobile-tour .world-scenes { display: grid; height: auto; gap: 24px; }
  .js.static-mobile-tour .world-scene { position: relative; height: auto; min-height: calc(100svh - var(--header-height)); opacity: 1; transform: none; padding-bottom: 36px; }
  .js.static-mobile-tour .world-scene .world-copy,
  .js.static-mobile-tour .world-scene .world-visual { transform: none; }
  .js.static-mobile-tour .world-progress,
  .js.static-mobile-tour .world-bridge { display: none; }
  .static-mobile-tour .world-visual { container-type: normal; height: auto; min-height: 300px; }
  .static-mobile-tour .phone-device--lesson,
  .static-mobile-tour .has-sticky-download .phone-device--lesson { width: min(52vw, 230px); }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .world-visual { container-type: normal; height: auto; min-height: 300px; }
  .phone-device--lesson, .has-sticky-download .phone-device--lesson { width: min(52vw, 230px); }
}

/* One shared H1 serves both layouts; the native guide stays available below CTA. */
.learning-section { padding-block: 24px 40px; background: #141312; border-top: 1px solid #39342d; }
.learning-preview { color: #b5aea3; font-size: .875rem; }
.learning-section details { margin-top: 16px; }
.learning-section summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.learning-section summary h2 { display: inline; font-size: 1.125rem; line-height: 1.4; }
@media (max-width: 820px) {
  .world-scene--hero > .world-copy--hero { display: block; padding-top: 20px; }
  .world-copy--hero .hero-eyebrow { margin: 0 0 8px; font-size: .6875rem; letter-spacing: .16em; }
  .world-copy--hero h1 { margin: 0 auto; max-width: 460px; font-size: clamp(2.3rem, 9.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.05em; }
  .world-copy--hero .mobile-hero { padding-top: 0; }
  .world-copy--hero > .desktop-hero-lede,
  .world-copy--hero > .store-badges,
  .world-copy--hero > .desktop-access-note,
  .world-copy--hero > .desktop-sample-link { display: none; }
  .learning-section .learning-steps { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 820px) and (max-height: 650px) {
  .world-scene--hero > .world-copy--hero { padding-top: 14px; }
  .world-copy--hero .hero-eyebrow { display: none; }
  .world-copy--hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
}
