/* Lehen website · shared styles.
   Layout concept: cream "paper" pages with dark "stage" bands, the same split as the app
   (cream for browsing, stage for singing). One live gold-line demo carries the hero. */
:root {
  --bg: #FCF4DE;
  /* paper */
  --surface: #FDF3D8;
  /* card, never white */
  --tint: #FBEBC8;
  --fg: #1F1A14;
  /* ink */
  --mute: #6B5E4E;
  --line: #E6D7B4;
  --accent: #966118;
  /* gold: buttons, links */
  --accent-fg: #FCF4DE;
  --gold-soft: #D4A35A;
  --stage: #16120D;
  /* always dark: practice bands */
  --stage-2: #2A231B;
  --stage-fg: #FCF4DE;
  --sand: #B8AC97;
  --coral: #F0765C;
  --close: #7FD08A;
  --shadow: rgba(31, 26, 20, .35);
  --font-display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 22px;
  --r-sheet: 28px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #16120D;
    --surface: #211B14;
    --tint: #2E2519;
    --fg: #FCF4DE;
    --mute: #B8AC97;
    --line: #3A3026;
    --accent: #D4A35A;
    --accent-fg: #16120D;
    --stage: #0E0B08;
    --stage-2: #2A231B;
    --shadow: rgba(0, 0, 0, .6);
    color-scheme: dark
  }
}

:root[data-theme="dark"] {
  --bg: #16120D;
  --surface: #211B14;
  --tint: #2E2519;
  --fg: #FCF4DE;
  --mute: #B8AC97;
  --line: #3A3026;
  --accent: #D4A35A;
  --accent-fg: #16120D;
  --stage: #0E0B08;
  --stage-2: #2A231B;
  --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 8px
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0
}

p {
  margin: 0
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px)
}

.kicker {
  font: 700 12px/1.3 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent)
}

.on-stage .kicker {
  color: var(--gold-soft)
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--mute);
  max-width: 56ch
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s
}

.nav.scrolled {
  border-bottom-color: var(--line)
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px
}

.logo {
  display: flex;
  align-items: center
}

.logo img {
  height: 34px;
  width: auto
}

.logo .dk {
  display: none
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .logo .lt {
    display: none
  }

  :root:not([data-theme="light"]) .logo .dk {
    display: block
  }
}

:root[data-theme="dark"] .logo .lt {
  display: none
}

:root[data-theme="dark"] .logo .dk {
  display: block
}

.nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0
}

.nav ul a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px
}

.nav ul a:hover {
  color: var(--accent)
}

@media (max-width:820px) {
  .nav ul {
    display: none
  }

  .nav .btn {
    margin-left: auto
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s
}

.btn:active {
  transform: scale(.97)
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent)
}

.btn-primary:hover {
  transform: translateY(-1px)
}

.btn-line {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--fg)
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: transform .18s
}

.store:hover {
  transform: translateY(-2px)
}

.store svg {
  flex: none
}

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

.store small {
  font-size: 11.5px;
  opacity: .75
}

.store b {
  font: 600 17px/1.1 var(--font-display)
}

.on-stage .store {
  background: var(--stage-fg);
  color: var(--stage)
}

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

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px);
  position: relative
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1
}

.bismillah {
  font: 400 clamp(26px, 3.2vw, 38px)/1.6 "Amiri", "Noto Naskh Arabic", serif;
  color: var(--accent);
  margin-bottom: 6px
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--mute)
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 18px 0 22px
}

.hero h1 em {
  font: italic 400 1.08em/1 "Instrument Serif", Georgia, serif;
  letter-spacing: -.01em;
  color: var(--accent);
  padding-right: .06em
}

.hero .lede {
  margin: 0 auto
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 18px
}

.hero-ctas .btn {
  height: 52px;
  padding: 0 26px
}

.endorse {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--mute)
}

.endorse img {
  height: 22px;
  width: auto
}

/* tilted phone with floating cards */
.hero-phone {
  position: relative;
  width: min(330px, 64vw);
  margin-top: clamp(44px, 6vw, 72px);
  perspective: 1800px
}

.phone3d {
  position: relative;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(150deg, #4A3F33, #16120D 45%, #2A231B);
  box-shadow: 0 0 0 1px #2A231B, 30px 50px 80px -30px var(--shadow);
  transform: rotateX(34deg) rotateY(-12deg) rotateZ(9deg);
  transform-origin: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 88%);
  margin-bottom: -28%
}

