:root {
  --bg: #161514;
  --bg-soft: #201c19;
  --surface: rgba(37, 34, 31, 0.9);
  --surface-strong: rgba(47, 43, 39, 0.96);
  --ink: #fff8ef;
  --muted: #c4b9ad;
  --soft: #8e8277;
  --line: rgba(255, 248, 239, 0.16);
  --line-strong: rgba(255, 248, 239, 0.28);
  --accent: #f06452;
  --accent-strong: #ff725f;
  --accent-soft: rgba(240, 100, 82, 0.16);
  --olive: #9ca17d;
  --teal: #7fb9b0;
  --gold: #d6ac64;
  --rose: #d98c80;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-soft: 12px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbf7ef;
  --bg-soft: #f1eadf;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-strong: rgba(255, 252, 246, 0.98);
  --ink: #211d1a;
  --muted: #6e645d;
  --soft: #8c8178;
  --line: rgba(46, 38, 32, 0.14);
  --line-strong: rgba(46, 38, 32, 0.22);
  --accent: #e95f4e;
  --accent-strong: #cf4d3e;
  --accent-soft: rgba(233, 95, 78, 0.14);
  --olive: #70785c;
  --teal: #427e76;
  --gold: #ad7c34;
  --rose: #b45f54;
  --shadow: 0 24px 64px rgba(81, 68, 52, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(12, 8, 5, 0.58) 0%, rgba(16, 11, 7, 0.88) 42%, rgba(22, 21, 20, 0.96) 100%),
    url("../assets/mindful-background.png") center top / cover fixed,
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-motion-ready .motion-item {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.98);
}

body.is-motion-ready .motion-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-item {
  transition:
    opacity 760ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 600ms ease,
    background 600ms ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: transform, opacity;
}

.text-highlight {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(90deg, rgba(240, 100, 82, 0.22), rgba(214, 172, 100, 0.18));
  background-size: var(--highlight-progress, 0%) 38%;
  background-position: 0 86%;
  background-repeat: no-repeat;
  transition: background-size 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.text-highlight.is-visible {
  --highlight-progress: 100%;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.72) 0%, rgba(251, 247, 239, 0.9) 46%, rgba(251, 247, 239, 0.97) 100%),
    url("../assets/mindful-background.png") center top / cover fixed,
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(circle at 16% 80%, rgba(240, 100, 82, 0.2), transparent 18rem),
    radial-gradient(circle at 86% 14%, rgba(214, 172, 100, 0.18), transparent 22rem);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(240, 100, 82, 0.2);
}

.brand span { white-space: nowrap; }

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover { color: var(--ink); }

.language-control { margin-left: auto; }
.nav-links + .language-control { margin-left: 0; }

select,
.theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

select {
  max-width: 118px;
  padding: 9px 30px 9px 12px;
  font-weight: 750;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  cursor: pointer;
}

.theme-toggle i { color: var(--accent); font-size: 1.05rem; }
.theme-toggle .theme-light-icon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-dark-icon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-light-icon { display: inline-block; }

.section {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: center;
  gap: 44px;
  padding-top: 36px;
}

.hero-copy {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 8.2ch;
  font-size: clamp(3.1rem, 10vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-tagline,
.page-hero p:not(.eyebrow) {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.34rem);
}

/* Myanmar glyphs need more vertical rhythm and a wider measure than the
   compact Latin display treatment used by the default hero. */
html[lang="my"] .hero h1,
html[lang="my"] .page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.16;
  letter-spacing: 0;
}

html[lang="my"] .hero-tagline,
html[lang="my"] .page-hero p:not(.eyebrow) {
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  max-width: 100%;
}

.store-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.store-button {
  gap: 12px;
  min-width: 168px;
  line-height: 1.1;
}

.store-button i { flex: 0 0 auto; font-size: 1.5rem; line-height: 1; }
.store-button span { display: grid; gap: 2px; }
.store-button small { font-size: 0.72rem; line-height: 1; opacity: 0.78; }
.store-button strong { font-size: 1.02rem; }

