/* ==========================================================
   Enas Fahmy — French lessons
   Style: playful 3D (bold red hero, clay icons, bubbly cards)
   ========================================================== */

:root {
  --red: #e8323f;
  --red-deep: #c81e2c;
  --blue: #2f5bff;
  --yellow: #ffd23f;
  --pink: #ffb3c7;
  --mint: #9ee6c4;
  --lilac: #c9b8ff;
  --cream: #fff7ec;
  --ink: #17132b;
  --ink-soft: #4b4565;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;

  --r: 28px;
  --shadow: 6px 6px 0 var(--ink);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.03em; line-height: .95; }

/* color helpers */
.c-yellow { background: var(--yellow); }
.c-blue   { background: var(--blue); color: #fff; }
.c-red    { background: var(--red); color: #fff; }
.c-pink   { background: var(--pink); }
.c-mint   { background: var(--mint); }
.c-lilac  { background: var(--lilac); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 700 16px/1 var(--sans);
  padding: 17px 28px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 rgba(23,19,43,.25); }
.btn-ink:hover { box-shadow: 6px 6px 0 rgba(23,19,43,.25); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; transform: none; background: rgba(23,19,43,.05); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 28px));
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s, border-color .35s;
  border: 2.5px solid transparent;
}
.nav.scrolled { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; font: 800 26px/1 var(--display); letter-spacing: -.04em; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px currentColor; }
.brand-fr { opacity: .55; }
.nav-links { display: flex; gap: 8px; font-weight: 500; font-size: 15px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,.18); }
.nav.scrolled .nav-links a:hover { background: rgba(23,19,43,.07); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 75% 45%, #ff5a62 0%, transparent 45%),
    var(--red);
  color: #fff;
  overflow: hidden;
  padding: 120px 24px 0;
  border-radius: 0 0 48px 48px;
}
.hero::before { /* dotted texture */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: 20px;
}
.hero-copy { align-self: center; padding-bottom: 40px; }

.chat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 26px; }
.bubble {
  margin: 0;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15.5px;
}

.hero-title { font-size: clamp(54px, min(6.6vw, 11.5vh), 104px); font-weight: 800; }
.hero-title .word {
  display: block;
  opacity: 0;
  transform: translateY(40px) rotate(-3deg);
  animation: wordIn .9s var(--bounce) forwards;
  animation-delay: var(--d);
}
@keyframes wordIn { to { opacity: 1; transform: none; } }
.scribble {
  position: relative;
  font-family: var(--hand);
  font-size: 1.2em;
  color: var(--yellow);
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-6deg);
}
.scribble::after { /* hand-drawn underline */
  content: "";
  position: absolute; left: -4%; right: -4%; bottom: .02em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 2, 197 10' stroke='%23ffd23f' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; max-width: 560px; }
.chip {
  font-size: 14.5px; font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: transform .25s var(--bounce);
}
.chip:hover { transform: translateY(-3px) rotate(-2deg); }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-proof { font-size: 15px; opacity: .9; }

.pop { opacity: 0; transform: scale(.8) translateY(10px); animation: popIn .6s var(--bounce) forwards; animation-delay: var(--d, 0s); transform-origin: left bottom; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* character */
.hero-art { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.halo {
  position: absolute;
  bottom: 8%; left: 50%;
  width: 78%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 26px rgba(255,210,63,.25), 0 0 0 54px rgba(255,210,63,.12);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.04); } }
.teacher {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 96px);
  filter: drop-shadow(0 30px 40px rgba(110, 0, 10, .35));
  transform-origin: 50% 100%;
  opacity: 0;
  animation: teacherIn 1.1s var(--bounce) .3s forwards, sway 6s ease-in-out 1.6s infinite;
}
@keyframes teacherIn { from { opacity: 0; transform: translateY(80px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sway { 50% { transform: rotate(1.4deg) translateY(-6px); } }

.float {
  position: absolute;
  filter: drop-shadow(0 16px 18px rgba(110, 0, 10, .3));
  animation: bob 4s ease-in-out infinite;
  will-change: transform;
}
.f1 { width: 150px; left: -4%; top: 56%; animation-delay: -1s; }
.f2 { width: 92px;  right: -2%; top: 38%; animation-delay: -2.2s; --rot: 8deg; }
.f3 { width: 120px; right: 2%; bottom: 8%; animation-delay: -.4s; --rot: -10deg; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, -6deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--rot, -6deg) * -1)); }
}

