/* ===========================================
   VIEWPORT FITTING: MANDATORY BASE STYLES
   =========================================== */
html,
body {
  height: 100%;
  overflow-x: hidden;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  scroll-behavior: smooth;
}

.slide {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--slide-padding);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  position: relative;
  z-index: 2;
}

:root {
  /* Luminara brand tokens (from constants/colors.ts) */
  --lav: #FBF7F9;
  /* app background */
  --indigo: #8C6FBF;
  /* primary / hero */
  --indigo-deep: #6E52A0;
  --ink: #2B2438;
  /* navy text */
  --teal: #3AAFA9;
  /* accent */
  --purple: #B0729E;
  --flame: #F6A94C;
  /* candle amber — the one owned accent */
  --flame-core: #FFB765;
  --gold: #FFD98A;
  --rose: #E17D9B;
  --blush: #FBEAF1;
  --lavender: #EEE6F8;
  --muted: #6E6480;
  --hairline: #EDE2EC;
  --card: #FFFFFF;
  --softGreen: #E6F7F2;
  --softOrange: #FEF4E8;


  --title-size: clamp(1.9rem, 6vw, 4.6rem);
  --h2-size: clamp(1.4rem, 4vw, 3rem);
  --body-size: clamp(0.82rem, 1.6vw, 1.15rem);
  --kicker-size: clamp(0.6rem, 1vw, 0.8rem);

  --slide-padding: clamp(1rem, 4vw, 4rem);
  --content-gap: clamp(0.5rem, 2vw, 2rem);

  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", sans-serif;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--lav);
}

img {
  max-width: 100%;
  object-fit: contain;
}

@media (max-height: 700px) {
  :root {
    --slide-padding: clamp(0.75rem, 3vw, 2rem);
    --title-size: clamp(1.5rem, 5vw, 3rem);
  }
}

@media (max-height: 600px) {
  :root {
    --slide-padding: clamp(0.5rem, 2.5vw, 1.5rem);
    --title-size: clamp(1.3rem, 4.5vw, 2.2rem);
    --body-size: clamp(0.72rem, 1.3vw, 0.95rem);
  }

  .nav-dots {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============ phones: let tall slides grow & scroll instead of clipping ============ */
@media (max-width: 760px) {
  .slide {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .slide-content {
    max-height: none;
    overflow: visible;
    padding-top: clamp(2.5rem, 8vh, 4rem);
    padding-bottom: clamp(2.5rem, 8vh, 4rem);
  }

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

/* ============ typography ============ */
.kicker {
  font-family: var(--body);
  font-size: var(--kicker-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  display: inline-block;
}

.on-dark .kicker::before {
  background: var(--gold);
}

.on-dark .kicker {
  color: var(--gold);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: var(--title-size);
}

h2 {
  font-size: var(--h2-size);
}

.lede {
  font-size: var(--body-size);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36ch;
  margin: clamp(0.6rem, 2vh, 1.2rem) 0 0;
}

.on-dark,
.on-dark h1,
.on-dark h2 {
  color: var(--lav);
}

.on-dark .lede {
  color: rgba(251, 247, 249, 0.82);
}

/* ============ slide fields ============ */
.field-night {
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255, 193, 110, 0.16) 0%, rgba(255, 193, 110, 0) 42%),
    linear-gradient(165deg, #43315E 0%, #6E52A0 46%, #8C6FBF 100%);
}

.field-ink {
  background: linear-gradient(165deg, #2B2438 0%, #4A3B63 100%);
}

.field-blush {
  background: linear-gradient(180deg, #FBFAFF 0%, var(--lav) 100%);
}
.field-lav {
  background: var(--lav) !important;
}

/* ============ layout helpers ============ */
.split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: 100%;
  max-width: 1120px;
}

.split>div {
  flex: 1;
  min-width: 0;
}

@media (max-width: 760px) {
  .split {
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.8rem);
  }
}

.center {
  text-align: center;
}

.maxw {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============ reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.d1 {
  transition-delay: 0.12s;
}

.reveal.d2 {
  transition-delay: 0.24s;
}

.reveal.d3 {
  transition-delay: 0.36s;
}

.reveal.d4 {
  transition-delay: 0.48s;
}

.slide.in-view .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
  }
}

/* ============ soft cloud edges (echo the logo) ============ */
.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 7vh, 80px);
  z-index: 1;
  display: block;
}

.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 7vh, 80px);
  z-index: 1;
  display: block;
  transform: scaleY(-1);
}

/* ============ the flame mark ============ */
.mark {
  width: clamp(96px, 17vh, 168px);
  height: auto;
}