.store-button.primary,
.text-button {
  color: #fff8ef;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(240, 100, 82, 0.26);
}

.store-button.secondary { background: var(--surface); }
.store-button:hover, .text-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.phone-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  min-height: 650px;
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.phone-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% -5%;
  border: 1px solid rgba(243, 224, 205, .08);
  border-radius: 48px;
  background:
    linear-gradient(rgba(17, 15, 14, .48), rgba(17, 15, 14, .48)),
    url("../image/duo-open.jpg") center / cover no-repeat;
  opacity: .2;
  filter: saturate(.7);
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 78%);
  pointer-events: none;
}

.device-wrap {
  position: relative;
  display: grid;
  width: min(100%, 282px);
  justify-items: center;
  gap: 12px;
}

.device-wrap-ios { z-index: auto; }

.phone-mockup,
.shot-frame,
.annotated-phone {
  position: relative;
  overflow: hidden;
  background: #171514;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 20;
  padding: 11px;
  border: 2px solid #535459;
  border-radius: 44px;
  background: linear-gradient(145deg, #45474b, #101113 24%, #090a0b 72%, #535459);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.phone-ios { border-radius: 48px; padding: 12px; }
.phone-android { border-radius: 34px; padding: 9px; }
.phone-ios::before,
.phone-android::before { content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; transform: translateX(-50%); background: #050506; pointer-events: none; }
.phone-ios::before { width: 31%; height: 19px; border-radius: 999px; }
.phone-android::before { width: 8px; height: 8px; top: 13px; border: 2px solid #26282b; border-radius: 50%; }

.phone-mockup img,
.shot-frame img,
.annotated-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--surface-strong);
}

.phone-mockup img { object-fit: contain; border-radius: 34px; }
.phone-android img { border-radius: 26px; }

.phone-ios {
  justify-self: end;
  transform:
    translate3d(calc(28px + var(--phone-x, 0px)), calc(var(--phone-y, 0px) * -0.6), 42px)
    rotateX(calc(var(--phone-rx, 0deg) * 0.8))
    rotateY(calc(var(--phone-ry, 0deg) * 0.8))
    rotateZ(-3deg);
  z-index: 2;
}

.phone-android {
  justify-self: start;
  transform:
    translate3d(calc(-14px + var(--phone-x, 0px) * -0.45), calc(36px + var(--phone-y, 0px) * 0.45), -24px)
    rotateX(calc(var(--phone-rx, 0deg) * -0.45))
    rotateY(calc(var(--phone-ry, 0deg) * -0.55))
    rotateZ(3deg);
  z-index: 1;
}

.phone-label {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 850;
}

.device-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.device-label i { color: var(--accent); font-size: .95rem; }

img.is-missing { display: none; }

.image-fallback {
  position: absolute;
  inset: 12px;
  display: none;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
  padding: 18px;
}

img.is-missing + .image-fallback { display: grid; }

.section-heading { margin-bottom: 28px; }

.duo-section {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 58px) 0;
}

.duo-intro { max-width: 680px; }
.duo-intro > p { max-width: 58ch; margin: 0; }
.duo-feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.duo-feature-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: .86rem;
}
.duo-feature-list i { color: var(--accent); }
.duo-gallery {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  align-items: end;
  gap: 14px;
}
.duo-shot { margin: 0; }
.duo-shot img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 55%), var(--surface);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.duo-shot:hover img { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(0, 0, 0, .25); }
.duo-shot figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; }

@media (max-width: 760px) {
  .duo-gallery { grid-template-columns: 1fr 1fr; }
  .duo-shot-wide { grid-column: 1 / -1; }
  .duo-shot img { height: 300px; }
}

