/* =============================================================================
   Gardens of the Quran · رياض القرآن
   Marketing site stylesheet. Faithfully extends the app's "Warm Islamic
   Minimalism" system (see lib/core/theme/app_theme.dart): jewel-emerald +
   leaf-gold on warm ivory paper, the chahār-bāgh garden, and the gold
   illuminated Mushaf frame.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Design tokens: mirrored 1:1 from AppTheme
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --emerald: #15694d;
  --emerald-bright: #2aa87c;
  --emerald-ink: #103f2e;
  --gold: #c99a3b;
  --gold-bright: #e9c877;
  --gold-deep: #a87c28;

  /* Garden jewel-tones (hero / dark sections) */
  --garden-top: #0f2a20;
  --garden-mid: #143d2c;
  --garden-bot: #16442f;
  --plant-hi: #57a978;
  --plant-lo: #1c6342;

  /* Paper / surfaces */
  --ivory: #faf6ee;
  --paper: #fffdf8;
  --surface-tint: #f0f7f4;
  --ink: #16261f;
  --ink-soft: #4a5a52;
  --ink-faint: #8a988f;
  --line: rgba(21, 105, 77, 0.12);
  --line-gold: rgba(201, 154, 59, 0.35);

  /* Dark surfaces */
  --dark-bg: #0c1511;
  --dark-surface: #162420;
  --dark-elevated: #1d302a;
  --dark-ink: #e6efe9;
  --dark-ink-soft: #9fb3a8;

  /* State colors (live recitation + weak-spot heat, exact from app) */
  --recited: #2e7d32;
  --skipped: #e65100;
  --peek: #00897b;
  --drill: #8e24aa;
  --heat-mistake: #d64545;
  --heat-reinforce: #e0a106;
  --heat-link: #2f7dd1;

  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --ar-display: "Aref Ruqaa", "Amiri", serif;
  --quran: "Amiri", serif;

  /* Shape */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --maxw: 1140px;
  --shadow-card: 0 18px 40px -22px rgba(16, 38, 31, 0.45);
  --shadow-soft: 0 10px 28px -16px rgba(21, 105, 77, 0.35);
}

/* ----------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--emerald-bright);
}
::selection {
  background: rgba(201, 154, 59, 0.28);
}

/* ----------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}
p {
  color: var(--ink-soft);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.7;
}
.ar {
  font-family: var(--ar-display);
  direction: rtl;
  font-weight: 400;
}
.muted {
  color: var(--ink-faint);
}

/* ----------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(64px, 9vw, 116px) 0;
  position: relative;
}
.section--tight {
  padding: clamp(44px, 6vw, 72px) 0;
}
/* Warm paper grain on light sections */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.section--tint {
  background: linear-gradient(180deg, var(--paper), var(--surface-tint));
}
.section--paper {
  background: var(--paper);
}
/* Deep jewel section (like the app's garden hero) */
.section--dark {
  background:
    radial-gradient(1100px 700px at 12% -10%, #1d3a2e 0%, transparent 55%),
    radial-gradient(900px 680px at 112% 115%, #243f1f 0%, transparent 50%),
    var(--dark-bg);
  color: var(--dark-ink);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #f4eddc;
}
.section--dark p {
  color: var(--dark-ink-soft);
}

/* Section eyebrow label with gold khātim ornament + rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.section--dark .eyebrow {
  color: var(--gold-bright);
}
.eyebrow svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}
.section--dark .eyebrow svg {
  color: var(--gold-bright);
}
.eyebrow .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center .rule {
  display: none;
}

.section-head {
  max-width: 720px;
}
.section-head.center {
  margin: 0 auto;
  text-align: center;
}
.section-head .ar-accent {
  font-family: var(--ar-display);
  direction: rtl;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}
.section--dark .ar-accent {
  color: var(--gold-bright);
}
.section-head p {
  margin-top: 14px;
}

/* ----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 19px;
  height: 19px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
  box-shadow: 0 12px 26px -10px rgba(21, 105, 77, 0.65);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(21, 105, 77, 0.75);
}
.btn-ghost {
  color: var(--emerald);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--emerald);
  border-color: var(--line-gold);
  background: #fff;
  transform: translateY(-2px);
}
.section--dark .btn-ghost {
  color: #f4eddc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 154, 59, 0.4);
}
.section--dark .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Google Play store badge (built, not an image) */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: #11110f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}
.play-badge:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.7);
}
.play-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.play-badge .pb-t {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.play-badge .pb-t small {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.8;
}
.play-badge .pb-t span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
}
.badge-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.section--dark .badge-note {
  color: var(--dark-ink-soft);
}