.blob {
  position: absolute;
  border-radius: 62% 38% 55% 45%/48% 42% 58% 52%;
  z-index: 0;
  pointer-events: none;
  animation: blobfloat 16s ease-in-out infinite;
}

@keyframes blobfloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-16px, 20px) rotate(7deg);
  }
}

.squiggle-under {
  position: absolute;
  left: 0;
  bottom: -.16em;
  width: 100%;
  height: .18em;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, -3deg));
  }

  50% {
    transform: translateY(-10px) rotate(var(--rot, -3deg));
  }
}

.floaty {
  animation: float 6s ease-in-out infinite;
  --rot: -2deg;
}

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

  .blob,
  .floaty {
    animation: none;
  }
}

.mark svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.breathing {
  animation: breathe 5.5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* ============ phase flame row ============ */
.flame-row {
  display: flex;
  gap: clamp(0.8rem, 4vw, 3rem);
  align-items: flex-end;
  justify-content: center;
  margin-top: clamp(1rem, 3vh, 2rem);
  flex-wrap: wrap;
}

.flame-cell {
  text-align: center;
}

.flame-cell svg {
  width: clamp(58px, 12vw, 108px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.flame-cell .cap {
  font-size: var(--kicker-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: clamp(0.4rem, 1vh, 0.8rem);
}

.formula {
  font-family: var(--body);
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--indigo-deep);
  background: var(--blush);
  border: 1px solid var(--lavender);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  display: inline-block;
  margin-top: clamp(1rem, 3vh, 1.8rem);
}

/* ============ color slide ============ */
.swatch-row {
  display: flex;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  margin-top: clamp(1rem, 3vh, 2rem);
  flex-wrap: wrap;
  justify-content: center;
}

.swatch {
  width: clamp(70px, 11vw, 130px);
  height: clamp(88px, 15vw, 172px);
  border-radius: clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) clamp(6px, 1vw, 10px);
  display: flex;
  align-items: flex-end;
  padding: clamp(0.4rem, 1vw, 0.8rem);
  box-sizing: border-box;
  font-size: clamp(0.5rem, 0.85vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 30px rgba(90, 65, 132, 0.10);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.swatch:nth-child(even) {
  border-radius: clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) clamp(6px, 1vw, 10px) clamp(20px, 2.4vw, 34px);
}

.swatch:hover {
  transform: translateY(-5px) rotate(-2deg);
}

.swatch.hero {
  width: clamp(120px, 20vw, 230px);
}

/* ============ facts ============ */
.facts {
  list-style: none;
  padding: 0;
  margin: clamp(0.8rem, 2.5vh, 1.5rem) 0 0;
  display: grid;
  gap: clamp(0.45rem, 1.2vh, 0.8rem);
}

.facts li {
  font-size: var(--body-size);
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-left: 1.35em;
  line-height: 1.45;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.18);
}

.on-dark .facts li {
  color: rgba(251, 247, 249, 0.82);
}

.facts b {
  color: var(--ink);
  font-weight: 700;
}

.on-dark .facts b {
  color: var(--lav);
}

/* ============ navigation ============ */
.nav-dots {
  position: fixed;
  right: clamp(0.6rem, 1.6vw, 1.4rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.nav-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(140, 111, 191, 0.28);
  cursor: pointer;
  transition: transform .3s, background .3s, height .3s, border-radius .3s;
}

.nav-dots button.active {
  background: var(--indigo);
  height: 22px;
  border-radius: 5px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--flame));
  width: 0;
  z-index: 60;
  transition: width .3s ease;
}

/* ============ chips (scattered data) ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.6vw, 1rem);
  justify-content: center;
  margin-top: clamp(1rem, 3vh, 2rem);
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--body);
  font-size: var(--body-size);
  font-weight: 700;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(90, 65, 132, 0.05);
}

.chip .dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  flex: none;
}

/* ============ versus ============ */
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  width: 100%;
  max-width: 900px;
  margin-top: clamp(1rem, 3vh, 2rem);
  text-align: left;
}

.versus .col {
  display: grid;
  gap: clamp(0.4rem, 1.2vh, 0.7rem);
  align-content: start;
  border-radius: 24px 24px 24px 8px;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background: rgba(251, 247, 249, 0.05);
  border: 1px solid rgba(251, 247, 249, 0.12);
}

.versus .after {
  border-radius: 24px 24px 8px 24px;
  background: rgba(255, 217, 138, 0.08);
  border-color: rgba(255, 217, 138, 0.22);
}

.versus .col h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--kicker-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}

.versus .before h3 {
  color: rgba(251, 247, 249, 0.5);
}

.versus .after h3 {
  color: var(--gold);
}