.split-section,
.privacy-summary,
.support-band {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 { margin: 0; font-size: 1.12rem; line-height: 1.2; }
p { color: var(--muted); }
.large-copy { margin: 0; font-size: clamp(1.08rem, 2.6vw, 1.32rem); }

.steps-grid,
.feature-grid,
.level-grid,
.screenshot-grid,
.leaderboard-list,
.guide-card-grid {
  display: grid;
  gap: 14px;
}

.leaderboard-list-full {
  display: block;
}

.step-card,
.feature-card,
.level-card,
.screenshot-card,
.content-card,
.contact-card,
.privacy-summary,
.support-band,
.flow-step,
.level-guide,
.badge-stage-card,
details,
.guide-panel,
.guide-sidebar,
.leaderboard-preview,
.podium-card,
.rank-row,
.journey-strip,
.target-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.step-card,
.feature-card,
.content-card,
.contact-card,
.flow-step,
.target-panel {
  padding: clamp(22px, 3vw, 30px);
}

.step-card span,
.flow-step span,
.callout-list b {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff8ef;
  background: var(--accent);
  font-weight: 900;
}

.step-card span { margin-bottom: 18px; }
.feature-card { min-height: 178px; }

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff8ef;
  background: color-mix(in srgb, var(--accent) 80%, var(--gold));
  font-size: 1.28rem;
}

.journey-strip {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 42px);
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 54px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--teal));
  background-size: 100% 3px;
  background-position: center;
  background-repeat: no-repeat;
}

.journey-line span {
  justify-self: center;
  width: 24px;
  height: 24px;
  border: 7px solid var(--surface-strong);
  border-radius: 50%;
  background: currentColor;
  transform: scale(var(--bead-scale, 1));
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.journey-line span:nth-child(1) { color: var(--accent); }
.journey-line span:nth-child(2) { color: var(--rose); }
.journey-line span:nth-child(3) { color: var(--gold); }
.journey-line span:nth-child(4) { color: var(--olive); }
.journey-line span:nth-child(5) { color: var(--teal); }

.target-panel {
  display: grid;
  gap: 14px;
}

.target-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.target-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.target-row:nth-child(2) .target-dot { background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent); }
.target-row:nth-child(3) .target-dot { background: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 22%, transparent); }

.target-row strong,
.target-row small { display: block; }
.target-row small { color: var(--muted); }

.progress-flow { display: grid; gap: 14px; }
.flow-step span { margin-bottom: 16px; }
.flow-step.green span { background: #54aa4a; }
.flow-step.teal span { background: #3a9b91; }
.flow-step.amber span { background: #d99b2d; }
.flow-step.blue span { background: #418cd6; }
.flow-step.purple span { background: #8a67ad; }
.flow-step.rose span { background: var(--accent); }
.flow-step p { margin-bottom: 0; }
.flow-rail { display: none; }

.level-guide {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
}

.level-guide i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff8ef;
  background: var(--accent);
  font-size: 1.25rem;
}

.level-guide p { margin: 0; color: var(--ink); font-weight: 700; }

.badge-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 14px;
}

.badge-stage-card {
  display: grid;
  justify-items: center;
  min-height: 198px;
  padding: 18px 14px;
  text-align: center;
}

.badge-stage-card strong { font-size: 1.04rem; }
.badge-stage-card span { margin-top: 4px; color: var(--muted); font-size: 0.86rem; font-weight: 750; }
.badge-stage-card img { width: min(106px, 82%); aspect-ratio: 1; object-fit: contain; margin-top: 12px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18)); }

.screenshot-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 68%);
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.screenshot-card { margin: 0; padding: 10px; scroll-snap-align: start; }
.shot-frame { aspect-ratio: 9 / 20; border-radius: 18px; }
.shot-frame img { border-radius: 14px; }
.screenshot-card figcaption { margin-top: 10px; color: var(--muted); font-weight: 750; text-align: center; }
.onboarding-card { padding: 12px; }
.onboarding-card .shot-frame { border-color: rgba(226, 116, 92, .28); border-radius: 22px; }
.onboarding-card .shot-frame img { border-radius: 18px; }
.onboarding-card figcaption { min-height: 1.5em; }

.leaderboard-page-shell {
  width: min(1320px, calc(100% - 28px));
  padding-top: 28px;
}

