@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-latin-500-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Amiri';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/amiri-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Amiri';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/amiri-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Noto Naskh Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Noto Naskh Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/noto-naskh-arabic-arabic-500-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}
@font-face{font-family:'Noto Naskh Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/noto-naskh-arabic-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}

/* At-Tawwabun Academy — main stylesheet.
   Fonts are injected above this line by build.ps1 (from src/fonts.css). */

/* ---------- Colour tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FBF8FC;
  --surface: #FFFFFF;
  --tint: #F3ECF6;
  --fg: #3B2925;
  --muted: #6E5D63;
  --heading: #4B254F;
  --gold: #85632D;
  --gold-line: #A27E39;
  --gold-soft: #C5A15B;
  --line: #E7DDEA;
  --field: #94808D;
  --btn-bg: #4B254F;
  --btn-fg: #F8F3EA;
  --wa: #17783F;
  --wa-fg: #FFFFFF;
  --danger: #B4383C;
  --focus: #85632D;
  --logo-ground: #F9F4EC;
  --glow: rgba(75, 37, 79, .08);
  --plum: #4B254F;
  --plum-fg: #F8F3EA;
  --plum-accent: #D9B46A;
  --shadow: 0 1px 2px rgba(59, 41, 37, .06), 0 8px 24px rgba(75, 37, 79, .07);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-ar-display: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --font-ar-body: 'Noto Naskh Arabic', 'Amiri', 'Segoe UI', Tahoma, sans-serif;

  --header-h: 72px;
  --banner-h: 0px;
  --radius: 14px;
  --wrap: 1180px;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1B1220; --surface: #251A2B; --tint: #2C1F33; --fg: #F1E9DD; --muted: #BBAABF;
    --heading: #E6D5F0; --gold: #D6B06A; --gold-line: #C5A15B; --gold-soft: #C5A15B;
    --line: #3A2C40; --field: #8A7092; --btn-bg: #B98CCB; --btn-fg: #1B1220; --plum-soft: #3A2645; --glow: rgba(185, 140, 203, .16);
    --danger: #F08A8D; --focus: #D6B06A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B1220; --surface: #251A2B; --tint: #2C1F33; --fg: #F1E9DD; --muted: #BBAABF;
  --heading: #E6D5F0; --gold: #D6B06A; --gold-line: #C5A15B; --gold-soft: #C5A15B;
  --line: #3A2C40; --field: #8A7092; --btn-bg: #B98CCB; --btn-fg: #1B1220; --plum-soft: #3A2645; --glow: rgba(185, 140, 203, .16);
  --danger: #F08A8D; --focus: #D6B06A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--banner-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  transition: background-color .15s ease, color .15s ease;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar-body); font-size: 1.0625rem; line-height: 1.8; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: var(--font-ar-display); font-weight: 700; line-height: 1.5; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
strong { font-weight: 600; }
[lang="ar"] { font-family: var(--font-ar-body); letter-spacing: 0; text-transform: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.flip { transform: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
svg.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon--fill { fill: currentColor; stroke: none; }

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--btn-fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--heading); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--gold-line); }
.btn--ghost:hover { background: var(--tint); color: var(--heading); }
.btn--wa { background: var(--wa); color: var(--wa-fg); }
.btn--wa:hover { background: #12612F; color: var(--wa-fg); }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .9rem; }
.btn--plum-gold { background: var(--plum-accent); color: #24162A; }
.btn--plum-gold:hover { background: #E8C988; color: #24162A; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); margin-inline-end: auto; }
.brand__ground { background: var(--logo-ground); border-radius: 12px; padding: 2px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.brand__ground img { width: 52px; height: 52px; border-radius: 10px; }
.brand__text { display: none; flex-direction: column; line-height: 1.15; }
.brand__en { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; font-size: 1.02rem; }
.brand__ar { font-family: var(--font-ar-display); color: var(--gold); font-size: 1.02rem; }
@media (min-width: 640px) { .brand__text { display: inline-flex; } }

.nav { order: 4; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .7em;
  color: var(--fg); text-decoration: none; font-weight: 500; font-size: .93rem; border-radius: 8px;
}
.nav__list a:hover { color: var(--heading); background: var(--tint); }
.menu-btn {
  display: none; align-items: center; gap: .4em; min-height: 44px; min-width: 44px; padding: 0 .8em;
  background: transparent; color: var(--heading); border: 2px solid var(--gold-line); border-radius: 10px;
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.nav__trial { display: none; }

.tools { display: flex; align-items: center; gap: 8px; order: 5; }
.switch { display: inline-flex; border: 1px solid var(--gold-line); border-radius: 10px; padding: 2px; gap: 2px; }
.switch a, .switch button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 .45em; border-radius: 8px;
  color: var(--fg); background: transparent; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .85rem; text-decoration: none; cursor: pointer;
}
.switch a:hover, .switch button:hover { background: var(--tint); color: var(--heading); }
.switch [aria-current="true"], .switch [aria-pressed="true"] {
  background: var(--btn-bg); color: var(--btn-fg); border-color: var(--gold-line);
}
.switch .ar-letter { font-family: var(--font-ar-display); font-size: 1.15rem; line-height: 1; }
.theme-switch { display: none; }
.js .theme-switch { display: inline-flex; }
.header__trial { order: 6; }

@media (max-width: 1119.98px) {
  .js .menu-btn { display: inline-flex; }
  .nav { order: 6; }
  .js .nav__list {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .nav__list[data-open] { display: flex; }
  .js .nav__list a { min-height: 48px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__trial { display: block; }
  .nav { order: 7; }
  .tools { order: 5; }
  .header__trial { display: none; }
  .site-header { position: sticky; }
  .header__in { position: relative; }
  html:not(.js) .nav { order: 9; width: 100%; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}
@media (min-width: 1120px) {
  .nav { order: 2; }
  .tools { order: 3; }
}
@media (max-width: 559.98px) {
  :root { --header-h: 112px; }
  .header__in { gap: 6px 8px; padding-block: 6px; }
  .brand__text { display: inline-flex; }
  .brand__ground img { width: 44px; height: 44px; }
  .brand__en { font-size: .92rem; }
  .brand__ar { font-size: .95rem; }
  .nav { order: 2; }
  .tools { order: 8; width: 100%; justify-content: space-between; }
}
@media (max-width: 339.98px) {
  .tools { flex-wrap: wrap; justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--gold); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7em;
}
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .98rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-soft); margin: 18px auto; max-width: 260px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--gold-soft); }
.ornament svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px); background: radial-gradient(ellipse 60% 70% at 78% 45%, var(--glow), transparent 70%); }
[dir="rtl"] .hero { background: radial-gradient(ellipse 60% 70% at 22% 45%, var(--glow), transparent 70%); }
@media (max-width: 899.98px) { .hero, [dir="rtl"] .hero { background: radial-gradient(ellipse 90% 40% at 50% 22%, var(--glow), transparent 70%); } }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { color: var(--gold); font-style: italic; }
:lang(ar) .hero h1 em { font-style: normal; }
.hero .lead { max-width: 560px; margin-bottom: 1.6em; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px 24px; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--gold-line); transform: rotate(45deg) translateY(-1px); }
.hero__media { order: -1; display: flex; justify-content: center; }
@media (min-width: 900px) { .hero__media { order: 0; } }
.arch {
  width: min(100%, 460px); min-width: 240px;
  padding: 14px; border-radius: 240px 240px 22px 22px;
  background: var(--tint); box-shadow: var(--shadow);
}
.arch__inner {
  background: var(--logo-ground); border: 2px solid var(--gold-line);
  border-radius: 226px 226px 14px 14px; padding: 34px 18px 18px; overflow: hidden;
}
.arch__inner img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
@media (max-width: 899.98px) { .arch { width: min(78vw, 400px); } }
.hero__video-link { margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 12px; }
.step p { margin: 0; color: var(--fg); }

/* ---------- Programs ---------- */
.cards { display: grid; gap: 22px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card__ar { font-family: var(--font-ar-display); font-size: 2rem; line-height: 1.5; color: var(--gold); margin: 0 0 4px; }
.card h3 { margin-bottom: .4em; }
.card ul { padding: 0; list-style: none; margin: 4px 0 20px; }
.card ul li { position: relative; padding-inline-start: 18px; margin-bottom: 6px; color: var(--fg); font-size: .95rem; }
.card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; background: var(--gold-line); transform: rotate(45deg); }
.card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.textlink {
  display: inline-flex; align-items: center; gap: .35em; min-height: 40px;
  font-weight: 600; color: var(--heading); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: .25em;
}
.textlink svg { width: 1em; height: 1em; }

/* Quran path */
.path { margin-top: 64px; }
.path__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; position: relative; }
@media (min-width: 960px) {
  .path__steps { grid-template-columns: repeat(5, 1fr); }
  .path__steps::before { content: ""; position: absolute; top: 22px; inset-inline: 10%; height: 2px; background: var(--gold-line); }
}
.path__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; }
@media (min-width: 960px) { .path__step { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.path__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--gold-line); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; position: relative; z-index: 1;
}
.path__ar { font-family: var(--font-ar-display); font-size: 1.5rem; color: var(--gold); line-height: 1.6; margin: 0; }
.path__step h4 { margin: 0 0 .3em; font-size: 1.02rem; }
.path__step p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (min-width: 960px) { .path__ar { margin-top: 12px; } }