.versus .row {
  font-size: var(--body-size);
  font-weight: 500;
  line-height: 1.42;
  display: flex;
  gap: 0.55em;
  align-items: baseline;
  margin: 0;
  color: rgba(251, 247, 249, 0.6);
}

.versus .after .row {
  color: var(--lav);
  font-weight: 600;
}

.versus .mark2 {
  flex: none;
  font-weight: 800;
}

.versus .before .mark2 {
  color: rgba(251, 247, 249, 0.4);
}

.versus .after .mark2 {
  color: var(--teal);
}

@media (max-width: 760px) {
  .versus {
    grid-template-columns: 1fr;
    gap: clamp(0.6rem, 2vh, 1rem);
  }
}

/* ============ motto ============ */
.motto h1 {
  text-align: center;
}

.motto .cycle-wrap {
  display: block;
  min-height: 1.15em;
}

.motto .cycle {
  color: var(--gold);
  display: inline-block;
  transition: opacity .4s ease, transform .4s ease;
}

.motto .cycle.out {
  opacity: 0;
  transform: translateY(0.25em);
}

/* ============ moat band ============ */
.moat-band {
  background: linear-gradient(155deg, #43315E 0%, #6E52A0 100%);
  color: var(--lav);
  border-radius: 26px 26px 26px 8px;
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(1rem, 2.4vw, 1.6rem);
  margin-top: clamp(0.8rem, 2vh, 1.4rem);
  max-width: 440px;
  box-shadow: 0 18px 44px rgba(90, 65, 132, 0.25);
}

.moat-band .tag {
  font-size: var(--kicker-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5em;
}

.moat-band .tag-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--flame);
  margin-right: 0.5em;
  vertical-align: middle;
}

.moat-band .line {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.14;
  margin: 0;
}

.moat-band .sub {
  font-size: var(--kicker-size);
  color: rgba(251, 247, 249, 0.72);
  margin: 0.55em 0 0;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.42;
}

/* ============ device illustration ============ */
.device {
  width: clamp(210px, 30vh, 300px);
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(90, 65, 132, 0.22));
  display: block;
  margin: 0 auto;
}

/* ============ battleground cards ============ */
.grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1rem);
  width: 100%;
  max-width: 980px;
  margin-top: clamp(1rem, 3vh, 1.8rem);
}

@media (max-width: 760px) {
  .grid6 {
    grid-template-columns: 1fr;
  }
}

.bcard {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px 22px 22px 6px;
  padding: clamp(0.8rem, 1.6vw, 1.15rem);
  text-align: left;
  box-shadow: 0 8px 20px rgba(90, 65, 132, 0.05);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-radius .25s ease;
}

.bcard:nth-child(even) {
  border-radius: 22px 22px 6px 22px;
}

.bcard:hover {
  transform: translateY(-4px) rotate(-.5deg);
  border-radius: 22px;
}

.bcard h4 {
  font-family: var(--body);
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 700;
  margin: 0.15em 0 0.3em;
  color: var(--ink);
}

.bcard .who {
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.bcard .tagn {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* ============ positioning map ============ */
.map-wrap {
  width: 100%;
  max-width: 720px;
  margin-top: clamp(0.8rem, 2vh, 1.4rem);
}

.map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ comparison table ============ */
.table-scroll {
  width: 100%;
  max-width: 1080px;
  overflow-x: auto;
  margin-top: clamp(0.8rem, 2vh, 1.4rem);
  -webkit-overflow-scrolling: touch;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(90, 65, 132, 0.08);
  border: 1px solid var(--hairline);
}

table.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  background: var(--card);
  font-size: clamp(0.66rem, 1.15vw, 0.86rem);
}

table.cmp th,
table.cmp td {
  padding: 0.6em 0.7em;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

table.cmp tbody tr:nth-child(even) td,
table.cmp tbody tr:nth-child(even) th {
  background: rgba(140, 111, 191, 0.035);
}

table.cmp thead th {
  font-family: var(--body);
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  position: sticky;
  top: 0;
  background: var(--card);
}

table.cmp tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-size: clamp(0.68rem, 1.2vw, 0.84rem);
}

table.cmp .lum {
  background: linear-gradient(180deg, rgba(140, 111, 191, 0.09), rgba(140, 111, 191, 0.04));
}

table.cmp thead th.lum {
  background: var(--indigo);
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.yes {
  color: var(--teal);
  font-weight: 800;
}

.no {
  color: #C2557A;
  font-weight: 800;
  opacity: 0.75;
}

.partial {
  color: var(--flame);
  font-weight: 800;
}

.legend {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.7em;
}

/* ============ roadmap ============ */
.road {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1rem);
  width: 100%;
  max-width: 960px;
  margin-top: clamp(1rem, 3vh, 1.8rem);
  text-align: left;
}

@media (max-width: 760px) {
  .road {
    grid-template-columns: 1fr;
  }
}

.rcard {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px 22px 22px 8px;
  padding: clamp(0.75rem, 1.5vw, 1.05rem);
  box-shadow: 0 8px 20px rgba(90, 65, 132, 0.05);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  position: relative;
}

.rcard::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -3px;
  width: 26px;
  height: 6px;
  border-radius: 4px;
  background: var(--flame);
}