.leaderboard-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.leaderboard-titlebar h1 {
  margin: 0;
  color: #f4d08c;
  font-size: clamp(3.2rem, 6.8vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.leaderboard-titlebar p {
  margin: 8px 0 0;
}

.leaderboard-titlebar .eyebrow {
  margin-bottom: 8px;
}

.leaderboard-quote {
  max-width: 26ch;
  color: #f4d08c;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-style: italic;
  text-align: right;
}

.leaderboard-preview { padding: clamp(28px, 4vw, 42px); }
.leaderboard-board {
  padding: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, #171717 88%, transparent);
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.42);
}
.leaderboard-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 24px; }
.leaderboard-head h2 { max-width: 10ch; }
.podium { display: grid; gap: 14px; margin-bottom: 16px; }

.podium-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  transform-style: preserve-3d;
}

.podium-card.is-visible {
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}

.podium-card.first { border-color: color-mix(in srgb, var(--gold) 70%, var(--line)); background: color-mix(in srgb, var(--surface) 84%, var(--gold)); }
.rank-medal { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff8ef; font-weight: 950; }
.podium-card.first .rank-medal { background: var(--gold); color: #211d1a; }
.rank-medal-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  object-fit: contain;
  padding: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #211d1a 28%, transparent), 0 6px 12px rgba(0, 0, 0, 0.2);
}
.avatar-symbol { font-size: 1.55rem; }
.leader-name { display: block; font-weight: 850; }
.leader-meta { display: block; color: var(--muted); font-size: 0.88rem; }
.leader-streak { color: var(--accent); font-weight: 850; }
.leader-country { color: var(--muted); font-weight: 800; white-space: nowrap; }

.rank-row {
  display: grid;
  grid-template-columns: 56px auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.leaderboard-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.leaderboard-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 15, 15, 0.48);
  padding: 0 12px;
  color: #d8d0c6;
}

.leaderboard-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
}

.leaderboard-search input:focus {
  box-shadow: none;
}

.leaderboard-filter,
.leaderboard-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 15, 15, 0.48);
  color: #f3eee6;
  padding: 0 14px;
  font-weight: 750;
}

.leaderboard-size select {
  min-height: 34px;
  max-width: 76px;
  padding: 5px 26px 5px 10px;
  border-radius: 8px;
}

.leaderboard-count {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.leaderboard-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.leaderboard-pager button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 15, 15, 0.48);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 850;
}

.leaderboard-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.leaderboard-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #d8d0c6;
  position: sticky;
  top: 0;
  z-index: 1;
}

.leaderboard-table th button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d8d0c6;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.leaderboard-table th button::after {
  content: "↕";
  margin-left: 7px;
  color: var(--soft);
  font-size: 0.82rem;
}

.leaderboard-table th button[data-sort-direction="asc"]::after { content: "↑"; color: var(--accent); }
.leaderboard-table th button[data-sort-direction="desc"]::after { content: "↓"; color: var(--accent); }

.leaderboard-table tbody tr:hover {
  background: rgba(244, 208, 140, 0.08);
}

.leaderboard-top {
  outline: 1px solid rgba(244, 208, 140, 0.45);
  box-shadow: inset 0 0 28px rgba(244, 160, 64, 0.12);
}

.leaderboard-top-1 {
  background: linear-gradient(90deg, rgba(126, 75, 18, 0.56), rgba(40, 29, 18, 0.76));
}

.leaderboard-top-2 {
  background: linear-gradient(90deg, rgba(110, 113, 116, 0.44), rgba(30, 32, 34, 0.76));
}

.leaderboard-top-3 {
  background: linear-gradient(90deg, rgba(126, 68, 28, 0.48), rgba(38, 27, 22, 0.76));
}

.leaderboard-rank .rank-medal {
  width: 42px;
  height: 42px;
  background: #2b2b2b;
  color: #f3eee6;
  box-shadow: inset 0 0 0 1px var(--line);
}

.leaderboard-rank .rank-medal-image {
  width: 42px;
  height: 42px;
}

