/* Canonical tokens from theme.css & production-shell.css */
:root {
  --ground: #000000;
  --raise: #1c1c1e;
  --edge: rgba(84, 84, 88, 0.55);
  --edge-soft: rgba(84, 84, 88, 0.30);
  --bone: #ffffff;
  --ash: #9b9ba1;
  --dim: #58585c;
  --ember: #0a84ff;
  --ember-deep: #0070e0;
  --ember-ink: #ffffff;
  --sugar: #64d2ff;
  --khmer: "Noto Sans Khmer", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --body: "Noto Sans Khmer", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Noto Sans Khmer", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #08080a;
  color: #f5f5f7;
  overflow-x: hidden;
}

.landing-root {
  width: 100%;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
  background: #08080a;
  color: #f5f5f7;
  overflow-x: hidden;
  /* No scroll-snap: sections instead fade/rise into place via the
     `.reveal-pending` class below, so scroll physics stay fully native
     and never fight the user's trackpad or mouse-wheel input. */
  scroll-padding-top: 60px;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Ambient lighting glow ---- */
.editorial-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1100px);
  height: 580px;
  background: radial-gradient(circle at 50% 20%, rgba(10, 132, 255, 0.18) 0%, rgba(100, 210, 255, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Navigation ---- */
.editorial-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.editorial-nav-inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editorial-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.editorial-brand-en {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.editorial-brand-sep {
  color: #4a4a50;
  font-size: 13px;
}

.editorial-brand-kh {
  font-family: "Noto Sans Khmer", var(--khmer);
  font-size: 16px;
  color: #64d2ff;
  font-weight: 500;
}

.editorial-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.3);
}

.editorial-nav-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editorial-nav-btn:hover {
  background: #ffffff;
  color: #08080a;
  border-color: #ffffff;
}

/* ---- Main Container ---- */
.editorial-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 24px calc(64px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 640px) {
  .editorial-main {
    padding: 0 16px calc(48px + env(safe-area-inset-bottom));
  }
  .editorial-nav-inner {
    padding: 0 16px;
  }
}

/* ---- Typography & Kickers ---- */
.editorial-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #0a84ff;
  letter-spacing: 0.04em;
}

.editorial-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64d2ff;
  box-shadow: 0 0 8px #64d2ff;
}

.editorial-kicker {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64d2ff;
  margin-bottom: 12px;
}

.editorial-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 8px 0 0;
  text-align: center;
}