/* ----------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(250, 246, 238, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 238, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand .mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand .brand-ar {
  font-family: var(--ar-display);
  color: var(--emerald);
  font-size: 1.2rem;
  direction: rtl;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
/* :not(.btn) so the CTA button keeps its own (white-on-emerald) styling;
   a bare `.nav-links a` rule would out-specify `.btn-primary`. */
.nav-links a:not(.btn) {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--emerald);
  background: rgba(21, 105, 77, 0.07);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--emerald);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin-top: 8px;
}
.hero h1 .accent {
  color: var(--emerald);
}
.hero .bismillah {
  font-family: var(--ar-display);
  direction: rtl;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--gold-deep);
}
.hero .hero-name-ar {
  font-family: var(--ar-display);
  direction: rtl;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--emerald);
  line-height: 1.2;
}
.hero .lead {
  margin-top: 20px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-trust svg {
  width: 17px;
  height: 17px;
  color: var(--emerald);
  flex: none;
}

/* The scholar's quote: the spiritual heart */
.quote {
  position: relative;
  margin-top: 34px;
  padding: 22px 24px 22px 28px;
  background: linear-gradient(135deg, rgba(21, 105, 77, 0.06), rgba(201, 154, 59, 0.05));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.quote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--emerald-ink);
  line-height: 1.6;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
/* soft golden bloom behind the device, echoing the app icon's glow */
.hero-art::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 200, 119, 0.4), transparent 62%);
  filter: blur(8px);
  z-index: -1;
}

/* ----------------------------------------------------------------------------
   Phone mockup device frame (shared by all screen mockups)
   -------------------------------------------------------------------------- */
.phone {
  width: 330px;
  max-width: 84vw;
  border-radius: 46px;
  background: #050505;
  padding: 11px;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px #1b1b1b;
  position: relative;
  flex: none;
}
.phone::after {
  /* speaker notch */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  border-radius: 6px;
  background: #1b1b1b;
  z-index: 60;
}
.screen {
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(620px 320px at 80% -8%, #eef6f0 0%, transparent 60%), var(--ivory);
  color: var(--ink);
  min-height: 600px;
}
.screen.night {
  background: #14130e;
  color: #ece4d2;
}
.screen .statusbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.screen.night .statusbar {
  color: #ece4d2;
}
.screen .statusbar .dots {
  display: flex;
  gap: 4px;
}
.screen .statusbar .dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.82;
  display: block;
}
.screen-pad {
  padding: 4px 16px 18px;
}

/* Floating caption beneath a mockup */
.mock-cap {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  text-align: center;
  max-width: 320px;
}
.section--dark .mock-cap {
  color: var(--dark-ink-soft);
}
.mock-cap b {
  color: var(--gold-deep);
  font-weight: 600;
}
.section--dark .mock-cap b {
  color: var(--gold-bright);
}

/* ----------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(72px, 10vw, 128px);
}
.feature.reverse .feature-art {
  order: -1;
}
.feature-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.feature-list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 13px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c99a3b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.section--dark .feature-list li {
  color: var(--dark-ink-soft);
}
.feature-list li b {
  color: var(--ink);
  font-weight: 600;
}
.section--dark .feature-list li b {
  color: #f4eddc;
}

/* ----------------------------------------------------------------------------
   Mockup: garden hero (chahār-bāgh), from home_hero_concept
   -------------------------------------------------------------------------- */