.leaderboard-top-1 .rank-medal { background: #d49a38; color: #1d160c; }
.leaderboard-top-2 .rank-medal { background: #bfc4c8; color: #171717; }
.leaderboard-top-3 .rank-medal { background: #bd6f39; color: #1d120c; }

.leaderboard-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.leaderboard-user strong,
.leaderboard-user span,
.leaderboard-score strong,
.leaderboard-score span {
  display: block;
}

.leaderboard-user strong {
  color: #f6f0e8;
  font-size: 1.02rem;
}

.leaderboard-user span,
.leaderboard-score span {
  color: var(--muted);
  font-size: 0.84rem;
}

.leaderboard-flag,
.leaderboard-streak-cell {
  white-space: nowrap;
}

.leaderboard-symbol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.leaderboard-symbol-emoji {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.35rem;
  line-height: 1;
  object-fit: contain;
}
.leaderboard-symbol-only { width: 30px; height: 30px; object-fit: contain; }
.leader-country { font-size: 1.45rem; line-height: 1; }

.leaderboard-symbol-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.leaderboard-score {
  color: #f4d08c;
  text-align: center;
}

.leaderboard-score strong {
  font-size: 1.4rem;
  line-height: 1;
}

.leaderboard-state {
  display: none;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-soft);
  color: var(--muted);
}

.leaderboard-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.leaderboard-notice.is-snapshot::before {
  content: "↻  ";
  color: var(--accent);
  font-weight: 700;
}

.leaderboard-preview.is-loading .leaderboard-loading,
.leaderboard-preview.is-empty .leaderboard-empty,
.leaderboard-preview.is-error .leaderboard-error { display: block; }

.leaderboard-loading {
  position: relative;
  padding-left: 58px;
}

.leaderboard-loading::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: leaderboard-spin 900ms linear infinite;
}

.leaderboard-loading::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  margin-left: 3px;
  overflow: hidden;
  vertical-align: bottom;
  animation: leaderboard-dots 1.2s steps(4, end) infinite;
}

@keyframes leaderboard-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes leaderboard-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%,
  100% { content: "..."; }
}

.download-panel {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface));
}

.faq-list { display: grid; gap: 10px; }
details { padding: 18px 20px; }
summary { cursor: pointer; color: var(--ink); font-weight: 850; }
details p { margin-bottom: 0; }

.privacy-summary,
.support-band {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  width: min(1160px, calc(100% - 32px));
}

.page-main { min-height: calc(100vh - 160px); }
.page-hero { padding-bottom: 32px; }
.page-hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 10vw, 5.7rem); }
.content-card h2 { margin-top: 26px; font-size: clamp(1.5rem, 5vw, 2.3rem); }
.content-card h2:first-child { margin-top: 0; }
.support-layout { display: grid; gap: 18px; padding-top: 18px; }
.feedback-layout { display: grid; gap: 18px; padding-top: 18px; }
.feedback-card h2, .feedback-wall h2 { margin-top: 0; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.feedback-form { display: grid; gap: 12px; margin-top: 22px; }
.feedback-form > label:not(.feedback-consent) { font-weight: 750; }
.feedback-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}
.feedback-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.feedback-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.feedback-consent input { margin-top: 4px; accent-color: var(--accent); }
.feedback-form .text-button { justify-self: start; cursor: pointer; font: inherit; }
.feedback-status { min-height: 1.4em; margin: 0; color: var(--muted); }
.feedback-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.feedback-list { display: grid; gap: 12px; margin-top: 20px; }
.feedback-entry { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feedback-entry p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-entry time { display: block; margin-top: 10px; color: var(--muted); font-size: 0.82rem; }

.guide-main { overflow: clip; }
.guide-hero { padding-bottom: 18px; }
.guide-hero p:last-child { max-width: 760px; font-size: 1.08rem; }

.platform-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.platform-button,
.guide-tab {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 850;
  cursor: pointer;
}

.platform-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0 8px;
}

.platform-button.is-active,
.guide-tab.is-active { color: var(--ink); }
.platform-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.platform-button.is-active::after { background: var(--accent); }

