/* ============================================================
   Musiway — global stylesheet
   Primary #E63E00 · Poppins · clean, modern, music-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand palette — derived from the brand vermilion */
  --primary: #E63E00;
  --primary-600: #C73500;
  --primary-100: #FFE0D2;
  --peach: #FFF4EC;
  --peach-deep: #FFE9DC;

  --ink: #1F1A17;
  --muted: #6E635C;
  --line: #ECE4DD;
  --white: #FFFFFF;

  /* Type */
  --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(31, 26, 23, 0.28);
  --shadow-soft: 0 10px 30px -18px rgba(31, 26, 23, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.accent {
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* App Store button (used in top bar) */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 9px 18px 9px 16px;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.appstore:hover {
  transform: translateY(-2px);
  background: #000;
}

.appstore svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.appstore .as-label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.appstore .as-label small {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.appstore .as-label strong {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   TOP BAR (reusable, injected by JS)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

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

.brand span {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand span b {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--peach-deep) 0%, transparent 55%),
    linear-gradient(180deg, var(--peach) 0%, var(--white) 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  margin-bottom: 22px;
}

.hero__sub {
  max-width: 30ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  width: min(100%, 420px);
}

.video-wrapper>video.device-display {
  position: absolute;
  left: 12%;
  top: 9%;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.video-wrapper>div {
  position: relative;
  z-index: 1;
}

.video-wrapper .device-display.overlay {
  display: block;
  aspect-ratio: 0.7;
  pointer-events: auto;
  cursor: pointer;
}

/* Pill quick-links under hero */
.quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.quicklinks a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.quicklinks a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Tablet mockup illustration ---------- */
.device {
  position: relative;
  background: var(--ink);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin-inline: auto;
  animation: floaty 6s ease-in-out infinite;
}

.device__screen {
  background: linear-gradient(165deg, #2A211C 0%, #161210 100%);
  border-radius: 22px;
  padding: 26px 22px;
  color: var(--white);
  overflow: hidden;
}

.device__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.7;
  font-size: 0.72rem;
}

.device__art {
  margin: 22px auto 20px;
  width: 132px;
  height: 132px;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--primary) 0%, #FF7A45 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -16px rgba(230, 62, 0, 0.7);
}

.device__art svg {
  width: 60px;
  height: 60px;
}

.device__track {
  text-align: center;
}

.device__track strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.device__track span {
  font-size: 0.82rem;
  opacity: 0.6;
}

/* Equalizer — the signature motif */
.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 46px;
  margin: 22px 0 14px;
}

.eq i {
  width: 6px;
  border-radius: 6px;
  background: var(--primary);
  animation: bounce 1.1s ease-in-out infinite;
}

.eq i:nth-child(1) {
  height: 40%;
  animation-delay: -.9s;
}

.eq i:nth-child(2) {
  height: 75%;
  animation-delay: -.7s;
}

.eq i:nth-child(3) {
  height: 100%;
  animation-delay: -.5s;
  background: #FF7A45;
}

.eq i:nth-child(4) {
  height: 60%;
  animation-delay: -.3s;
}

.eq i:nth-child(5) {
  height: 90%;
  animation-delay: -.1s;
  background: #FF7A45;
}

.eq i:nth-child(6) {
  height: 45%;
  animation-delay: -.6s;
}

.eq i:nth-child(7) {
  height: 70%;
  animation-delay: -.2s;
}

.device__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 8px;
}

.device__controls span {
  opacity: 0.7;
  font-size: 1.1rem;
}

.device__controls .play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 1;
  font-size: 1rem;
}

@keyframes bounce {

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

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

@keyframes floaty {

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

  50% {
    transform: translateY(-12px);
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--peach {
  background: var(--peach);
}

.section--peach:has(+ .section--videos) {
  background: linear-gradient(180deg, var(--peach) 0%, var(--peach-deep) 100%);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.section--peach+.section--videos {
  padding-top: clamp(40px, 5vw, 72px);
}

.section__head {
  margin-bottom: 56px;
}

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

.section__head p {
  margin-top: 16px;
}

.features-intro {
  margin-bottom: 56px;
}

.features-intro .section__head {
  margin-bottom: 0;
  max-width: 800px;
}

.features-intro__visual img {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  min-width: 1000px;
  height: auto;
}

/* Feature cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

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

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Instruments strip */
.instruments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.inst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.inst:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.inst svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink);
}

.inst:hover svg {
  stroke: var(--primary);
}

.inst span {
  font-size: 0.86rem;
  font-weight: 500;
}

/* Steps (how it works) — numbered because it IS a sequence */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 18px;
}

.step__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.96rem;
}

.step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--line);
}

.steps .step:last-child::after {
  display: none;
}

/* Split content blocks (about / how it works detail) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split+.split {
  margin-top: 90px;
}

.media {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--peach) 0%, var(--peach-deep) 100%);
  border: 1px solid var(--line);
  padding: 44px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.media svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

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

.qa {
  border-bottom: 1px solid var(--line);
}

.qa__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  padding: 26px 44px 26px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.qa__q::after {
  content: "+";
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

.qa.open .qa__q::after {
  transform: rotate(45deg);
}

.qa__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.qa__a p {
  color: var(--muted);
  padding-bottom: 26px;
  max-width: 64ch;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan--featured {
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.plan__price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 13px;
}

.plan__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--muted);
}

.plan__list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--peach);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E63E00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan .btn {
  width: 100%;
  justify-content: center;
}

.plans__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 32px;
}

/* Videos */
.section--videos {
  position: relative;
  background: linear-gradient(180deg, var(--peach-deep) 0%, var(--peach) 32%, var(--white) 100%);
  overflow: hidden;
  padding-bottom: clamp(32px, 4vw, 56px);
}