/* ---------- Lessons (videos) ---------- */
.videos { display: grid; gap: 22px; }
@media (min-width: 680px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.video-card__body { padding: 18px 20px 20px; }
.video-card h3 { font-size: 1.12rem; }
.video-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Plans ---------- */
.plan { position: relative; }
.plan__sub { color: var(--muted); margin-bottom: 14px; }
.plan__price { font-weight: 600; color: var(--heading); padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 16px; }
.plan__price--free { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; color: var(--gold); }
:lang(ar) .plan__price--free { font-family: var(--font-ar-display); }
.plan--trial { border: 2px solid var(--gold-line); }
.promise {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold-line);
  border-radius: var(--radius); padding: 26px 26px 10px;
}
.promise h3 { margin-bottom: .7em; }
.promise ol { display: grid; gap: 4px 28px; padding-inline-start: 1.3em; }
@media (min-width: 800px) { .promise ol { grid-template-columns: 1fr 1fr; } }
.promise li { margin-bottom: 10px; }
.promise li::marker { color: var(--gold); font-weight: 600; }

@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.cards--4 .card { padding: 26px 22px; }

/* ---------- Feedback (real messages, no names) ---------- */
.voices { display: grid; gap: 22px; }
@media (min-width: 760px) { .voices { grid-template-columns: repeat(2, 1fr); } }
.tw-voice-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tw-voice-card__mark { font-family: var(--font-display); font-size: 3.6rem; line-height: .8; color: var(--gold); height: 34px; display: block; }
.tw-voice-card blockquote { margin: 0 0 16px; }
.tw-voice-card__original {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.12rem;
  line-height: 1.6; color: var(--heading); margin: 0; text-align: start;
}
[dir="rtl"] .tw-voice-card__original { text-align: right; }
.tw-voice-card__translation { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--fg); font-size: .95rem; }
.tw-voice-card__translation-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
:lang(ar) .tw-voice-card__translation-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.tw-voice-card figcaption { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.tw-voice-card__pill { display: inline-block; border: 1px solid var(--gold-line); color: var(--gold); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.voices-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.voices-note svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
main:focus { outline: none; }

/* ---------- Teachers ---------- */
.teachers { display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .teachers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .teachers { grid-template-columns: repeat(4, 1fr); } }
.teachers li { border-top: 3px solid var(--gold-line); padding-top: 18px; }
.teachers h3 { font-size: 1.15rem; }
.teachers p { color: var(--muted); margin: 0; }

/* ---------- Training card ---------- */
.training {
  background: var(--plum); color: var(--plum-fg); border-radius: 22px; padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 28px; align-items: center; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .training { grid-template-columns: 1.2fr .8fr; } }
.training h2, .training h3 { color: var(--plum-fg); }
.training .eyebrow { color: var(--plum-accent); }
.training__ar { font-family: var(--font-ar-display); font-size: 2.2rem; color: var(--plum-accent); margin: 0; line-height: 1.5; }
.training ul { list-style: none; padding: 0; margin: 0 0 24px; }
.training ul li { position: relative; padding-inline-start: 20px; margin-bottom: 8px; }
.training ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; background: var(--plum-accent); transform: rotate(45deg); }
.training a:not(.btn) { color: var(--plum-fg); }
.training__path { border-inline-start: 3px solid var(--plum-accent); padding: 4px 0 4px 16px; padding-inline: 16px 0; margin: 0 0 26px; }
.training__path strong { display: block; color: var(--plum-accent); margin-bottom: 2px; }
.training :focus-visible { outline-color: var(--plum-accent); }

/* ---------- Booking ---------- */
.book { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .book { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.note {
  display: flex; gap: 14px; background: var(--tint); border-radius: var(--radius); padding: 20px 22px; margin-top: 20px;
}
.note svg { width: 28px; height: 28px; color: var(--gold); flex: none; margin-top: 2px; }
.note p:last-child { margin-bottom: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form__req { color: var(--muted); font-size: .9rem; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .label {
  display: block; font-weight: 600; color: var(--heading); margin-bottom: 6px; padding: 0; font-size: .97rem;
}
.req { color: var(--danger); }
.hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--field); border-radius: 10px;
  font: inherit; font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; border-width: 2px !important; }
.field-error { display: block; color: var(--danger); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.row-2 { display: grid; gap: 0 18px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--field); border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--fg); background: var(--bg);
}
.pills input:checked + label { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.pills input:checked + label::before { content: "✓"; margin-inline-end: 6px; font-weight: 700; }
.pills input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.consent-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); }
.consent-box legend { padding: 0 6px; margin-inline-start: -6px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; }
.check:last-child { margin-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--btn-bg); }
.check label { font-weight: 400; color: var(--fg); }
.check .field-error { grid-column: 2; margin-top: 0; }