.guide-shell { display: grid; gap: 18px; align-items: start; padding-top: 20px; }
.guide-sidebar {
  position: sticky;
  top: 74px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  backdrop-filter: blur(14px);
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
}

.guide-tab.is-active { border-color: var(--line); background: var(--surface-strong); }
.guide-panel { display: none; gap: 24px; align-items: start; padding: clamp(26px, 4vw, 42px); }
.guide-panel.is-active { display: grid; }
.guide-copy h2 { max-width: 12ch; font-size: clamp(2rem, 6vw, 4rem); }
.guide-copy > p:not(.eyebrow) { max-width: 640px; font-size: 1.05rem; }

.guide-panel--onboarding { align-items: center; }
.guide-panel--onboarding .guide-copy h2 { max-width: 15ch; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.08; }
.onboarding-steps { display: grid; gap: 9px; padding: 0; margin: 22px 0 0; list-style: none; }
.onboarding-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface-strong) 72%, transparent); }
.onboarding-step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff8ef; background: var(--accent); font-size: .78rem; font-weight: 900; }
.onboarding-steps strong { color: var(--ink); }
.onboarding-steps p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.onboarding-finish { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.onboarding-finish > i { color: var(--accent); font-size: 1.2rem; }
.onboarding-finish p { display: grid; gap: 4px; margin: 0; }
.onboarding-finish span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.onboarding-screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.onboarding-screen-card { min-width: 0; margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface-strong) 78%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); }
.onboarding-screen-card img { display: block; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: #171514; }
.onboarding-screen-card figcaption { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 3px 1px; color: var(--ink); font-size: .76rem; line-height: 1.25; }
.onboarding-screen-card figcaption span { color: var(--accent); font-size: .68rem; font-weight: 900; }
.onboarding-visual { width: 100%; }
.onboarding-visual-note { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: color-mix(in srgb, var(--surface-strong) 70%, transparent); font-size: .88rem; }
.onboarding-visual-note i { color: var(--accent); font-size: 1.05rem; }

.guide-panel--target-flow { align-items: start; }
.target-flow-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 72%); gap: 12px; width: 100%; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.target-flow-card { min-width: 0; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface-strong) 80%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); scroll-snap-align: start; }
.target-flow-card img { display: block; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: #171514; }
.target-flow-card figcaption { display: grid; gap: 5px; min-height: 104px; padding: 9px 3px 2px; }
.target-flow-card figcaption span { color: var(--accent); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.target-flow-card figcaption b { color: var(--ink); font-size: .9rem; }
.target-flow-card figcaption p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.target-flow-result { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }

html[lang="my"] .onboarding-steps p,
html[lang="my"] .onboarding-finish span,
html[lang="my"] .onboarding-steps p,
html[lang="my"] .onboarding-finish span,
html[lang="my"] .onboarding-visual-note,
html[lang="my"] .target-flow-card figcaption p { line-height: 1.75; }

.guide-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  counter-reset: guide;
  list-style: none;
}

.guide-steps li {
  position: relative;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.guide-steps li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff8ef;
  background: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
}

.guide-steps strong,
.guide-steps span { display: block; }
.guide-steps span { margin-top: 4px; color: var(--muted); }
.guide-visual { display: grid; justify-items: center; gap: 16px; min-width: 0; }

.annotated-phone {
  width: min(310px, 78vw);
  aspect-ratio: 9 / 20;
  padding: 10px;
  border-radius: 34px;
}

.annotated-phone img { object-fit: contain; }

.platform-shot { display: none; }
body.guide-platform-ios .platform-ios,
body.guide-platform-android .platform-android { display: block; }
.compact-phone { width: min(250px, 70vw); }

.hotspot {
  position: absolute;
  z-index: 2;
  border: 3px solid rgba(240, 100, 82, 0.92);
  border-radius: 16px;
  background: rgba(240, 100, 82, 0.12);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 72%, transparent), 0 12px 24px rgba(0, 0, 0, 0.18);
  animation: pulseHotspot 1.8s ease-in-out infinite;
}