.editorial-h1-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: "Space Grotesk", "Noto Sans Khmer", var(--khmer);
  font-size: clamp(42px, 9.5vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.editorial-h1-brand-accent {
  color: #64d2ff;
}

/* ---- Translation cycle ----
   "Sdap" rotates through its own romanization, Khmer script, and English
   meaning, each rising up from below to replace the last, right in the
   wordmark. All three sit stacked in one grid cell so the wordmark never
   changes width or height as it cycles. */
.editorial-h1-cycle {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  vertical-align: baseline;
}

.editorial-h1-cycle-word {
  grid-area: 1 / 1;
  font-family: "Space Grotesk", "Noto Sans Khmer", var(--khmer);
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

/* The Khmer-script frame gets Moul, a carved, monumental display face used
   for temple inscriptions and formal titles, so this one word in the cycle
   reads as a genuine signature moment rather than a plain script swap. */
.editorial-h1-cycle-word[lang="km"] {
  font-family: "Moul", "Noto Sans Khmer", var(--khmer);
  font-weight: 400;
}

.editorial-h1-cycle-word[data-pos="0"] {
  transform: translateY(0);
  opacity: 1;
}

.editorial-h1-cycle-word[data-pos="1"] {
  transform: translateY(105%);
  opacity: 0;
}

.editorial-h1-cycle-word[data-pos="-1"] {
  transform: translateY(-105%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .editorial-h1-cycle-word {
    transition: none;
  }
}

.editorial-h1-tagline {
  font-size: clamp(21px, 4.8vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 20%, #9b9ba1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 36rem;
  text-wrap: balance;
}

.editorial-hero-sub {
  margin: 18px auto 0;
  font-size: clamp(16px, 3.6vw, 18px);
  line-height: 1.55;
  color: #9a9aa2;
  max-width: 33rem;
  text-align: center;
  text-wrap: pretty;
}

.editorial-hero-sub strong {
  color: #ffffff;
  font-weight: 600;
}

.editorial-h1-accent {
  background: linear-gradient(180deg, #ffffff 30%, #9b9ba1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.editorial-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.editorial-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a84ff;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.editorial-hero-cta:hover {
  background: #0077ed;
  box-shadow: 0 6px 28px rgba(10, 132, 255, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.editorial-hero-cta:active {
  transform: translateY(0);
}

.editorial-h2 {
  font-size: clamp(28px, 6.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.editorial-sub {
  margin: 14px auto 0;
  font-size: clamp(15.5px, 3.8vw, 18px);
  line-height: 1.55;
  color: #9a9aa2;
  max-width: 34rem;
  text-align: center;
  text-wrap: pretty;
}

.editorial-h2 {
  text-align: center;
}

.editorial-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   SECTION PANELS
   Each top-level section fills the viewport below the sticky nav and centres
   its content. No scroll-snap here (see .reveal-pending below).
   ========================================================================== */

.editorial-hero-section,
.editorial-main > .editorial-section {
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: 56px;
}

/* Hairline between panels for structure once the 96px gap is gone. */
.editorial-main > .editorial-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Reveal-on-scroll ----
   Sections fade/rise into place as they enter the viewport (LandingPage.tsx
   toggles `.reveal-pending` via IntersectionObserver). This replaces the old
   scroll-snap effect: it never touches scroll position, so it can't fight
   the user's own scrolling the way snap + smooth scroll did. */
.editorial-main > .editorial-section {
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-main > .editorial-section.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .editorial-main > .editorial-section {
    transition: none;
  }
  .editorial-main > .editorial-section.reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* Constrain and centre each panel's content (header, demo card, trust grid,
   auth card) to one focused column. */
.editorial-main > .editorial-section > * {
  width: 100%;
  max-width: 44rem;
}

/* ---- Hero Showcase Stage ---- */
.editorial-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}

.editorial-hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-hero-stage {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Desktop Callout Pointers (Anchored to 360px Phone Frame) */
.editorial-pointers-desktop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 1024px) {
  .editorial-pointers-desktop {
    display: none;
  }
}

.editorial-pointer {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
  transform: translateY(-50%);
}

.pointer-left {
  right: calc(50% + 180px);
  flex-direction: row;
}

.pointer-right {
  left: calc(50% + 180px);
  flex-direction: row;
}

.pointer-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f0f0f3;
  padding: 6px 12px;
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(100, 210, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(100, 210, 255, 0.09), 0 8px 24px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pointer-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
}

.pointer-left .pointer-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d2ff;
  box-shadow: 0 0 10px #64d2ff;
}

.pointer-right .pointer-line::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d2ff;
  box-shadow: 0 0 10px #64d2ff;
}

/* Exact Y percentages measured from 540x873 screenshot */
.pointer-audio {
  top: 9.5%;
}

.pointer-script {
  top: 36.0%;
}

.pointer-words,
.pointer-gloss {
  top: 43.5%;
}

.pointer-compound {
  top: 70.3%;
}

.pointer-fsrs {
  top: 88.0%;
}

/* ---- High-Fidelity Phone Frame & Screenshot ---- */
.editorial-device-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
  background: #000000;
  border-radius: 34px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.95),
              0 0 40px -10px rgba(10, 132, 255, 0.2);
  overflow: hidden;
  display: flex;
}

.editorial-device-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---- Mobile: one-at-a-time animated callout cycle over the screenshot ---- */
.editorial-pointers-mobile {
  display: none;
}

.m-pointer {
  position: absolute;
  opacity: 0;
  display: flex;
  flex-direction: column;
  max-width: 84%;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 20;
}

.m-pointer[data-align="left"] {
  left: 14px;
  right: auto;
  align-items: flex-start;
}

.m-pointer[data-align="right"] {
  right: 14px;
  left: auto;
  align-items: flex-end;
}

.m-pointer[data-place="above"] {
  transform: translateY(-100%);
}

.m-pointer[data-place="below"] {
  transform: translateY(0);
}

.m-pointer.is-active {
  opacity: 1;
}

.m-pointer-svg {
  width: 180px;
  height: 44px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
}

.m-pointer-path {
  stroke: #64d2ff;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(100, 210, 255, 0.6));
}

.m-pointer-dot-svg {
  fill: #64d2ff;
  stroke: #0a84ff;
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px #64d2ff);
  animation: mPointerPulse 1.8s ease-out infinite;
  transform-origin: center;
}

@keyframes mPointerPulse {
  0% { r: 4.5px; opacity: 1; }
  50% { r: 6.5px; opacity: 0.8; }
  100% { r: 4.5px; opacity: 1; }
}

.m-pointer-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: #ffffff;
  padding: 7px 12px;
  background: #07070a;
  border: 1px solid rgba(100, 210, 255, 0.55);
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(100, 210, 255, 0.09), 0 16px 34px rgba(0, 0, 0, 0.85);
  white-space: normal;
  max-width: min(220px, 60vw);
  word-break: break-word;
}

.m-pointer[data-align="right"] .m-pointer-label {
  text-align: right;
}

.m-pointer[data-align="left"] .m-pointer-label {
  text-align: left;
}

.editorial-pointers-progress {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 25;
}

.editorial-pointers-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease, width 0.3s ease;
}

.editorial-pointers-progress span.is-on {
  width: 18px;
  border-radius: 3px;
  background: #64d2ff;
}

@media (max-width: 1024px) {
  .editorial-hero-stage {
    padding-bottom: 24px;
    overflow: hidden;
  }
  .editorial-pointers-mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-pointer {
    transition: none;
  }
  .m-pointer-dot {
    animation: none;
  }
  .landing-root {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   LANDING DEMO SHOWCASE CARDS (Award-Winning Aesthetic)
   ========================================================================== */

.landing-demo-card {
  position: relative;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 28px 24px;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 480px) {
  .landing-demo-card {
    padding: 20px 14px;
    border-radius: 18px;
  }
  .landing-native-audio-card {
    padding: 18px 14px !important;
  }
}

.landing-demo-card:hover {
  border-color: rgba(100, 210, 255, 0.22);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85),
              0 0 32px -8px rgba(10, 132, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---- 01: UNIFIED SPEAKER & AUDIO SPEED SHOWCASE ---- */
.landing-native-audio-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.landing-speaker-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.landing-speaker-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(100, 210, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.landing-speaker-avatar .landing-speaker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-speaker-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.landing-speaker-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.landing-speaker-meta {
  font-size: 12px;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-audio-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sugar);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.1);
  border: 1px solid rgba(100, 210, 255, 0.25);
  flex-shrink: 0;
}

.landing-audio-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.landing-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
}

.landing-wave-bar {
  flex: 0 0 6px;
  width: 6px;
  background: linear-gradient(180deg, #64d2ff 0%, #0a84ff 100%);
  border-radius: 3px;
  opacity: 0.8;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { transform: scaleY(0.35); opacity: 0.45; }
  100% { transform: scaleY(1); opacity: 0.95; }
}

.p11-now-time {
  padding: 0 2px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.p11-now-times {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.p11-now-transport {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  margin: 6px auto 0;
}

.p11-now-secondary {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ash);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.p11-now-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.p11-now-secondary:active {
  transform: scale(0.94);
}

.p11-now-speed {
  border: 0;
  background: none;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border-radius: 8px;
  padding: 4px 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.p11-now-speed:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.06);
}

.p11-now-speed.is-slow {
  color: var(--sugar);
}

.p11-now-speed i {
  font-style: normal;
  font-size: 11px;
  margin-left: 1px;
  opacity: 0.85;
}

.p11-now-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #0a84ff;
  color: #ffffff;
  display: grid;
  place-items: center;
  padding-left: 3px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.45);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.p11-now-play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 26px rgba(10, 132, 255, 0.65);
  background: #0077ed;
}

.p11-now-play:active {
  transform: scale(0.96);
  background: #0068d1;
}

.p11-now-play.is-playing {
  padding-left: 0;
}

/* ---- 02: SCRIPT SWITCHER SHOWCASE ---- */
.landing-script-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 0 12px;
}

.p11-script-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--raise);
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.landing-toggle-tab {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--ash);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.landing-toggle-tab.is-active {
  background: var(--ember);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.p11-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.p11-word {
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.p11-word.is-selected {
  background: var(--ember);
  color: var(--ember-ink);
}

.p11-line--khmer .p11-word {
  font-family: var(--khmer);
  font-size: 20px;
  line-height: 1.6;
}

.p11-line--ipa .p11-word {
  font-family: var(--mono);
  font-size: 16.5px;
}

.landing-script-line {
  justify-content: center;
  animation: scriptFade 0.35s ease forwards;
  min-height: 50px;
}

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

.landing-script-word {
  pointer-events: none;
  font-size: 18px;
}

/* ---- 03: DICTIONARY LOOKUP SHOWCASE ---- */
.landing-dict-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.landing-dict-line {
  justify-content: center;
}

.landing-pulse-word {
  box-shadow: 0 0 0 2px #0a84ff, 0 0 14px rgba(10, 132, 255, 0.5) !important;
  background: rgba(10, 132, 255, 0.18) !important;
}

.landing-dict-stage {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px 14px;
  animation: scriptFade 0.3s ease;
}

.landing-dict-stage .p11-word-head {
  margin-bottom: 10px;
}

.landing-dict-save {
  pointer-events: none;
}

/* ---- 04: COMPOUND BREAKDOWN SHOWCASE ---- */
.landing-compound-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.landing-compound-stage {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 22px;
  overflow: hidden;
}

/* Compound Stage Slider Track & Faces from production-shell.css */
.p11-word-detail-track {
  width: 200%;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  transform: translateX(0);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}

.p11-word-detail-track.is-showing-parts {
  transform: translateX(-50%);
}

.p11-word-detail-face {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  box-sizing: border-box;
}

.p11-word-detail-face--parts {
  padding-inline: 4px;
}

.p11-word-detail-face--gloss {
  padding-inline: 4px;
}

.landing-compound-stage .p11-word-head,
.landing-dict-stage .p11-word-head {
  display: block;
}

.landing-compound-stage .p11-word-title,
.landing-dict-stage .p11-word-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.landing-compound-stage .p11-word-title strong,
.landing-dict-stage .p11-word-title strong {
  font-size: 22px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.landing-compound-stage .p11-word-title small,
.landing-dict-stage .p11-word-title small {
  font-family: "Noto Sans Khmer", var(--khmer);
  font-size: 16px;
  color: #8e8e93;
}

.p11-entry-definition {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p11-entry-label {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #58585c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.p11-sense-number {
  padding-top: 2px;
  color: #58585c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.p11-gloss {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

.p11-parts-disclosure {
  min-height: 32px;
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #0a84ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.p11-parts-disclosure:hover {
  color: #64d2ff;
}

.p11-parts-back {
  align-self: flex-start;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #0a84ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.p11-parts-back:hover {
  color: #64d2ff;
}

.landing-demo-disclosure,
.landing-demo-back {
  cursor: pointer;
}

.landing-compound-stage .p11-parts-title {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.landing-compound-stage .p11-parts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.landing-compound-stage .p11-parts div {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

@media (max-width: 480px) {
  .landing-compound-stage {
    padding: 16px 14px;
  }
  .landing-compound-stage .p11-parts div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 10px;
  }
}

.landing-compound-stage .p11-parts dt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.landing-compound-stage .p11-parts dt.listen-part-roman span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #64d2ff;
}

.landing-compound-stage .p11-parts dt small {
  font-family: "Noto Sans Khmer", var(--khmer);
  font-size: 14.5px;
  font-weight: 500;
  color: #9a9aa2;
}

.landing-compound-stage .p11-parts dd {
  margin: 0;
  font-size: 13.5px;
  color: #f0f0f3;
  line-height: 1.45;
}

/* ---- 05: FLASHCARD FSRS SHOWCASE ---- */
.landing-study-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.landing-flashcard-frame {
  width: 100%;
  max-width: 380px;
  height: 200px;
  perspective: 1000px;
}

.study-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.landing-flashcard-frame.is-flipped .study-card-inner {
  transform: rotateY(180deg);
}

.landing-flashcard-frame .study-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #16161b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.landing-flashcard-frame .study-card-face--back {
  transform: rotateY(180deg);
}

.study-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.study-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}

.study-word.km,
.study-answer-word.km {
  font-family: "Noto Sans Khmer", var(--khmer);
  font-weight: 500;
  line-height: 1.35;
}

.study-word-secondary {
  margin: 2px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  color: #64d2ff;
}

.study-meaning {
  margin: 8px 0 0;
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  text-align: center;
}

.study-answer-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

.study-answer-romanization {
  margin: 0 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  color: #64d2ff;
}

.study-flip-prompt {
  max-width: 300px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #9a9aa2;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.landing-study-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #64d2ff;
  margin-top: 6px;
}

.landing-study-controls {
  width: 100%;
  max-width: 380px;
}

.landing-reveal-sim {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #202026;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.landing-grades-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.landing-grades-box .study-grades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.landing-grades-box .study-grade-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #18181c;
  pointer-events: none;
}

.study-grade-btn--again { color: #ff453a; }
.study-grade-btn--good { color: #0a84ff; }
.study-grade-btn--easy { color: #30d158; }

.study-grade-btn.is-demo-active {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.18);
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.4);
}

.study-grade-title {
  font-size: 12.5px;
  font-weight: 700;
}

.study-grade-interval {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  opacity: 0.8;
}

.landing-review-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  text-align: center;
  color: #8e8e93;
  padding: 4px 0;
}

/* ---- 06: AUTHENTICITY TRUST GRID ---- */
.editorial-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .editorial-trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-pillar-item {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64d2ff;
  margin-bottom: 4px;
}

.trust-pillar-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64d2ff;
  letter-spacing: 0.1em;
}

.trust-pillar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.trust-pillar-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9b9ba1;
}

/* ---- Access & Sign-In Card ---- */
.editorial-access-section {
  display: flex;
  justify-content: center;
}

.editorial-auth-card {
  width: 100%;
  max-width: 32rem;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 36px 30px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
}

.editorial-auth-header {
  margin-bottom: 20px;
}

.editorial-auth-title {
  margin: 4px 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.editorial-auth-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #8e8e93;
}

.signin-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.signin-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9b9ba1;
}

.signin-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  width: 100%;
}

.signin-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #9b9ba1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.signin-tab.is-active {
  background: #26262c;
  color: #ffffff;
}

.signin-tab:hover:not(.is-active) {
  color: #d1d1d6;
}

.signin-field {
  width: 100%;
}

.signin-button {
  min-height: 44px;
  margin-top: 6px;
}

.signin-panel .auth-toggle {
  margin-top: 8px;
  font-size: 13px;
  color: #8e8e93;
}

.signin-panel .auth-toggle:hover {
  color: #0a84ff;
}

/* ---- Escape Notice ---- */
.escape-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.escape-title {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.escape-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9b9ba1;
}

.escape-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #0a84ff;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.escape-action:hover {
  background: #0070e0;
}

.escape-action--ghost {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.escape-action--ghost:hover {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}

.escape-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #9b9ba1;
}

.escape-steps strong {
  color: #ffffff;
}

/* ---- Footer ---- */
.editorial-footer {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.editorial-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #58585c;
}

.footer-mark {
  font-family: "Noto Sans Khmer", var(--khmer);
  color: #64d2ff;
  font-size: 14px;
}