.form__errors {
  border: 2px solid var(--danger); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; background: var(--bg);
}
.form__errors p { font-weight: 600; color: var(--danger); margin-bottom: .4em; }
.form__errors ul { margin: 0; }
.form__errors a { color: var(--fg); }

.result { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.result h3:focus { outline: none; }
.preview {
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; font-size: .93rem; margin: 0 0 16px; font-family: inherit;
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 22px; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { width: 26px; height: 26px; color: var(--gold); }
.contact-card__value { font-size: 1.12rem; font-weight: 600; color: var(--fg); margin-bottom: 18px; overflow-wrap: anywhere; }
.notice {
  display: flex; gap: 16px; margin-top: 24px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--gold-line);
}
.notice svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.notice p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 40px; text-align: center; }
.footer__emblem { display: inline-block; background: var(--logo-ground); border-radius: 16px; padding: 4px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.footer__emblem img { width: 72px; height: 72px; border-radius: 12px; }
.hadith { font-family: var(--font-ar-display); font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--heading); line-height: 1.8; margin: 0 0 6px; }
.hadith-tr { color: var(--fg); font-style: italic; max-width: 620px; margin: 0 auto 4px; }
:lang(ar) .hadith-tr { font-style: normal; }
.hadith-src { color: var(--muted); font-size: .9rem; }
.tagline { color: var(--gold); font-weight: 600; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 24px auto 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; max-width: 900px; }
.footer-links a, .linkbtn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; color: var(--fg); font-size: .92rem;
}
.linkbtn { background: none; border: 0; font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; color: var(--heading); }
.copyright { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--wa-fg); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.wa-float:hover { background: #12612F; color: var(--wa-fg); }
.wa-float svg { width: 30px; height: 30px; }
.consent-open .wa-float { display: none; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 2px solid var(--gold-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
}
.consent__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 16px; }
.consent__text { flex: 1 1 420px; margin: 0; font-size: .95rem; }
.consent__title { display: block; font-weight: 600; color: var(--heading); }
.consent__current { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--muted); }
.consent__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent__actions .btn { min-width: 132px; background: var(--btn-bg); color: var(--btn-fg); }
.consent__actions .btn:hover { background: var(--heading); color: var(--bg); }

