﻿:root {
  color-scheme: light;
  --ink: #14201e;
  --muted: #66716c;
  --paper: #f7f7f6;
  --panel: #fffefd;
  --line: #e3ded4;
  --green: #064743;
  --green-2: #0c5c55;
  --gold: #f1df32;
  --gold-deep: #c9a91e;
  --red: #9a2126;
  --sky: #668a98;
  --shadow: 0 24px 70px rgba(6, 71, 67, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #fafafa 36%, #f5f5f2 72%, #ededeb 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-stats,
html[dir="rtl"] .audio-strip,
html[dir="rtl"] .meter-top {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--ink);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header[data-elevated="true"],
.site-header.open {
  color: var(--ink);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 10px 30px rgba(24, 33, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 14vw, 170px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.header-cta,
.button.primary {
  letter-spacing: 0.02em;
  font-weight: 700;
}

.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;
}

.language-switcher {
  position: relative;
}

.language-switcher select {
  min-height: 42px;
  max-width: 152px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 254, 250, 0.86);
  font-weight: 800;
  cursor: pointer;
}

.site-header[data-elevated="true"] .language-switcher select,
.site-header.open .language-switcher select {
  border-color: var(--line);
  background: #fffdfa;
  color: var(--green);
}

.header-cta {
  padding: 0 20px;
  background: var(--red);
  color: #fffdfa;
  box-shadow: 0 12px 28px rgba(154, 33, 38, 0.2);
}

.button {
  padding: 0 24px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--red);
  color: #fffdfa;
  box-shadow: 0 14px 34px rgba(154, 33, 38, 0.24);
}

.button.secondary {
  border-color: rgba(6, 71, 67, 0.24);
  color: var(--green);
  background: rgba(255, 254, 250, 0.76);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 250, 250, 0.98) 0%, rgba(247, 247, 246, 0.93) 46%, rgba(238, 238, 233, 0.62) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(230, 230, 226, 0.88)),
    url("assets/quranwords-hero.svg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 71, 67, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 71, 67, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin: 0 8px 3px 0;
  border-radius: 999px;
  background: var(--red);
}

html[dir="rtl"] .eyebrow::before {
  margin: 0 0 3px 8px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4rem, 12vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  color: var(--muted);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  gap: 12px;
  margin-top: 40px;
}

.hero-stats > span {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.78);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--green);
  font-size: 1.15rem;
}


.hero-showcase {
  align-self: center;
  width: min(100%, 390px);
  margin-inline: auto;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 10 / 16;
  padding: 2px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(154, 33, 38, 0.72), rgba(241, 223, 50, 0.58) 42%, rgba(6, 71, 67, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 237, 234, 0.72));
  box-shadow: 0 28px 70px rgba(6, 71, 67, 0.18);
}

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 2px;
  pointer-events: none;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.hero-showcase-track {
  display: flex;
  height: 100%;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-showcase-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.hero-showcase-slide img,
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.075);
  background: #101816;
}
.hero-logo-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-logo-card img {
  display: block;
  width: min(100%, 330px);
  margin: 0 auto;
}

.hero-logo-card p {
  margin: 18px 0 0;
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.challenge-grid,
.feature-grid,
.quotes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.challenge-grid article,
.feature-grid article,
.dashboard,
.verse-panel,
.learning-shell,
.quotes figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(24, 33, 29, 0.07);
}

.challenge-grid article,
.feature-grid article {
  min-height: 0;
  padding: 16px;
}

.challenge-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.challenge-image-1 {
  background-image: url("assets/challenge-1.png");
}

.challenge-image-2 {
  background-image: url("assets/challenge-2.png");
}

.challenge-image-3 {
  background-image: url("assets/challenge-3.png");
}

.challenge-image-4 {
  background-image: url("assets/challenge-4.png");
}

.challenge-grid h3 {
  margin-top: 2px;
}

.imagine,
.progress {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.imagine-inline-image {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  margin: 22px 0;
  border-radius: 8px;
}

.verse-panel {
  padding: clamp(22px, 4vw, 42px);
}

.arabic,
.demo-arabic {
  margin: 0;
  font-family: Amiri, serif;
  color: var(--green);
  line-height: 1.25;
}

.arabic {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  text-align: right;
}

.verse-words {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
  direction: rtl;
}

.verse-words button,
.weak-words button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
}

.verse-words button {
  min-height: 58px;
  font-family: Amiri, serif;
  font-size: 1.45rem;
}

.verse-words button.active {
  border-color: var(--gold);
  background: #fff7dc;
}

.meaning-output {
  min-height: 28px;
  margin-bottom: 0;
  font-weight: 800;
  color: var(--ink);
}

.learn {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1120px) / 2));
  background: rgba(246, 246, 243, 0.72);
}

.learning-shell {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f9f7ef;
}

.tab {
  min-width: 94px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--green);
  color: #fff;
}

.word-demo {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: clamp(22px, 4vw, 38px);
}

.word-card {
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 247, 242, 0.98), rgba(236, 232, 222, 0.95)),
    radial-gradient(circle at top right, rgba(241, 223, 50, 0.26), transparent 44%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(6, 71, 67, 0.09);
  color: var(--ink);
}