.phone3d img {
  width: 100%;
  height: auto;
  border-radius: 42px
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -20px var(--shadow);
  text-align: left;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite
}

.float i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent)
}

.float span {
  display: flex;
  flex-direction: column;
  line-height: 1.2
}

.float small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute)
}

.float b {
  font: 600 15px/1.25 var(--font-display);
  color: var(--fg)
}

.float.f1 { left: -52%; top: 12% }
.float.f2 { right: -56%; top: 30%; animation-delay: -1.5s }
.float.f3 { left: -46%; top: 44%; animation-delay: -3s }
.float.f4 { right: -40%; top: 4%; animation-delay: -4.5s }

@keyframes bob {
  50% { transform: translateY(-8px) }
}

@media (max-width:700px) {
  .hero-phone { width: min(260px, 58vw) }
  .float { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 12px }
  .float i { width: 26px; height: 26px; border-radius: 8px }
  .float b { font-size: 13px }
  .float small { font-size: 9px }
  .float.f1 { left: -30%; top: 6% }
  .float.f2 { right: -30%; top: 34% }
  .float.f3, .float.f4 { display: none }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none }
}

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

.demo .device {
  max-width: 980px;
  margin-inline: auto
}

/* landscape device with the live demo */
.device {
  position: relative;
  background: var(--stage);
  border-radius: clamp(26px, 3vw, 40px);
  padding: clamp(8px, 1vw, 12px);
  box-shadow: 0 40px 80px -36px var(--shadow), 0 0 0 1px #2A231B, inset 0 0 0 2px #2A231B;
  transform: rotate(-1.2deg)
}

.device-screen {
  position: relative;
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  background: #16120D;
  aspect-ratio: 2.1/1;
  color: #FCF4DE
}

.device-screen>#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.dtop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.2% 3.6% 0;
  z-index: 2;
  font-size: clamp(10px, 1.1vw, 13px)
}

.dtop .ttl {
  text-align: center;
  line-height: 1.25
}

.dtop .ttl b {
  display: block;
  font-weight: 600
}

.dtop .ttl span {
  color: #B8AC97;
  font-size: .85em
}

.dbtn {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: #2A231B;
  display: grid;
  place-items: center;
  color: #FCF4DE
}

.coach {
  position: absolute;
  left: 50%;
  top: 21%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .45em .95em;
  border-radius: 999px;
  font: 600 clamp(10px, 1.15vw, 13.5px)/1.2 var(--font-body);
  background: #D4A35A;
  color: #16120D;
  white-space: nowrap;
  transition: background .3s, color .3s, transform .3s
}

.coach.high,
.coach.low {
  background: #FCF4DE;
  color: #1F1A14
}

.coach.fixed {
  background: #7FD08A;
  color: #0E2A13
}

.coach.pop {
  animation: pop .35s cubic-bezier(.3, 1.6, .5, 1)
}

@keyframes pop {
  0% {
    transform: translateX(-50%) scale(.85)
  }

  100% {
    transform: translateX(-50%) scale(1)
  }
}

.dleg {
  position: absolute;
  left: 3.6%;
  bottom: 9.5%;
  z-index: 2;
  display: flex;
  gap: 12px;
  font-size: clamp(9px, .95vw, 11.5px);
  color: #B8AC97
}

.dleg i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px
}

.device-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--mute);
  text-align: center
}

/* ---------- strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--surface)
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-block: 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--mute)
}

.strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.strip svg {
  color: var(--accent)
}

/* ---------- sections ---------- */
section {
  scroll-margin-top: 80px
}

.sec {
  padding-block: clamp(64px, 9vw, 120px)
}

.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 720px
}

.sec-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04
}

.on-stage {
  background: var(--stage);
  color: var(--stage-fg)
}

.on-stage .lede {
  color: var(--sand)
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  counter-reset: step
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0
}

.step-shot {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4/4.3;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 22px 22px 0
}

.step-shot img {
  width: 72%;
  filter: drop-shadow(0 18px 24px var(--shadow))
}

.step-shot.wide {
  place-items: center;
  padding: 20px
}