/* ---------- Legal and help pages ---------- */
.doc { padding-block: 40px 80px; }
.doc__in { max-width: 820px; }
.back { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 600; margin-bottom: 18px; }
.back svg { width: 1em; height: 1em; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .2em; }
.doc h1:focus { outline: none; }
.updated { color: var(--muted); font-size: .92rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.55rem; margin-top: 2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.5em; }
.doc li { margin-bottom: .4em; }
.summary { background: var(--tint); border-inline-start: 4px solid var(--gold-line); border-radius: 12px; padding: 20px 24px 6px; margin-bottom: 28px; }
.summary h2 { margin-top: 0; font-size: 1.25rem; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .94rem; background: var(--surface); }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--heading); font-weight: 600; background: var(--tint); }
caption { text-align: start; font-weight: 600; color: var(--heading); padding-bottom: 6px; }
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 22px; }
.related h2 { font-size: 1.2rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.related a { display: inline-flex; min-height: 40px; align-items: center; }
.doc .btn-row { margin: 8px 0 20px; }
.doc .form { margin-top: 20px; }

.notfound { text-align: center; }
.notfound__emblem { display: inline-block; border-radius: 16px; background: var(--logo-ground); }
.notfound__links { justify-content: center; margin-top: 24px; }

/* ---------- Print ---------- */
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #FFFFFF; --surface: #FFFFFF; --tint: #F4F0F5; --fg: #000000; --muted: #333333; --heading: #4B254F; --gold: #6A4F24;
  }
  .site-header, .consent, .wa-float, .skip, .btn-row, .form { display: none !important; }
  body { background: #fff; }
}