.teacher-wrap { position: relative; display: flex; max-width: 100%; }
/* Bubble is pinned to the photo itself (right of her face) with a fixed
   width, so typing never grows it back over her. */
.say {
  position: absolute;
  top: 5%; left: 67%;
  min-width: 172px;
  padding: 14px 20px;
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  color: var(--ink);
  font: 700 19px/1 var(--display);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}
.typed { display: block; min-height: 1em; margin-top: 6px; color: var(--red); }
.typed::after { content: "|"; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Band ---------- */
.band {
  position: relative;
  z-index: 2;
  margin: -28px -20px 0;
  padding: 18px 0;
  background: var(--yellow);
  border-block: 3px solid var(--ink);
  transform: rotate(-2deg);
  overflow: hidden;
}
.band-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: slide 26s linear infinite;
  font: 800 34px/1 var(--display);
  letter-spacing: -.03em;
  white-space: nowrap;
}
.band-track i { font-style: normal; color: var(--red); font-size: 26px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(44px, 6vw, 78px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--ink-soft); margin: 18px 0 0; line-height: 1.55; }
.kicker {
  display: inline-block;
  font: 600 30px/1 var(--hand);
  color: var(--red);
  transform: rotate(-4deg);
  margin-bottom: 14px;
}
.kicker-light { color: var(--yellow); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 110px; padding-bottom: 20px; }
.why-card {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--r);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform .35s var(--bounce);
}
.why-card:hover { transform: translateY(-6px) rotate(-1deg); }
.why-card img { width: 96px; margin: -60px 0 14px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.15)); transition: transform .4s var(--bounce); }
.why-card:hover img { transform: scale(1.12) rotate(-8deg); }
.why-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .85; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: visible;
  transition: transform .35s var(--bounce), box-shadow .35s var(--bounce);
}
.course:hover { transform: translate(-4px, -6px); box-shadow: 10px 12px 0 var(--ink); }
.lvl {
  align-self: flex-start;
  font: 800 15px/1 var(--display);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.course-icon {
  position: absolute;
  top: -52px; right: 16px;
  height: 118px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.18));
  transition: transform .45s var(--bounce);
}
.course:hover .course-icon { transform: translateY(-10px) rotate(-10deg) scale(1.08); }
.course h3 { font-size: 34px; font-weight: 800; margin: 46px 0 10px; padding-right: 40px; }
.course p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; opacity: .85; }
.course ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.course li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); font-size: 12px; font-weight: 700; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.price small { font: 500 14px var(--sans); opacity: .7; letter-spacing: 0; }
.badge {
  position: absolute; top: -16px; left: 22px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}
.c-red .lvl, .c-blue .lvl { border-color: transparent; }

/* ---------- How ---------- */
.how {
  background: var(--blue);
  color: #fff;
  border-radius: 48px;
  margin: 0 14px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}