.step-shot.wide img {
  width: 100%;
  border-radius: 18px
}

.step h3 {
  font-size: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  font: 600 14px/1 var(--font-body);
  color: var(--accent-fg);
  background: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  transform: translateY(-3px)
}

.step p {
  color: var(--mute)
}

@media (max-width:860px) {
  .steps {
    grid-template-columns: 1fr
  }

  .step-shot {
    aspect-ratio: auto;
    max-height: 440px
  }
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px
}

.tile {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden
}

.tile h3 {
  font-size: 22px;
  line-height: 1.15
}

.tile p {
  color: var(--mute);
  font-size: 15px
}

.tile .ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center
}

.tile.dark {
  background: var(--stage);
  border-color: var(--stage);
  color: var(--stage-fg)
}

.tile.dark p {
  color: var(--sand)
}

.tile.dark .ico {
  background: #2A231B;
  color: #D4A35A
}

.tile .shot {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .8)
}

.span-6 {
  grid-column: span 6
}

.span-4 {
  grid-column: span 4
}

.span-3 {
  grid-column: span 3
}

.span-2 {
  grid-column: span 2
}

.tile.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px
}

.tile.split .phone-shot {
  justify-self: center;
  width: min(240px, 100%);
  margin-bottom: -60px;
  filter: drop-shadow(0 20px 26px var(--shadow))
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg)
}

.tile.dark .chip {
  background: #2A231B;
  border-color: #3A3026;
  color: #FCF4DE
}

.chip.g {
  background: #D4A35A;
  border-color: #D4A35A;
  color: #16120D
}

.chip.ok {
  background: #7FD08A;
  border-color: #7FD08A;
  color: #0E2A13
}

.lot {
  width: 120px;
  height: 96px;
  align-self: flex-start;
  margin: -6px 0 -4px -8px
}

@media (max-width:980px) {

  .span-4,
  .span-3 {
    grid-column: span 6
  }

  .span-2 {
    grid-column: span 3
  }
}

@media (max-width:620px) {
  .span-2 {
    grid-column: span 6
  }

  .tile.split {
    grid-template-columns: 1fr
  }

  .tile.split .phone-shot {
    margin-bottom: -90px
  }
}

/* riyaz */
.riyaz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center
}

.lantern-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px
}

.lantern-wrap::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 90, .32), rgba(212, 163, 90, 0) 66%);
  animation: breathe 4s ease-in-out infinite
}

.lantern {
  position: relative;
  width: min(320px, 80%);
  aspect-ratio: 1
}

.streak {
  position: absolute;
  right: 4%;
  bottom: 10%;
  background: #2A231B;
  border: 1px solid #3A3026;
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px
}

.streak b {
  font: 600 34px/1 var(--font-display);
  color: #D4A35A
}

.streak span {
  font-size: 13px;
  color: #B8AC97;
  line-height: 1.3
}

.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px
}

.time {
  background: #211B14;
  border: 1px solid #3A3026;
  border-radius: 18px;
  padding: 14px 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600
}

.time.on {
  border-color: #D4A35A;
  background: #2E2519
}

.time .tl {
  width: 64px;
  height: 52px;
  margin: 0 auto 4px
}

.time small {
  display: block;
  color: #B8AC97;
  font-weight: 500;
  font-size: 12.5px
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 0;
  list-style: none
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.ticks svg {
  flex: none;
  margin-top: 3px;
  color: var(--gold-soft)
}

.on-stage .ticks li {
  color: var(--sand)
}

.on-stage .ticks b {
  color: var(--stage-fg);
  font-weight: 600
}

@media (max-width:860px) {
  .riyaz-grid {
    grid-template-columns: 1fr
  }

  .lantern-wrap {
    min-height: 320px
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: .7;
    transform: scale(.97)
  }

  50% {
    opacity: 1;
    transform: scale(1.03)
  }
}

/* leaderboard */
.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center
}

.board-grid .ticks svg {
  color: var(--accent)
}

.board {
  background: var(--stage);
  color: var(--stage-fg);
  border-radius: 28px;
  padding: 22px 16px 16px
}

.board-kicker {
  font: 700 11px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center
}

.board h3 {
  font-size: clamp(26px, 3vw, 34px);
  text-align: center;
  margin: 8px 0 4px
}