/* =====================================================================
   Motion and colour for Programs, the Quran path and the Plans.
   Hidden-before-reveal states only apply under .js-motion, which the
   script adds when the visitor has not asked for reduced motion.
   ===================================================================== */

/* ---------- Plans: purple and gold cards ---------- */
.cards--4 { perspective: 1200px; }
.plan {
  --p-bg1: #3A1C3E; --p-bg2: #5E2F65; --p-fg: #F8F3EA; --p-soft: rgba(248, 243, 234, .86);
  --p-gold: #E2C07A; --p-line: rgba(226, 192, 122, .45); --p-glow: rgba(226, 192, 122, .55);
  overflow: hidden; isolation: isolate; cursor: pointer; padding-top: 44px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(226, 192, 122, .18), transparent 55%), linear-gradient(160deg, var(--p-bg2), var(--p-bg1));
  color: var(--p-fg); border: 1px solid var(--p-line); box-shadow: 0 10px 30px rgba(46, 22, 49, .22);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, opacity .8s ease;
  -webkit-tap-highlight-color: transparent;
}
.cards--4 .card.plan { padding-top: 44px; }
.plan.plan--trial {
  --p-bg1: #B8903F; --p-bg2: #E6C987; --p-fg: #2E1631; --p-soft: rgba(46, 22, 49, .86);
  --p-gold: #4B254F; --p-line: rgba(75, 37, 79, .35); --p-glow: rgba(226, 192, 122, .75);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(160deg, var(--p-bg2), var(--p-bg1));
  border: 1px solid rgba(255, 255, 255, .5);
}
.plan h3, .plan .plan__price { color: var(--p-fg); }
.plan .plan__sub { color: var(--p-gold); font-weight: 600; }
.plan .plan__price { border-color: var(--p-line); }
.plan .plan__price--free { color: var(--p-fg); }
.plan ul li { color: var(--p-soft); }
.plan ul li::before { background: var(--p-gold); }
.plan .btn--ghost { color: var(--p-fg); border-color: var(--p-gold); background: rgba(255, 255, 255, .04); }
.plan .btn--ghost:hover { background: var(--p-gold); color: #2E1631; }
.plan.plan--trial .btn--primary { background: #4B254F; color: #F8F3EA; }
.plan.plan--trial .btn--primary:hover { background: #2E1631; color: #F8F3EA; }
.plan :focus-visible { outline-color: var(--p-gold); }
/* light that sweeps across */
.plan::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: translateX(-120%) rotate(8deg);
}
.plan:hover::before, .plan.is-picked::before { animation: tw-sheen 1.1s cubic-bezier(.22, 1, .36, 1); }
@keyframes tw-sheen { to { transform: translateX(420%) rotate(8deg); } }
@media (hover: hover) {
  .plan:hover, .js-motion .plan.is-in:not(.is-picked):hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 24px 50px rgba(46, 22, 49, .35), 0 0 0 1px var(--p-glow); }
}
.plan.plan--trial { animation: tw-trial-glow 3.2s ease-in-out 1.4s infinite; }
@keyframes tw-trial-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(46, 22, 49, .22), 0 0 0 0 rgba(226, 192, 122, 0); }
  50% { box-shadow: 0 14px 36px rgba(46, 22, 49, .28), 0 0 0 6px rgba(226, 192, 122, .22); }
}
.plan.is-pressed { transform: scale(.97); transition-duration: .18s; }
.plan.is-picked {
  transform: translateY(-10px) scale(1.03); border-color: var(--p-gold); z-index: 2; animation: none;
  box-shadow: 0 28px 60px rgba(46, 22, 49, .42), 0 0 0 2px var(--p-gold), 0 0 40px var(--p-glow);
}
.cards--4.has-pick .plan:not(.is-picked) { opacity: .72; transform: scale(.98); }
.cards--4.has-pick .plan:not(.is-picked):hover { opacity: 1; }
.plan__ripple {
  position: absolute; z-index: -1; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--p-glow), transparent 70%); transform: scale(0); animation: tw-ripple .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes tw-ripple { to { transform: scale(40); opacity: 0; } }