.greet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 4px 14px;
}
.greet .g-sa {
  font-family: var(--ar-display);
  font-size: 1.35rem;
  color: var(--emerald);
  direction: rtl;
  line-height: 1.1;
}
.greet .g-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 4px;
}
.greet .g-date {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ivory) 70%);
  box-shadow: 0 2px 8px rgba(21, 105, 77, 0.14), inset 0 0 0 1px var(--line);
}
.seal svg {
  width: 27px;
  height: 27px;
}

.mlabel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 4px 10px;
}
.mlabel svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}
.mlabel span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}
.screen.night .mlabel span {
  color: #ece4d2;
}
.mlabel .ln {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* continue-reading illuminated card */
.cont {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 115, 84, 0.13), rgba(22, 115, 84, 0.03) 60%);
  border: 1px solid rgba(201, 154, 59, 0.45);
  padding: 16px 16px 18px;
  box-shadow: 0 10px 24px -14px rgba(21, 105, 77, 0.4);
}
.cont .wm {
  position: absolute;
  right: -26px;
  top: -22px;
  width: 130px;
  height: 130px;
  color: var(--emerald);
  opacity: 0.07;
  pointer-events: none;
}
.cont .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: 0.85;
}
.cont .corner.tl { top: 7px; left: 7px; }
.cont .corner.tr { top: 7px; right: 7px; transform: scaleX(-1); }
.cont .corner.bl { bottom: 7px; left: 7px; transform: scaleY(-1); }
.cont .corner.br { bottom: 7px; right: 7px; transform: scale(-1, -1); }
.cont .kick {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  opacity: 0.75;
}
.cont .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.cont .s-ar {
  font-family: var(--ar-display);
  font-size: 2rem;
  color: var(--ink);
  direction: rtl;
  line-height: 1.15;
}
.cont .s-en {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.cont .s-pos {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1px;
}
.cont .cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px -6px rgba(21, 105, 77, 0.6);
}
.cont .cta svg {
  width: 16px;
  height: 16px;
}