.how .section { padding-bottom: 0; position: relative; }
.how .section-head { margin-bottom: 50px; }
.steps { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  padding: 30px;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
}
.step:nth-child(2) { transform: rotate(1.5deg); }
.step:nth-child(2).in { transform: rotate(1.5deg); }
.num {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  font: 800 30px/1 var(--display);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  margin-bottom: 20px;
}
.step:nth-child(2) .num { background: var(--pink); }
.step:nth-child(3) .num { background: var(--mint); }
.step h3 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.step p { margin: 0; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  position: relative;
  margin: 0 0 22px;
  padding: 28px;
  border-radius: var(--r) var(--r) var(--r) 8px;
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
}
.review::after { /* speech-bubble tail */
  content: "";
  position: absolute; left: 34px; bottom: -22px;
  width: 26px; height: 22px;
  background: #fff;
  border: 2.5px solid var(--ink); border-top: 0; border-right: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: skewX(-10deg);
}
.stars { color: #ffb400; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 22px; font: 500 21px/1.35 var(--display); letter-spacing: -.01em; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption small { display: block; color: var(--ink-soft); font-size: 13px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); border: 2px solid var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  border-radius: 22px;
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: background .3s;
}
.faq details[open] { background: var(--yellow); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 24px;
  font: 700 21px/1.25 var(--display);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 22px/1 var(--sans);
  background: var(--ink); color: #fff;
  transition: transform .35s var(--bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 24px 22px; line-height: 1.6; font-size: 16.5px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  margin: 0 14px;
  padding: 130px 24px;
  border-radius: 48px;
  background: var(--red);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}
.cta h2 { position: relative; font-size: clamp(64px, 11vw, 160px); font-weight: 800; }
.cta p { position: relative; font-size: 20px; margin: 18px 0 34px; }
.cta .btn { position: relative; }
.cta-icon { position: absolute; filter: drop-shadow(0 14px 16px rgba(110,0,10,.35)); animation: bob 4.5s ease-in-out infinite; }
.ci1 { width: 170px; left: 6%; top: 18%; }
.ci2 { width: 140px; right: 7%; top: 12%; animation-delay: -1.5s; --rot: 8deg; }
.ci3 { width: 100px; right: 16%; bottom: 10%; animation-delay: -3s; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1200px; margin: 0 auto;
  padding: 50px 24px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 500; }
.footer nav a:hover { color: var(--red); }
.footer small { width: 100%; color: var(--ink-soft); padding-top: 22px; border-top: 2px dashed rgba(23,19,43,.2); }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: #25d366;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--bounce);
}
.wa:hover { transform: scale(1.1) rotate(-10deg); }

/* ---------- Checkout ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23,19,43,.55); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 32px); overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 32px;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0; transform: scale(.85) rotate(-2deg);
  transition: opacity .3s, transform .5s var(--bounce);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
.co-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.co-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display); border: 2px solid var(--ink); background: #fff; transition: background .3s; }
.co-steps span.active { background: var(--yellow); }
.co-steps i { height: 2.5px; width: 28px; background: var(--ink); border-radius: 2px; }
.co-panel { display: none; }
.co-panel.active { display: block; animation: popIn .45s var(--bounce); }
.co-panel h3 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.co-price { margin: 0 0 20px; color: var(--ink-soft); }
.co-price b { font: 800 26px var(--display); color: var(--ink); }
.co-panel label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.co-panel input:not([type=radio]) {
  display: block; width: 100%; margin-top: 6px;
  padding: 14px 16px;
  font: 16px var(--sans); color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  outline: none;
  transition: box-shadow .2s;
}
.co-panel input:focus { box-shadow: 3px 3px 0 var(--ink); }
.co-panel .btn-block { margin-top: 8px; }
.pay-options { display: grid; gap: 10px; margin: 20px 0; }
.pay { margin: 0 !important; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay span {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 18px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 16px; font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s var(--bounce);
}
.pay small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.pay input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.co-actions { display: flex; gap: 10px; }
.co-actions .btn-ink { flex: 1; }
.secure { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.co-done { text-align: center; }
.done-icon { width: 130px; margin: 0 auto 10px; animation: popIn .7s var(--bounce); }
.co-done p { color: var(--ink-soft); line-height: 1.55; margin: 10px 0 24px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .7s var(--ease), transform .8s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: start; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .course-grid, .review-grid { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .why { grid-template-columns: 1fr; row-gap: 60px; max-width: 560px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step:nth-child(2), .step:nth-child(2).in { transform: none; }
}
@media (max-width: 640px) {
  .section { padding: 90px 18px; }
  .hero { padding: 100px 18px 0; border-radius: 0 0 32px 32px; }
  .nav { padding-inline-start: 16px; }
  .nav-actions .btn { display: none; } /* keep the language toggle; the hero CTA is right below */
  .hero-title { font-size: 52px; }
  .chips { margin: 22px 0; }
  .f1 { width: 100px; } .f2 { width: 64px; } .f3 { width: 84px; }
  .say { font-size: 15px; top: 4%; left: 66%; min-width: 120px; padding: 10px 12px; }
  .band-track { font-size: 26px; }
  .course-grid, .review-grid { grid-template-columns: 1fr; }
  .how, .cta { margin: 0 8px; border-radius: 32px; }
  .cta { padding: 110px 18px; }
  .ci1 { width: 100px; left: 2%; top: 6%; } .ci2 { width: 86px; right: 2%; top: 4%; } .ci3 { width: 70px; right: 8%; bottom: 4%; }
  .faq summary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Language toggle ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 700 13px/1 var(--sans);
}
.lang-toggle span { padding: 7px 10px; border-radius: 999px; transition: background .25s, color .25s; }
.lang-toggle .lang-ar { font-family: "Cairo", sans-serif; }
html:not([lang=ar]) .lang-en,
html[lang=ar] .lang-ar { background: var(--yellow); color: var(--ink); }