.board-reset {
  text-align: center;
  color: var(--sand);
  font-size: 13px;
  margin: 0 0 18px
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 8px
}

.place {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0
}

.medal {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 600 20px/1 var(--font-display)
}

.medal.first {
  width: 64px;
  height: 64px;
  background: linear-gradient(#F6D7A0, #E0B15C 50%, #C4923C);
  color: #3A2A14
}

.medal.side {
  width: 48px;
  height: 48px;
  background: #3A2E22;
  color: #F6E7C4;
  box-shadow: inset 0 0 0 1.5px #C6A36A;
  font-size: 16px
}

.place b {
  font: 600 13px/1.2 var(--font-body);
  max-width: 100%
}

.place small {
  color: var(--sand);
  font-size: 11.5px
}

.place small em {
  font-style: normal;
  color: #7FD08A
}

.block {
  width: 100%;
  margin-top: 8px;
  border-radius: 16px 16px 8px 8px;
  display: grid;
  place-items: center;
  font: 600 22px/1 var(--font-display)
}

.block.first {
  height: 88px;
  background: linear-gradient(#F6D7A0, #E0B15C 50%, #C4923C);
  color: #3A2A14
}

.block.side {
  height: 58px;
  background: #2A231C;
  color: #F6E7C4
}

.board-note {
  text-align: center;
  color: var(--sand);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 14px 6px
}

.board-rows {
  display: grid;
  gap: 8px
}

.brow {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #211B14;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px
}

.brow.you {
  background: #3A3020;
  box-shadow: inset 0 0 0 1px #D4A35A
}

.brow .nm {
  font-weight: 600
}

.brow .mins {
  color: var(--sand);
  font-size: 13px
}

@media (max-width:860px) {
  .board-grid {
    grid-template-columns: 1fr
  }
}

/* respect */
.respect {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center
}

.respect-list {
  display: grid;
  gap: 14px
}

.rcard {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line)
}

.rcard .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center
}

.rcard h3 {
  font-size: 18px;
  margin-bottom: 2px
}

.rcard p {
  color: var(--mute);
  font-size: 15px
}

.phones {
  position: relative;
  display: block;
  width: 100%;
  min-height: 560px
}

.phones img {
  position: absolute;
  width: min(280px, 64%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px var(--shadow))
}

.phones img:first-child {
  left: 0;
  top: 28px;
  transform: rotate(-5deg)
}

.phones img:last-child {
  right: 0;
  top: 0;
  z-index: 1;
  transform: rotate(4deg)
}

@media (max-width:860px) {
  .respect {
    grid-template-columns: 1fr
  }

  .phones {
    min-height: 520px;
    max-width: 520px;
    margin-inline: auto
  }

  .phones img {
    width: min(250px, 58%)
  }
}

/* gallery */
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px clamp(16px, 4vw, 32px) 26px;
  scrollbar-width: thin
}

.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center
}

.gallery img {
  height: min(520px, 70vh);
  width: auto;
  filter: drop-shadow(0 20px 26px var(--shadow))
}

.gallery figure.land img {
  height: min(300px, 40vh);
  border-radius: 24px
}

.gallery figcaption {
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 500
}

.gallery-wrap {
  max-width: 1400px;
  margin-inline: auto
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px
}

.plan {
  border-radius: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px
}

.plan.paid {
  background: var(--stage);
  border-color: var(--stage);
  color: var(--stage-fg);
  position: relative
}

.plan h3 {
  font-size: 28px
}

.plan .pl {
  color: var(--mute);
  font-size: 15px
}

.plan.paid .pl {
  color: var(--sand)
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent)
}

.plan.paid li svg {
  color: #D4A35A
}

.plan .price {
  font-size: 15px;
  color: var(--sand)
}

.plan .price b {
  font: 600 24px/1 var(--font-display);
  color: var(--stage-fg)
}

.tag {
  align-self: flex-start;
  white-space: nowrap;
  font: 700 11.5px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #D4A35A;
  color: #16120D;
  padding: 6px 10px;
  border-radius: 999px
}

.plan-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--mute);
  max-width: 70ch
}

@media (max-width:720px) {
  .plans {
    grid-template-columns: 1fr
  }
}

/* faq */
.faq {
  max-width: 820px;
  display: grid;
  gap: 10px
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 20px;
  transition: background .2s
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font: 600 17px/1.35 var(--font-display)
}

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