@keyframes pulseHotspot {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

.h-count { left: 27%; top: 29%; width: 46%; height: 13%; }
.h-pull { left: 31%; top: 41%; width: 38%; height: 28%; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); }
.h-reset { left: 21%; top: 80%; width: 29%; height: 8%; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.h-feedback { left: 54%; top: 82%; width: 32%; height: 7%; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.h-target-list { left: 12%; top: 25%; width: 76%; height: 42%; }
.h-add-target { left: 16%; top: 73%; width: 68%; height: 10%; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); }
.h-progress-list { left: 12%; top: 24%; width: 76%; height: 39%; }
.h-complete { left: 63%; top: 23%; width: 19%; height: 32%; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); }
.h-calendar { left: 12%; top: 24%; width: 76%; height: 42%; }
.h-day-detail { left: 15%; top: 68%; width: 70%; height: 16%; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.h-style-grid { left: 10%; top: 27%; width: 80%; height: 50%; }
.h-level-card { left: 16%; top: 25%; width: 68%; height: 52%; }
.h-share-card { left: 13%; top: 18%; width: 74%; height: 58%; }
.h-share-button { left: 22%; top: 80%; width: 56%; height: 8%; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); }
.h-settings-list { left: 10%; top: 20%; width: 80%; height: 66%; }

.callout-list {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.callout-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.callout-list b { width: 24px; height: 24px; margin-right: 8px; }

.guide-badge-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(420px, 100%);
}

.guide-badge-row img { width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.16)); }
.store-button.full { width: 100%; max-width: 100%; margin-top: 16px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  padding: 28px 16px 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer a:hover { color: var(--ink); }

.reveal { animation: rise 680ms ease both; }
.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 220ms; }
.delay-3 { animation-delay: 320ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transform: none !important;
  }
}