.rcard:hover {
  transform: translateY(-3px) rotate(-.4deg);
}

.rcard.have::before {
  background: var(--teal);
}

.rcard h4 {
  font-family: var(--body);
  font-size: clamp(0.8rem, 1.5vw, 0.98rem);
  font-weight: 700;
  margin: 0 0 0.25em;
  color: var(--ink);
}

.rcard p {
  font-size: clamp(0.68rem, 1.2vw, 0.84rem);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.42;
  margin: 0;
}

.rcard .pill {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  margin-bottom: 0.4em;
}

.rcard .pill.next {
  background: var(--softOrange);
  color: #A85F0E;
}

.rcard .pill.edge {
  background: var(--softGreen);
  color: #1F7A64;
}

.section-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 8rem);
  color: var(--lavender);
  line-height: 0.9;
}

/* ============ language toggle ============ */
.lang-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 70;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(90, 65, 132, 0.12);
  transition: background .15s ease;
  line-height: 1;
}

.lang-toggle:hover {
  background: var(--lavender);
}

html[dir="rtl"] .lang-toggle {
  right: auto;
  left: 16px;
}

.brand-story-back {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 70;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(90, 65, 132, 0.12);
  transition: background .15s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  text-decoration: none;
}

.brand-story-back:hover {
  background: var(--lavender);
}

html[dir="rtl"] .brand-story-back {
  left: auto;
  right: 16px;
}

table.cmp thead th:first-child {
  text-align: left;
}

/* ============ Arabic / RTL ============ */
html[dir="rtl"] body {
  font-family: "Tajawal", var(--body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .moat-band .line {
  font-family: "Cairo", "Tajawal", var(--display);
  letter-spacing: 0;
  line-height: 1.28;
}

html[dir="rtl"] .kicker {
  letter-spacing: 0.02em;
}

html[dir="rtl"] .facts li {
  padding-left: 0;
  padding-right: 1.35em;
}

html[dir="rtl"] .facts li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .versus,
html[dir="rtl"] .bcard,
html[dir="rtl"] .road {
  text-align: right;
}

html[dir="rtl"] .rcard::before {
  left: auto;
  right: 14px;
}

html[dir="rtl"] table.cmp tbody th {
  text-align: right;
}

html[dir="rtl"] table.cmp thead th:first-child {
  text-align: right;
}

html[dir="rtl"] .moat-band .tag-dot {
  margin-right: 0;
  margin-left: 0.5em;
}

html[dir="rtl"] .squiggle-under {
  transform: scaleX(-1);
}

/* ============ footer ============ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .88rem;
  background: var(--card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--indigo);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand .brand {
  font-size: 1.4rem;
  font-family: var(--display);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.footer-brand .brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.astracore-link {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.astracore-link .astracore {
  color: var(--indigo);
  font-weight: 700;
  transition: color 0.15s ease;
}

.astracore-link:hover .astracore {
  color: var(--indigo-deep);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}

.footer-bottom-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .copyright {
  font-weight: 600;
  color: var(--muted);
}

.footer-bottom .disclaimer {
  max-width: 100%;
  margin: 1.5rem 0 0;
  text-align: justify;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: .85;
}

/* RTL adjustments for footer */
html[dir="rtl"] .footer-brand {
  align-items: flex-start;
}

html[dir="rtl"] .footer-bottom .disclaimer {
  text-align: justify;
}
/* ============ loading-state phone (The Luminara way slide) ============ */
.device .skel { animation: skelPulse 1.6s ease-in-out infinite; }
.device .skel.d1 { animation-delay: .25s; }
.device .skel.d2 { animation-delay: .5s; }
.device .skel.d3 { animation-delay: .75s; }
@keyframes skelPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.device .flame-breathe { animation: breathe 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.device .load-run { animation: loadRun 1.8s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes loadRun { 0% { transform: translateX(-56px); } 100% { transform: translateX(126px); } }
.device .chip-float { animation: float 6s ease-in-out infinite; --rot: 0deg; transform-box: fill-box; transform-origin: center; }
.device .chip-float.b { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .device .skel, .device .flame-breathe, .device .load-run, .device .chip-float { animation: none; }
}