.faq summary i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1)
}

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

.faq details p {
  padding: 0 0 18px;
  color: var(--mute);
  max-width: 66ch
}

/* waitlist */
.waitlist {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left
}

.waitlist label {
  display: block;
  font: 600 13px/1 var(--font-body);
  margin-bottom: 8px
}

.waitlist-phone {
  display: flex;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0 0 18px
}

.waitlist-phone legend {
  font: 600 13px/1 var(--font-body);
  padding: 0;
  margin-bottom: 8px
}

.waitlist .waitlist-phone label {
  margin: 0;
  cursor: pointer
}

.waitlist .waitlist-phone input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.waitlist-phone span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font: 600 14px/1 var(--font-body);
  color: var(--mute);
  transition: background .2s, color .2s, border-color .2s
}

.waitlist-phone input:checked + span {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg)
}

.waitlist-phone input:focus-visible + span {
  outline: 2.5px solid var(--gold-soft);
  outline-offset: 3px
}

.waitlist-row {
  display: flex;
  gap: 10px;
  align-items: stretch
}

.waitlist input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: 500 15px/1 var(--font-body)
}

.waitlist input::placeholder {
  color: var(--sand)
}

.waitlist input:focus {
  outline: none;
  border-color: var(--gold-soft)
}

.waitlist .btn {
  flex: none
}

.waitlist-msg {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 14px;
  color: var(--mute)
}

.waitlist-msg.ok {
  color: var(--accent)
}

.waitlist-msg.bad {
  color: var(--coral)
}

@media (max-width:560px) {
  .waitlist-row {
    flex-direction: column
  }

  .waitlist .btn {
    width: 100%
  }
}

/* final cta */
.final {
  text-align: center;
  padding-block: clamp(72px, 10vw, 130px);
  position: relative;
  overflow: hidden
}

.final h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  margin: 14px auto 16px;
  max-width: 15ch
}

.final .lede {
  margin: 0 auto 34px
}

.final .stores {
  justify-content: center;
  margin-top: 26px
}

.final-line {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 160px;
  opacity: .5;
  pointer-events: none
}

.final-line path {
  fill: none;
  stroke-linecap: round
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: 14px;
  color: var(--mute)
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px
}

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

.foot a:hover {
  color: var(--accent)
}

.foot .mb {
  display: flex;
  align-items: center;
  gap: 10px
}

.foot .mb img {
  height: 26px;
  width: auto
}

.dua {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  padding-inline: 16px;
  color: var(--accent)
}

.dua-text {
  font: 400 clamp(20px, 2.4vw, 24px)/1.6 "Amiri", "Noto Naskh Arabic", serif
}

.dua-line {
  width: clamp(36px, 8vw, 64px);
  height: 1px;
  background: var(--gold-soft)
}

.dua-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft)
}

/* motion: reveal from a visible resting state */
.reveal {
  opacity: 1;
  transform: none
}

.js .reveal.pre {
  opacity: .45;
  transform: translateY(22px)
}

.js .reveal {
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms)
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

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

  html {
    scroll-behavior: auto
  }

  .hero h1 em path {
    stroke-dashoffset: 0
  }
}

/* ---------- legal pages ---------- */
.legal-hero {
  padding-block: clamp(40px, 6vw, 72px) 28px;
  border-bottom: 1px solid var(--line)
}

.legal-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  margin: 12px 0 12px
}

.legal-hero p {
  color: var(--mute)
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: 40px 90px;
  align-items: start
}

.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 92px);
  font-size: 14px
}

.toc b {
  display: block;
  font: 700 11.5px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--mute);
  text-decoration: none;
  border-left: 2px solid transparent
}

.toc a:hover {
  color: var(--fg);
  background: var(--surface)
}

.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--surface);
  font-weight: 600
}

.doc {
  max-width: 70ch;
  min-width: 0
}

.doc .short {
  background: var(--stage);
  color: var(--stage-fg);
  border-radius: var(--r-card);
  padding: 24px 26px;
  margin-bottom: 40px
}

.doc .short h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--stage-fg)
}

.doc .short ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--sand)
}

.doc .short b {
  color: var(--stage-fg)
}

.doc .short li {
  color: var(--sand)
}