@media (min-width: 700px) {
  .section { width: min(1160px, calc(100% - 56px)); padding: 88px 0; }
  .split-section, .privacy-summary, .support-band, .support-layout, .feedback-layout, .download-panel { grid-template-columns: 0.9fr 1.1fr; }
  .section.split-section, .section.privacy-summary, .section.support-band { padding: clamp(30px, 4vw, 48px); }
  .section.journey-strip, .section.download-panel { padding: clamp(34px, 4vw, 52px); }
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .progress-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .flow-step { min-height: 198px; padding: 18px; }
  .flow-step h3 { font-size: 1rem; }
  .flow-step p { font-size: 0.9rem; }
  .flow-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    height: 48px;
    margin: 8px 0 2px;
    background: linear-gradient(90deg, #54aa4a, #3a9b91, #d99b2d, #418cd6, #8a67ad, var(--accent));
    background-size: 100% 4px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .flow-rail span { justify-self: center; width: 22px; height: 22px; border: 6px solid var(--bg); border-radius: 50%; background: currentColor; }
  .flow-rail span:nth-child(1) { color: #54aa4a; }
  .flow-rail span:nth-child(2) { color: #3a9b91; }
  .flow-rail span:nth-child(3) { color: #d99b2d; }
  .flow-rail span:nth-child(4) { color: #418cd6; }
  .flow-rail span:nth-child(5) { color: #8a67ad; }
  .flow-rail span:nth-child(6) { color: var(--accent); }
  .level-guide { width: min(760px, 100%); margin: 14px auto 22px; }
  .screenshot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: initial; grid-auto-columns: initial; overflow: visible; }
  .onboarding-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .privacy-summary, .support-band { width: min(1160px, calc(100% - 56px)); padding: clamp(30px, 5vw, 52px); }
  .privacy-summary .text-button, .support-band .text-button { justify-self: end; }
  .guide-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .guide-sidebar { display: grid; overflow: visible; }
  .guide-tab { min-width: 0; }
  .guide-panel.is-active { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); }
  .guide-panel.guide-panel--onboarding.is-active { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .onboarding-screen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .guide-panel.guide-panel--target-flow.is-active { grid-template-columns: minmax(0, 1fr); }
  .target-flow-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: initial; grid-auto-columns: initial; overflow: visible; gap: 9px; }
  .target-flow-card { padding: 7px; }
  .target-flow-card figcaption { min-height: 124px; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .podium-card { min-height: 154px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .podium-card.first { min-height: 154px; transform: none; }
  .leaderboard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 0.76fr) minmax(460px, 1fr); min-height: calc(100vh - 64px); }
  .hero h1 { font-size: clamp(4.35rem, 7.1vw, 5.75rem); }
}

@media (min-width: 920px) {
  .nav-links { display: flex; }
  .language-control { margin-left: 0; }
}

@media (max-width: 699px) {
  body { background-attachment: scroll; }
  .site-header { gap: 9px; }
  .hero { min-height: auto; padding-top: 52px; }
  .phone-stage { min-height: 430px; margin-top: 4px; }
  .device-wrap { width: min(43vw, 172px); gap: 9px; }
  .phone-mockup { width: 100%; border-radius: 30px; padding: 8px; }
  .phone-ios { border-radius: 36px; padding: 9px; }
  .phone-android { border-radius: 27px; padding: 7px; }
  .phone-ios::before { top: 13px; height: 14px; }
  .phone-android::before { top: 10px; }
  .phone-mockup img { border-radius: 25px; }
  .phone-android img { border-radius: 20px; }
  .phone-ios { transform: translateX(18px) rotate(-3deg); }
  .phone-android { transform: translateX(-10px) translateY(30px) rotate(3deg); }
  .leaderboard-head { display: grid; align-items: start; }
  .rank-row { grid-template-columns: 56px auto 1fr; }
  .rank-row .leader-country,
  .rank-row .leader-streak { grid-column: 3; }
  .leaderboard-tools { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .leaderboard-filter,
  .leaderboard-size { width: 100%; justify-content: space-between; }
  .leaderboard-count { white-space: normal; }
  .leaderboard-pager { justify-content: space-between; }
}

@media (max-width: 520px) {
  .brand span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  select { max-width: 92px; }
  .hero-copy { width: 100%; overflow-wrap: break-word; }
  .hero-copy > * { max-width: min(320px, calc(100vw - 48px)); }
  .hero-tagline { max-width: min(320px, calc(100vw - 48px)); }
  .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .store-button { width: min(320px, calc(100vw - 48px)); min-width: 0; padding: 10px 12px; gap: 8px; justify-self: start; }
  .store-button.full { width: 100%; }
  .store-button i { font-size: 1.32rem; }
  .store-button small { font-size: 0.64rem; }
  .store-button strong { font-size: 0.92rem; }
  .phone-stage { min-height: 410px; }
  .device-wrap { width: min(42vw, 158px); }
  .section { width: min(340px, calc(100vw - 40px)); max-width: min(340px, calc(100vw - 40px)); margin-left: 16px; margin-right: auto; padding: 58px 0; }
  .split-section, .journey-strip, .leaderboard-preview, .download-panel, .guide-panel, .content-card, .contact-card, .privacy-summary, .support-band { padding: 24px 20px; }
  .hero h1 { max-width: 8.8ch; font-size: clamp(2.55rem, 12.4vw, 3.02rem); }
  .page-hero h1 { max-width: min(320px, calc(100vw - 48px)); font-size: clamp(2.4rem, 11.5vw, 2.9rem); }
  .page-hero p:not(.eyebrow) { max-width: min(320px, calc(100vw - 48px)); }

  html[lang="my"] .hero h1,
  html[lang="my"] .page-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.15rem, 10vw, 2.7rem);
    line-height: 1.2;
  }

  html[lang="my"] .hero-tagline,
  html[lang="my"] .page-hero p:not(.eyebrow) {
    max-width: min(330px, calc(100vw - 48px));
    font-size: 0.98rem;
    line-height: 1.75;
  }
}

.section.split-section,
.section.journey-strip,
.section.download-panel,
.section.privacy-summary,
.section.support-band {
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

.section.download-panel .cta-row {
  margin-top: 0;
}