/* the garden panel */
.garden {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 59, 0.5);
  background: linear-gradient(180deg, var(--garden-top) 0%, var(--garden-mid) 55%, var(--garden-bot) 100%);
  color: #f2ecda;
  box-shadow: 0 16px 40px -18px rgba(10, 26, 21, 0.6);
}
.garden .frame {
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(201, 154, 59, 0.55);
  border-radius: 12px;
  pointer-events: none;
}
.garden .frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 154, 59, 0.28);
  border-radius: 9px;
}
.garden-top {
  position: relative;
  padding: 17px 20px 2px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 3;
}
.garden-top .g-lbl {
  font-family: var(--ar-display);
  direction: rtl;
  font-size: 1.3rem;
  color: var(--gold-bright);
  line-height: 1.15;
}
.garden-top .g-en {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.84rem;
  margin-top: 3px;
  color: #f2ecda;
}
.garden-top .g-pct {
  text-align: right;
}
.garden-top .g-pct .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 0.9;
  color: #fff;
}
.garden-top .g-pct .num small {
  font-size: 1.2rem;
  font-weight: 600;
}
.garden-top .g-pct .lbl {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.scene {
  position: relative;
  height: 150px;
  margin: 4px 11px 0;
  z-index: 2;
}
.scene .haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 66px;
  filter: blur(9px);
  opacity: 0.5;
  background:
    radial-gradient(38px 48px at 18% 100%, #2f7e54, transparent),
    radial-gradient(48px 58px at 40% 100%, #256b46, transparent),
    radial-gradient(44px 54px at 63% 100%, #2f7e54, transparent),
    radial-gradient(36px 46px at 84% 100%, #236644, transparent);
}
.scene .rill {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 0;
  width: 15px;
  transform: translateX(-50%);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.22), rgba(120, 200, 255, 0.06));
  border-left: 1px solid rgba(160, 210, 255, 0.3);
  border-right: 1px solid rgba(160, 210, 255, 0.3);
}
.scene .ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  border-top: 1px dashed rgba(201, 154, 59, 0.4);
  background: linear-gradient(180deg, transparent, rgba(201, 154, 59, 0.12));
}
.plants {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 6px 8px;
}
.plant {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.plant .trunk {
  width: 3px;
  height: 8px;
  background: #6b4a2a;
  border-radius: 2px;
  margin-top: -1px;
}
.cypress .crown {
  width: 19px;
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background: linear-gradient(180deg, #57a978 0%, #2f8456 45%, #1c6342 100%);
  box-shadow: 0 0 14px rgba(80, 200, 140, 0.28), inset 0 6px 8px rgba(255, 255, 255, 0.18);
}
.bush .crown {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 30%, var(--gold-bright) 0 2px, transparent 2.6px),
    radial-gradient(circle at 66% 24%, var(--gold-bright) 0 2px, transparent 2.6px),
    radial-gradient(circle at 48% 58%, var(--gold-bright) 0 2px, transparent 2.6px),
    radial-gradient(circle at 76% 60%, var(--gold-bright) 0 2px, transparent 2.6px),
    radial-gradient(circle at 20% 64%, var(--gold-bright) 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 50% 42%, #3a8a5d, #185237);
  box-shadow: 0 0 12px rgba(80, 200, 140, 0.2), inset 0 5px 7px rgba(255, 255, 255, 0.16);
}
.bloom .crown {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 42% 36%, var(--gold-bright), var(--gold) 70%);
  box-shadow: 0 0 22px rgba(233, 200, 119, 0.65), inset 0 6px 8px rgba(255, 255, 255, 0.4);
}
.bloom .crown::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #7a3b1f, #5a2a14);
}
.bloom .halo {
  position: absolute;
  top: -6px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 200, 119, 0.5);
}
.seed .crown {
  width: 9px;
  height: 17px;
  border-radius: 50% 50% 0 0;
  opacity: 0.5;
  background: rgba(201, 154, 59, 0.32);
}
.gstats {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 7px;
  padding: 8px 13px 15px;
}
.gchip {
  flex: 1;
  text-align: center;
  border-radius: 11px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 154, 59, 0.25);
}
.gchip .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.gchip .v small {
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.6;
}
.gchip .l {
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 1px;
}

/* streak strip */
.streak {
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px -12px rgba(21, 105, 77, 0.2);
}
.screen.night .streak {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 154, 59, 0.22);
}
.streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.streak-head .l {
  display: flex;
  align-items: center;
  gap: 8px;
}
.streak-head .flame {
  width: 26px;
  height: 26px;
}
.streak-head .t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.screen.night .streak-head .t {
  color: #ece4d2;
}
.streak-head .n {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold);
}
.blooms {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bloomd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.bloomd .fl {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.bloomd .d {
  font-size: 0.66rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.screen.night .bloomd .d {
  color: #b9c4bd;
}
.bloomd.today .d {
  color: var(--emerald);
  font-weight: 700;
}

/* two stat tiles + recite row */
.tiles {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.tile {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px 14px;
  box-shadow: 0 6px 18px -12px rgba(21, 105, 77, 0.2);
}
.tile .ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
}
.tile .ic.amber {
  background: rgba(201, 154, 59, 0.14);
  color: var(--gold);
}
.tile .ic.green {
  background: rgba(21, 105, 77, 0.12);
  color: var(--emerald);
}
.tile .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.tile .l {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 3px;
}
.recite {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 6px 18px -12px rgba(21, 105, 77, 0.2);
}
.recite .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(21, 105, 77, 0.1);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex: none;
}
.recite .t1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.recite .t2 {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 1px;
}
.recite .beta {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 154, 59, 0.14);
  padding: 3px 7px;
  border-radius: 6px;
}

/* mock bottom nav */
.mnav {
  margin-top: 14px;
  height: 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 10px 16px 0;
}
.screen.night .mnav {
  background: rgba(20, 19, 14, 0.9);
  border-color: rgba(201, 154, 59, 0.18);
}
.mnav .ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  opacity: 0.55;
}
.mnav .ni.active {
  color: var(--emerald);
  opacity: 1;
}
.mnav .ni svg {
  width: 22px;
  height: 22px;
}
.mnav .ni span {
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--display);
}