.doc .short {
  border: 1px solid var(--stage-2)
}

.doc section {
  padding-top: 8px;
  margin-bottom: 34px
}

.doc h2 {
  font-size: 26px;
  margin-bottom: 12px
}

.doc h3 {
  font-size: 18px;
  margin: 18px 0 6px
}

.doc p,
.doc li {
  color: color-mix(in srgb, var(--fg) 82%, var(--bg))
}

.doc p+p {
  margin-top: 12px
}

.doc ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  margin: 10px 0
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 12px 0
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line)
}

.doc th {
  font: 700 11.5px/1.3 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute)
}

.tablewrap {
  overflow-x: auto
}

.fill {
  background: var(--tint);
  color: var(--accent);
  border: 1px dashed var(--gold-soft);
  border-radius: 6px;
  padding: 0 5px;
  font-weight: 600
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px 12px;
  font-weight: 600;
  color: var(--fg)
}

.copy button {
  border: 0;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 8px;
  font: 600 12.5px var(--font-body);
  padding: 6px 10px;
  cursor: pointer
}

@media (max-width:860px) {
  .legal {
    grid-template-columns: 1fr
  }

  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px
  }
}

[data-lottie] {
  position: relative
}

[data-lottie] img.lf {
  width: 100%;
  height: 100%;
  object-fit: contain
}

a.gbtn {
  text-decoration: none
}

/* desktop centring: section intros, plans, FAQ and the gallery sit on the page's centre line */
.sec-head {
  margin-inline: auto;
  text-align: center;
  justify-items: center
}

.sec-head .lede {
  margin-inline: auto
}

.respect .sec-head {
  margin-inline: 0;
  text-align: left;
  justify-items: start
}

.respect .sec-head .lede {
  margin-inline: 0
}

.plans,
.faq {
  margin-inline: auto
}

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

.gallery {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto
}

.steps .step {
  text-align: left
}

@media (max-width:620px) {
  .sec-head {
    text-align: left;
    justify-items: start;
    margin-inline: 0
  }

  .sec-head .lede {
    margin-inline: 0
  }

  .plan-note {
    text-align: left
  }
}
/* ---------- sur riyaz ---------- */
.sur-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center
}

.sur-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  margin: 14px 0 16px
}

.sur-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 30px 60px -40px var(--shadow)
}

.sur-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px
}

.sur-head span:first-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25
}

.sur-head small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute)
}

.sur-head b {
  font: 600 20px/1.25 var(--font-display)
}

.sur-key {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.sur-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px
}

.sur-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent
}

.sur-step i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font: 600 14px/1 var(--font-body);
  font-style: normal
}

.sur-step b {
  display: block;
  font: 600 16px/1.3 var(--font-display)
}

.sur-step small {
  display: block;
  font-size: 13.5px;
  color: var(--mute);
  margin-top: 2px
}

.sur-step em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  padding-top: 5px
}

/* the step being sung: a dark mini practice screen */
.sur-step.on {
  background: var(--stage);
  border-color: #3A3026;
  color: var(--stage-fg)
}

.sur-step.on i {
  background: var(--gold-soft);
  color: var(--stage)
}

.sur-step.on small,
.sur-step.on em {
  color: var(--sand)
}

.ladder {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90px;
  margin: 12px 0 10px;
  overflow: visible
}

.ladder .tune {
  fill: none;
  stroke: #D4A35A;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75
}

.ladder .you {
  fill: none;
  stroke: #FCF4DE;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: sing-up 3.2s ease-in-out infinite
}

.ladder circle {
  fill: #FCF4DE;
  animation: sing-dot 3.2s ease-in-out infinite
}

@keyframes sing-up {
  0% { stroke-dashoffset: 100 }
  70%, 100% { stroke-dashoffset: 0 }
}

@keyframes sing-dot {
  0%, 60% { opacity: 0 }
  70%, 100% { opacity: 1 }
}

.sur-chip {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--close);
  color: #0E2A13;
  font-size: 12.5px;
  font-weight: 600
}

@media (max-width:860px) {
  .sur-grid {
    grid-template-columns: 1fr
  }
}

@media (prefers-reduced-motion: reduce) {
  .ladder .you {
    animation: none;
    stroke-dashoffset: 0
  }

  .ladder circle {
    animation: none
  }
}