.section--videos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 55% at 50% 8%, rgba(255, 228, 214, 0.55) 0%, transparent 65%);
  pointer-events: none;
}

.section--videos>.container {
  position: relative;
  z-index: 1;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.video-card--featured-reverse {
  grid-template-columns: 1fr 1.15fr;
}

.video-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--peach-deep);
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.video-card--featured .thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.video-card:hover .thumb img {
  transform: scale(1.05);
}

.video-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31, 26, 23, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.video-card:hover .thumb::after {
  opacity: 1;
}

.video-card .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 32px -8px rgba(230, 62, 0, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 1;
}

.video-card--featured .play {
  width: 68px;
  height: 68px;
}

.video-card .play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.video-card--featured .play svg {
  width: 26px;
  height: 26px;
}

.video-card:hover .play {
  transform: scale(1.08);
  box-shadow: 0 16px 40px -10px rgba(230, 62, 0, 0.65);
}

.video-card .video-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card--featured .video-body {
  justify-content: center;
  padding: 32px 36px;
}

.video-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.video-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.video-card--featured h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.video-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.videos-channel {
  text-align: center;
  margin-block: clamp(21px, -3vw, 21px);
  position: relative;
  z-index: 2;
}

.videos-channel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.videos-channel a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.videos-channel svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex: none;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 26, 23, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  animation: popIn 0.25s var(--ease);
}

@keyframes popIn {
  from {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-video {
  width: min(960px, 100%);
  padding: 0;
  background: #000;
  overflow: visible;
  position: relative;
}

.modal-video .video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-video-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.icon-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--peach);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.icon-button:hover {
  background: var(--primary-100);
  color: var(--primary);
  transform: scale(1.05);
}

/* CTA band */
.ctaband {
  padding: clamp(60px, 8vw, 96px) 0;
}

.container:has(> .videos-channel)+.ctaband {
  padding-top: clamp(44px, 6vw, 72px);
}

.ctaband__box {
  background: linear-gradient(135deg, var(--primary) 0%, #FF6A30 100%);
  border-radius: 28px;
  color: var(--white);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ctaband__box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 16px;
}

.ctaband__box p {
  opacity: 0.92;
  max-width: 50ch;
  margin: 0 auto 30px;
}

.ctaband__box .appstore {
  background: var(--white);
  color: var(--ink);
}

.ctaband__box .appstore:hover {
  background: #fff;
}

.ctaband__wave {
  position: absolute;
  inset: auto 0 -2px 0;
  opacity: 0.18;
}

/* Page hero (interior pages) */
.pagehero {
  background: linear-gradient(180deg, var(--peach) 0%, var(--white) 100%);
  padding: clamp(64px, 8vw, 108px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}

.pagehero .lead {
  max-width: 60ch;
  margin: 18px auto 0;
}

/* Legal pages (privacy, terms) */
.legal {
  max-width: 800px;
  margin-inline: auto;
}

.legal__intro {
  text-align: center;
  margin-bottom: 40px;
}

.legal__intro .h2 {
  margin-bottom: 18px;
}

.legal__intro .lead {
  margin-inline: auto;
}

.legal__divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.legal__meta {
  text-align: center;
  margin-bottom: 40px;
}

.legal__meta .h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal__meta p {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-prose {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  white-space: pre-line;
}

.legal-prose strong {
  font-weight: 700;
}

.legal-prose__dot {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.55em;
  margin-left: 0.15em;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: 0.15em;
}

/* ============================================================
   FOOTER (reusable, injected by JS)
   ============================================================ */
.footer {
  background: var(--ink);
  color: #D9D0C9;
  padding: 72px 0 32px;
}

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

.footer__brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.footer__brand .brand span {
  color: var(--primary);
}

.footer__tag {
  font-size: 0.95rem;
  color: #A79E97;
  max-width: 30ch;
  margin-top: 12px;
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}

.footer__col a {
  color: #B8AFA8;
  font-size: 0.96rem;
  transition: color 0.2s;
}

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

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  color: var(--white);
}

.footer__bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__bottom small {
  color: #8C837C;
  font-size: 0.85rem;
}

.langswitch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.langswitch span {
  color: #8C837C;
}

.langswitch a {
  color: #B8AFA8;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s;
}

.langswitch a:hover,
.langswitch a.active {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

/* ============================================================
   Language splash (root index)
   ============================================================ */
.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--peach-deep) 0%, transparent 50%),
    linear-gradient(180deg, var(--peach) 0%, var(--white) 100%);
  padding: 40px;
}

.splash__card {
  text-align: center;
  max-width: 480px;
}

.splash__card img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  margin: 0 auto 26px;
}

.splash__card h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.splash__card h1 b {
  color: var(--primary);
}

.splash__card p {
  color: var(--muted);
  margin-bottom: 34px;
}

.splash__langs {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.splash__langs a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: all 0.25s var(--ease);
}

.splash__langs a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.splash__langs .flag {
  font-size: 1.3rem;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .grid-3,
  .steps,
  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .step::after {
    display: none;
  }

  .split,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .instruments {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-card--featured,
  .video-card--featured-reverse {
    grid-template-columns: 1fr;
  }

  .video-card--featured .thumb,
  .video-card--featured-reverse .thumb {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar__inner {
    height: 64px;
  }

  .brand span {
    font-size: 1.15rem;
  }

  .appstore .as-label small {
    display: none;
  }

  .grid-3,
  .steps,
  .plans,
  .videos-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__actions {
    width: 100%;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-video-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}