/* ----------------------------------------------------------------------------
   Mockup: live recitation check (per-word coloring)
   -------------------------------------------------------------------------- */
.recite-card {
  padding: 18px 16px 8px;
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.rc-head .t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}
.rc-chip {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 137, 123, 0.12);
  color: var(--peek);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rc-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--recited);
  display: block;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
.rc-verse {
  direction: rtl;
  text-align: center;
  font-family: var(--quran);
  font-size: 1.85rem;
  line-height: 2.35;
  margin: 14px 4px;
  padding: 18px 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.rc-verse w {
  border-radius: 6px;
  padding: 0 2px;
  transition: color 0.3s ease, background 0.3s ease;
}
.rc-verse w.ok { color: var(--recited); }
.rc-verse w.skip {
  color: var(--skipped);
  background: rgba(230, 81, 0, 0.09);
  text-decoration: underline wavy rgba(230, 81, 0, 0.5);
  text-underline-offset: 8px;
}
.rc-verse w.now {
  color: var(--peek);
  background: rgba(0, 137, 123, 0.1);
}
.rc-verse w.pending { color: #c2b9a8; }
.screen.night .rc-verse { background: rgba(255,255,255,0.04); border-color: rgba(201,154,59,0.18); }
.screen.night .rc-verse w.pending { color: #5f5a4d; }
.rc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin: 12px 0;
}
.rc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.rc-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: block;
}
.rc-mic {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 4px 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(21,105,77,0.08), rgba(21,105,77,0.02));
  border: 1px solid var(--line);
}
.rc-mic .micbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-bright));
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
  animation: mic 1.8s ease-out infinite;
}
@keyframes mic {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(46, 125, 50, 0); }
}
.rc-mic .micbtn svg { width: 18px; height: 18px; }
.wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.wave i {
  flex: 1;
  background: var(--emerald-bright);
  border-radius: 2px;
  opacity: 0.85;
  animation: wv 1s ease-in-out infinite;
}
@keyframes wv {
  0%, 100% { height: 22%; }
  50% { height: 92%; }
}

/* ----------------------------------------------------------------------------
   Mockup: weak-spot heat map page
   -------------------------------------------------------------------------- */