.demo-label {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.demo-arabic {
  margin-top: 18px;
  color: var(--green);
  text-align: right;
  font-size: 5.3rem;
}

.demo-meaning {
  margin: 6px 0 22px;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 800;
}

.word-parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.word-parts span,
.word-parts strong {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fffefd;
  color: var(--green);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  text-align: center;
}

.demo-content {
  align-self: center;
}

.demo-content p {
  max-width: 610px;
}

.demo-content ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.demo-content li,
.connection-list span {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.audio-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.audio-strip p {
  margin: 2px 0 0;
}

.round-control {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  transform: translateX(2px);
}

.round-control.playing .play-icon {
  width: 16px;
  height: 18px;
  border: 0;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  transform: none;
}

.audio-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 38px;
}

.audio-bars span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: var(--sky);
  animation: none;
}

.audio-strip.playing .audio-bars span {
  animation: pulse 0.8s ease-in-out infinite;
}

.audio-strip.playing .audio-bars span:nth-child(2) {
  animation-delay: 0.1s;
}

.audio-strip.playing .audio-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

.audio-strip.playing .audio-bars span:nth-child(4) {
  animation-delay: 0.3s;
}

.audio-strip.playing .audio-bars span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  50% {
    height: 34px;
  }
}

.features {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.feature-lead {
  position: sticky;
  top: 108px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 0;
  padding: 22px;
}

.feature-kicker {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(6, 71, 67, 0.08);
  color: var(--green);
}

.feature-kicker svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

html[dir="rtl"] .feature-list li {
  padding-right: 18px;
  padding-left: 0;
}

html[dir="rtl"] .feature-list li::before {
  right: 0;
  left: auto;
}

.progress-copy p {
  max-width: 560px;
}
.progress-copy p {
  max-width: 760px;
}
.progress {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
}

.progress-copy h2 {
  max-width: 520px;
}

.progress-showcase {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
  padding: 3px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(6, 71, 67, 0.32), rgba(241, 223, 50, 0.24) 45%, rgba(154, 33, 38, 0.26));
  box-shadow: 0 22px 56px rgba(20, 28, 24, 0.1);
}

.progress-showcase-track {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  border-radius: 21px;
  background: #f8f8f5;
}

.progress-showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 425ms ease, transform 425ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.progress-showcase-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: translateX(0);
}

.progress-showcase-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.065);
  background: #f8f8f5;
}

.progress-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.progress-showcase-dots span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(6, 71, 67, 0.18);
}

.progress-showcase-dots span.active {
  background: var(--red);
}

.connection-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
}

.metric,
.meter,
.weak-words {
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.metric span,
.weak-words span,
.meter-top span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric strong {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.meter,
.weak-words {
  grid-column: 1 / -1;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bar {
  height: 14px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5d7;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.weak-words div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.weak-words button {
  min-width: 92px;
  min-height: 48px;
  font-family: Amiri, serif;
  font-size: 1.35rem;
}

.quotes {
  grid-template-columns: repeat(3, 1fr);
}

.quotes figure {
  margin: 0;
  padding: 26px;
}

blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
}

figcaption {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}


.quote-carousel {
  overflow: hidden;
}

.quote-carousel-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.quote-stage {
  overflow: hidden;
  border-radius: 8px;
}

.quote-track {
  display: flex;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.quote-card {
  flex: 0 0 100%;
  min-height: 260px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(246, 246, 243, 0.9)),
    radial-gradient(circle at top right, rgba(241, 223, 50, 0.18), transparent 34%);
  box-shadow: 0 20px 54px rgba(24, 33, 29, 0.08);
}

.quote-card blockquote {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.22;
}

.quote-card figcaption {
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.quote-progress {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.quote-progress span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: rgba(6, 71, 67, 0.16);
}

.quote-progress span.active {
  background: var(--red);
}
.final-cta {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1120px) / 2));
  background: rgba(238, 238, 235, 0.86);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.final-cta h2,
.final-cta p {
  max-width: 760px;
}

.final-cta p:not(.eyebrow) {
  color: var(--muted);
}

footer {
  padding: 28px 18px;
  color: var(--muted);
  background: #fffdf5;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
}

.footer-links a {
  color: var(--green);
}

.legal-page {
  min-height: 100vh;
  padding: 112px 18px 64px;
}

.legal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(24, 33, 29, 0.07);
}

.legal-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
}

.legal-date {
  margin: 14px 0 30px;
  color: var(--green);
  font-weight: 800;
}

.legal-shell h2 {
  margin-top: 32px;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.legal-shell ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-shell li {
  margin: 7px 0;
}

.legal-actions {
  margin-top: 36px;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto auto auto;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf5;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px;
  }

  .menu-button {
    display: block;
  }

  .challenge-grid,
  .features,
  .imagine,
  .progress,
  .word-demo,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .challenge-grid,
  .feature-grid,
  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-lead {
    position: static;
  }

  .word-card {
    max-width: 460px;
  }

  
.hero-logo-card {
    max-width: 410px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-cta {
    display: none;
  }

  .language-switcher select {
    max-width: 112px;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 20vw, 5.8rem);
  }

  .brand {
    width: 106px;
    min-height: 0;
  }

  .brand img {
    max-height: 50px;
  }

  .section {
    padding: 66px 0;
  }

  .challenge-grid,
  .feature-grid,
  .quotes,
  .verse-words,
  .demo-content ul,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .audio-strip {
    grid-template-columns: auto 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .audio-bars {
    grid-column: 1 / -1;
  }

  .demo-arabic {
    font-size: 4.2rem;
  }

  .word-parts {
    grid-template-columns: 1fr;
  }
}