.plan__badge {
  position: absolute; top: 14px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: .75rem; line-height: 1;
  background: var(--p-gold); color: #2E1631; pointer-events: none;
  opacity: 0; transform: translateY(-8px) scale(.6); transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.plan--trial .plan__badge { color: #F8F3EA; }
:lang(ar) .plan__badge { font-size: .85rem; }
.plan__badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan.is-picked .plan__badge { opacity: 1; transform: none; }
.js-motion .plan { opacity: 0; transform: translateY(36px) scale(.97); }
.js-motion .plan.is-in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.js-motion .plan.is-in.is-picked { transform: translateY(-10px) scale(1.03); transition-delay: 0s; }
.js-motion .plan.is-in.is-pressed { transform: scale(.97); transition-delay: 0s; }
.form-pop { animation: tw-form-pop .9s cubic-bezier(.34, 1.56, .64, 1); border-radius: 10px; }
@keyframes tw-form-pop { 30% { box-shadow: 0 0 0 6px rgba(226, 192, 122, .45); } 100% { box-shadow: 0 0 0 0 rgba(226, 192, 122, 0); } }

/* ---------- Programs: soft motion ---------- */
#programs .card { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s cubic-bezier(.22, 1, .36, 1), border-color .5s ease; }
#programs .card::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); transform: translateX(-50%); transition: width .8s cubic-bezier(.22, 1, .36, 1);
}
.card__star { position: absolute; z-index: -1; top: -34px; inset-inline-end: -34px; width: 140px; height: 140px; opacity: .08; pointer-events: none;
  fill: var(--gold-soft); transition: transform 2.4s cubic-bezier(.22, 1, .36, 1), opacity .8s ease; }
#programs .card__ar { transition: transform .7s cubic-bezier(.22, 1, .36, 1), text-shadow .7s ease; transform-origin: right center; }
@media (hover: hover) {
  #programs .card:hover, .js-motion #programs .card.is-in:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: 0 2px 4px rgba(59, 41, 37, .06), 0 18px 40px rgba(75, 37, 79, .14); }
  #programs .card:hover::before, #programs .card:focus-within::before { width: 70%; }
  #programs .card:hover .card__star { transform: rotate(45deg) scale(1.08); opacity: .14; }
  #programs .card:hover .card__ar { transform: scale(1.04); text-shadow: 0 0 18px rgba(197, 161, 91, .35); }
}
#programs .card.is-touched, .js-motion #programs .card.is-in.is-touched { transform: scale(.985); border-color: var(--gold-line); }
#programs .card.is-touched::before { width: 70%; }
.js-motion #programs .section__head > * { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s cubic-bezier(.22, 1, .36, 1); }
.js-motion #programs .section__head > :nth-child(2) { transition-delay: .12s; }
.js-motion #programs .section__head > :nth-child(3) { transition-delay: .24s; }
.js-motion #programs .section__head.is-in > * { opacity: 1; transform: none; }
#programs .section__head h2 { position: relative; padding-bottom: 14px; }
#programs .section__head h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 72px; background: var(--gold-soft); border-radius: 2px; }
.js-motion #programs .section__head h2::after { width: 0; transition: width 1.2s cubic-bezier(.22, 1, .36, 1) .45s; }
.js-motion #programs .section__head.is-in h2::after { width: 72px; }
.js-motion #programs .card { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.js-motion #programs .card.is-in { opacity: 1; transform: none; filter: none;
  transition: opacity 1s ease var(--d, 0s), transform 1.1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), filter 1s ease var(--d, 0s), box-shadow .7s, border-color .5s; }
.js-motion #programs .card.is-in.is-settled { transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s cubic-bezier(.22, 1, .36, 1), border-color .5s ease; }
.js-motion #programs .card .card__ar { clip-path: inset(0 0 0 100%); }
.js-motion #programs .card.is-in .card__ar { clip-path: inset(0 0 0 0);
  transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1) calc(var(--d, 0s) + .25s), transform .7s cubic-bezier(.22, 1, .36, 1), text-shadow .7s ease; }