.heat-page {
  position: relative;
  margin: 14px 10px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 6px rgba(201, 154, 59, 0.12);
}
.heat-unwan {
  text-align: center;
  font-family: var(--ar-display);
  font-size: 1.3rem;
  color: var(--emerald);
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.heat-line {
  direction: rtl;
  text-align: justify;
  text-align-last: center;
  font-family: var(--quran);
  font-size: 1.25rem;
  line-height: 2.1;
  padding: 5px 4px;
  border-radius: 8px;
  margin: 3px 0;
}
.heat-line.mistake { background: rgba(214, 69, 69, 0.13); box-shadow: inset 3px 0 0 var(--heat-mistake); }
.heat-line.reinforce { background: rgba(224, 161, 6, 0.13); box-shadow: inset 3px 0 0 var(--heat-reinforce); }
.heat-line.link { background: rgba(47, 125, 209, 0.12); box-shadow: inset 3px 0 0 var(--heat-link); }
.heat-line .ros {
  font-family: var(--display);
  font-size: 0.7rem;
  color: var(--gold-deep);
  vertical-align: middle;
}
.heat-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 6px 4px;
}
.heat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--surface-tint);
}
.heat-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.heat-drill {
  margin: 12px 8px 4px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(142, 36, 170, 0.07);
  border: 1px solid rgba(142, 36, 170, 0.22);
}
.heat-drill .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(142, 36, 170, 0.14);
  color: var(--drill);
  display: grid;
  place-items: center;
  flex: none;
}
.heat-drill .t1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
}
.heat-drill .t2 {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------------------
   Mockup: illuminated Mushaf reader
   -------------------------------------------------------------------------- */
.rbar {
  position: relative;
  z-index: 30;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.rbar .ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  opacity: 0.85;
  color: var(--ink-soft);
}
.screen.night .rbar .ic { color: #c9bfa6; }
.rbar .ic svg { width: 20px; height: 20px; }
.rbar .title { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rbar .title .t-ar {
  font-family: var(--ar-display);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--emerald);
}
.screen.night .rbar .title .t-ar { color: var(--gold-bright); }
.rbar .title .t-sub {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.rbar .right { display: flex; gap: 2px; }
.page {
  position: relative;
  margin: 2px 13px 0;
  padding: 13px;
  min-height: 470px;
}
.page .b-outer { position: absolute; inset: 0; border: 2px solid var(--gold); border-radius: 13px; }
.page .b-inner { position: absolute; inset: 6px; border: 1px solid var(--gold-deep); border-radius: 10px; opacity: 0.7; }
.page .b-hair { position: absolute; inset: 10px; border: 1px solid var(--gold); border-radius: 8px; opacity: 0.35; }
.screen.night .page .b-outer { border-color: var(--gold-deep); }
.screen.night .page .b-inner { border-color: var(--gold); opacity: 0.4; }
.page .corner { position: absolute; width: 32px; height: 32px; color: var(--gold); z-index: 3; }
.page .corner.tl { top: -2px; left: -2px; }
.page .corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.page .corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.page .corner.br { bottom: -2px; right: -2px; transform: scale(-1, -1); }
.page-inner { position: relative; z-index: 2; padding: 16px 14px 6px; }
.unwan {
  position: relative;
  height: 56px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 4px 14px -6px rgba(21, 105, 77, 0.6);
  overflow: hidden;
}
.unwan::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(233, 200, 119, 0.6); border-radius: 6px; }
.unwan .orn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: var(--gold-bright); opacity: 0.9; }
.unwan .orn.l { left: 8px; }
.unwan .orn.r { right: 8px; }
.unwan .u-title { font-family: var(--ar-display); font-weight: 700; font-size: 1.4rem; color: #fff; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.unwan .u-sub { font-family: var(--display); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); text-align: center; margin-top: 2px; }
.bism {
  text-align: center;
  font-family: var(--quran);
  font-size: 1.4rem;
  margin: 16px 0 12px;
  direction: rtl;
  color: var(--emerald);
}
.screen.night .bism { color: var(--gold-bright); }
.ayat {
  direction: rtl;
  text-align: justify;
  text-align-last: center;
  font-family: var(--quran);
  font-size: 1.35rem;
  line-height: 2.2;
  word-spacing: 1px;
}
.ros-glyph { display: inline-grid; place-items: center; width: 27px; height: 27px; vertical-align: -7px; margin: 0 1px; }
.ros-glyph svg { width: 27px; height: 27px; }
.rfooter { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.rfooter .meta { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; }
.pagemed { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.pagemed .num { position: relative; z-index: 2; font-family: var(--quran); font-size: 0.95rem; color: var(--gold-deep); font-weight: 700; }
.screen.night .pagemed .num { color: var(--gold-bright); }
.read-pill {
  position: relative;
  z-index: 30;
  margin: 12px auto 16px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border-radius: 100px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 6px 20px -8px rgba(21, 105, 77, 0.35);
  border: 1px solid rgba(201, 154, 59, 0.3);
}
.screen.night .read-pill { background: rgba(28, 26, 20, 0.85); border-color: rgba(201, 154, 59, 0.25); }
.read-pill .pp { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--emerald-bright)); }
.read-pill .pp svg { width: 14px; height: 14px; }
.read-pill .track { width: 104px; height: 4px; border-radius: 3px; background: rgba(21,105,77,0.16); position: relative; }
.screen.night .read-pill .track { background: rgba(233, 200, 119, 0.2); }
.read-pill .track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 3px; background: var(--gold); }
.read-pill .lbl { font-size: 0.72rem; font-weight: 600; opacity: 0.7; }

/* day/night toggle for the reader mockup */
.reader-toggle {
  display: inline-flex;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 154, 59, 0.3);
  gap: 2px;
}
.reader-toggle button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 18px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--dark-ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.reader-toggle button svg { width: 15px; height: 15px; }
.reader-toggle button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #2a1e08;
}