/* ---------- Arabic / RTL ---------- */
html[lang=ar] {
  --display: "Cairo", system-ui, sans-serif;
  --sans: "Cairo", system-ui, sans-serif;
  --hand: "Cairo", system-ui, sans-serif;
}
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3,
html[lang=ar] .brand, html[lang=ar] .price, html[lang=ar] .review blockquote {
  letter-spacing: 0; /* tracking breaks Arabic letter joining */
}
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { line-height: 1.25; font-weight: 900; }
html[lang=ar] .hero-title { font-size: clamp(44px, min(5.4vw, 9.4vh), 88px); }
html[lang=ar] .hero-title .word[dir=ltr] { text-align: right; }
html[lang=ar] .hero-title .word:first-child { font-family: "Bricolage Grotesque", sans-serif; line-height: 1; }
html[lang=ar] .scribble { font-weight: 900; font-size: 1em; transform: rotate(-3deg); }
html[lang=ar] .kicker { font-size: 20px; font-weight: 800; }
html[lang=ar] .bubble, html[lang=ar] .chip, html[lang=ar] p, html[lang=ar] li { line-height: 1.7; }
html[lang=ar] .course p, html[lang=ar] .why-card p, html[lang=ar] .step p { line-height: 1.7; }
html[lang=ar] .course h3, html[lang=ar] .cta h2, html[lang=ar] .band-track,
html[lang=ar] .say, html[lang=ar] .lvl, html[lang=ar] .brand, html[lang=ar] .num {
  font-family: "Bricolage Grotesque", sans-serif; /* French / Latin bits keep the playful display face */
}
html[lang=ar] .cta h2 { line-height: .95; letter-spacing: -.03em; }

/* mirror direction-sensitive details */
[dir=rtl] .bubble { border-radius: 20px 20px 6px 20px; }
[dir=rtl] .pop { transform-origin: right bottom; }
[dir=rtl] .course-icon { right: auto; left: 16px; }
[dir=rtl] .badge { left: auto; right: 22px; transform: rotate(4deg); }
[dir=rtl] .course li::before { margin-right: 0; margin-left: 10px; }
[dir=rtl] .course h3 { padding-right: 0; padding-left: 40px; }
[dir=rtl] .modal-x { right: auto; left: 16px; }
[dir=rtl] .review { border-radius: var(--r) var(--r) 8px var(--r); }
[dir=rtl] .review::after { left: auto; right: 34px; clip-path: polygon(0 0, 100% 0, 100% 100%); transform: skewX(10deg); border-left: 0; border-right: 2.5px solid var(--ink); }
[dir=rtl] .wa { right: auto; left: 20px; }
[dir=rtl] .hero-title .word { transform: translateY(40px) rotate(3deg); }
[dir=rtl] .hero-title .word { animation-name: wordIn; }

/* ---------- Coming soon courses ---------- */
.hero-title { margin-bottom: 36px; }
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2.5px dashed currentColor;
  font-weight: 700; font-size: 15px;
  opacity: .85;
}
.course-soon .course-foot { justify-content: flex-start; }
.course-soon .course-icon { filter: drop-shadow(0 12px 12px rgba(0,0,0,.18)) saturate(.85); }
