/* ==========================================================
   Dan English · website styles
   Colours and type follow the Dan English Brand Guidelines v1.0
   ========================================================== */

:root {
  /* Brand colours */
  --de-navy: #02193F;
  --de-orange: #F77036;
  --de-cream: #F9F4F0;
  --de-white: #FFFFFF;
  --de-navy-rgb: 2 25 63;
  --de-orange-rgb: 247 112 54;

  /* Roles */
  --color-primary: var(--de-navy);
  --color-accent: var(--de-orange);
  --color-bg: var(--de-cream);
  --color-surface: var(--de-white);
  --color-text: var(--de-navy);
  --color-text-muted: rgb(var(--de-navy-rgb) / 0.74);
  --color-text-inverse: var(--de-white);
  --color-line: rgb(var(--de-navy-rgb) / 0.12);
  --color-navy-2: #0B2A5C; /* raised surface on navy */
  --color-mist: #8FA3C4;   /* decorative only */
  --color-error: #B3261E;

  /* Type */
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spacing & shape */
  --gutter: 20px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(var(--de-navy-rgb) / 0.06), 0 12px 32px -12px rgb(var(--de-navy-rgb) / 0.18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Arabic: Montserrat and Inter have no Arabic glyphs, so use Cairo */
html[lang="ar"] {
  --font-heading: "Cairo", "Montserrat", system-ui, sans-serif;
  --font-body: "Cairo", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--de-orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--de-navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; touch-action: manipulation;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--de-navy); color: #fff; }
.btn-dark:hover { background: var(--color-navy-2); box-shadow: 0 8px 20px -8px rgb(var(--de-navy-rgb) / .6); }
.btn-orange { background: var(--de-orange); color: var(--de-navy); }
.btn-orange:hover { background: #ff8450; }
.btn-ghost { background: transparent; color: var(--de-navy); border-color: var(--de-navy); }
.btn-ghost:hover { background: var(--de-navy); color: #fff; }
.btn svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(249 244 240 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--color-line); box-shadow: 0 6px 20px -16px rgb(var(--de-navy-rgb) / .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { width: 160px; height: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: background-color .2s;
}
.main-nav a:hover { background: rgb(var(--de-navy-rgb) / .06); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; padding: 3px; border-radius: 12px; background: rgb(var(--de-navy-rgb) / .07); }
.lang-switch button {
  min-width: 40px; min-height: 38px; padding: 0 8px;
  border: 0; border-radius: 9px; background: transparent; color: var(--de-navy);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: .04em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.lang-switch button[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 1rem; }
.lang-switch button[aria-pressed="true"] { background: var(--de-navy); color: #fff; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: rgb(var(--de-navy-rgb) / .07); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--de-navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--de-navy);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--de-orange); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
/* Basmala: centred calligraphic line between two orange 8-point stars and fading rules.
   Never uppercase or letter-space Arabic, which would break the joined letters. */
.basmala-wrap {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 48px; direction: ltr; /* keeps the fading rules symmetric on the Arabic page */
}
.basmala-wrap::before, .basmala-wrap::after {
  content: ""; flex: 1; max-width: 160px; height: 2px; border-radius: 2px;
  background: linear-gradient(to right, transparent, rgb(var(--de-orange-rgb) / .7));
}
.basmala-wrap::after { background: linear-gradient(to left, transparent, rgb(var(--de-orange-rgb) / .7)); }
.basmala-orn { flex: none; width: 16px; height: 16px; fill: var(--de-orange); }
.basmala {
  margin: 0; text-align: center;
  font-family: "Amiri", "Cairo", serif; font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.9;
  color: var(--de-navy); letter-spacing: 0;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; text-wrap: balance; }
.mark {
  background-image: linear-gradient(transparent 62%, rgb(var(--de-orange-rgb) / .55) 62%, rgb(var(--de-orange-rgb) / .55) 90%, transparent 90%);
  padding-inline: 2px;
}
.lead { margin-top: 24px; font-size: 1.125rem; color: var(--color-text-muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 0.95rem; color: var(--color-text-muted); }
.hero-proof strong { color: var(--de-navy); }
.avatars { display: flex; }
.avatars span, .r-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--c); color: var(--t, #fff); border: 3px solid var(--de-cream);
  font-family: var(--font-heading); font-weight: 800; font-size: .85rem;
}
.avatars span + span { margin-inline-start: -10px; }

.hero-tiles {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas:
    "chat orange"
    "chat white"
    "navy online";
}
.tile { border-radius: var(--radius-lg); padding: 22px; position: relative; overflow: hidden; }
.tile-chat {
  grid-area: chat; background: var(--de-navy); padding: 26px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 260px;
}
.tile-chat::after { /* faint D bubble watermark, echoing the brand covers */
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -50px; width: 160px; height: 160px;
  border: 28px solid rgb(255 255 255 / .05); border-radius: 50%;
}
.bubble {
  position: relative; max-width: 88%; padding: 12px 16px; border-radius: 16px;
  font-weight: 500; font-size: 0.95rem; line-height: 1.4; z-index: 1;
}
.bubble-orange { background: var(--de-orange); color: var(--de-navy); border-end-start-radius: 4px; align-self: flex-start; }
.bubble-cream { background: var(--de-cream); color: var(--de-navy); border-end-end-radius: 4px; align-self: flex-end; }
.typing { display: flex; gap: 5px; padding: 12px 14px; background: rgb(255 255 255 / .1); border-radius: 14px; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--de-cream); opacity: .5; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.tile-stat { display: flex; align-items: center; gap: 14px; min-height: 120px; }
.tile-stat strong { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; line-height: 1; direction: ltr; }
.tile-stat span { font-weight: 500; line-height: 1.3; }
.tile-orange { grid-area: orange; background: var(--de-orange); color: var(--de-navy); }
.tile-white { grid-area: white; background: var(--de-white); box-shadow: var(--shadow); }
.tile-navy { grid-area: navy; background: var(--de-navy); color: #fff; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.tile-navy strong { color: var(--de-orange); }
/* ---- Animated hero cards ----
   .swap stacks its items in one spot and cross-fades between them. Cards 1 and 3 run on the
   same 8 s cycle (individual for the first half, group for the second) so they change together.
   With reduced motion nothing moves: the duration card lists both lengths and the
   people card shows the 1:1 state. */
.swap { display: grid; gap: 8px; }
.swap-item { display: flex; align-items: center; gap: 12px; }
.swap-item strong {
  font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; line-height: 1;
  direction: ltr; white-space: nowrap;
}
.swap-item span { font-weight: 500; line-height: 1.3; }

.tile-dur { display: flex; align-items: center; gap: 16px; min-height: 120px; }
/* label sits under the number here, so "1h30 group lesson" always fits the narrow card */
.tile-dur .swap { min-width: 0; }
.tile-dur .swap-item { flex-direction: column; align-items: flex-start; gap: 6px; }
.tile-dur .swap-item strong { font-size: clamp(2rem, 2.6vw, 2.4rem); }
@media (min-width: 921px) and (max-width: 1180px) {
  .tile-dur { gap: 12px; }
  .dur-clock { width: 36px; height: 36px; }
  .week { gap: 3px; }
  .week li { border-radius: 6px; font-size: .62rem; }
}
.dur-clock { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--de-navy); stroke-width: 3; stroke-linecap: round; }
.dur-clock .hub { fill: var(--de-navy); stroke: none; }
.dur-clock line { transform-box: view-box; transform-origin: 20px 20px; }
.hand-m { animation: spin 4s linear infinite; }
.hand-h { animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tile-week { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 120px; }
.week { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.week li {
  /* chips shrink evenly when the card is narrow, up to 26px each */
  flex: 1 1 0; min-width: 0; max-width: 26px; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 8px;
  background: var(--de-navy); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: .72rem;
  animation: day-sweep 4.2s ease-in-out infinite;
}
.week li.wknd { background: var(--de-orange); color: var(--de-navy); }
.week li:nth-child(2) { animation-delay: .3s; } .week li:nth-child(3) { animation-delay: .6s; }
.week li:nth-child(4) { animation-delay: .9s; } .week li:nth-child(5) { animation-delay: 1.2s; }
.week li:nth-child(6) { animation-delay: 1.5s; } .week li:nth-child(7) { animation-delay: 1.8s; }
@keyframes day-sweep { 0%, 20%, 100% { transform: none; } 10% { transform: translateY(-5px) scale(1.08); } }
.week-cap { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.dayparts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dp { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--color-text-muted); }
.dp svg { width: 20px; height: 20px; fill: none; stroke: var(--de-orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tile-people { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 120px; }
.people { display: flex; align-items: center; direction: ltr; }
.pp {
  display: grid; place-items: center; width: 30px; height: 30px; margin-left: -6px;
  border-radius: 50%; border: 2px solid var(--de-navy);
  background: var(--de-cream); color: var(--de-navy);
}
.pp svg { width: 17px; height: 17px; }
.pp-teacher { width: 40px; height: 40px; margin: 0 6px 0 0; border: 0; background: none; }
.pp-teacher img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgb(var(--de-orange-rgb) / .45)); }
.pp-g3 { background: var(--color-mist); color: #fff; }
.pp-g5 { background: var(--de-orange); color: var(--de-navy); }
.tile-people .swap-item span { color: #fff; }

/* Cards 1 and 3 are driven together by js/main.js, which sets on .hero-tiles:
   data-mode="ind" | "grp" and data-stage="1" | "3" | "5" (students shown).
   Without JS, or with reduced motion, .anim-on is never added and both states stay listed. */
.anim-on .swap > .swap-item { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.anim-on[data-mode="ind"] .dur-a, .anim-on[data-mode="ind"] .ppl-a,
.anim-on[data-mode="grp"] .dur-b, .anim-on[data-mode="grp"] .ppl-b { opacity: 1; transform: none; }
.anim-on .pp-g3, .anim-on .pp-g5 { opacity: 0; transform: scale(.3); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.anim-on[data-stage="3"] .pp-g3, .anim-on[data-stage="5"] .pp-g3, .anim-on[data-stage="5"] .pp-g5 { opacity: 1; transform: none; }
.pp-g3 + .pp-g3, .pp-g5 + .pp-g5 { transition-delay: .12s; }
/* both cards pulse at the same moment when the lesson type changes */
.tile.pulse { animation: card-pulse .55s var(--ease); }
@keyframes card-pulse { 35% { transform: scale(.95); } }

@media (prefers-reduced-motion: no-preference) {
  .dayparts > .dp { grid-area: 1 / 1; }
  .dayparts { display: grid; }
  .dp { animation: dp-cycle 9s var(--ease) infinite both; }
  .dp-2 { animation-delay: 3s; }
  .dp-3 { animation-delay: 6s; }
}
@keyframes dp-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-8px); }
}

.tile-online {
  grid-area: online; background: #DCE3EF; display: flex; flex-direction: column; gap: 12px; justify-content: center;
  font-weight: 500; line-height: 1.35;
}
.call { display: flex; gap: 8px; }
.call-cam {
  width: 64px; height: 50px; border-radius: 10px; background: var(--de-navy);
  display: grid; place-items: center; overflow: hidden;
}
.call-cam img { width: 40px; height: 40px; }
.call-you { background: var(--color-mist); color: #fff; font-size: .75rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--de-white); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; text-wrap: balance; }
.section-title.light { color: #fff; }
.center { text-align: center; }
.section-sub { margin: 16px auto 0; max-width: 56ch; color: var(--color-text-muted); font-size: 1.05rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }

/* Dark band */
.band-dark { background: var(--de-navy); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.who-item { text-align: center; }
.who-icon { width: 52px; height: 52px; margin: 0 auto 20px; }
.who-item p { color: rgb(255 255 255 / .86); max-width: 30ch; margin-inline: auto; }

/* What you get */
.get-grid {
  display: grid; gap: 18px; margin-top: 48px;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas: "tall orange" "tall plain";
}
.get-card { background: var(--de-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.get-card h3 { font-size: 1.25rem; font-weight: 700; margin: 18px 0 10px; }
.get-card p { color: var(--color-text-muted); }
.get-tall { grid-area: tall; background: var(--de-navy); color: #fff; display: flex; flex-direction: column; }
.get-tall p { color: rgb(255 255 255 / .82); }
.get-orange { grid-area: orange; background: var(--de-orange); }
.get-orange p { color: var(--de-navy); }
.get-card:nth-child(3) { grid-area: plain; }
.get-wide { flex-direction: row; align-items: center; gap: 56px; margin-top: 48px; padding: 48px; }
.get-wide-copy { flex: 1; max-width: 560px; }
/* Mini-lesson chat in the speaking card (9 s loop). Resting styles show the finished
   conversation, so with reduced motion it is a calm, complete picture. */
.convo-wrap { flex: 1; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.convo { display: flex; flex-direction: column; gap: 12px; direction: ltr; }

/* Level bar: A1 B1 B2 C1 chips + the current level's name */
.levels { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; direction: ltr; }
.levels ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.levels li {
  min-width: 40px; padding: 5px 0; border-radius: 8px; text-align: center;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: .8rem;
  background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .65);
  transition: background-color .3s, color .3s;
}
.levels li.on { background: var(--de-orange); color: var(--de-navy); }
.level-names { display: grid; }
.level-names span { grid-area: 1 / 1; opacity: 0; transition: opacity .3s; font-weight: 600; font-size: .9rem; color: var(--de-cream); }
.level-names span.on { opacity: 1; }

/* The four scenes share one spot. Without JS (or with motion off) only the A1 scene shows. */
.scenes { display: grid; }
.scene { grid-area: 1 / 1; }
.scenes:not(.on) .scene:not(:first-child) { display: none; }
.scenes.on .scene:not(.play) { visibility: hidden; }
.cv {
  position: relative; max-width: 92%; padding: 11px 15px; border-radius: 16px;
  font-size: .95rem; font-weight: 500; line-height: 1.4;
}
.cv-student { align-self: flex-end; background: var(--de-orange); color: var(--de-navy); border-bottom-right-radius: 4px; }
.cv-row { display: flex; align-items: flex-end; gap: 10px; }
.cv-avatar { flex: none; width: 34px; height: 34px; }
.cv-teacher { background: var(--de-cream); color: var(--de-navy); border-bottom-left-radius: 4px; }
.cv-3 { display: inline-flex; align-items: center; gap: 8px; }
.cv-3 svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--de-navy); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cv-wrong { position: relative; text-decoration: none; opacity: .55; }
.cv-wrong::after { /* the crossing-out line, drawn in during the animation */
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; border-radius: 2px;
  background: #C0392B; transform-origin: left;
}
.cv-right { color: #C2410C; font-weight: 800; display: inline-block; }
.cv-dots { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; opacity: 0; }
.cv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--de-navy); opacity: .5; animation: typing 1.2s infinite; }
.cv-dots i:nth-child(2) { animation-delay: .15s; }
.cv-dots i:nth-child(3) { animation-delay: .3s; }

/* Each scene plays once (8 s) when js/main.js gives it .play; it then hands over to the next level */
.scenes.on .play .cv-1 { animation: cv-1 8s var(--ease) both; }
.scenes.on .play .cv-row { animation: cv-2 8s var(--ease) both; }
.scenes.on .play .cv-dots { animation: cv-dots 8s linear both; }
.scenes.on .play .cv-text { animation: cv-text 8s linear both; }
.scenes.on .play .cv-wrong::after { animation: cv-strike 8s var(--ease) both; }
.scenes.on .play .cv-right { animation: cv-right 8s var(--ease) both; }
.scenes.on .play .cv-3 { animation: cv-3 8s var(--ease) both; }
@keyframes cv-1 { 0% { opacity: 0; transform: translateY(10px); } 4%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cv-2 { 0%, 11% { opacity: 0; transform: translateY(10px); } 15%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cv-dots { 0%, 15% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes cv-text { 0%, 27% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes cv-strike { 0%, 36% { transform: scaleX(0); } 41%, 100% { transform: scaleX(1); } }
@keyframes cv-right { 0%, 41% { opacity: 0; transform: scale(.4); } 46% { opacity: 1; transform: scale(1.18); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes cv-3 { 0%, 56% { opacity: 0; transform: translateY(10px); } 60%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.get-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--de-cream);
}
.get-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--de-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.get-tall .get-icon { background: var(--de-orange); }
.wave { display: flex; align-items: center; gap: 6px; height: 80px; margin-top: auto; padding-top: 28px; }
.wave i { flex: 1; border-radius: 6px; background: var(--de-orange); height: var(--h, 30%); opacity: .9; animation: wave 1.6s ease-in-out infinite; }
.wave i:nth-child(odd) { background: var(--de-cream); }
.wave i:nth-child(1) { --h: 30%; } .wave i:nth-child(2) { --h: 65%; animation-delay: .1s; }
.wave i:nth-child(3) { --h: 90%; animation-delay: .2s; } .wave i:nth-child(4) { --h: 50%; animation-delay: .3s; }
.wave i:nth-child(5) { --h: 75%; animation-delay: .4s; } .wave i:nth-child(6) { --h: 40%; animation-delay: .5s; }
.wave i:nth-child(7) { --h: 85%; animation-delay: .6s; } .wave i:nth-child(8) { --h: 55%; animation-delay: .7s; }
.wave i:nth-child(9) { --h: 95%; animation-delay: .8s; } .wave i:nth-child(10) { --h: 45%; animation-delay: .9s; }
.wave i:nth-child(11) { --h: 70%; animation-delay: 1s; } .wave i:nth-child(12) { --h: 35%; animation-delay: 1.1s; }
@keyframes wave { 50% { transform: scaleY(.55); } }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.course-card {
  background: var(--de-cream); border-radius: var(--radius); padding: 28px;
  border: 1px solid transparent; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--color-line); box-shadow: var(--shadow); }
.course-card h3 { font-size: 1.2rem; font-weight: 700; margin: 16px 0 10px; }
.course-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--de-navy); color: #fff; font-size: .75rem; font-weight: 600;
}

/* Lesson platforms panel (under the course cards) */
.platforms {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 18px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--de-navy); color: #fff;
}
.platforms-text { flex: 1 1 320px; }
.platforms h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.platforms p { color: rgb(255 255 255 / .8); font-size: .95rem; max-width: 52ch; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platform-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--de-cream); color: var(--de-navy);
  font-weight: 600; font-size: .92rem;
}
.platform-chips svg { width: 20px; height: 20px; color: var(--de-orange); fill: currentColor; }
.platform-chips .ico-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.platform-chips .chip-more { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); }

/* Pricing */
/* Category tabs */
.price-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-width: 620px; margin: 0 auto; padding: 6px;
  background: var(--de-white); border-radius: 22px; box-shadow: var(--shadow);
}
.price-tab {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px;
  border: 0; border-radius: 16px; background: transparent; color: var(--de-navy);
  font: inherit; text-align: start; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s;
}
.price-tab:hover { background: rgb(var(--de-navy-rgb) / .05); }
.price-tab svg {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--de-cream); fill: none; stroke: var(--de-navy); stroke-width: 2; stroke-linecap: round;
  transition: background-color .25s;
}
.price-tab-text { display: flex; flex-direction: column; line-height: 1.25; }
.price-tab strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.price-tab small { font-size: .85rem; opacity: .8; margin-top: 2px; }
.price-tab[aria-selected="true"] { background: var(--de-navy); color: #fff; }
.price-tab[aria-selected="true"] svg { background: var(--de-orange); }
.price-tab[aria-selected="true"] small { opacity: .85; }

.price-panel { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel-note { text-align: center; margin-top: 28px; font-weight: 600; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-inline: auto; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--de-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.price-featured { border-color: var(--de-navy); }
.price-card h3 { font-size: 1.15rem; font-weight: 700; }
.price { margin-top: 18px; font-family: var(--font-heading); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.price .cur { font-size: 1.1rem; }
.price .per { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--color-text-muted); margin-inline-start: 6px; }
.num { font-variant-numeric: tabular-nums; }
.pack { margin-top: 10px; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--color-text-muted); font-size: 0.95rem; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--de-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F77036' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pay-note { margin-top: 28px; color: var(--color-text-muted); font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
/* Animated logo scene. Every element is fully visible in its resting style,
   so with reduced motion it shows as a calm, complete picture. */
.logo-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 46%, rgb(var(--de-orange-rgb) / .18), transparent 55%),
    var(--de-navy);
}
.logo-stage::before { /* big faint ring, echoing the brand cover artwork */
  content: ""; position: absolute; left: -90px; top: -70px; width: 300px; height: 300px;
  border: 46px solid rgb(255 255 255 / .04); border-radius: 50%;
}
.stage-ring {
  position: absolute; inset: 0; margin: auto; width: 62%; aspect-ratio: 1;
  border: 2px solid rgb(var(--de-orange-rgb) / .35); border-radius: 50%;
  opacity: .5;
  animation: stage-ring 4.2s cubic-bezier(.2, .6, .3, 1) infinite both;
}
.stage-ring:nth-child(2) { animation-delay: 1.4s; }
.stage-ring:nth-child(3) { animation-delay: 2.8s; }
@keyframes stage-ring {
  0% { transform: scale(.55); opacity: .7; }
  100% { transform: scale(1.45); opacity: 0; }
}
.stage-icon {
  position: relative; z-index: 2; width: 46%; max-width: 210px; height: auto;
  filter: drop-shadow(0 22px 40px rgb(var(--de-orange-rgb) / .35));
  animation: stage-float 4.5s ease-in-out infinite;
}
@keyframes stage-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

.stage-chat {
  position: absolute; z-index: 3;
  padding: 10px 16px; border-radius: 16px;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5);
  animation: stage-chat 8s var(--ease) infinite both;
}
.stage-chat[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 1.15rem; }
.chat-orange { background: var(--de-orange); color: var(--de-navy); }
.chat-cream { background: var(--de-cream); color: var(--de-navy); }
.chat-1 { top: 11%; left: 8%; border-bottom-left-radius: 4px; }
.chat-2 { top: 22%; right: 7%; border-bottom-right-radius: 4px; animation-delay: 2s; }
.chat-3 { bottom: 29%; left: 7%; border-top-left-radius: 4px; animation-delay: 4s; }
.chat-4 { bottom: 19%; right: 8%; border-top-right-radius: 4px; animation-delay: 6s; }
@keyframes stage-chat {
  0% { opacity: 0; transform: translateY(10px) scale(.7); }
  6%, 38% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: translateY(-8px) scale(.92); }
}

.stage-star { position: absolute; z-index: 1; fill: var(--de-orange); animation: stage-twinkle 3.2s ease-in-out infinite; }
.star-1 { width: 18px; height: 18px; top: 8%; right: 22%; }
.star-2 { width: 12px; height: 12px; top: 44%; left: 10%; fill: var(--de-cream); animation-delay: 1s; }
.star-3 { width: 15px; height: 15px; bottom: 34%; right: 14%; animation-delay: 2s; }
@keyframes stage-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.55) rotate(45deg); opacity: .5; }
}

.stage-wave {
  position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; height: 40px; direction: ltr;
}
.stage-wave i {
  width: 7px; height: var(--h, 50%); border-radius: 4px; background: var(--de-orange);
  animation: wave 1.4s ease-in-out infinite;
}
.stage-wave i:nth-child(even) { background: var(--de-cream); }
.stage-wave i:nth-child(1) { --h: 35%; } .stage-wave i:nth-child(2) { --h: 70%; animation-delay: .1s; }
.stage-wave i:nth-child(3) { --h: 100%; animation-delay: .2s; } .stage-wave i:nth-child(4) { --h: 55%; animation-delay: .3s; }
.stage-wave i:nth-child(5) { --h: 85%; animation-delay: .4s; } .stage-wave i:nth-child(6) { --h: 45%; animation-delay: .5s; }
.stage-wave i:nth-child(7) { --h: 90%; animation-delay: .6s; } .stage-wave i:nth-child(8) { --h: 60%; animation-delay: .7s; }
.stage-wave i:nth-child(9) { --h: 30%; animation-delay: .8s; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy p + p { margin-top: 14px; }
.about-copy p { color: var(--color-text-muted); font-size: 1.05rem; max-width: 60ch; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 0; max-width: 420px; }
.about-stats div { background: var(--de-cream); border-radius: var(--radius); padding: 20px; }
.about-stats dt { font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem; direction: ltr; text-align: start; }
html[dir="rtl"] .about-stats dt { text-align: end; }
.about-stats dd { margin: 4px 0 0; font-size: .9rem; color: var(--color-text-muted); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.review { margin: 0; background: var(--color-navy-2); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 24px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: rgb(255 255 255 / .92); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; }
.review small { color: rgb(255 255 255 / .7); font-size: .85rem; }
.r-avatar { border-color: var(--color-navy-2); width: 44px; height: 44px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside p { margin: 16px 0 24px; color: var(--color-text-muted); }
.faq-list { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 1.05rem; min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--de-navy);
  background:
    linear-gradient(var(--de-navy), var(--de-navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--de-navy), var(--de-navy)) center / 2px 12px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg); background-color: var(--de-orange); border-color: var(--de-orange);
}
.faq-item p { padding: 0 0 22px; padding-inline-end: 44px; color: var(--color-text-muted); }

/* Trial form */
.trial-section { padding-top: 24px; }
.trial-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  background: var(--de-orange); border-radius: 36px; padding: 56px;
  position: relative; overflow: hidden;
}
.trial-card::before { /* big brand-D ring, like the cover artwork */
  content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 420px; height: 420px;
  border: 70px solid rgb(var(--de-navy-rgb) / .07); border-radius: 50%;
}
.trial-form-wrap, .trial-preview { position: relative; }
.trial-sub { margin: 12px 0 28px; font-size: 1.05rem; }
#trial-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--de-navy);
  background: var(--de-white); border: 2px solid transparent; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background: var(--de-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302193F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
html[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--de-navy); box-shadow: 0 0 0 4px rgb(var(--de-navy-rgb) / .15); }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.err { margin-top: 6px; font-size: .875rem; font-weight: 600; color: #7A0F0A; display: flex; gap: 6px; align-items: center; }
.err[hidden] { display: none; }
.err::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #7A0F0A; color: #fff; font-size: .75rem; }
.btn-wa { margin-top: 6px; }
.form-note { font-size: .85rem; color: rgb(var(--de-navy-rgb) / .85); }

.phone {
  width: min(320px, 100%); margin-inline: auto;
  background: var(--de-cream); border-radius: 32px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgb(var(--de-navy-rgb) / .45);
  border: 6px solid var(--de-navy);
}
.phone-top { display: flex; align-items: center; gap: 10px; background: var(--de-navy); color: #fff; border-radius: 22px 22px 10px 10px; padding: 12px 14px; }
.phone-top img { width: 36px; height: 36px; border-radius: 10px; }
.phone-top div { display: flex; flex-direction: column; line-height: 1.2; }
.phone-top small { color: var(--de-orange); font-size: .75rem; }
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 8px 22px; min-height: 260px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 1px rgb(var(--de-navy-rgb) / .08); }
.msg-out { align-self: flex-end; background: #DCF8C6; border-end-end-radius: 4px; }
.msg-in { align-self: flex-start; background: var(--de-white); border-end-start-radius: 4px; }

/* Footer */
.site-footer { background: var(--de-navy); color: rgb(255 255 255 / .82); padding: 72px 0 0; }
/* Link and contact columns size to their content, so the email address never wraps */
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 40px 80px; }
.footer-logo { width: 168px; height: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3em; margin-bottom: 16px; }
html[lang="ar"] .site-footer h3 { letter-spacing: 0; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer ul a:hover { color: var(--de-orange); }
.contact-list { gap: 10px !important; }
.site-footer .contact-list a { display: flex; align-items: center; gap: 12px; padding: 4px 0; min-height: 48px; }
.contact-list a > svg {
  flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px;
  background: rgb(255 255 255 / .08); color: var(--de-orange);
  transition: background-color .2s, color .2s;
}
.contact-list a:hover > svg { background: var(--de-orange); color: var(--de-navy); }
.contact-list a > span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; white-space: nowrap; }
.contact-list small { font-size: .78rem; color: rgb(255 255 255 / .6); }
html[dir="rtl"] .contact-list span[dir="ltr"] { text-align: right; }

.socials { display: flex !important; gap: 10px !important; margin-top: 6px !important; }
.site-footer .socials a {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.site-footer .socials a:hover { background: var(--de-orange); color: var(--de-navy); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .875rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Scroll reveal (only when JS has run and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
}

@media (max-width: 920px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; inset-inline: 0;
    background: var(--de-cream); border-bottom: 1px solid var(--color-line);
    box-shadow: 0 20px 30px -20px rgb(var(--de-navy-rgb) / .4);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }

  .hero { padding: 32px 0 64px; }
  .hero-grid, .about-grid, .faq-grid, .trial-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .faq-aside { position: static; }
  .faq-grid, .about-grid { gap: 40px; }
  .about-photo { max-width: 420px; }
  .trial-card { padding: 40px 28px; gap: 40px; }
  .get-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "tall tall" "orange plain"; }
  .who-grid, .price-grid, .price-grid-2 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .who-grid { gap: 36px; }
  .footer-grid { grid-template-columns: auto 1fr; gap: 40px 64px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .band-dark { padding: 72px 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand img { width: 128px; }
  .header-inner { height: 68px; gap: 12px; }
  .main-nav { top: 68px; }
  .lang-switch button { min-width: 32px; padding: 0 6px; }
  .header-actions { gap: 8px; }
  .brand img { width: 112px; }
  .theme-toggle { width: 40px; height: 40px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero-tiles { grid-template-columns: 1fr 1fr; grid-template-areas: "chat chat" "orange navy" "white white" "online online"; }
  .tile { padding: 18px; }
  .tile-chat { min-height: 0; }
  .tile-dur, .tile-week, .tile-people { min-height: 0; }
  .tile-dur { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dur-clock { width: 34px; height: 34px; }
  .swap-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .swap-item strong { font-size: 2rem; }
  .swap-item span { font-size: .9rem; }
  .pp { width: 24px; height: 24px; margin-left: -5px; }
  .pp svg { width: 14px; height: 14px; }
  .pp-teacher, .pp-teacher img { width: 32px; height: 32px; }
  .pp-teacher { margin: 0 4px 0 0; }
  .hero-ctas .btn { width: 100%; }
  .get-grid { grid-template-columns: 1fr; grid-template-areas: "tall" "orange" "plain"; }
  .get-card { padding: 26px; }
  .course-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .platforms { padding: 24px 20px; }
  .basmala-wrap { gap: 10px; margin-bottom: 28px; }
  .basmala-wrap::before, .basmala-wrap::after { display: none; }
  .basmala-orn { width: 12px; height: 12px; }
  .basmala { font-size: 5.6vw; } /* keeps it on one line on phones */
  .price-tab { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 8px; }
  .price-tab svg { width: 38px; height: 38px; padding: 8px; }
  .price-tab strong { font-size: .95rem; }
  .price-tab small { font-size: .78rem; }
  .about-stats { gap: 8px; }
  .get-wide { flex-direction: column; align-items: stretch; gap: 28px; padding: 26px; }
  .convo-wrap { max-width: none; }
  .cv { font-size: .9rem; }
  .about-stats div { padding: 14px 10px; }
  .about-stats dt { font-size: 1.3rem; }
  .stage-chat { font-size: .9rem; padding: 8px 13px; }
  .stage-chat[lang="ar"] { font-size: 1rem; }
  .trial-card { padding: 32px 20px; border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list a > span { white-space: normal; overflow-wrap: anywhere; } /* only on very narrow phones */
  .wa-float { width: 56px; height: 56px; inset-inline-end: 16px; bottom: 16px; }
}

/* ---------- Theme toggle (moon / sun) ---------- */
.theme-toggle {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: rgb(var(--de-navy-rgb) / .07); color: var(--de-navy);
  cursor: pointer; transition: background-color .2s, color .2s;
}
.theme-toggle:hover { background: rgb(var(--de-navy-rgb) / .12); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun, .logo-dark { display: none; }

/* ==========================================================
   Night mode. Uses the brand's own "reverse on navy" look:
   Dan Navy page, lighter navy cards, deep-navy feature cards with a thin outline,
   cream text, orange buttons (orange on navy passes contrast, 6:1).
   ========================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #02193F;
  --color-surface: #0C2A5C;
  --color-deep: #00102B;
  --color-tint: #031D48;
  --color-text: #F9F4F0;
  --color-text-muted: rgb(249 244 240 / .74);
  --color-line: rgb(255 255 255 / .12);
  --outline: inset 0 0 0 1px rgb(255 255 255 / .09);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .55);
}
[data-theme="dark"] .theme-toggle { background: rgb(255 255 255 / .08); color: var(--de-cream); }
[data-theme="dark"] .theme-toggle:hover { background: rgb(255 255 255 / .14); }
[data-theme="dark"] .theme-toggle .ico-moon, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun, [data-theme="dark"] .logo-dark { display: block; }

/* header */
[data-theme="dark"] .site-header { background: rgb(2 25 63 / .88); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 20px -12px rgb(0 0 0 / .6); }
[data-theme="dark"] .main-nav a:hover { background: rgb(255 255 255 / .08); }
[data-theme="dark"] .lang-switch { background: rgb(255 255 255 / .08); }
[data-theme="dark"] .lang-switch button { color: var(--de-cream); }
[data-theme="dark"] .lang-switch button[aria-pressed="true"] { background: var(--de-orange); color: var(--de-navy); }
[data-theme="dark"] .menu-toggle { background: rgb(255 255 255 / .08); }
[data-theme="dark"] .menu-toggle span { background: var(--de-cream); }

/* buttons */
[data-theme="dark"] .btn-dark { background: var(--de-orange); color: var(--de-navy); }
[data-theme="dark"] .btn-dark:hover { background: #ff8450; box-shadow: 0 8px 20px -8px rgb(var(--de-orange-rgb) / .5); }
[data-theme="dark"] .btn-ghost { color: var(--de-cream); border-color: rgb(249 244 240 / .6); }
[data-theme="dark"] .btn-ghost:hover { background: var(--de-cream); color: var(--de-navy); border-color: var(--de-cream); }

/* hero */
[data-theme="dark"] .basmala, [data-theme="dark"] .eyebrow { color: var(--de-cream); }
[data-theme="dark"] .tile-chat, [data-theme="dark"] .tile-navy { background: var(--color-deep); box-shadow: var(--outline); }
[data-theme="dark"] .tile-white { background: var(--color-surface); }
[data-theme="dark"] .week li { background: var(--color-bg); }
[data-theme="dark"] .week li.wknd { background: var(--de-orange); }
[data-theme="dark"] .tile-online { background: #1B3A70; color: var(--de-cream); }
[data-theme="dark"] .call-cam { background: var(--color-deep); }
[data-theme="dark"] .call-you { background: var(--color-mist); }
[data-theme="dark"] .pp { border-color: var(--color-deep); }

/* sections and cards */
[data-theme="dark"] .section-tint { background: var(--color-tint); }
[data-theme="dark"] .get-tall, [data-theme="dark"] .platforms, [data-theme="dark"] .logo-stage { background-color: var(--color-deep); box-shadow: var(--outline); }
[data-theme="dark"] .logo-stage {
  background: radial-gradient(circle at 50% 46%, rgb(var(--de-orange-rgb) / .2), transparent 55%), var(--color-deep);
}
[data-theme="dark"] .course-card { background: var(--color-surface); }
[data-theme="dark"] .tag { background: var(--color-bg); }
[data-theme="dark"] .price-tabs, [data-theme="dark"] .price-card { background: var(--color-surface); }
[data-theme="dark"] .price-tab { color: var(--de-cream); }
[data-theme="dark"] .price-tab:hover { background: rgb(255 255 255 / .06); }
[data-theme="dark"] .price-tab svg { background: rgb(255 255 255 / .1); stroke: var(--de-cream); }
[data-theme="dark"] .price-tab[aria-selected="true"] { background: var(--de-orange); color: var(--de-navy); }
[data-theme="dark"] .price-tab[aria-selected="true"] svg { background: var(--de-navy); stroke: var(--de-cream); }
[data-theme="dark"] .price-featured { border-color: var(--de-orange); }
[data-theme="dark"] .checks li::before { background-color: var(--color-bg); }
[data-theme="dark"] .faq-item summary::after {
  border-color: var(--de-cream);
  background:
    linear-gradient(var(--de-cream), var(--de-cream)) center / 12px 2px no-repeat,
    linear-gradient(var(--de-cream), var(--de-cream)) center / 2px 12px no-repeat;
}
[data-theme="dark"] .faq-item[open] summary::after {
  border-color: var(--de-orange);
  background:
    linear-gradient(var(--de-navy), var(--de-navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--de-navy), var(--de-navy)) center / 2px 12px no-repeat,
    var(--de-orange);
}

/* booking card stays orange in both themes, so its text and button keep their day colours */
[data-theme="dark"] .trial-card, [data-theme="dark"] .phone { color: var(--de-navy); }
[data-theme="dark"] .trial-card .btn-dark { background: var(--de-navy); color: #fff; }
[data-theme="dark"] .trial-card .btn-dark:hover { background: var(--color-navy-2); box-shadow: 0 8px 20px -8px rgb(var(--de-navy-rgb) / .6); }

/* footer */
[data-theme="dark"] .site-footer { background: var(--color-deep); box-shadow: 0 -1px 0 rgb(255 255 255 / .08); }

@media (max-width: 920px) {
  [data-theme="dark"] .main-nav { background: var(--color-bg); box-shadow: 0 20px 30px -20px rgb(0 0 0 / .6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