/* ----------------------------------------------------------------------------
   Mockup: review / self-test card
   -------------------------------------------------------------------------- */
.rev {
  padding: 16px;
}
.rev-prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.rev-prog .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--surface-tint); overflow: hidden; }
.rev-prog .bar i { display: block; height: 100%; width: 45%; border-radius: 4px; background: linear-gradient(90deg, var(--emerald), var(--emerald-bright)); }
.rev-prog .n { font-size: 0.74rem; font-weight: 600; color: var(--ink-soft); }
.rev-card {
  border-radius: 18px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, var(--paper), var(--surface-tint));
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.rev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(21, 105, 77, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}
.rev-surah { font-family: var(--ar-display); font-size: 1.7rem; color: var(--ink); margin: 12px 0 2px; }
.rev-pos { font-size: 0.76rem; color: var(--ink-soft); }
.rev-prompt {
  direction: rtl;
  font-family: var(--quran);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 16px 0;
  letter-spacing: 1px;
}
.rev-prompt .dots { color: var(--gold-deep); }
.rev-mic {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 6px auto 0;
  background: #fff;
  border: 1.5px solid var(--line-gold);
  display: grid; place-items: center;
  color: var(--emerald);
  box-shadow: 0 6px 16px -8px rgba(21, 105, 77, 0.4);
}
.rev-mic svg { width: 24px; height: 24px; }
.rev-hint { font-size: 0.74rem; color: var(--ink-faint); margin-top: 8px; }
.rev-grade { display: flex; gap: 8px; margin-top: 16px; }
.grade {
  flex: 1; text-align: center; padding: 11px 6px; border-radius: 13px;
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  border: 1px solid;
}
.grade .ar { display: block; font-size: 0.95rem; margin-bottom: 1px; }
.grade.g1 { color: var(--recited); border-color: rgba(46,125,50,0.4); background: rgba(46,125,50,0.07); }
.grade.g2 { color: var(--skipped); border-color: rgba(230,81,0,0.35); background: rgba(230,81,0,0.06); }
.grade.g3 { color: var(--heat-mistake); border-color: rgba(214,69,69,0.35); background: rgba(214,69,69,0.06); }

/* ----------------------------------------------------------------------------
   Mockup: mutashabihat (similar verses)
   -------------------------------------------------------------------------- */
.mut { padding: 16px; }
.mut-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
.mut-card .ref {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 9px;
}
.mut-card .tag {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: rgba(21,105,77,0.1); color: var(--emerald);
}
.mut-verse {
  direction: rtl; text-align: right; font-family: var(--quran);
  font-size: 1.35rem; line-height: 1.95; color: var(--ink);
}
.mut-verse em { font-style: normal; color: var(--heat-mistake); background: rgba(214,69,69,0.1); border-radius: 5px; padding: 0 3px; font-weight: 700; }
.mut-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem; color: var(--ink-faint); margin-top: 14px; justify-content: center;
}
.mut-foot svg { width: 15px; height: 15px; color: var(--gold); }

/* ----------------------------------------------------------------------------
   Mockup: word detail sheet
   -------------------------------------------------------------------------- */