.js-motion #programs .card ul li { opacity: 0; transform: translateX(-10px); }
[dir="rtl"].js-motion #programs .card ul li { transform: translateX(10px); }
.js-motion #programs .card.is-in ul li { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.js-motion #programs .card.is-in ul li:nth-child(1) { transition-delay: calc(var(--d, 0s) + .55s); }
.js-motion #programs .card.is-in ul li:nth-child(2) { transition-delay: calc(var(--d, 0s) + .65s); }
.js-motion #programs .card.is-in ul li:nth-child(3) { transition-delay: calc(var(--d, 0s) + .75s); }
.js-motion #programs .card.is-in ul li:nth-child(4) { transition-delay: calc(var(--d, 0s) + .85s); }

/* ---------- Quran path: a gold road with star stops ---------- */
.path__book { width: 34px; height: 36px; vertical-align: -6px; margin-inline-end: 12px; color: var(--gold-line);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js-motion .path__book path { stroke-dasharray: 120; stroke-dashoffset: 120; }
.js-motion .path.is-in .path__book path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1); }
.js-motion .path.is-in .path__book path:nth-child(2) { transition-delay: .4s; }
.js-motion .path.is-in .path__book path:nth-child(3) { transition-delay: .7s; }

.path__num { background: none; border: 0; color: var(--gold); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.path__num b { position: relative; z-index: 1; font-weight: 600; transition: color .5s ease; }
.path__star { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); overflow: visible; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.path__star path { fill: var(--bg); stroke: var(--gold-line); stroke-width: 4; transition: fill .5s ease, stroke .5s ease; }
.path__step.is-lit .path__star path { fill: var(--gold-line); }
.path__step.is-lit .path__num b { color: var(--bg); }
.path__step.is-lit .path__num { animation: tw-step-pop .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tw-step-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.path__step.is-lit:last-child .path__num::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; animation: tw-breath 3s ease-in-out 1s infinite;
}
@keyframes tw-breath { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 161, 91, 0); } 50% { box-shadow: 0 0 0 8px rgba(197, 161, 91, .18), 0 0 22px rgba(197, 161, 91, .3); } }
.path__step.is-here .path__num { transform: scale(1.18); }
.path__step.is-here .path__star { transform: rotate(45deg); }
.path__step.is-here .path__num::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 18px rgba(197, 161, 91, .5); }
.path__step > div { transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.path__steps.is-focusing .path__step:not(.is-lit) > div { opacity: .45; }
.path__step { -webkit-tap-highlight-color: transparent; }
.js-motion .path__step > div { opacity: 0; transform: translateY(12px); }
.js-motion .path__step.is-shown > div { opacity: 1; transform: none; }
.js-motion .path__steps.is-focusing .path__step.is-shown:not(.is-lit) > div { opacity: .45; }
.js-motion .path__step .path__num { transform: scale(0); }
.js-motion .path__step.is-shown .path__num { transform: none; }
.js-motion .path__step.is-shown.is-here .path__num { transform: scale(1.18); }
/* the road itself: a quiet track with a gold line that travels along it */
.path__fill { display: none; }
@media (min-width: 960px) {
  .path__steps::before { background: var(--line); }
  .path__fill { display: block; position: absolute; top: 22px; inset-inline: 10%; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--gold-line), var(--gold-soft)); transform-origin: left center;
    transform: scaleX(var(--road, 1)); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
  [dir="rtl"] .path__fill { transform-origin: right center; background: linear-gradient(270deg, var(--gold-line), var(--gold-soft)); }
  .js-motion .path__fill { transform: scaleX(var(--road, 0)); }
}
@media (max-width: 959.98px) {
  .path__step:not(:last-child)::before, .path__step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; bottom: -16px; inset-inline-start: 21px; width: 2px; border-radius: 2px;
  }
  .path__step:not(:last-child)::before { background: var(--line); }
  .path__step:not(:last-child)::after { background: linear-gradient(180deg, var(--gold-line), var(--gold-soft)); transform-origin: center top; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
  .js-motion .path__step:not(:last-child)::after { transform: scaleY(0); }
  .js-motion .path__step.is-road:not(:last-child)::after { transform: scaleY(1); }
}