.sheet {
  margin-top: 54px;
  border-radius: 26px 26px 36px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 8px 18px 24px;
  box-shadow: 0 -12px 34px -16px rgba(21, 105, 77, 0.28);
  min-height: 384px;
}
.sheet .handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(21, 105, 77, 0.18); margin: 8px auto 18px; }
.sheet .w-ar { text-align: center; font-family: var(--quran); font-size: 2.7rem; direction: rtl; color: var(--emerald); line-height: 1.25; }
.sheet .w-tr { text-align: center; font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.06em; margin-top: 4px; }
.sheet .w-tl { text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 3px 0 0; }
/* slim gold rule + khātim lozenge, instead of an oversized inline SVG */
.sheet .divider { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 16px 0 18px; }
.sheet .divider::before, .sheet .divider::after { content: ""; height: 1px; width: 56px; }
.sheet .divider::before { background: linear-gradient(90deg, transparent, var(--line-gold)); }
.sheet .divider::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.sheet .divider i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); display: block; }
.sheet .field { padding: 13px 16px; border-radius: 13px; background: var(--surface-tint); margin-bottom: 10px; border-left: 3px solid rgba(201, 154, 59, 0.45); }
.sheet .field .k { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 5px; }
.sheet .field .v { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.sheet .root-ar { display: inline-block; font-family: var(--quran); direction: rtl; font-size: 1.2rem; color: var(--emerald); background: rgba(21, 105, 77, 0.08); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-left: 2px; vertical-align: middle; }

/* Safety net: size inline-flex flourish SVGs that have no intrinsic size,
   so they can't balloon to the browser's 300×150 default (the word-sheet bug). */
.rev-badge svg { width: 11px; height: 11px; }
.heat-drill .ic svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------------------
   "And more" feature grid
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: 0 24px 48px -24px rgba(16, 38, 31, 0.5);
}
.card .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(21, 105, 77, 0.1), rgba(201, 154, 59, 0.12));
  color: var(--emerald);
  margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; }
.card .ar-mini { font-family: var(--ar-display); direction: rtl; color: var(--gold-deep); font-size: 1.05rem; }
.card p { margin-top: 8px; font-size: 0.95rem; }

/* ----------------------------------------------------------------------------
   Values strip
   -------------------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.value {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 154, 59, 0.22);
}
.value .ic { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: rgba(233, 200, 119, 0.12); color: var(--gold-bright); }
.value .ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.05rem; color: #f4eddc; }
.value p { font-size: 0.86rem; margin-top: 5px; }

/* ----------------------------------------------------------------------------
   Visually-hidden helper (skip link)
   -------------------------------------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background:
    radial-gradient(900px 500px at 50% -40%, #1d3a2e 0%, transparent 60%), var(--dark-bg);
  color: var(--dark-ink-soft);
  padding: 64px 0 36px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: #f4eddc; }
.footer-brand .brand .brand-ar { color: var(--gold-bright); }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; color: var(--dark-ink-soft); }
.footer-quote { font-family: var(--ar-display); direction: rtl; font-size: 1.3rem; color: var(--gold-bright); margin-top: 18px; line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--dark-ink-soft); font-size: 0.94rem; padding: 5px 0; }
.footer-col a:hover { color: #f4eddc; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 154, 59, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.footer-bottom .bism { color: var(--gold-bright); font-family: var(--ar-display); direction: rtl; font-size: 1.05rem; }

/* ----------------------------------------------------------------------------
   Legal pages (privacy)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0;
}
.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal p { margin-bottom: 14px; line-height: 1.75; }
.legal ul { margin: 0 0 16px 0; padding-left: 4px; list-style: none; }
.legal ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); line-height: 1.6; }
.legal ul li::before {
  content: "";
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c99a3b'%3E%3Cpath d='M12 2l2.4 7.6H22l-6.2 4.5 2.4 7.4L12 17l-6.2 4.5 2.4-7.4L2 9.6h7.6z'/%3E%3C/svg%3E");
}
.legal .callout {
  background: linear-gradient(135deg, rgba(21,105,77,0.06), rgba(201,154,59,0.05));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .toc {
  background: var(--surface-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}
.legal .toc h4 { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin-bottom: 5px; }
.page-hero {
  background: linear-gradient(180deg, var(--paper), var(--surface-tint));
  padding: clamp(40px, 6vw, 64px) 0 0;
}

/* ----------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
/* Hidden state is gated behind `.js` (set synchronously in <head>) so that
   without JavaScript (and for crawlers) all content is fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Hero leads with the copy (headline + quote); features lead with the mockup. */
  .hero-art { margin-top: 8px; }
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-art { order: 0; }
  .feature-art { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(250, 246, 238, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-links.open .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
  .quote p { font-size: 0.96rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
