/* =========================================================
   Design tokens — Chalkboard / Artisan theme
   ========================================================= */
:root {
  /* Chalkboard surfaces */
  --chalk-deep:    #14110d;
  --chalk-bg:      #1e1a14;
  --chalk-card:    rgba(30, 26, 20, 0.72);
  --chalk-card-2:  rgba(20, 17, 13, 0.78);

  /* Chalk text — warm whites/creams */
  --chalk:         #f5ecd9;
  --chalk-soft:    #ede4cd;
  --chalk-muted:   #ffffff;
  --chalk-dim:     #7a7160;

  /* Lines (drawn chalk) */
  --line:          rgba(245, 236, 217, 0.18);
  --line-soft:     rgba(245, 236, 217, 0.08);
  --line-strong:   rgba(245, 236, 217, 0.32);

  /* Primary accent — Yellow #FFC000 */
  --gold:          #FFC000;
  --gold-bright:   #ffd54a;
  --gold-deep:     #cf9c00;
  --gold-tint:     rgba(255, 192, 0, 0.14);

  /* Secondary accent — Green #92D050 */
  --c-green:       #92D050;
  --c-green-soft:  #b3e07a;
  --c-green-deep:  #5fa627;
  --c-green-tint:  rgba(146, 208, 80, 0.14);

  /* Tertiary accent — Blue #00B0F0 */
  --c-blue:        #00B0F0;
  --c-blue-soft:   #4ac8f5;
  --c-blue-deep:   #0086b8;
  --c-blue-tint:   rgba(0, 176, 240, 0.14);

  /* Fonts */
  --f-script:      'Indie Flower', 'Marhey', 'Aref Ruqaa', 'Caveat', cursive;
  --f-script-2:    'Marhey', 'Aref Ruqaa', 'Caveat', 'Indie Flower', cursive;
  --f-display-ar:  'Aref Ruqaa', 'Marhey', 'Caveat', serif;
  --f-body:        'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  --container:     1480px;
  --radius:        14px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  --shadow-soft:   0 4px 18px -8px rgba(0, 0, 0, 0.5);
  --shadow-card:   0 14px 40px -16px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Reset + base
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--chalk-soft);
  background: var(--chalk-bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}
/* Chalkboard texture as fixed background with depth overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(40, 35, 28, 0) 0%, rgba(14, 12, 9, 0.55) 100%),
    url('chalkboard.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none;
}
/* Subtle vignette/grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%),
    radial-gradient(ellipse at bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

/* =========================================================
   Pendant ornament (reusable)
   ========================================================= */
.pendant {
  display: inline-block;
  background-image: url('pendant.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 80px;
  height: 120px;
  filter: drop-shadow(0 0 10px rgba(255, 192, 0, 0.45));
}
.pendant-xl { width: 168px; height: 252px; }
.pendant-lg { width: 120px; height: 180px; }
.pendant-md { width: 80px; height: 120px; }
.pendant-sm { width: 56px; height: 84px; }
.pendant-xs { width: 36px; height: 56px; }

/* ============ Hero photo (instructor) ============ */
.hero-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-image: url('khalil.jpg');
  background-size: cover;
  background-position: center top;
  border: 2px dashed var(--gold);
  margin: 0 auto;
  position: relative;
  box-shadow:
    0 0 0 6px rgba(20, 17, 13, 0.55),
    0 0 0 8px rgba(255, 192, 0, 0.35),
    0 14px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 50px -10px rgba(255, 192, 0, 0.3);
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 192, 0, 0.4);
  pointer-events: none;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 192, 0, 0.2);
  pointer-events: none;
}

/* =========================================================
   Section divider with pendant + chalk lines
   ========================================================= */
.section-divider {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-strong) 50%,
    transparent 100%
  );
  max-width: 320px;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 13, 0.6);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--chalk);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  direction: ltr;
  position: relative;
  padding-right: 0.32em; /* visually balance the trailing letter-spacing */
  transition: color 0.4s ease, letter-spacing 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
/* Refined gold underline — draws in from center on hover */
.brand::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.32em;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 25%,
    var(--gold-bright) 50%,
    var(--gold) 75%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover {
  color: var(--gold-bright);
  letter-spacing: 0.36em;
}
.brand:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-family: var(--f-script);
  font-size: 19px;
  color: var(--chalk-muted);
}
.nav-links a {
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a:hover { color: var(--gold-bright); }

.nav-cta {
  background: var(--gold);
  color: var(--chalk-deep);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 0 rgba(255, 192, 0, 0);
}
.nav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px -6px rgba(255, 192, 0, 0.5);
}

/* =========================================================
   Eyebrow label (script style)
   ========================================================= */
.eyebrow {
  font-family: var(--f-script);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: '✦';
  font-size: 16px;
  color: var(--gold-bright);
}
.eyebrow strong {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 1.35em;
  letter-spacing: 0.01em;
  color: var(--gold);
  padding: 0 2px;
}

/* Hero eyebrow — centered across the full container with an animated sparkle at both ends */
.hero-eyebrow {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 16px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
  animation: sparkleP 3.2s ease-in-out infinite;
  transform-origin: center;
}
.hero-eyebrow::after {
  content: '✦';
  font-size: 16px;
  color: var(--gold-bright);
  animation-delay: -1.6s;
}

/* =========================================================
   Display headings — Aref Ruqaa Arabic + Indie Flower Latin
   ========================================================= */
.display {
  font-family: var(--f-display-ar);
  font-weight: 400;
  line-height: 1.25;
  color: var(--chalk);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.display em {
  font-family: var(--f-script);
  font-style: normal;
  color: var(--gold);
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
/* Hand-drawn chalk underline beneath the emphasized words */
.display em::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 4%;
  width: 92%;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 6 Q 30 1, 60 5 T 120 5 T 198 5' stroke='%23FFC000' stroke-width='1.8' fill='none' stroke-linecap='round' opacity='0.85'/></svg>") no-repeat center / 100% 100%;
}
/* Block line that follows an em — gives breathing room below the chalk underline */
.display-line-2 {
  display: block;
  margin-top: 0.32em;
}

h1.display { font-size: clamp(38px, 7.2vw, 104px); }
h2.display { font-size: clamp(30px, 5.4vw, 76px); }
h3.display { font-size: clamp(22px, 2vw, 28px); }

/* "Script" callout helper */
.script-em {
  font-family: var(--f-script);
  color: var(--gold);
  font-size: 1.15em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 40px 0 50px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 100px;
  align-items: start;
}
.hero-tagline {
  font-family: var(--f-body);
  font-size: 19px;
  color: #ffffff;
  margin: 28px 0 36px;
  line-height: 1.7;
  max-width: 640px;
}
.hero-tagline strong {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 1.6em;
  color: var(--gold);
  display: inline-block;
  line-height: 1.1;
  margin-top: 4px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  -webkit-text-stroke: 0.6px var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.pill {
  background: rgba(245, 236, 217, 0.06);
  border: 1px dashed var(--line-strong);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 18px;
  font-weight: 400;
  color: var(--chalk-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hero visual — chalkboard "framed" pendant ornament */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  margin-top: 50px;
}
.hero-frame {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center, rgba(255, 192, 0, 0.06) 0%, transparent 60%),
    rgba(20, 17, 13, 0.3);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.4), var(--shadow-card);
}
.hero-frame::before, .hero-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--gold);
  opacity: 0.6;
}
.hero-frame::before {
  top: -1px; right: -1px;
  border-bottom: none; border-left: none;
  border-top-right-radius: var(--radius-lg);
}
.hero-frame::after {
  bottom: -1px; left: -1px;
  border-top: none; border-right: none;
  border-bottom-left-radius: var(--radius-lg);
}

.hero-pendant-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-pendant-wrap .pendant {
  margin: 0 auto;
}
.hero-caption {
  font-family: var(--f-script);
  font-size: 78px;
  color: var(--gold-bright);
  margin-top: 24px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.hero-subcaption {
  font-family: var(--f-script);
  font-size: 20px;
  color: var(--chalk-muted);
  margin-top: 4px;
}
/* "Constellation" dots scattered around the pendant */
.hero-visual .dot {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--chalk);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: 0 0 6px var(--chalk);
}
.hero-visual .dot.d1 { top: 18%; right: 22%; }
.hero-visual .dot.d2 { top: 28%; left: 18%; }
.hero-visual .dot.d3 { bottom: 28%; right: 18%; width: 3px; height: 3px; }
.hero-visual .dot.d4 { bottom: 18%; left: 22%; width: 5px; height: 5px; }
/* Floating stat chips (chalk style) */
.stat-chip {
  position: absolute;
  z-index: 2;
  background: var(--chalk-card-2);
  border: 1px dashed var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--gold-bright);
}
.stat-chip-num {
  font-family: var(--f-script);
  font-size: 32px;
  font-weight: 400;
  color: var(--chalk);
  line-height: 1;
}
.stat-chip-label {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--chalk-muted);
  margin-top: 4px;
}
.stat-1 { top: 24px; left: -36px; }
.stat-2 { bottom: 36px; right: -36px; }
/* Corner accents — same treatment as the photo frame */
@keyframes discountShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* staggered entrance, driven by --i on each chip */
@media (max-width: 600px) {
}

/* === Floating WhatsApp contact (attention-grabbing) === */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  direction: ltr; text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.wa-btn {
  position: relative; flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-btn svg {
  width: 32px; height: 32px; display: block; position: relative; z-index: 2;
  transform-origin: 50% 60%;
  animation: waWiggle 3.5s ease-in-out infinite;
}
.wa-float:hover .wa-btn { transform: scale(1.07); box-shadow: 0 12px 28px -6px rgba(0,0,0,0.55); }
/* expanding ripple rings */
.wa-btn::before, .wa-btn::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%; border: 2px solid #25D366; opacity: 0.6; z-index: 0;
  animation: waRing 2.4s ease-out infinite;
}
.wa-btn::after { animation-delay: 1.2s; }
@keyframes waRing {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { opacity: 0.12; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes waWiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}
.wa-bubble {
  direction: rtl;
  background: #fff; color: #14110d;
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 22px; white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35); position: relative;
  animation: waBubbleIn 0.5s ease 1.4s both, waBubbleBreathe 2.6s ease-in-out 2s infinite;
}
.wa-bubble::after {
  content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-right: 6px solid #fff;
}
@keyframes waBubbleIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes waBubbleBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (max-width: 600px) {
  .wa-float { bottom: 18px; left: 18px; gap: 10px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn svg { width: 29px; height: 29px; }
  .wa-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-btn svg, .wa-bubble { animation: none; }
  .wa-btn::before, .wa-btn::after { animation: none; opacity: 0; }
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.progress-pct {
  font-family: var(--f-script);
  font-size: 28px;
  color: var(--gold-bright);
  min-width: 60px;
  line-height: 1;
}
.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(245, 236, 217, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--gold) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(255, 192, 0, 0.5);
}
.progress-label {
  font-family: var(--f-script);
  font-size: 17px;
  color: var(--chalk-muted);
  min-width: 100px;
  text-align: left;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--chalk-deep);
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 22px -8px rgba(255, 192, 0, 0.5);
}
.cta-button:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px -8px rgba(255, 213, 74, 0.6),
    0 0 0 6px rgba(255, 192, 0, 0.13);
}
.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px -8px rgba(255, 192, 0, 0.6);
  transition-duration: 0.09s;
}
.cta-button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}
.cta-button .arrow {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-button:hover .arrow { transform: translateX(-6px); }

/* =========================================================
   Section base
   ========================================================= */
section.feature {
  padding: 20px 0 40px;
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.feature-grid.reverse .feature-image { order: 2; }

.feature-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center, rgba(255, 192, 0, 0.08) 0%, transparent 65%),
    var(--chalk-card-2);
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  display: grid;
  place-items: center;
  color: var(--chalk-muted);
  font-family: var(--f-script);
  font-size: 22px;
  position: relative;
  overflow: hidden;
  gap: 16px;
}
.feature-image .pendant {
  margin-bottom: 6px;
}
.feature-image .caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(20, 17, 13, 0.85);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 18px;
  color: var(--gold-bright);
  border: 1px dashed var(--line);
}

/* =========================================================
   Mockup: Video Player UI (Feature 1)
   ========================================================= */
.video-mockup {
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(20, 17, 13, 0.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
}
.mockup-bar-dots {
  display: flex;
  gap: 6px;
}
.mockup-bar-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--chalk-dim);
  opacity: 0.55;
}
.mockup-bar-dots span:nth-child(1) { background: #ff6b6b; opacity: 0.7; }
.mockup-bar-dots span:nth-child(2) { background: var(--gold); opacity: 0.7; }
.mockup-bar-dots span:nth-child(3) { background: var(--c-green); opacity: 0.7; }
.mockup-bar-title {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--chalk-muted);
  margin-left: auto;
  letter-spacing: 0.02em;
}
.video-mockup-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.video-screen {
  background:
    radial-gradient(ellipse at center, rgba(255, 192, 0, 0.10) 0%, transparent 65%),
    linear-gradient(135deg, #1a1610 0%, #2b2418 100%);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.video-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 236, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 236, 217, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1.5px dashed var(--gold);
  display: grid;
  place-items: center;
  animation: playPulse 2.5s ease-in-out infinite;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.25s ease, background 0.25s ease;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 192, 0, 0.25);
}
.play-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
/* Inline video player — fills the video-screen when activated */
.video-screen iframe.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  z-index: 4;
}
/* Once playing: hide the mockup decorations to give the real video the stage */
.video-screen.is-playing::before,
.video-screen.is-playing .play-btn,
.video-screen.is-playing .video-timeline,
.video-screen.is-playing .video-hint,
.video-screen.is-playing .video-tag {
  display: none;
}
.play-btn::before {
  content: '';
  width: 0; height: 0;
  border-left: 14px solid var(--gold-bright);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 192, 0, 0.4); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 192, 0, 0); }
}
/* Sample-video attention cue (added) */
.play-btn::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: playRipple 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes playRipple {
  0%   { transform: scale(0.8); opacity: 0.5; }
  80%  { opacity: 0.08; }
  100% { transform: scale(1.9); opacity: 0; }
}
.video-hint {
  position: absolute;
  left: 50%; top: calc(50% + 52px);
  transform: translateX(-50%);
  white-space: nowrap; z-index: 3;
  font-family: var(--f-script);
  font-size: 14px;
  color: var(--gold-bright);
  background: rgba(20, 17, 13, 0.78);
  border: 1px dashed var(--gold);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px -4px var(--gold);
  animation: hintBob 2s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}
@media (max-width: 600px) {
  .video-hint { font-size: 11.5px; padding: 4px 12px; top: calc(50% + 44px); }
}
.video-timeline {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--chalk-muted);
}
.timeline-bar {
  flex: 1;
  height: 3px;
  background: rgba(245, 236, 217, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 999px;
}
.video-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  animation: videoTagPulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px -2px var(--gold-tint);
}
@keyframes videoTagPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
/* Hide tag when video is actively playing */
.video-screen.is-playing .video-tag { display: none; }
.lesson-list {
  background: rgba(20, 17, 13, 0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.lesson-list::-webkit-scrollbar { width: 5px; }
.lesson-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}
.lesson-list-header {
  font-family: var(--f-script);
  font-size: 12.5px;
  color: var(--gold-bright);
  padding: 2px 6px 6px;
  border-bottom: 1px dashed var(--line);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  text-align: right;
  cursor: pointer;
  font: inherit;
}
button.lesson-item {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
}
.lesson-item.active {
  background: var(--gold-tint);
  color: var(--gold-bright);
  border: 1px dashed var(--gold);
}
.lesson-item:not(.active):not(.is-chapter):hover {
  background: rgba(245, 236, 217, 0.06);
  transform: translateX(-2px); /* RTL: slide left on hover */
}
.lesson-num {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(245, 236, 217, 0.08);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--f-script);
  font-size: 10px;
  color: var(--chalk-muted);
}
.lesson-item.active .lesson-num {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: var(--chalk-deep);
}
.lesson-item.done .lesson-num {
  background: var(--c-green-tint);
  border-color: var(--c-green);
  color: var(--c-green);
}
.lesson-item.done .lesson-num::before { content: '✓'; }
.lesson-text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.lesson-title {
  display: block;
  font-size: 11px;
  color: inherit;
  line-height: 1.35;
}
.lesson-meta {
  display: block;
  font-size: 9.5px;
  color: var(--chalk-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.lesson-item.active .lesson-meta {
  color: var(--gold);
  opacity: 0.85;
}
.lesson-item.done .lesson-meta { opacity: 0.55; }

/* =========================================================
   Mockup: Calendly Calendar UI (Feature 2)
   ========================================================= */
.calendly-mockup {
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.calendly-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  background: rgba(20, 17, 13, 0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.calendly-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.calendly-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-blue-tint);
  border: 1px dashed var(--c-blue);
  color: var(--c-blue-soft);
  font-family: var(--f-script);
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.calendly-headinfo { flex: 1; min-width: 0; }
.calendly-title {
  font-family: var(--f-display-ar);
  font-size: 15px;
  color: var(--chalk);
  margin-bottom: 4px;
}
.calendly-meta {
  display: flex;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
}
.calendly-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
/* Calendar widget */
.calendar-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
}
.calendar-month {
  font-family: var(--f-script);
  font-size: 14px;
  color: var(--gold-bright);
}
.cal-nav-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--chalk-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cal-nav-btn:hover {
  background: var(--gold-tint);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--chalk-muted);
  text-align: center;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
  opacity: 0.7;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-dim);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.cal-day.is-pad { opacity: 0; pointer-events: none; }
.cal-day.is-available {
  color: var(--c-blue-soft);
  background: var(--c-blue-tint);
  cursor: pointer;
  font-weight: 500;
}
.cal-day.is-available:hover {
  background: var(--c-blue);
  color: var(--chalk-deep);
  transform: scale(1.1);
}
.cal-day.is-selected {
  background: var(--gold);
  color: var(--chalk-deep);
  font-weight: 700;
  box-shadow: 0 0 14px -2px var(--gold);
  cursor: pointer;
}
/* Time slots column */
.time-slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}
.time-slots-header {
  font-family: var(--f-script);
  font-size: 12px;
  color: var(--gold-bright);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 2px;
  flex-shrink: 0;
}
.time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(245, 236, 217, 0.04);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.time-slot:hover {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue-soft);
  transform: translateX(-2px); /* RTL */
}
.time-slot.is-selected {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}
.slot-check {
  width: 16px; height: 16px;
  background: var(--gold);
  color: var(--chalk-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}
.calendly-cta {
  display: flex;
  justify-content: stretch;
  flex-shrink: 0;
}
.cal-confirm-btn {
  flex: 1;
  padding: 11px 18px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--chalk-deep);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--f-display-ar);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px -6px var(--gold-tint);
}
.cal-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px var(--gold-tint);
}

/* =========================================================
   Mockup: Question Bank UI (Feature 3)
   ========================================================= */
.qbank-mockup {
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.qbank-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  background: rgba(20, 17, 13, 0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.qbank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  flex-shrink: 0;
}
.qbank-title {
  font-family: var(--f-display-ar);
  font-size: 15px;
  color: var(--gold-bright);
}
.qbank-meta {
  display: flex;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
}
.qbank-counter {
  background: var(--c-green-tint);
  color: var(--c-green-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--c-green);
}
.qbank-shuffle { opacity: 0.7; }
.qbank-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
  min-height: 0;
}
.qbank-questions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.qbank-questions::-webkit-scrollbar { width: 4px; }
.qbank-questions::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}
.qbank-question {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  background: rgba(245, 236, 217, 0.03);
  border: 1px dashed var(--line);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.qbank-question:hover {
  background: rgba(255, 192, 0, 0.04);
  border-color: var(--line-strong);
  transform: translateX(-2px); /* RTL */
}
.qbank-question.is-active {
  background: var(--gold-tint);
  border-color: var(--gold);
}
.q-num {
  flex-shrink: 0;
  font-family: var(--f-body);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--chalk-muted);
  letter-spacing: 0.04em;
  padding-top: 2px;
  opacity: 0.7;
}
.qbank-question.is-active .q-num { color: var(--gold); opacity: 1; }
.q-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.q-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.q-tag {
  font-family: var(--f-body);
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.q-tag.q-level {
  background: rgba(245, 236, 217, 0.08);
  color: var(--chalk);
  border: 1px solid var(--line-strong);
}
.q-tag.q-easy {
  background: var(--c-green-tint);
  color: var(--c-green-soft);
  border: 1px solid var(--c-green);
}
.q-tag.q-medium {
  background: var(--gold-tint);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
}
.q-tag.q-hard {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8d8d;
  border: 1px solid rgba(255, 107, 107, 0.45);
}
.q-tag-comp {
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--c-blue-soft);
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.q-text {
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--chalk);
  line-height: 1.45;
  direction: rtl;
}
.q-star {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--chalk-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.q-star:hover { color: var(--gold); transform: scale(1.2); }
.q-star.is-active { color: var(--gold); }

.qbank-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 2px;
  border-right: 1px dashed var(--line);
  padding-right: 10px;
}
.qbank-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-label {
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--chalk-muted);
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.qbank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(245, 236, 217, 0.04);
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: 10px;
  color: var(--chalk-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qbank-pill:hover { background: rgba(0, 176, 240, 0.08); border-color: var(--c-blue); }
.qbank-pill em {
  font-style: normal;
  opacity: 0.6;
  font-size: 9px;
}
.qbank-pill.is-on {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue-soft);
}
.qbank-pill.q-easy-pill { color: var(--c-green-soft); }
.qbank-pill.q-easy-pill:hover { background: var(--c-green-tint); border-color: var(--c-green); }
.qbank-pill.q-medium-pill.is-on { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-bright); }
.qbank-pill.q-hard-pill { color: #ff8d8d; }
.qbank-pill.q-hard-pill:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.45); }

/* =========================================================
   Mockup: Notion Workspace UI (Feature 4)
   ========================================================= */
.notion-mockup {
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.notion-body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 0;
  min-height: 0;
  background: rgba(20, 17, 13, 0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.notion-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px dashed var(--line);
  overflow-y: auto;
}
.notion-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}
.notion-emoji { font-size: 14px; }
.notion-emoji-lg { font-size: 24px; }
.notion-side-title {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--chalk);
}
.notion-side-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 5px;
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--chalk-muted);
  cursor: pointer;
  transition: background 0.2s ease;
}
.notion-side-item:hover { background: rgba(245, 236, 217, 0.05); }
.notion-side-item.is-active {
  background: var(--gold-tint);
  color: var(--gold-bright);
}
.notion-side-icon { font-size: 11px; opacity: 0.85; }
.notion-main {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.notion-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display-ar);
  font-size: 17px;
  color: var(--chalk);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.notion-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}
.notion-prog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(245, 236, 217, 0.03);
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
}
.notion-prog-item.is-done {
  background: var(--c-green-tint);
  border-color: var(--c-green);
}
.notion-prog-item.is-active {
  background: var(--gold-tint);
  border-color: var(--gold);
}
.notion-check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--chalk-deep);
  font-weight: 700;
}
.notion-check.is-done {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--chalk-deep);
}
.notion-check.is-active {
  background: transparent;
  border-color: var(--gold);
  position: relative;
}
.notion-check.is-active::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.6;
}
.notion-prog-label {
  flex: 1;
  color: var(--chalk);
  font-weight: 500;
}
.notion-prog-item.is-done .notion-prog-label { color: var(--c-green-soft); }
.notion-prog-item.is-active .notion-prog-label { color: var(--gold-bright); }
.notion-prog-meta {
  font-size: 9.5px;
  color: var(--chalk-muted);
  opacity: 0.85;
}
.notion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 5px;
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--chalk);
  cursor: pointer;
  transition: background 0.2s ease;
}
.notion-toggle:hover { background: rgba(245, 236, 217, 0.04); }
.toggle-arrow {
  width: 14px;
  color: var(--chalk-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}
.toggle-label { color: var(--chalk-soft); }

/* =========================================================
   Mockup: Community Feed UI (Feature 5)
   ========================================================= */
.community-mockup {
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.community-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(20, 17, 13, 0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.comm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display-ar);
  font-size: 15px;
  color: var(--chalk);
}
.comm-emoji { font-size: 16px; }
.comm-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--c-green-tint);
  border: 1px dashed var(--c-green);
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--c-green-soft);
}
.online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: onlinePulse 1.8s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}
.community-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.community-feed::-webkit-scrollbar { width: 4px; }
.community-feed::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}
.comm-post {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  background: rgba(245, 236, 217, 0.03);
  border: 1px dashed var(--line);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.comm-post:hover {
  background: rgba(255, 192, 0, 0.04);
  border-color: var(--line-strong);
  transform: translateX(-2px); /* RTL */
}
.comm-post.comm-post-job {
  background: var(--gold-tint);
  border-color: var(--gold);
}
.comm-avatar {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display-ar);
  font-size: 14px;
  font-weight: 600;
  color: var(--chalk-deep);
}
.comm-avatar-1 { background: var(--c-blue); }
.comm-avatar-2 { background: var(--gold); }
.comm-avatar-3 { background: var(--c-green); }
.comm-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.comm-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comm-name {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--chalk);
}
.comm-time {
  font-family: var(--f-body);
  font-size: 9.5px;
  color: var(--chalk-muted);
  opacity: 0.75;
}
.comm-post-tag {
  margin: 2px 0;
}
.post-tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.job-tag {
  background: var(--gold);
  color: var(--chalk-deep);
}
.comm-post-text {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--chalk);
  line-height: 1.5;
}
.comm-post-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.comm-react {
  font-family: var(--f-body);
  font-size: 10px;
  color: var(--chalk-muted);
}
.community-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.input-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 14px;
  font-family: var(--f-script);
  flex-shrink: 0;
}
.input-placeholder {
  flex: 1;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--chalk-muted);
  opacity: 0.7;
}

/* =========================================================
   Pricing section (before FAQ)
   ========================================================= */
.pricing {
  padding: 50px 0 90px;
  position: relative;
  overflow: hidden;
}
/* Decorative drifting sparkles */
.pricing::before,
.pricing::after {
  content: '✦';
  position: absolute;
  font-family: var(--f-script);
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
  animation: aboutDrift 12s ease-in-out infinite;
}
.pricing::before {
  top: 18%;
  left: 7%;
  font-size: 80px;
}
.pricing::after {
  bottom: 14%;
  right: 6%;
  font-size: 100px;
  animation-delay: -6s;
}

.pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}
.pricing-sub {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--chalk-muted);
  line-height: 1.7;
  margin-top: 18px;
}
.pricing-sub strong {
  color: var(--gold-bright);
  font-weight: 700;
  font-family: var(--f-script);
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Pricing ladder — 4 tiers + comparison table
   ========================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 56px;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 26px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 192, 0, 0.05) 0%, transparent 62%),
    rgba(20, 17, 13, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.36), var(--shadow-card);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.tier:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 192, 0, 0.5);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.36), var(--shadow-card),
              0 0 40px -14px rgba(255, 192, 0, 0.45);
}

/* The recommended tier sits slightly proud of the rest */
.tier.is-featured {
  border-style: solid;
  border-color: var(--gold);
  overflow: hidden;
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.4),
    var(--shadow-card),
    0 0 46px -12px rgba(255, 192, 0, 0.34);
}
.tier-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--chalk-deep);
  padding: 5px 18px 6px;
  border-radius: 0 0 12px 12px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 192, 0, 0.6);
  z-index: 2;
}
.tier.is-featured { padding-top: 46px; }

.tier-name {
  font-family: var(--f-script);
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.tier-for {
  font-family: var(--f-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--chalk-muted);
  margin: 9px auto 0;
  min-height: 40px;
  max-width: 190px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.tier-num {
  font-family: var(--f-script);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg,
    var(--gold) 0%, var(--gold-bright) 30%, #ffeaa0 50%,
    var(--gold-bright) 70%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 192, 0, 0.3));
}
.tier.is-featured .tier-num {
  animation: discountShimmer 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(255, 192, 0, 0.45));
}
.tier-cur {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--chalk-muted);
}
.tier-plan {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--chalk-muted);
  margin-top: 10px;
  min-height: 32px;
  line-height: 1.5;
  opacity: 0.9;
}

.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--f-script);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  border: 1px solid rgba(255, 192, 0, 0.55);
  background: rgba(255, 192, 0, 0.07);
  transition: background 0.25s ease, color 0.25s ease,
              transform 0.2s ease, box-shadow 0.25s ease;
}
.tier-cta:hover {
  background: var(--gold);
  color: var(--chalk-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(255, 192, 0, 0.7);
}
.tier-cta:active { transform: translateY(0); transition-duration: 0.09s; }
.tier-cta:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.tier-cta.is-solid {
  background: var(--gold);
  color: var(--chalk-deep);
  border-color: var(--gold);
  box-shadow: 0 6px 20px -8px rgba(255, 192, 0, 0.6);
}
.tier-cta.is-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.tier-cta .arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.tier-cta:hover .arrow { transform: translateX(-5px); }

/* Staggered entrance for the tier row */
.js .tiers > .tier {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.js .tiers.is-visible > .tier { opacity: 1; transform: translateY(0); }

/* Gold sweep across the featured tier when the section arrives */
.tier > .price-shine {
  position: absolute; inset: 0; border-radius: inherit;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.tier > .price-shine::before {
  content: '';
  position: absolute; top: -60%; bottom: -60%; right: -40%; width: 34%;
  background: linear-gradient(100deg, transparent 0%,
    rgba(255, 213, 74, 0.10) 45%, rgba(255, 234, 160, 0.18) 50%,
    rgba(255, 213, 74, 0.10) 55%, transparent 100%);
  transform: translateX(0) rotate(8deg);
  opacity: 0;
}
.tiers.is-counted .tier > .price-shine::before {
  animation: priceShine 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}
@keyframes priceShine {
  0%   { opacity: 0; transform: translateX(0) rotate(8deg); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-300%) rotate(8deg); }
}

/* ===== Comparison table ===== */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px 8px;
  padding: 0 4px 6px;
}
.compare {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-family: var(--f-body);
  text-align: center;
}
.compare th,
.compare td {
  padding: 15px 12px;
  border-bottom: 1px dashed rgba(245, 236, 217, 0.1);
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--f-script);
  font-size: 21px;
  font-weight: 400;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 192, 0, 0.32);
  white-space: nowrap;
}
.compare thead th.is-featured {
  color: var(--chalk-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 12px 12px 0 0;
  font-weight: 700;
}
/* the recommended column stays tinted all the way down */
.compare td.is-featured {
  background: rgba(255, 192, 0, 0.055);
}
.compare tbody tr:last-child td.is-featured {
  border-radius: 0 0 12px 12px;
}
.compare tbody th[scope='row'] {
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: var(--chalk-soft);
  white-space: nowrap;
  padding-right: 4px;
}
.compare tbody tr:hover td,
.compare tbody tr:hover th[scope='row'] {
  background-color: rgba(245, 236, 217, 0.035);
}
.compare tbody tr:hover td.is-featured {
  background-color: rgba(255, 192, 0, 0.09);
}
.compare i {
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  display: inline-block;
}
.compare i.yes {
  color: var(--c-green);
  text-shadow: 0 0 12px rgba(146, 208, 80, 0.45);
}
.compare i.no {
  color: var(--chalk-dim);
  opacity: 0.4;
  font-size: 15px;
}
.compare .val {
  font-size: 13px;
  color: var(--chalk-soft);
  white-space: nowrap;
}
.compare .val.is-strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* scroll affordance on narrow screens */
.compare-hint {
  display: none;
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--chalk-muted);
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.8;
}

.pricing-trust {
  margin-top: 22px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--chalk-muted);
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.feature-sub {
  font-family: var(--f-body);
  font-size: 19px;
  color: #ffffff;
  line-height: 1.75;
  margin: 28px 0 36px;
  max-width: 540px;
}
/* Highlighted term inside feature-sub — gold + stays together */
.feature-sub strong {
  color: var(--gold-bright);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* Allow wrap on small screens (the term is too long for narrow phones) */
@media (max-width: 640px) {
  .feature-sub strong { white-space: normal; }
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}
.feature-list .marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-list .marker.check::before { content: '✓'; font-size: 18px; }

/* ============ Color modifiers (yellow/green/blue) ============ */
.marker.green, .why-icon.green {
  background: var(--c-green-tint);
  border-color: var(--c-green);
  color: var(--c-green-soft);
}
.marker.blue, .why-icon.blue, .stat-chip-icon.blue {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue-soft);
}
.marker.yellow, .why-icon.yellow {
  background: var(--gold-tint);
  border-color: var(--gold);
  color: var(--gold-bright);
}
/* Hover overrides per color */
.feature-list li:hover .marker.green {
  background: var(--c-green);
  color: var(--chalk-deep);
}
.feature-list li:hover .marker.blue {
  background: var(--c-blue);
  color: var(--chalk-deep);
}
.feature-list li:hover .marker.yellow {
  background: var(--gold);
  color: var(--chalk-deep);
}
/* Pill color variants */
.pill.green { border-color: var(--c-green); color: var(--chalk-soft); }
.pill.green:hover {
  background: var(--c-green-tint);
  border-color: var(--c-green);
  color: var(--chalk);
}
.pill.blue { border-color: var(--c-blue); color: var(--chalk-soft); }
.pill.blue:hover {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--chalk);
}
/* Why-card border tint by accent color */
.why-card:has(.why-icon.green):hover { border-color: var(--c-green); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6), 0 0 20px -8px var(--c-green-tint); }
.why-card:has(.why-icon.blue):hover { border-color: var(--c-blue); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6), 0 0 20px -8px var(--c-blue-tint); }
.feature-list .item-title {
  font-family: var(--f-script);
  font-size: 30px;
  font-weight: 400;
  color: var(--chalk);
  margin-bottom: 6px;
  display: block;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.feature-list .item-text {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--chalk-muted);
  line-height: 1.7;
}

/* =========================================================
   About section — instructor 3-pillar redesign
   ========================================================= */
.about {
  padding: 50px 0 55px;
  position: relative;
  overflow: hidden;
}
/* Decorative drifting sparkles in background */
.about::before,
.about::after {
  content: '✦';
  position: absolute;
  font-family: var(--f-script);
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
  animation: aboutDrift 14s ease-in-out infinite;
}
.about::before {
  top: 18%;
  left: 6%;
  font-size: 90px;
}
.about::after {
  bottom: 12%;
  right: 7%;
  font-size: 110px;
  animation-delay: -7s;
  color: var(--c-blue);
}
@keyframes aboutDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  50%      { transform: translateY(-22px) rotate(180deg); opacity: 0.14; }
}

.about-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}
.about-header .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

/* Instructor name — natural handwriting style (matches hero-caption) */
.about-name {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 92px);
  line-height: 1.05;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 12px 0 8px;
  direction: ltr;
  position: relative;
  display: inline-block;
}
/* Hand-drawn chalk underline beneath the name */
.about-name::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 8%;
  width: 84%;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 6 Q 30 1, 60 5 T 120 5 T 198 5' stroke='%23FFC000' stroke-width='1.8' fill='none' stroke-linecap='round' opacity='0.85'/></svg>") no-repeat center / 100% 100%;
}
/* Sparkle accent on the left of the name */
.about-name::before {
  content: '✦';
  position: absolute;
  font-size: 0.32em;
  color: var(--gold);
  top: 18%;
  left: -0.55em;
  opacity: 0.65;
  animation: aboutNameSpark 3.6s ease-in-out infinite;
}
@keyframes aboutNameSpark {
  0%, 100% { opacity: 0.35; transform: rotate(0) scale(1); }
  50%      { opacity: 0.9;  transform: rotate(180deg) scale(1.25); }
}

.about-sub {
  font-family: var(--f-script);
  font-size: 34px;
  color: #ffffff;
  line-height: 1.45;
  margin-top: 32px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.about-sub-tight {
  margin-top: 18px;
  font-size: 32px;
}
.about-sub strong {
  color: var(--gold-bright);
  font-weight: 400; /* Indie Flower has no bold weight — color alone carries emphasis */
  letter-spacing: 0.01em;
}

/* === 3-Pillar Grid === */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.pillar {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(255, 192, 0, 0.05) 0%, transparent 55%),
    var(--chalk-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 44px 30px 36px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  overflow: hidden;
}
/* Per-color background tint */
.pillar.is-blue {
  background:
    radial-gradient(ellipse at top, rgba(0, 176, 240, 0.06) 0%, transparent 55%),
    var(--chalk-card);
}
.pillar.is-green {
  background:
    radial-gradient(ellipse at top, rgba(146, 208, 80, 0.06) 0%, transparent 55%),
    var(--chalk-card);
}

/* Corner accents (chalkboard frame feel) */
.pillar::before,
.pillar::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}
.pillar::before {
  top: -1px;
  right: -1px;
  border-bottom: none;
  border-left: none;
  border-top-right-radius: var(--radius-lg);
}
.pillar::after {
  bottom: -1px;
  left: -1px;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: var(--radius-lg);
}
.pillar.is-blue::before,
.pillar.is-blue::after { border-color: var(--c-blue); }
.pillar.is-green::before,
.pillar.is-green::after { border-color: var(--c-green); }

.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 28px 50px -18px rgba(0,0,0,0.7), 0 0 28px -10px var(--gold-tint);
}
.pillar:hover::before,
.pillar:hover::after {
  opacity: 1;
  width: 38px;
  height: 38px;
}
.pillar.is-blue:hover {
  border-color: var(--c-blue);
  box-shadow: 0 28px 50px -18px rgba(0,0,0,0.7), 0 0 28px -10px var(--c-blue-tint);
}
.pillar.is-green:hover {
  border-color: var(--c-green);
  box-shadow: 0 28px 50px -18px rgba(0,0,0,0.7), 0 0 28px -10px var(--c-green-tint);
}

/* Pillar number badge (1, 2, 3) */
.pillar-num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--f-script);
  font-size: 56px;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pillar.is-blue .pillar-num { color: var(--c-blue); }
.pillar.is-green .pillar-num { color: var(--c-green); }
.pillar:hover .pillar-num {
  opacity: 0.42;
  transform: scale(1.08) rotate(-4deg);
}

/* Pillar Icon — large, floating, with sparkle ring */
.pillar-icon-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.pillar-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--gold-bright);
  position: relative;
  z-index: 2;
  animation: pillarFloat 6s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pillar.is-blue .pillar-icon {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue);
  animation-delay: -2s;
}
.pillar.is-green .pillar-icon {
  background: var(--c-green-tint);
  border-color: var(--c-green);
  color: var(--c-green);
  animation-delay: -4s;
}
@keyframes pillarFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.pillar:hover .pillar-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px -10px var(--gold-tint);
}
.pillar.is-blue:hover .pillar-icon {
  box-shadow: 0 12px 24px -10px var(--c-blue-tint);
}
.pillar.is-green:hover .pillar-icon {
  box-shadow: 0 12px 24px -10px var(--c-green-tint);
}
/* Rotating sparkle ring behind icon */
.pillar-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0;
  animation: pillarRing 8s linear infinite;
  transition: opacity 0.4s ease;
}
.pillar.is-blue .pillar-icon-wrap::before { border-color: var(--c-blue); }
.pillar.is-green .pillar-icon-wrap::before { border-color: var(--c-green); }
.pillar:hover .pillar-icon-wrap::before { opacity: 0.5; }
@keyframes pillarRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Mini sparkles around icon */
.pillar-icon-wrap .ico-spark {
  position: absolute;
  font-family: var(--f-script);
  color: var(--gold);
  font-size: 14px;
  opacity: 0;
  animation: icoSparkle 3s ease-in-out infinite;
  pointer-events: none;
}
.pillar-icon-wrap .ico-spark:nth-child(2) {
  top: -4px;
  right: 4px;
  animation-delay: 0s;
}
.pillar-icon-wrap .ico-spark:nth-child(3) {
  bottom: 0;
  left: -2px;
  animation-delay: -1.5s;
}
.pillar.is-blue .ico-spark { color: var(--c-blue); }
.pillar.is-green .ico-spark { color: var(--c-green); }
@keyframes icoSparkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

/* Pillar Title */
.pillar-title {
  text-align: center;
  font-family: var(--f-display-ar);
  font-size: 26px;
  font-weight: 400;
  color: var(--chalk);
  margin-bottom: 24px;
  line-height: 1.25;
}

/* Hero number / highlight block in each pillar */
.pillar-hero {
  text-align: center;
  padding: 18px 0 22px;
  margin-bottom: 22px;
  position: relative;
}
.pillar-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.pillar.is-blue .pillar-hero::after {
  background: linear-gradient(90deg, transparent, var(--c-blue), transparent);
}
.pillar.is-green .pillar-hero::after {
  background: linear-gradient(90deg, transparent, var(--c-green), transparent);
}
.pillar-hero-num {
  font-family: var(--f-script);
  font-size: 74px;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: inline-block;
}
.pillar.is-blue .pillar-hero-num { color: var(--c-blue-soft); }
.pillar.is-green .pillar-hero-num { color: var(--c-green-soft); }
.pillar-hero-label {
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--chalk-muted);
  margin-top: 4px;
  line-height: 1.55;
}

/* List of items (chips column) */
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 192, 0, 0.05);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--chalk-soft);
  line-height: 1.5;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.pillar.is-blue .pillar-list li {
  background: rgba(0, 176, 240, 0.05);
}
.pillar.is-green .pillar-list li {
  background: rgba(146, 208, 80, 0.05);
}
.pillar-list li:hover {
  background: var(--gold-tint);
  border-color: var(--gold);
  transform: translateX(-4px); /* RTL slide */
}
.pillar.is-blue .pillar-list li:hover {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
}
.pillar.is-green .pillar-list li:hover {
  background: var(--c-green-tint);
  border-color: var(--c-green);
}
.pillar-list li .li-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--f-script);
}
.pillar.is-blue .pillar-list li .li-check {
  background: var(--c-blue-tint);
  border-color: var(--c-blue);
  color: var(--c-blue);
}
.pillar.is-green .pillar-list li .li-check {
  background: var(--c-green-tint);
  border-color: var(--c-green);
  color: var(--c-green);
}
.pillar-list li strong {
  color: var(--chalk);
  font-weight: 600;
}
.pillar-list li em {
  font-style: normal;
  color: var(--gold-bright);
  font-family: var(--f-script);
  font-size: 16px;
  margin-right: 4px;
}
.pillar.is-blue .pillar-list li em { color: var(--c-blue-soft); }
.pillar.is-green .pillar-list li em { color: var(--c-green-soft); }

/* Credential chips (used in academic pillar) */
.pillar-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.pillar-creds span {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-blue-soft);
  background: var(--c-blue-tint);
  border: 1px dashed var(--c-blue);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.pillar-creds span:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(0, 176, 240, 0.22);
}
.pillar-creds span.is-mba {
  color: var(--gold-bright);
  background: var(--gold-tint);
  border-color: var(--gold);
}
.pillar-creds span.is-mba:hover {
  background: rgba(255, 192, 0, 0.22);
}

/* Scroll reveal for pillars */
.js .pillars-grid > .pillar {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js .pillars-grid > .pillar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Interactive Stepper (Feature 3 — 4-stage journey)
   ========================================================= */
.stepper-detail {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(255, 192, 0, 0.10) 0%, transparent 65%),
    var(--chalk-card-2);
  border: 1px dashed var(--line-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.35), var(--shadow-card);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.stepper-detail::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-bottom: none; border-left: none;
  border-top-right-radius: var(--radius-lg);
  opacity: 0.5;
}
.stepper-detail::after {
  content: '';
  position: absolute;
  bottom: -1px; left: -1px;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-top: none; border-right: none;
  border-bottom-left-radius: var(--radius-lg);
  opacity: 0.5;
}
.stepper-stage {
  position: absolute;
  inset: 44px 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.stepper-stage.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage-tag {
  display: inline-block;
  font-family: var(--f-script);
  font-size: 14px;
  color: var(--gold-bright);
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.stage-tag.blue { color: var(--c-blue); background: var(--c-blue-tint); border-color: var(--c-blue); }
.stage-tag.green { color: var(--c-green); background: var(--c-green-tint); border-color: var(--c-green); }
.stepper-stage h3 {
  font-family: var(--f-display-ar);
  font-size: 30px;
  font-weight: 400;
  color: var(--chalk);
  line-height: 1.25;
  margin-bottom: 10px;
}
.stage-duration {
  font-family: var(--f-script);
  font-size: 17px;
  color: var(--gold-bright);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-duration::before { content: '⏱'; font-size: 18px; }
.stage-goal {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--chalk-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  padding-right: 14px;
  border-right: 2px dashed var(--line-strong);
}
.stage-deliverables {
  list-style: none;
  display: grid;
  gap: 12px;
}
.stage-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--chalk-muted);
  line-height: 1.6;
}
.stage-deliverables .dot-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 12px;
  margin-top: 2px;
}
.stage-deliverables .dot-check::before { content: '✓'; }

/* Step navigation list */
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  position: relative;
}
.stepper-list::before {
  content: '';
  position: absolute;
  top: 30px; bottom: 30px;
  right: 28px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0,
    var(--line-strong) 4px,
    transparent 4px,
    transparent 10px
  );
  z-index: 0;
}
.step-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px dashed transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  font-family: var(--f-body);
}
.step-btn:hover {
  background: rgba(245, 236, 217, 0.04);
  border-color: var(--line);
}
.step-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.step-btn.is-active {
  background: var(--gold-tint);
  border-color: var(--gold);
}
.step-btn.is-active.blue { background: var(--c-blue-tint); border-color: var(--c-blue); }
.step-btn.is-active.green { background: var(--c-green-tint); border-color: var(--c-green); }
.step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--chalk-card-2);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--f-script);
  font-size: 24px;
  color: var(--chalk-muted);
  transition: all 0.3s ease;
}
.step-btn.is-active .step-num {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-style: solid;
  color: var(--chalk-deep);
  box-shadow: 0 0 18px -4px var(--gold);
}
.step-btn.is-active.blue .step-num { background: var(--c-blue); border-color: var(--c-blue); box-shadow: 0 0 18px -4px var(--c-blue); }
.step-btn.is-active.green .step-num { background: var(--c-green); border-color: var(--c-green); box-shadow: 0 0 18px -4px var(--c-green); }
.step-info { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.step-name {
  font-family: var(--f-display-ar);
  font-size: 20px;
  color: var(--chalk);
  line-height: 1.2;
}
.step-sub {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--chalk-muted);
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq {
  padding: 90px 0 50px;
  position: relative;
}
.faq-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.faq-header .eyebrow {
  justify-content: center;
  display: inline-flex;
}
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--chalk-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.faq-item::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 24px;
  width: 38%;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.faq-item:has(.faq-toggle[aria-expanded="true"]) {
  border-color: var(--gold);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5), 0 0 18px -8px var(--gold-tint);
}
.faq-toggle {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 28px;
  font-family: var(--f-display-ar);
  font-size: 21px;
  color: var(--chalk);
  line-height: 1.4;
  text-align: right;
  transition: color 0.3s ease;
}
.faq-toggle:hover { color: var(--gold-bright); }
.faq-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: var(--radius); }
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  font-size: 18px;
  font-family: var(--f-body);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--chalk-deep);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-body-inner {
  padding: 0 28px 26px 28px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--chalk-muted);
  line-height: 1.85;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.faq-body-inner strong {
  color: var(--gold-bright);
  font-weight: 600;
  font-family: var(--f-script);
  font-size: 18px;
}

/* =========================================================
   Why-grid (6 cards)
   ========================================================= */
.why {
  padding: 50px 0 120px;
  position: relative;
}
.why-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 70px;
}
.why-header .eyebrow {
  justify-content: center;
  display: inline-flex;
}
.why-sub {
  font-family: var(--f-body);
  font-size: 19px;
  color: var(--chalk-muted);
  line-height: 1.75;
  margin-top: 24px;
}
.why-sub strong {
  color: var(--gold-bright);
  font-weight: 600;
  font-family: var(--f-script);
  font-size: 22px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--chalk-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 40%;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6), 0 0 20px -8px var(--gold-tint);
}
/* Chalk-wipe sweep on hover — like an eraser passing across */
.why-card { overflow: hidden; }
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(245, 236, 217, 0.05) 47%,
    rgba(255, 213, 74, 0.12) 50%,
    rgba(245, 236, 217, 0.05) 53%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-110%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: inherit;
}
[dir="rtl"] .why-card::after { transform: translateX(110%); }
.why-card:hover::after { transform: translateX(0); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--gold-bright);
}
.why-card h3 {
  font-family: var(--f-display-ar);
  font-size: 24px;
  font-weight: 400;
  color: var(--chalk);
  margin-bottom: 12px;
  line-height: 1.3;
}
.why-card p {
  font-family: var(--f-body);
  font-size: 15.5px;
  color: var(--chalk-muted);
  line-height: 1.75;
}
.why-card strong {
  color: var(--gold-bright);
  font-weight: 600;
  font-family: var(--f-script);
  font-size: 17px;
}
footer {
  padding: 14px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--f-script);
  font-size: 17px;
  color: var(--chalk-muted);
}
footer .pendant {
  display: block;
  margin: 0 auto 16px;
  opacity: 0.6;
}
.footer-copy { text-align: center; }
.footer-company {
  margin-top: 0;
  direction: ltr;
  line-height: 1.65;
}
.footer-company-name {
  display: block;
  font-family: var(--f-body);
  font-size: 20.25px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.footer-company-addr {
  display: block;
  font-family: var(--f-body);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* =========================================================
   Motion & animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes shimmerBar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes sparkleP {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%      { opacity: 0.55; transform: scale(1.25) rotate(180deg); }
}
@keyframes pendantGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 192, 0, 0.3)); }
  50%      { filter: drop-shadow(0 0 22px rgba(255, 192, 0, 0.6)); }
}
@keyframes dotTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.3); }
}
@keyframes ctaShimmer {
  0%   { transform: translateX(-180%); }
  100% { transform: translateX(180%); }
}
@keyframes underlineDraw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Hero load — staggered fade-up */
.hero-eyebrow                  { animation: fadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.1s  both; }
.hero-content > h1            { animation: fadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.hero-content > .hero-tagline { animation: fadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }
.hero-content > .hero-pills   { animation: fadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }
.hero-content > .hero-cta-row { animation: fadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both; }

.hero-visual { animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-pendant-wrap .pendant {
  animation: pendantGlow 4s ease-in-out infinite;
}
.hero-photo {
  animation: photoGlow 4.5s ease-in-out infinite;
}
.hero-photo::after {
  animation: ringRotate 40s linear infinite;
}
.hero-photo::before {
  animation: ringRotate 30s linear infinite reverse;
}

.stat-1 {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s both,
             float 6.5s ease-in-out 1.9s infinite;
}
.stat-2 {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both,
             floatAlt 7.2s ease-in-out 2.05s infinite;
}

/* Twinkling dots */
.hero-visual .dot { animation: dotTwinkle 3s ease-in-out infinite; }
.hero-visual .dot.d1 { animation-delay: 0s; }
.hero-visual .dot.d2 { animation-delay: 0.8s; }
.hero-visual .dot.d3 { animation-delay: 1.6s; }
.hero-visual .dot.d4 { animation-delay: 2.4s; }

/* Sparkle pulse on every ✦ */
.eyebrow::before {
  display: inline-block;
  animation: sparkleP 4s ease-in-out infinite;
}

/* Hand-drawn underline draws in */
.display em::after {
  animation: underlineDraw 1.2s cubic-bezier(0.65, 0, 0.35, 1) 1.2s both;
}

/* Progress bar — initial fallback width set inline; JS animates to live value */
.progress-fill {
  position: relative;
  overflow: hidden;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 236, 217, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmerBar 3s ease-in-out 3s infinite;
}

/* CTA button — looping shimmer */
.cta-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  pointer-events: none;
  animation: ctaShimmer 5s ease-in-out 2.5s infinite;
}
/* Scroll-reveal — only when JS is enabled.
   Content lifts and sharpens into place: a short rise plus a
   blur that resolves,
which reads softer than a plain slide. */
.js .feature-grid > div,
.js .why-header,
.js .why-grid > .why-card,
.js .about-header,
.js .pricing-header,
.js .faq-header,
.js .faq-list > .faq-item {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* No `will-change` on purpose: these selectors match ~23 elements at
     once, and pinning a blurred compositor layer for every one of them
     costs far more GPU memory than the transition saves. */
}
.js .feature-grid > div.is-visible,
.js .why-header.is-visible,
.js .why-grid > .why-card.is-visible,
.js .about-header.is-visible,
.js .pricing-header.is-visible,
.js .faq-header.is-visible,
.js .faq-list > .faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* Chalk underline drawn beneath each section heading as it arrives */
.js .why-header .display,
.js .about-header .display,
.js .pricing-header .display,
.js .faq-header .display {
  position: relative;
}
.js .why-header .display::after,
.js .about-header .display::after,
.js .pricing-header .display::after,
.js .faq-header .display::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: -14px;
  height: 2px;
  width: 0;
  transform: translateX(50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(255, 192, 0, 0.55);
  opacity: 0.9;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.js .why-header.is-visible .display::after,
.js .about-header.is-visible .display::after,
.js .pricing-header.is-visible .display::after,
.js .faq-header.is-visible .display::after {
  width: 132px;
}

/* Section divider pendant glows */
.section-divider .pendant {
  animation: pendantGlow 5s ease-in-out infinite;
}

/* Hover states */
.pill {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease;
}
.pill:hover {
  transform: translateY(-3px);
  background: var(--gold-tint);
  border-color: var(--gold);
  color: var(--chalk);
}

.why-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.why-card:hover .why-icon {
  transform: scale(1.12) rotate(-8deg);
}

.feature-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease;
}
.feature-image:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.feature-list .marker {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
}
.feature-list li:hover .marker {
  transform: scale(1.15) rotate(-5deg);
  background: var(--gold);
  color: var(--chalk-deep);
}

.brand em {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover em {
  transform: rotate(180deg) scale(1.3);
}

.nav-cta {
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.nav-cta:hover::before { left: 100%; }

.hero-visual {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .feature-grid > div,
.js .why-header,
.js .why-grid > .why-card,
.js .about-header,
.js .pricing-header,
.js .pillars-grid > .pillar,
.js .faq-header,
.js .faq-list > .faq-item,
.js .price-includes li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .js .why-header .display::after,
  .js .about-header .display::after,
  .js .pricing-header .display::after,
  .js .faq-header .display::after {
    width: 132px;
  }
  .progress-fill { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* ---------- TABLET (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .tiers { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* Three tiers in a two-column grid leave an orphan on row two —
     let it span both columns but keep a card's width, centred. */
  .tiers > .tier:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    margin-inline: auto;
    width: 100%;
  }
  .container, .nav-inner { padding: 0 32px; }
  .section-divider { padding: 14px 32px; }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 60px; }
  .feature-grid.reverse .feature-image { order: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin: 0 auto; }
  .stepper-detail { aspect-ratio: 4 / 3.6; }
  .stat-1 { top: 16px; left: -16px; }
  .stat-2 { bottom: 16px; right: -16px; }
  .nav-links { display: none; }
  .hero-visual { max-width: 540px; margin: 24px auto 0; }
}

/* ---------- MID / LARGE PHONE (≤ 768px) ---------- */
@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 24px; }
  .nav-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 16px; letter-spacing: 0.3em; padding-right: 0.3em; }
  .brand::after { right: 0.3em; }
  .nav-cta { padding: 8px 18px; font-size: 16px; }
  .hero { padding: 32px 0 32px; }
  .hero-grid { gap: 44px; }
  .hero-eyebrow { font-size: 18px; }
  .hero-photo { width: 320px; height: 320px; }
  /* Critical fix: tagline strong was nowrap → overflow */
  .hero-tagline { font-size: 17px; margin: 22px 0 28px; max-width: 100%; }
  .hero-tagline strong { font-size: 1.4em; white-space: normal; line-height: 1.25; }
}

/* ---------- PHONE (≤ 640px) ---------- */
@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 18px; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; }
  .section-divider { padding: 18px 18px; gap: 14px; }
  .section-divider .line { max-width: 90px; }

  /* ---- Nav ---- */
  .brand { font-size: 14px; letter-spacing: 0.28em; padding-right: 0.28em; }
  .brand::after { right: 0.28em; bottom: -6px; }
  .nav-cta { padding: 7px 14px; font-size: 14px; }

  /* ---- Hero ---- */
  .hero { padding: 24px 0 20px; }
  .hero-eyebrow { font-size: 15px; margin-bottom: 12px; line-height: 1.55; }
  .hero-eyebrow::before, .hero-eyebrow::after { font-size: 13px; margin: 0 6px; }
  .hero-grid { gap: 32px; }
  .hero-tagline { font-size: 16px; margin: 18px 0 22px; line-height: 1.6; }
  .hero-tagline strong {
    font-size: 1.25em;
    white-space: normal;
    line-height: 1.3;
    display: inline-block;
    margin-top: 4px;
  }
  .hero-pills { gap: 8px; margin-bottom: 28px; }
  .pill { font-size: 15px; padding: 7px 14px; gap: 6px; }
  .cta-button { padding: 14px 26px; font-size: 19px; gap: 8px; }

  /* ---- Hero visual / photo ---- */
  .hero-visual {
    aspect-ratio: auto;
    padding: 24px 0 8px;
    margin-top: 4px;
    max-width: 100%;
  }
  .hero-frame { display: none; }
  .hero-visual .dot { display: none; }
  .hero-photo { width: 240px; height: 240px; }
  .hero-photo::before { inset: -12px; }
  .hero-photo::after { inset: -22px; }
  .hero-caption { font-size: 58px; margin-top: 18px; }
  .hero-subcaption { font-size: 16px; }
  /* Hide floating stat chips on mobile — they overlap the photo and add clutter. */
  .stat-1, .stat-2 { display: none; }

  /* ---- About ---- */
  section.about { padding: 30px 0 50px; }
  .about-header { margin-bottom: 40px; }
  .about-name { margin: 10px 0 6px; }
  .about-name::before { display: none; }
  .about-name::after { bottom: -6px; height: 8px; }
  .about-sub { font-size: 21px; line-height: 1.4; margin-top: 22px; }
  .about-sub-tight { font-size: 20px; margin-top: 14px; }
  .about::before { font-size: 64px; }
  .about::after { font-size: 80px; }

  /* ---- Pillars ---- */
  .pillar { padding: 32px 20px 26px; }
  .pillar-num { font-size: 42px; top: 14px; left: 18px; }
  .pillar-icon-wrap { width: 70px; height: 70px; margin-bottom: 18px; }
  .pillar-icon { width: 60px; height: 60px; font-size: 26px; }
  .pillar-title { font-size: 22px; }
  .pillar-hero-num { font-size: 56px; }
  .pillar-hero-label { font-size: 14px; }
  .pillar-list { gap: 8px; }
  .pillar-list li { font-size: 13.5px; padding: 10px 12px; gap: 10px; }
  .pillar-list li .li-check { flex-basis: 20px; width: 20px; height: 20px; font-size: 11px; }
  .pillar-list li em { font-size: 15px; }
  .pillar-creds { gap: 6px; }
  .pillar-creds span { font-size: 11.5px; padding: 5px 11px; }

  /* ---- Features ---- */
  section.feature, .why { padding: 50px 0; }
  .feature-grid { gap: 36px; }
  .feature-sub { font-size: 16.5px; margin: 22px 0 28px; max-width: 100%; line-height: 1.7; }
  .feature-list { gap: 18px; }
  .feature-list li { grid-template-columns: 34px 1fr; gap: 14px; }
  .feature-list .marker { width: 34px; height: 34px; font-size: 18px; }
  .feature-list .marker.check::before { font-size: 15px; }
  .feature-list .item-title { font-size: 22px; }
  .feature-list .item-text { font-size: 15px; line-height: 1.65; }

  /* ---- Mockups (shared) ---- */
  .video-mockup, .calendly-mockup, .qbank-mockup, .notion-mockup, .community-mockup {
    padding: 10px;
    gap: 10px;
    aspect-ratio: auto;
    min-height: 500px;
  }
  .calendly-grid  { grid-template-columns: 1fr; }
  .qbank-content  { grid-template-columns: 1fr; }
  .qbank-sidebar  { border-right: none; padding-right: 0; }
  .notion-body    { grid-template-columns: 1fr; }
  .notion-sidebar { border-left: none; border-bottom: 1px dashed var(--line); max-height: 140px; }
  /* Video mockup stays 2-col so the platform layout reads clearly */
  .video-mockup-body { grid-template-columns: 1.35fr 1fr; gap: 8px; }
  .mockup-bar { padding: 5px 8px; }
  .mockup-bar-title { font-size: 11px; }
  .lesson-list { padding: 8px 6px; }
  .lesson-item { font-size: 10.5px; padding: 7px; gap: 7px; }
  .lesson-num { width: 18px; height: 18px; font-size: 9.5px; }
  .play-btn { width: 48px; height: 48px; }
  .play-btn::before { border-left-width: 12px; border-top-width: 7px; border-bottom-width: 7px; }

  /* ---- Community mockup ---- */
  .community-header { padding: 12px 14px; }
  .comm-title { font-size: 14px; }
  .comm-online { font-size: 10px; padding: 3px 8px; }
  .community-feed { padding: 10px; gap: 8px; }
  .comm-post { padding: 9px 10px; gap: 8px; }
  .comm-avatar { width: 28px; height: 28px; font-size: 13px; }
  .comm-name { font-size: 11px; }
  .comm-time { font-size: 9px; }
  .comm-post-text { font-size: 11.5px; }
  .community-input { padding: 10px 12px; }
  .input-avatar { width: 24px; height: 24px; font-size: 13px; }
  .input-placeholder { font-size: 10.5px; }

  /* ---- Pricing ---- */
  .pricing { padding: 36px 0 56px; }
  .pricing::before { font-size: 50px; }
  .pricing::after  { font-size: 64px; }
  .pricing-header { margin-bottom: 36px; }
  .pricing-sub { font-size: 15px; margin-top: 14px; }
  .pricing-sub strong { font-size: 19px; }
  .tiers { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .tier { padding: 28px 20px 22px; }
  .tier.is-featured { padding-top: 42px; }
  .tier-for { min-height: 0; max-width: 100%; }
  .tier-plan { min-height: 0; }
  .tier-num { font-size: 46px; }
  .compare-hint { display: block; }
  .compare { min-width: 600px; }
  .compare th, .compare td { padding: 12px 9px; }
  .compare thead th { font-size: 18px; }
  .compare tbody th[scope='row'] { font-size: 12.5px; white-space: normal; }
  .compare .val { font-size: 12px; }
  .pricing-trust { font-size: 11px; margin-top: 16px; line-height: 1.6; }

  /* ---- FAQ ---- */
  section.faq { padding: 50px 0 36px; }
  .faq-header { margin-bottom: 36px; }
  .faq-list { gap: 12px; }
  .faq-toggle { padding: 16px 18px; font-size: 15.5px; gap: 12px; line-height: 1.45; text-align: right; }
  .faq-body-inner { padding: 14px 18px 20px; font-size: 14px; line-height: 1.75; }
  .faq-icon { width: 28px; height: 28px; font-size: 14px; }

  /* ---- Why grid ---- */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 26px 22px; }
  footer { padding: 14px 0 28px; font-size: 14px; }

  /* ---- Pendant sizes ---- */
  .pendant-xl { width: 128px; height: 192px; }
  .pendant-lg { width: 96px; height: 144px; }
}

/* ---------- SMALL PHONE (≤ 420px) ---------- */
@media (max-width: 420px) {
  .container, .nav-inner { padding: 0 14px; }
  .nav-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 12.5px; letter-spacing: 0.24em; padding-right: 0.24em; }
  .brand::after { right: 0.24em; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }

  .hero-eyebrow { font-size: 14px; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-caption { font-size: 48px; }
  .hero-subcaption { font-size: 14px; }
  .pill { font-size: 14px; padding: 6px 12px; }
  .cta-button { padding: 12px 22px; font-size: 17px; }
  .tier-cta { font-size: 17px; padding: 11px 18px; }

  .pillar { padding: 28px 18px 22px; }
  .pillar-icon-wrap { width: 64px; height: 64px; }
  .pillar-icon { width: 54px; height: 54px; font-size: 24px; }
  .pillar-title { font-size: 20px; }
  .pillar-hero-num { font-size: 50px; }

  .tier-num { font-size: 42px; }
  .tier-name { font-size: 26px; }
  .tier-badge { font-size: 11px; padding: 4px 14px 5px; }

  .feature-list .item-title { font-size: 20px; }
  .feature-list .item-text { font-size: 14px; }

  .faq-toggle { padding: 14px 14px; font-size: 14.5px; }
  .faq-body-inner { padding: 12px 14px 18px; font-size: 13.5px; }

  .about-sub { font-size: 19px; }
  .about-sub-tight { font-size: 18px; }
}

/* =========================================================
   صفحات الباقات — الهيكل (breadcrumb · hero · sidebar · شريط الموبايل · التنقّل بين الباقات)
   (أُضيف مع تقسيم الموقع لأربع صفحات)
   ========================================================= */
/* =========================================================
       PACKAGE PAGES — shared chrome
       basic.html · submission.html · full.html

       Namespace:  .breadcrumb  +  everything under .pkg-*
       Depends on: site-base.css (tokens, .container, .display,
                   .pendant, @keyframes fadeUp / pendantGlow /
                   discountShimmer)
       Load AFTER site-base.css.

       RTL NOTE — the document is dir="rtl", so a grid's inline axis
       runs RIGHT → LEFT. Column line 1 is the RIGHT edge. Every
       placement below is written with that in mind; anything that
       must be physically centred uses inset-inline + margin-inline
       (direction-agnostic) rather than a left/right offset.
       ========================================================= */

    /* ---------------------------------------------------------
       Local sizing tokens.
       Colours always come from the base palette — these are
       geometry only, so they can be re-tuned per breakpoint.

       --pkg-nav-h mirrors the real height of .nav (which is
       position:sticky, top:0, z-index:50 — NOT fixed). Measured in
       the browser, not guessed: 88px ≥1025px, then 52 / 72 / 63 / 56
       as the base stylesheet re-pads .nav-inner at each breakpoint.
       Only the ≥1025px value is load-bearing (it is what .pkg-side
       sticks to); the rest are kept honest in case the breadcrumb is
       ever pinned too.
       --------------------------------------------------------- */
    :root {
      --pkg-nav-h:  88px;
      --pkg-side-w: 392px;
      --pkg-gap:    48px;
      --pkg-bar-h:  74px;
    }

    /* =========================================================
       1 · BREADCRUMB — chalk trail directly under the nav
       ========================================================= */
    .breadcrumb {
      background: rgba(20, 17, 13, 0.32);
      border-bottom: 1px dashed var(--line-soft);
      padding: 11px 0 12px;
      position: relative;
      z-index: 2;
    }
    .breadcrumb > .container {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
      font-family: var(--f-body);
      font-size: 13.5px;
      line-height: 1.5;
      color: var(--chalk-muted);
    }
    .breadcrumb a {
      color: var(--chalk-muted);
      opacity: 0.78;
      border-bottom: 1px solid transparent;
      padding-bottom: 1px;
      transition: color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
    }
    .breadcrumb a:hover {
      color: var(--gold-bright);
      opacity: 1;
      border-bottom-color: rgba(255, 192, 0, 0.45);
    }
    .breadcrumb a:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
      border-radius: 4px;
    }
    /* ‹ is a bidi-MIRRORED character (U+2039 ↔ U+203A). Left as-is
       inside an RTL run the browser flips it to ‹›, so it would point
       right — backwards for an RTL breadcrumb, where the trail runs
       leftwards. Isolating it in an LTR embedding keeps the glyph
       unmirrored, pointing in the real direction of travel. */
    .breadcrumb .sep {
      direction: ltr;
      unicode-bidi: isolate;
      color: var(--chalk-dim);
      font-size: 15px;
      line-height: 1;
      user-select: none;
    }
    .breadcrumb .current {
      font-family: var(--f-script);
      font-size: 17px;
      line-height: 1.2;
      color: var(--gold);
      letter-spacing: 0.01em;
    }

    /* =========================================================
       2 · PACKAGE HERO — compact; far shorter than the home hero
       ========================================================= */
    .pkg-hero {
      padding: 34px 0 26px;
      position: relative;
    }
    .pkg-hero > .container {
      max-width: 940px;
      text-align: center;
    }

    /* Gold pill — same family as .tier-badge, but free-standing */
    .pkg-badge {
      display: inline-block;
      background: linear-gradient(180deg, var(--gold-bright), var(--gold));
      color: var(--chalk-deep);
      padding: 6px 20px 7px;
      border-radius: var(--radius-pill);
      font-family: var(--f-body);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.5;
      letter-spacing: 0.02em;
      white-space: nowrap;
      box-shadow: 0 6px 18px -7px rgba(255, 192, 0, 0.6);
      margin-bottom: 20px;
    }
    /* «الأكثر ملاءمة» variant — the ✦ lives in the HTML, not here.
       This selector out-specifies the entrance rule further down, so
       it has to carry the fadeUp itself; the breathe is delayed until
       the entrance has landed (0.06 + 0.9 ≈ 0.96s). */
    .pkg-hero.is-featured .pkg-badge {
      box-shadow: 0 8px 26px -8px rgba(255, 192, 0, 0.8);
      animation:
        fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both,
        pkgBadgeBreathe 3.4s ease-in-out 1s infinite;
    }
    @keyframes pkgBadgeBreathe {
      0%, 100% { transform: scale(1);    box-shadow: 0 8px 26px -8px rgba(255, 192, 0, 0.55); }
      50%      { transform: scale(1.035); box-shadow: 0 10px 34px -8px rgba(255, 213, 74, 0.85); }
    }

    /* The h1 clamp in the base is tuned for the home hero (up to
       104px) — far too loud here. Scoped override only. */
    .pkg-hero h1.display {
      font-size: clamp(34px, 5vw, 66px);
      line-height: 1.22;
    }
    .pkg-for {
      font-family: var(--f-body);
      font-size: 17.5px;
      line-height: 1.75;
      color: var(--chalk-muted);
      max-width: 640px;
      margin: 22px auto 0;
    }
    .pkg-for strong {
      font-family: var(--f-script);
      font-weight: 600;
      font-size: 21px;
      color: var(--gold-bright);
      letter-spacing: 0.01em;
    }

    /* Entrance — CSS-only (fadeUp lives in site-base.css) so the
       content is never left invisible when JS is absent. Nothing
       here depends on the .js / .is-visible observer. */
    .pkg-hero .pkg-badge    { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both; }
    .pkg-hero h1.display    { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
    .pkg-hero .pkg-for      { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both; }

    /* =========================================================
       3 · PAGE LAYOUT — content + sticky buy-box
       ========================================================= */
    .pkg-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) var(--pkg-side-w);
      gap: var(--pkg-gap);
      /* start, not stretch — a stretched grid item fills the whole
         row and then has no slack left to slide within, which
         silently kills position:sticky on .pkg-side */
      align-items: start;
      /* sticky dies inside any clipping ancestor */
      overflow: visible;
      padding-bottom: 20px;
    }

    /* RTL PLACEMENT — this is the unambiguous bit.
       In dir="rtl" grid line 1 is the RIGHT edge, so:
         column 1  =  RIGHT  →  .pkg-main   (content, reads first)
         column 2  =  LEFT   →  .pkg-side   (the sidebar)
       Placement is explicit, so it holds no matter which of the two
       comes first in the markup (<aside> is written first).
       Both need an explicit grid-row too: with only a column named,
       auto-placement pushes the second item to a NEW ROW (the sidebar
       is written first, so the content column landed under it). */
    .pkg-main { grid-column: 1; grid-row: 1; min-width: 0; }
    .pkg-side { grid-column: 2; grid-row: 1; }

    .pkg-side {
      position: sticky;
      top: calc(var(--pkg-nav-h) + 20px);
      align-self: start;
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding: 18px 18px 22px;
      text-align: center;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 192, 0, 0.06) 0%, transparent 62%),
        rgba(20, 17, 13, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius-lg);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.36), var(--shadow-card);
      /* opacity/blur only — no transform, so the sticky element is
         never handed a compositor transform it has to fight */
      animation: pkgSideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
    }
    @keyframes pkgSideIn {
      from { opacity: 0; filter: blur(5px); }
      to   { opacity: 1; filter: none; }
    }

    /* =========================================================
       4 · SIDEBAR INTERNALS
       ========================================================= */

    /* --- 4a · Package visual: chalk frame + pendant + name --- */
    .pkg-visual {
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      gap: 10px;
      padding: 24px 16px 20px;
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius);
      background:
        radial-gradient(ellipse at center, rgba(255, 192, 0, 0.10) 0%, transparent 65%),
        var(--chalk-card-2);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3);
    }
    /* Faint chalk grid — same texture idiom as .video-screen */
    .pkg-visual::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(245, 236, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 236, 217, 0.03) 1px, transparent 1px);
      background-size: 20px 20px;
      opacity: 0.6;
      pointer-events: none;
    }
    .pkg-visual > * { position: relative; z-index: 1; }
    .pkg-visual .pendant {
      animation: pendantGlow 5s ease-in-out infinite;
    }
    .pkg-visual-name {
      font-family: var(--f-display-ar);
      font-size: 27px;
      line-height: 1.3;
      color: var(--gold-bright);
      letter-spacing: 0.01em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }

    /* --- 4b · Price block ---------------------------------- */
    /* Row, wrapping: .pkg-plan claims a full line
       (flex-basis:100%), .pkg-num + .pkg-cur share the middle line
       on a common baseline. */
    .pkg-price {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: center;
      gap: 7px;
      padding-top: 16px;
      border-top: 1px dashed var(--line);
    }
    /* Same gold-foil treatment as .tier-num. This is the single
       price on the page, so it always shimmers (on the ladder only
       the featured tier does). */
    .pkg-num {
      font-family: var(--f-script);
      font-size: 54px;
      line-height: 1;
      letter-spacing: 0.01em;
      background: linear-gradient(100deg,
        var(--gold) 0%, var(--gold-bright) 30%, #ffeaa0 50%,
        var(--gold-bright) 70%, var(--gold) 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      filter: drop-shadow(0 0 20px rgba(255, 192, 0, 0.34));
      animation: discountShimmer 3.6s ease-in-out infinite;
    }
    .pkg-cur {
      font-family: var(--f-body);
      font-size: 14px;
      color: var(--chalk-muted);
    }
    .pkg-plan {
      flex: 0 0 100%;
      font-family: var(--f-body);
      font-size: 12.5px;
      line-height: 1.6;
      color: var(--chalk-muted);
      opacity: 0.9;
      margin-top: 9px;
    }

    /* --- 4c · Primary CTA (weight of .tier-cta.is-solid) ---- */
    .pkg-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 100%;
      padding: 13px 22px;
      border-radius: var(--radius-pill);
      font-family: var(--f-script);
      font-size: 20px;
      letter-spacing: 0.02em;
      background: var(--gold);
      color: var(--chalk-deep);
      border: 1px solid var(--gold);
      box-shadow: 0 6px 20px -8px rgba(255, 192, 0, 0.6);
      transition: background 0.25s ease, transform 0.2s ease,
                  box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .pkg-cta:hover {
      background: var(--gold-bright);
      border-color: var(--gold-bright);
      transform: translateY(-2px);
      box-shadow: 0 12px 28px -10px rgba(255, 192, 0, 0.7);
    }
    .pkg-cta:active { transform: translateY(0); transition-duration: 0.09s; }
    .pkg-cta:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
    .pkg-cta .arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
    .pkg-cta:hover .arrow { transform: translateX(-5px); }

    /* --- 4d · Guarantee line -------------------------------- */
    .pkg-guarantee {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 8px;
      font-family: var(--f-body);
      font-size: 12.5px;
      line-height: 1.6;
      color: var(--chalk-muted);
      opacity: 0.92;
    }
    .pkg-guarantee::before {
      content: '✓';
      flex: 0 0 auto;
      color: var(--c-green);
      font-size: 13px;
      line-height: 1.55;
      text-shadow: 0 0 12px rgba(146, 208, 80, 0.45);
    }

    /* =========================================================
       5 · MOBILE STICKY BUY BAR — ≤1024px only
       ========================================================= */
    .pkg-mobile-bar { display: none; }

    /* =========================================================
       6 · PACKAGE SWITCHER
       ========================================================= */
    .pkg-switcher {
      padding: 56px 0 44px;
      position: relative;
    }
    .pkg-switcher .display {
      text-align: center;
      font-size: clamp(26px, 3.6vw, 46px);
      margin-bottom: 34px;
    }
    .pkg-switch-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      align-items: stretch;
    }
    .pkg-switch-card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 24px 20px 20px;
      text-align: center;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 192, 0, 0.05) 0%, transparent 62%),
        rgba(20, 17, 13, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius-lg);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.36), var(--shadow-card);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  border-color 0.3s ease, box-shadow 0.3s ease;
    }
    a.pkg-switch-card:hover {
      transform: translateY(-5px);
      border-color: rgba(255, 192, 0, 0.5);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.36), var(--shadow-card),
                  0 0 40px -14px rgba(255, 192, 0, 0.45);
    }
    a.pkg-switch-card:focus-visible {
      outline: 2px solid var(--gold-bright);
      outline-offset: 4px;
    }
    /* Current page — a div, not a link: no hover, no pointer */
    .pkg-switch-card.is-current {
      border-style: solid;
      border-color: var(--gold);
      padding-top: 40px;
      cursor: default;
      box-shadow:
        inset 0 0 70px rgba(0, 0, 0, 0.4),
        var(--shadow-card),
        0 0 40px -14px rgba(255, 192, 0, 0.3);
    }
    /* «أنت هنا» chip — centred with logical insets + auto margins,
       so it needs no left/right assumption at all */
    .pkg-here {
      position: absolute;
      top: 0;
      inset-inline: 0;
      margin-inline: auto;
      width: fit-content;
      background: linear-gradient(180deg, var(--gold-bright), var(--gold));
      color: var(--chalk-deep);
      padding: 5px 18px 6px;
      border-radius: 0 0 12px 12px;
      font-family: var(--f-body);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.4;
      letter-spacing: 0.02em;
      white-space: nowrap;
      box-shadow: 0 6px 16px -6px rgba(255, 192, 0, 0.6);
      z-index: 2;
    }
    /* Card internals (my additions — rename freely) */
    .pkg-switch-name {
      font-family: var(--f-script);
      font-size: 26px;
      line-height: 1.15;
      color: var(--gold-bright);
      letter-spacing: 0.02em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }
    .pkg-switch-price {
      font-family: var(--f-body);
      font-size: 15px;
      color: var(--chalk-soft);
      letter-spacing: 0.01em;
    }
    .pkg-switch-go {
      margin-top: auto;
      padding-top: 8px;
      font-family: var(--f-script);
      font-size: 17px;
      color: var(--gold);
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }
    .pkg-switch-card .arrow {
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
      display: inline-block;
    }
    a.pkg-switch-card:hover .arrow { transform: translateX(-5px); }
    .pkg-switch-card.is-current .pkg-switch-go { color: var(--chalk-dim); }

    /* Optional stagger: default state is VISIBLE, so this can never
       strand content behind a missing observer. If .is-visible is
       added (same pattern as .tiers), the card animates in.
       Set style="--i:0|1|2" on the cards like the tier row does. */
    .pkg-switch-grid > .pkg-switch-card.is-visible {
      animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-delay: calc(var(--i, 0) * 0.09s);
    }

    /* =========================================================
       7 · .pkg-main GLUE — reused .feature / .faq sections
       Everything is scoped under .pkg-main so the home page is
       untouched.
       ========================================================= */
    /* Nested .container would double the 48px gutter */
    .pkg-main .container {
      max-width: 100%;
      padding-inline: 0;
    }
    .pkg-main section.feature { padding: 30px 0 40px; }
    /* must come AFTER the shorthand above, same specificity */
    .pkg-main > section:first-child { padding-top: 0; }
    .pkg-main .feature-grid   { gap: 56px; }
    .pkg-main .feature-sub    { max-width: 100%; }
    /* h2.display clamps to 76px in the base — too loud inside a
       ~1000px column */
    .pkg-main h2.display { font-size: clamp(28px, 3.4vw, 50px); }
    .pkg-main section.faq { padding: 46px 0 24px; }
    .pkg-main .faq-header { margin-bottom: 34px; }
    .pkg-main .faq-list   { max-width: 100%; }

    /* =========================================================
       8 · RESPONSIVE
       ========================================================= */

    /* ---------- ≤1360px — the squeeze window ----------
       Below this the content column drops under ~830px, which is too
       narrow for a two-up feature grid alongside a rich mockup — one
       of the mockups starts winning the track and the columns go
       lopsided. Widening the sidebar to 392px moved this boundary up
       from 1200px, so the breakpoint moved with it. */
    @media (max-width: 1360px) {
      :root { --pkg-side-w: 336px; --pkg-gap: 36px; }
      .pkg-main .feature-grid { grid-template-columns: 1fr; gap: 44px; }
    }

    /* ---------- TABLET (≤1024px) ----------
       Sidebar unpins, unstacks and moves ABOVE the content.
       The mobile buy bar takes over the CTA job. */
    @media (max-width: 1024px) {
      :root { --pkg-nav-h: 52px; }   /* .nav-inner loses its vertical padding here */

      .pkg-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
      }
      /* Reset the desktop column placement, then order explicitly
         so the result does not depend on source order. */
      .pkg-side,
      .pkg-main { grid-column: auto; grid-row: auto; }
      .pkg-side { order: 0; }
      .pkg-main { order: 1; }

      .pkg-side {
        position: static;
        top: auto;
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
      }

      .pkg-hero { padding: 28px 0 22px; }

      /* ----- Fixed buy bar ----- */
      .pkg-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        position: fixed;
        inset-inline: 0;          /* logical → both edges, any dir */
        bottom: 0;
        /* above page content and above .wa-float (z-index 90);
           the nav is z-index 50 and lives at the other end */
        z-index: 95;
        padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, var(--chalk-card-2), var(--chalk-deep));
        backdrop-filter: blur(14px) saturate(120%);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.7);
        /* Locks the bar to the token so body.has-pkg-bar's
           padding-bottom is a guarantee, not an estimate. Content
           may still push it taller (iOS safe area), and the body
           padding adds the same env() so it stays clear. */
        min-height: var(--pkg-bar-h);
      }
      /* The bar reuses .pkg-price / .pkg-num / .pkg-cur /
         .pkg-cta, re-tuned for a 74px-tall strip */
      .pkg-mobile-bar .pkg-price {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;   /* = right edge in RTL */
        gap: 6px;
        padding-top: 0;
        border-top: 0;
      }
      .pkg-mobile-bar .pkg-num { font-size: 30px; }
      .pkg-mobile-bar .pkg-cur { font-size: 12.5px; }
      .pkg-mobile-bar .pkg-plan { display: none; }
      .pkg-mobile-bar .pkg-cta {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 22px;
        font-size: 18px;
        white-space: nowrap;   /* keeps the strip one row tall */
      }

      /* Keep the footer clear of the bar */
      body.has-pkg-bar {
        padding-bottom: calc(var(--pkg-bar-h) + env(safe-area-inset-bottom, 0px) + 12px);
      }
      /* Lift the floating WhatsApp button above the bar. Scoped to
         .has-pkg-bar so the home page is unaffected. */
      body.has-pkg-bar .wa-float {
        bottom: calc(var(--pkg-bar-h) + env(safe-area-inset-bottom, 0px) + 14px);
      }
    }

    /* ---------- MID / LARGE PHONE (≤768px) ---------- */
    @media (max-width: 768px) {
      :root { --pkg-nav-h: 72px; --pkg-bar-h: 70px; }

      .breadcrumb { padding: 9px 0 10px; }
      .breadcrumb > .container { font-size: 12.5px; gap: 7px; }
      .breadcrumb .current { font-size: 15.5px; }

      .pkg-hero { padding: 24px 0 18px; }
      .pkg-hero h1.display { font-size: clamp(30px, 6.6vw, 46px); }
      .pkg-for { font-size: 16px; margin-top: 18px; }
      .pkg-for strong { font-size: 19px; }

      .pkg-layout { gap: 32px; padding-bottom: 12px; }

      .pkg-switcher { padding: 40px 0 32px; }
      .pkg-switcher .display { margin-bottom: 26px; }
      .pkg-switch-grid { grid-template-columns: 1fr; gap: 14px; }

      .pkg-main section.feature { padding: 26px 0 32px; }
      .pkg-main .feature-grid { gap: 36px; }
      .pkg-main section.faq { padding: 36px 0 20px; }
    }

    /* ---------- PHONE (≤640px) ---------- */
    @media (max-width: 640px) {
      :root { --pkg-nav-h: 63px; }

      .breadcrumb > .container { font-size: 12px; gap: 6px; }
      .breadcrumb .sep { font-size: 13px; }

      .pkg-hero { padding: 20px 0 16px; }
      .pkg-badge { font-size: 11px; padding: 5px 16px 6px; margin-bottom: 16px; }

      .pkg-side { padding: 14px 14px 18px; gap: 15px; max-width: 100%; }
      .pkg-visual { padding: 18px 12px 16px; }
      .pkg-visual-name { font-size: 23px; }
      .pkg-price { padding-top: 13px; }
      .pkg-num { font-size: 46px; }
      .pkg-cta { font-size: 18px; padding: 12px 18px; }
      .pkg-guarantee { font-size: 12px; }

      .pkg-mobile-bar { padding-inline: 14px; gap: 10px; }
      .pkg-mobile-bar .pkg-num { font-size: 27px; }
      .pkg-mobile-bar .pkg-cta { font-size: 17px; padding: 9px 18px; }

      .pkg-switch-card { padding: 20px 16px 18px; }
      .pkg-switch-card.is-current { padding-top: 36px; }
      .pkg-switch-name { font-size: 23px; }
      .pkg-switch-price { font-size: 14px; }
    }

    /* ---------- SMALL PHONE (≤420px) ---------- */
    @media (max-width: 420px) {
      :root { --pkg-nav-h: 56px; --pkg-bar-h: 68px; }

      .breadcrumb > .container { font-size: 11.5px; }
      .pkg-hero h1.display { font-size: clamp(27px, 8vw, 38px); }
      .pkg-num { font-size: 42px; }
      .pkg-visual-name { font-size: 21px; }
      .pkg-cta { font-size: 17px; }
      .pkg-mobile-bar .pkg-num { font-size: 24px; }
      .pkg-mobile-bar .pkg-cta { font-size: 16px; padding: 9px 15px; }
      .pkg-switch-name { font-size: 21px; }
    }

    /* =========================================================
       9 · REDUCED MOTION
       site-base.css already neutralises animation/transition
       globally with !important; this block is the explicit,
       self-contained version for everything added above — and it
       makes sure nothing is left mid-animation or invisible.
       ========================================================= */
    @media (prefers-reduced-motion: reduce) {
      .pkg-hero .pkg-badge,
      .pkg-hero h1.display,
      .pkg-hero .pkg-for,
      .pkg-hero.is-featured .pkg-badge,
      .pkg-side,
      .pkg-visual .pendant,
      .pkg-num,
      .pkg-switch-grid > .pkg-switch-card,
      .pkg-switch-grid > .pkg-switch-card.is-visible {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
      }
      /* keep the gold foil, drop the sweep */
      .pkg-num {
        background-position: 0% 50% !important;
        filter: drop-shadow(0 0 20px rgba(255, 192, 0, 0.34)) !important;
      }
      /* pendant keeps its base glow from .pendant */
      .pkg-visual .pendant {
        filter: drop-shadow(0 0 10px rgba(255, 192, 0, 0.45)) !important;
      }
      .pkg-cta,
      .pkg-cta .arrow,
      .pkg-switch-card,
      .pkg-switch-card .arrow,
      .breadcrumb a {
        transition: none !important;
      }
      .pkg-cta:hover,
      a.pkg-switch-card:hover {
        transform: none !important;
      }
      .pkg-cta:hover .arrow,
      a.pkg-switch-card:hover .arrow {
        transform: none !important;
      }
    }


/* =========================================================
   قسم مراجعة SOE
   (أُضيف مع تقسيم الموقع لأربع صفحات)
   ========================================================= */
/* =========================================================
       Mockup: SOE Review UI — «مراجعة SOE»
       All rules namespaced under .soe-* so they can be appended
       to the base sheet without touching anything else.
       Shared by soe-submission.html and soe-full.html.
       ========================================================= */
    .soe-mockup {
      aspect-ratio: 4 / 3.6;
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
      border: 1px dashed var(--line-strong);
      box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden;
    }
    .soe-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 0;
      background: rgba(20, 17, 13, 0.5);
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      padding: 14px;
    }

    /* ---------- Header: document name + counter / cadence ----------
       The .soe-meta block is the only part of the MOCKUP that differs
       between the two page variants; the headline, feature-sub and the
       fourth list item differ too (see the HTML). */
    .soe-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .soe-doc {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
    }
    .soe-doc-icon { font-size: 13px; }
    .soe-doc-title {
      font-family: var(--f-display-ar);
      font-size: 15px;
      color: var(--gold-bright);
      white-space: nowrap;
    }
    .soe-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--f-body);
      font-size: 11px;
      color: var(--chalk-muted);
    }
    .soe-counter {
      background: var(--c-green-tint);
      color: var(--c-green-soft);
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      border: 1px dashed var(--c-green);
      white-space: nowrap;
    }
    .soe-cadence {
      opacity: 0.75;
      white-space: nowrap;
    }

    /* ---------- The page: written SOE + margin review comments ----------
       Column 1 lands on the right in RTL (the document), column 2 on the
       left (the review rail) — same reading order as .qbank-content. */
    .soe-page {
      flex: 1;
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 12px;
      min-height: 0;
    }

    /* ---- The written SOE itself: an English document inside an RTL page ---- */
    .soe-text {
      direction: ltr;
      text-align: left;
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 9px;
      overflow-y: auto;
      padding: 12px 12px 14px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 10px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .soe-text::-webkit-scrollbar { width: 4px; }
    .soe-text::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }
    .soe-text-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .soe-comp {
      font-family: var(--f-body);
      font-size: 11px;
      font-weight: 600;
      color: var(--chalk);
      letter-spacing: 0.02em;
    }
    .soe-lvl {
      font-family: var(--f-body);
      font-size: 8.5px;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 2px 7px;
      border-radius: 4px;
      background: rgba(245, 236, 217, 0.08);
      border: 1px solid var(--line-strong);
      color: var(--chalk);
      white-space: nowrap;
    }
    .soe-para {
      flex-shrink: 0;
      font-family: var(--f-body);
      font-size: 11.5px;
      line-height: 1.7;
      color: var(--chalk);
    }

    /* ---- Reviewed phrase: chalk highlight + hand-drawn squiggle ----
       left/right are symmetric here, so the underline is direction-agnostic. */
    .soe-hl {
      position: relative;
      display: inline-block;
      white-space: nowrap;
      background: var(--gold-tint);
      color: var(--chalk);
      border-radius: 3px;
      padding: 0 3px;
    }
    .soe-hl::after {
      content: '';
      position: absolute;
      left: 2%;
      right: 2%;
      bottom: -5px;
      height: 6px;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 6 Q 30 1, 60 5 T 120 5 T 198 5' stroke='%23FFC000' stroke-width='2.4' fill='none' stroke-linecap='round' opacity='0.9'/></svg>") no-repeat center / 100% 100%;
      pointer-events: none;
    }
    .soe-hl.is-good { background: var(--c-green-tint); }
    .soe-hl.is-good::after {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'><path d='M2 6 Q 30 1, 60 5 T 120 5 T 198 5' stroke='%2392D050' stroke-width='2.4' fill='none' stroke-linecap='round' opacity='0.9'/></svg>");
    }

    /* ---- Numbered anchor tying a phrase to its margin comment ---- */
    .soe-ref {
      font-family: var(--f-body);
      font-size: 8px;
      font-weight: 700;
      line-height: 1;
      vertical-align: super;
      margin-inline-start: 2px;
      padding: 2px 4px;
      border-radius: 4px;
      background: var(--gold);
      color: var(--chalk-deep);
    }
    .soe-ref.is-good { background: var(--c-green); }

    /* ---- Writing caret at the end of the last line ---- */
    .soe-caret {
      display: inline-block;
      width: 1.5px;
      height: 11px;
      vertical-align: -2px;
      margin-inline-start: 3px;
      background: var(--gold);
      animation: soeCaret 1.1s step-end infinite;
    }
    @keyframes soeCaret {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0; }
    }

    /* ---- Faded rules hinting at the rest of the page ----
       Grows to fill whatever height is left, so the page never reads as
       half-empty when .feature-grid collapses and the mockup goes wide. */
    .soe-ghost {
      flex: 1;
      min-height: 34px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      margin-top: 4px;
      opacity: 0.5;
    }
    .soe-ghost span {
      flex-shrink: 0;
      height: 5px;
      border-radius: 3px;
      /* inside the LTR .soe-text block, so the fade direction is stable */
      background: linear-gradient(90deg, rgba(245,236,217,0.16), rgba(245,236,217,0.05));
    }
    .soe-ghost span:nth-child(1) { width: 94%; }
    .soe-ghost span:nth-child(2) { width: 80%; }
    .soe-ghost span:nth-child(3) { width: 88%; }
    .soe-ghost span:nth-child(4) { width: 46%; }
    /* continues the ruled page down to the bottom edge, fading out */
    .soe-ghost::after {
      content: '';
      flex: 1;
      min-height: 0;
      margin-top: 7px;
      background: repeating-linear-gradient(
        to bottom,
        rgba(245,236,217,0.13) 0 5px,
        rgba(245,236,217,0) 5px 17px
      );
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.85) 30%, rgba(0,0,0,0));
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.85) 30%, rgba(0,0,0,0));
    }

    /* ---- Margin review comments ----
       The rail is the left column in RTL, so its inline-start edge is the
       one facing the document — that is where the divider belongs. */
    .soe-notes {
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      border-inline-start: 1px dashed var(--line);
      padding-inline-start: 12px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .soe-notes::-webkit-scrollbar { width: 4px; }
    .soe-notes::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }
    .soe-notes-label {
      font-family: var(--f-body);
      font-size: 9px;
      color: var(--chalk-muted);
      letter-spacing: 0.08em;
      opacity: 0.75;
      flex-shrink: 0;
    }
    .soe-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 9px 10px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 10px;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .soe-note:hover {
      background: rgba(255, 192, 0, 0.05);
      border-color: var(--line-strong);
      transform: translateY(-2px);
    }
    .soe-note.is-open {
      background: var(--gold-tint);
      border-color: var(--gold);
    }
    .soe-note.is-good.is-open {
      background: var(--c-green-tint);
      border-color: var(--c-green);
    }
    .soe-note-num {
      flex-shrink: 0;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-family: var(--f-body);
      font-size: 9px;
      font-weight: 700;
      background: var(--gold);
      color: var(--chalk-deep);
    }
    .soe-note.is-good .soe-note-num { background: var(--c-green); }
    .soe-note.is-open .soe-note-num {
      animation: soeNotePulse 2.2s ease-in-out infinite;
    }
    @keyframes soeNotePulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(255, 192, 0, 0.45); }
      50%      { box-shadow: 0 0 0 5px rgba(255, 192, 0, 0); }
    }
    .soe-note-body {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    /* The quoted phrase keeps the bubble's RTL alignment — the Latin run
       still lays out left-to-right on its own, and carrying no punctuation
       keeps it out of the surrounding bidi run. */
    .soe-note-quote {
      font-family: var(--f-body);
      font-size: 9px;
      line-height: 1.4;
      color: var(--chalk-muted);
      opacity: 0.65;
      border-inline-start: 2px solid var(--line-strong);
      padding-inline-start: 6px;
    }
    .soe-note-text {
      font-family: var(--f-body);
      font-size: 10.5px;
      line-height: 1.6;
      color: var(--chalk);
    }

    /* =========================================================
       Responsive
       ========================================================= */

    /* ---------- TABLET (≤ 1024px) ----------
       .feature-grid collapses to one column, so the mockup gets much
       wider — lift the inner type so it does not read as under-filled. */
    @media (max-width: 1024px) {
      .soe-page { gap: 14px; }
      .soe-notes { padding-inline-start: 14px; }
      .soe-para { font-size: 12.5px; }
      .soe-note-text { font-size: 11.5px; }
      .soe-note-quote { font-size: 9.5px; }
      .soe-comp { font-size: 12px; }
    }

    /* ---------- MID / LARGE PHONE (≤ 768px) ---------- */
    @media (max-width: 768px) {
      .soe-body { padding: 12px; }
      .soe-page { grid-template-columns: 1.45fr 1fr; gap: 10px; }
      .soe-notes { padding-inline-start: 10px; }
      .soe-doc-title { font-size: 14px; }
      .soe-meta { font-size: 10.5px; gap: 6px; }
      .soe-para { font-size: 12px; }
      .soe-note { padding: 8px 9px; }
    }

    /* ---------- PHONE (≤ 640px) ----------
       Mirrors the shared mockup rule the base sheet applies to its own
       mockups, then stacks the review rail under the document. */
    @media (max-width: 640px) {
      .soe-mockup {
        padding: 10px;
        gap: 10px;
        aspect-ratio: auto;
        min-height: 500px;
      }
      .soe-body { padding: 12px; gap: 10px; }
      .soe-head { flex-wrap: wrap; row-gap: 8px; padding-bottom: 8px; }
      .soe-doc-title { font-size: 13.5px; }
      .soe-meta { font-size: 10px; }
      .soe-counter { padding: 2px 8px; }
      .soe-page {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 10px;
      }
      .soe-text { padding: 10px; }
      .soe-para { font-size: 11.5px; line-height: 1.65; }
      .soe-notes {
        border-inline-start: none;
        padding-inline-start: 0;
        border-top: 1px dashed var(--line);
        padding-top: 10px;
      }
    }

    /* ---------- SMALL PHONE (≤ 420px) ---------- */
    @media (max-width: 420px) {
      .soe-mockup { min-height: 470px; }
      .soe-doc-title { font-size: 12.5px; }
      .soe-counter, .soe-cadence { font-size: 9.5px; }
      .soe-comp { font-size: 10.5px; }
      .soe-para { font-size: 11px; }
      .soe-note-text { font-size: 10px; }
      .soe-note-quote { font-size: 8.5px; }
    }

    /* =========================================================
       Reduced motion — neutralize everything this section animates
       ========================================================= */
    @media (prefers-reduced-motion: reduce) {
      .soe-caret,
      .soe-note.is-open .soe-note-num {
        animation: none !important;
      }
      .soe-caret { opacity: 1; }
      .soe-note.is-open .soe-note-num { box-shadow: none; }
      .soe-note { transition: none !important; }
      .soe-note:hover { transform: none !important; }
    }


/* =========================================================
   قسمي الـ Case Study (المراجعة + الاختيار والتقييم)
   (أُضيف مع تقسيم الموقع لأربع صفحات)
   ========================================================= */
/* =========================================================
       Mockup: Case Study review document (.cs-*)
       Section: "مراجعة Case Study" — shared by both cadence variants
       (cs-submission.html · cs-full.html)
       ========================================================= */
    .cs-mockup {
      aspect-ratio: 4 / 3.6;
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
      border: 1px dashed var(--line-strong);
      box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden;
    }
    /* Mirrors the base rule for .feature-image so `reverse` works here too */
    .feature-grid.reverse .cs-mockup { order: 2; }

    .cs-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 0;
      background: rgba(20, 17, 13, 0.5);
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      padding: 14px;
    }
    .cs-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .cs-doc-title {
      font-family: var(--f-display-ar);
      font-size: 15px;
      color: var(--gold-bright);
    }
    /* Cadence chip — the only per-variant text in the mockup header */
    .cs-cadence {
      font-family: var(--f-body);
      font-size: 10px;
      color: var(--c-blue-soft);
      background: var(--c-blue-tint);
      border: 1px dashed var(--c-blue);
      border-radius: var(--radius-pill);
      padding: 3px 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* ---- Canvas: document (start side) + reviewer notes (end side) ---- */
    .cs-canvas {
      flex: 1;
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      gap: 12px;
      min-height: 0;
    }
    .cs-doc {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      padding-inline-end: 3px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .cs-doc::-webkit-scrollbar { width: 4px; }
    .cs-doc::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }

    /* ---- One Case Study section (Key Issues / Options / …) ---- */
    .cs-sec {
      display: flex;
      flex-direction: column;
      gap: 7px;
      padding: 9px 11px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 10px;
      /* review gutter — sits on the reading edge in RTL */
      border-inline-start-width: 3px;
      border-inline-start-style: solid;
      border-inline-start-color: var(--line);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .cs-sec:hover {
      background: rgba(255, 192, 0, 0.04);
      border-color: var(--line-strong);
      transform: translateX(-2px); /* RTL */
    }
    .cs-sec.is-done   { border-inline-start-color: var(--c-green); }
    .cs-sec.is-active {
      background: var(--gold-tint);
      border-color: var(--gold);
      border-inline-start-color: var(--gold);
    }
    .cs-sec.is-todo {
      opacity: 0.5;
      border-inline-start-color: var(--line-soft);
    }

    .cs-sec-head {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .cs-sec-num {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 5px;
      display: grid;
      place-items: center;
      font-family: var(--f-body);
      font-size: 9.5px;
      font-weight: 600;
      color: var(--chalk-muted);
      background: rgba(245, 236, 217, 0.06);
      border: 1px solid var(--line);
    }
    .cs-sec.is-done .cs-sec-num {
      background: var(--c-green-tint);
      border-color: var(--c-green);
      color: var(--c-green-soft);
    }
    .cs-sec.is-active .cs-sec-num {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--chalk-deep);
    }
    .cs-sec-name {
      font-family: var(--f-body);
      font-size: 11.5px;
      font-weight: 600;
      color: var(--chalk);
      letter-spacing: 0.02em;
    }
    .cs-sec-state {
      margin-inline-start: auto;
      flex-shrink: 0;
      font-family: var(--f-body);
      font-size: 9px;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      background: rgba(245, 236, 217, 0.04);
      border: 1px dashed var(--line);
      color: var(--chalk-muted);
      white-space: nowrap;
      opacity: 0.85;
    }
    .cs-sec.is-done .cs-sec-state {
      background: var(--c-green-tint);
      border-color: var(--c-green);
      color: var(--c-green-soft);
      opacity: 1;
    }
    .cs-sec.is-active .cs-sec-state {
      background: var(--gold-tint);
      border-color: var(--gold);
      color: var(--gold-bright);
      opacity: 1;
      animation: csReviewPulse 2.6s ease-in-out infinite;
    }

    /* ---- Body copy placeholder lines ---- */
    .cs-lines {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .cs-line {
      display: block;
      width: 100%;
      height: 5px;
      border-radius: 3px;
      background: rgba(245, 236, 217, 0.08);
    }
    .cs-w9 { width: 90%; }
    .cs-w7 { width: 72%; }
    .cs-w5 { width: 54%; }
    .cs-w4 { width: 38%; }
    /* A passage the reviewer marked */
    .cs-line.is-flag {
      height: 6px;
      background: var(--gold-tint);
      border-bottom: 1px dashed var(--gold);
      border-radius: 3px 3px 0 0;
    }
    .cs-sec.is-todo .cs-line { background: rgba(245, 236, 217, 0.05); }

    /* ---- Reviewer notes column ---- */
    .cs-notes {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      border-inline-start: 1px dashed var(--line);
      padding-inline-start: 10px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .cs-notes::-webkit-scrollbar { width: 4px; }
    .cs-notes::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }
    .cs-notes-label {
      font-family: var(--f-body);
      font-size: 9px;
      color: var(--chalk-muted);
      letter-spacing: 0.08em;
      opacity: 0.75;
      flex-shrink: 0;
    }
    .cs-note {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 8px 9px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 9px;
      /* accent faces the document */
      border-inline-start-width: 3px;
      border-inline-start-style: solid;
      border-inline-start-color: var(--gold);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .cs-note:hover {
      background: rgba(255, 192, 0, 0.04);
      transform: translateX(-2px); /* RTL */
    }
    .cs-note-head {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .cs-note-avatar {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--gold-tint);
      border: 1px dashed var(--gold);
      color: var(--gold-bright);
      font-family: var(--f-script);
      font-size: 11px;
      line-height: 1;
    }
    .cs-note-target {
      font-family: var(--f-body);
      font-size: 9px;
      color: var(--c-blue-soft);
      letter-spacing: 0.02em;
      opacity: 0.9;
    }
    .cs-note-text {
      font-family: var(--f-body);
      font-size: 10.5px;
      line-height: 1.55;
      color: var(--chalk);
    }
    /* Note that is still open / waiting for the next part */
    .cs-note.is-pending {
      border-inline-start-style: dashed;
      border-inline-start-color: var(--line-strong);
      opacity: 0.8;
    }
    .cs-note.is-pending .cs-note-avatar {
      background: rgba(245, 236, 217, 0.04);
      border-color: var(--line-strong);
      color: var(--chalk-muted);
    }
    .cs-note.is-pending .cs-note-text { color: var(--chalk-muted); }

    @keyframes csReviewPulse {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0.55; }
    }

    /* =========================================================
       Mockup: Case Study project shortlist / evaluation (.csel-*)
       Section: "المساعدة في اختيار وتقييم الـ Case Study"
       (csel-full.html)
       ========================================================= */
    .csel-mockup {
      aspect-ratio: 4 / 3.6;
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, rgba(30,26,20,0.85), rgba(20,17,13,0.92));
      border: 1px dashed var(--line-strong);
      box-shadow: inset 0 0 60px rgba(0,0,0,0.3), var(--shadow-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden;
    }
    .feature-grid.reverse .csel-mockup { order: 2; }

    .csel-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 0;
      background: rgba(20, 17, 13, 0.5);
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      padding: 14px;
    }
    .csel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .csel-title {
      font-family: var(--f-display-ar);
      font-size: 15px;
      color: var(--gold-bright);
    }
    .csel-count {
      font-family: var(--f-body);
      font-size: 11px;
      background: var(--c-green-tint);
      color: var(--c-green-soft);
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      border: 1px dashed var(--c-green);
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* ---- Evaluation table ---- */
    .csel-table {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-height: 0;
      overflow-y: auto;
      padding-inline-end: 3px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .csel-table::-webkit-scrollbar { width: 4px; }
    .csel-table::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }
    .csel-row {
      display: grid;
      grid-template-columns: 1.7fr 1fr 1fr 1fr;
      gap: 8px;
      align-items: center;
      padding: 9px 10px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 10px;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .csel-row:hover {
      background: rgba(0, 176, 240, 0.05);
      border-color: var(--line-strong);
      transform: translateX(-2px); /* RTL */
    }
    .csel-row.is-head {
      background: transparent;
      border-color: transparent;
      border-bottom: 1px dashed var(--line);
      border-radius: 0;
      padding: 0 10px 7px;
    }
    .csel-row.is-head:hover {
      background: transparent;
      border-color: transparent;
      border-bottom-color: var(--line);
      transform: none;
    }
    .csel-row.is-picked {
      background: var(--gold-tint);
      border-color: var(--gold);
    }
    .csel-row.is-picked:hover { background: var(--gold-tint); }

    .csel-cell {
      font-family: var(--f-body);
      font-size: 10px;
      color: var(--chalk-muted);
      text-align: center;
      min-width: 0;
    }
    .csel-row.is-head .csel-cell {
      font-size: 9px;
      letter-spacing: 0.04em;
      opacity: 0.75;
      line-height: 1.35;
    }
    .csel-proj {
      display: flex;
      align-items: center;
      gap: 7px;
      text-align: start;
      font-size: 10.5px;
      color: var(--chalk);
    }
    .csel-row.is-head .csel-proj { letter-spacing: 0.06em; }
    .csel-tag {
      flex-shrink: 0;
      width: 19px;
      height: 19px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      background: rgba(245, 236, 217, 0.06);
      border: 1px solid var(--line);
      font-family: var(--f-display-ar);
      font-size: 11px;
      color: var(--chalk-muted);
      line-height: 1;
    }
    .csel-row.is-picked .csel-tag {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--chalk-deep);
    }
    .csel-proj-name { min-width: 0; }
    .csel-badge {
      margin-inline-start: auto;
      flex-shrink: 0;
      font-family: var(--f-body);
      font-size: 8.5px;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      background: var(--gold);
      color: var(--chalk-deep);
      font-weight: 600;
      white-space: nowrap;
    }

    /* ---- Evaluation marks ---- */
    .csel-mark {
      display: inline-grid;
      place-items: center;
      width: 19px;
      height: 19px;
      border-radius: 50%;
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
    }
    .csel-mark.yes {
      background: var(--c-green-tint);
      border: 1px dashed var(--c-green);
      color: var(--c-green-soft);
    }
    .csel-mark.no {
      background: rgba(255, 107, 107, 0.15);
      border: 1px dashed rgba(255, 107, 107, 0.45);
      color: #ff8d8d;
    }
    .csel-dots {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    .csel-dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(245, 236, 217, 0.06);
      border: 1px solid var(--line);
    }
    .csel-dots span.is-on {
      background: var(--c-blue);
      border-color: var(--c-blue);
    }
    .csel-row.is-picked .csel-dots span.is-on {
      background: var(--gold);
      border-color: var(--gold);
    }

    /* ---- Verdict + legend ---- */
    .csel-foot {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex-shrink: 0;
    }
    .csel-verdict {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 9px 11px;
      background: var(--gold-tint);
      border: 1px dashed var(--gold);
      border-radius: 10px;
    }
    .csel-verdict-mark {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--gold);
      color: var(--chalk-deep);
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
    }
    .csel-verdict-text {
      font-family: var(--f-body);
      font-size: 10.5px;
      line-height: 1.55;
      color: var(--chalk);
    }
    .csel-verdict-text em {
      font-style: normal;
      font-weight: 600;
      color: var(--gold-bright);
    }
    .csel-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      font-family: var(--f-body);
      font-size: 9px;
      color: var(--chalk-muted);
      opacity: 0.75;
    }
    .csel-legend span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .csel-legend i {
      font-style: normal;
      color: var(--chalk);
      opacity: 0.9;
    }
    .csel-legend i.yes { color: var(--c-green-soft); }
    .csel-legend i.no  { color: #ff8d8d; }
    .csel-legend i.lvl { color: var(--c-blue-soft); letter-spacing: 1px; }

    /* =========================================================
       Responsive — Case Study sections
       ========================================================= */

    /* ---------- TABLET (≤ 1024px) ---------- */
    @media (max-width: 1024px) {
      /* grid collapses to one column — keep source order */
      .feature-grid.reverse .cs-mockup,
      .feature-grid.reverse .csel-mockup { order: 0; }
    }

    /* ---------- MID / LARGE PHONE (≤ 768px) ---------- */
    @media (max-width: 768px) {
      /* header + cadence chip need room to wrap */
      .cs-head, .csel-head { flex-wrap: wrap; row-gap: 6px; }
      .cs-cadence, .csel-count { white-space: normal; }
      .cs-canvas { gap: 10px; }
      .csel-row { gap: 6px; padding: 8px; }
      .csel-legend { gap: 10px; }
    }

    /* ---------- PHONE (≤ 640px) ---------- */
    @media (max-width: 640px) {
      /* matches the shared mockup rule in the base stylesheet */
      .cs-mockup, .csel-mockup {
        padding: 10px;
        gap: 10px;
        aspect-ratio: auto;
        min-height: 500px;
      }
      .cs-body, .csel-body { padding: 11px; gap: 10px; }
      .cs-doc-title, .csel-title { font-size: 14px; }

      /* Document over notes */
      .cs-canvas { grid-template-columns: 1fr; }
      .cs-notes {
        border-inline-start: none;
        padding-inline-start: 0;
        border-top: 1px dashed var(--line);
        padding-top: 10px;
      }
      .cs-sec-name { font-size: 11px; }
      .cs-note-text { font-size: 10.5px; }

      /* Table → stacked cards, criterion labels move inline */
      .csel-row.is-head { display: none; }
      .csel-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 10px;
      }
      .csel-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        text-align: start;
        padding-inline-start: 26px;
      }
      .csel-cell[data-label]::before {
        content: attr(data-label);
        font-size: 9.5px;
        color: var(--chalk-muted);
        opacity: 0.8;
      }
      .csel-proj {
        justify-content: flex-start;
        padding-inline-start: 0;
        padding-bottom: 7px;
        border-bottom: 1px dashed var(--line);
      }
      .csel-verdict-text { font-size: 10px; }
    }

    /* ---------- SMALL PHONE (≤ 420px) ---------- */
    @media (max-width: 420px) {
      .cs-doc-title, .csel-title { font-size: 13px; }
      .cs-cadence, .csel-count { font-size: 9px; }
      .cs-sec { padding: 8px 9px; }
      .cs-sec-state { font-size: 8.5px; padding: 2px 6px; }
      .cs-note-text, .csel-verdict-text { font-size: 10px; }
      .csel-cell { padding-inline-start: 20px; }
      .csel-legend { font-size: 8.5px; gap: 8px; }
    }

    /* ---------- Reduced motion ---------- */
    @media (prefers-reduced-motion: reduce) {
      .cs-sec,
      .cs-note,
      .csel-row {
        transition: none;
      }
      .cs-sec:hover,
      .cs-note:hover,
      .csel-row:hover {
        transform: none;
      }
      .cs-sec.is-active .cs-sec-state {
        animation: none;
        opacity: 1;
      }
    }


/* =========================================================
   قسمي اعتماد الـ Counsellor و Mock Interview
   (أُضيف مع تقسيم الموقع لأربع صفحات)
   ========================================================= */
/* =========================================================
       Counsellor sections — shared stylesheet
         (1) .sign-*  Counsellor sign-off on the SOE & Case Study
         (2) .miv-*   Mock Interview  (submission + full variants)

       Everything below is namespaced under .sign- / .miv- so it can
       never collide with the base stylesheet or the other sections.
       Colours are design tokens only — every literal rgba() is an
       alpha of a token already in :root (--chalk #f5ecd9,
       --chalk-bg #1e1a14, --chalk-deep #14110d, --gold #FFC000,
       --c-green #92D050, --c-blue #00B0F0) plus the one red the base
       already uses for the hang-up control.
       ========================================================= */

    /* ---------------------------------------------------------
       .reverse support.  The base only reorders .feature-image,
       so mockups need their own rule to honour the modifier.
       --------------------------------------------------------- */
    .feature-grid.reverse .sign-mockup,
    .feature-grid.reverse .miv-mockup { order: 2; }


    /* =========================================================
       (1) Mockup: Counsellor sign-off  —  .sign-*
       ========================================================= */
    .sign-mockup {
      aspect-ratio: 4 / 3.6;
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, rgba(30, 26, 20, 0.85), rgba(20, 17, 13, 0.92));
      border: 1px dashed var(--line-strong);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3), var(--shadow-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden;
    }
    .sign-body {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: rgba(20, 17, 13, 0.5);
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      padding: 14px;
    }

    /* ---- header row ---- */
    .sign-doc-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .sign-doc-title {
      font-family: var(--f-display-ar);
      font-size: 15px;
      color: var(--gold-bright);
    }
    .sign-doc-tag {
      font-family: var(--f-body);
      font-size: 10px;
      letter-spacing: 0.06em;
      color: var(--chalk-muted);
      background: rgba(245, 236, 217, 0.05);
      border: 1px dashed var(--line);
      border-radius: var(--radius-pill);
      padding: 3px 10px;
      white-space: nowrap;
    }

    /* ---- the document body: abstract chalk ruling ----
       Lines are anchored to the bottom and the top of the block is
       veiled, so the eye reads "this is the foot of a longer page".
       Short lines carry an explicit width; in a column flex box the
       cross-axis start is the RTL start edge, so they hug the right
       without any physical left/right value. */
    .sign-doc {
      position: relative;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 9px;
      padding: 4px 2px 2px;
      overflow: hidden;
    }
    .sign-doc::after {
      content: '';
      position: absolute;
      inset-block-start: 0;
      inset-inline: 0;
      height: 46%;
      background: linear-gradient(to bottom, rgba(20, 17, 13, 0.8), rgba(20, 17, 13, 0));
      pointer-events: none;
    }
    .sign-line {
      height: 7px;
      border-radius: 4px;
      background: rgba(245, 236, 217, 0.08);
    }
    .sign-line.is-short   { width: 64%; }
    .sign-line.is-shorter { width: 38%; }

    /* ---- footer: who approved + the approval stamp ----
       Deliberately NOT a signature: no handwriting mark, no ruled
       signing line. The Counsellor approves; nothing is signed. ---- */
    .sign-off {
      flex-shrink: 0;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 14px;
      padding-top: 12px;
      border-top: 1px dashed var(--line);
    }
    .sign-by {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .sign-by-label {
      font-family: var(--f-body);
      font-size: 10px;
      letter-spacing: 0.04em;
      color: var(--chalk-dim);
      line-height: 1.4;
    }
    .sign-by-name {
      font-family: var(--f-script-2);
      font-size: 19px;
      line-height: 1.3;
      color: var(--gold-bright);
    }
    .sign-by-role {
      font-family: var(--f-body);
      font-size: 10px;
      letter-spacing: 0.03em;
      color: var(--chalk-muted);
      opacity: 0.85;
      line-height: 1.4;
    }

    /* ---- the approval stamp (chalk-drawn, not an official seal) ---- */
    .sign-stamp {
      position: relative;
      flex-shrink: 0;
      width: 118px;
      height: 118px;
      border-radius: 50%;
      border: 2px dashed var(--gold);
      background:
        radial-gradient(ellipse at center, rgba(255, 192, 0, 0.10) 0%, transparent 70%),
        rgba(20, 17, 13, 0.55);
      display: grid;
      place-content: center;
      justify-items: center;
      gap: 3px;
      text-align: center;
      color: var(--gold-bright);
      box-shadow:
        0 0 22px -6px rgba(255, 192, 0, 0.45),
        inset 0 0 0 5px rgba(255, 192, 0, 0.06);
      transform: rotate(-8deg);
    }
    .sign-stamp::before {
      content: '';
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      border: 1px dashed rgba(255, 192, 0, 0.45);
      pointer-events: none;
    }
    .sign-stamp-top,
    .sign-stamp-bottom {
      font-family: var(--f-script);
      font-size: 17px;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .sign-stamp-check {
      font-size: 14px;
      line-height: 1;
      color: var(--c-green-soft);
    }

    /* ---- approved-document chips ---- */
    .sign-chips {
      flex-shrink: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 10px;
      border-top: 1px dashed var(--line);
    }
    .sign-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 12px;
      background: var(--c-green-tint);
      border: 1px dashed var(--c-green);
      border-radius: var(--radius-pill);
      font-family: var(--f-body);
      font-size: 11.5px;
      color: var(--c-green-soft);
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .sign-chip:hover {
      background: rgba(146, 208, 80, 0.22);
      transform: translateY(-2px);
    }
    .sign-chip-tick {
      display: grid;
      place-items: center;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--c-green);
      color: var(--chalk-deep);
      font-size: 9px;
      line-height: 1;
      flex-shrink: 0;
    }

    /* ---- stamp entrance ----
       Scoped to .js so that without JS (and therefore without the
       scroll-reveal machinery) the stamp is simply present.  The base
       adds .is-visible to every direct child of .feature-grid. */
    .js .sign-mockup .sign-stamp {
      opacity: 0;
      transform: rotate(-14deg) scale(1.25);
    }
    /* .is-visible carries the finished state on its own, so the stamp is
       correct even if the animation never gets to run; the keyframes only
       decorate the arrival.  Start scale is kept ≤1.25 so the rotated stamp
       never grows past the mockup's `overflow: hidden` edge mid-flight. */
    .js .sign-mockup.is-visible .sign-stamp {
      opacity: 1;
      transform: rotate(-8deg);
      animation: signStampIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
    }
    @keyframes signStampIn {
      0%   { opacity: 0; transform: rotate(-14deg) scale(1.25); }
      55%  { opacity: 1; transform: rotate(-6deg)  scale(0.94); }
      100% { opacity: 1; transform: rotate(-8deg)  scale(1); }
    }


    /* =========================================================
       (2) Mockup: Mock Interview  —  .miv-*
       ========================================================= */
    .miv-mockup {
      aspect-ratio: 4 / 3.6;
      border-radius: var(--radius-lg);
      background: linear-gradient(180deg, rgba(30, 26, 20, 0.85), rgba(20, 17, 13, 0.92));
      border: 1px dashed var(--line-strong);
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3), var(--shadow-card);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden;
    }
    .miv-body {
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: 1.45fr 1fr;
      gap: 12px;
    }

    /* ---- call stage ---- */
    .miv-stage {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      padding: 12px;
      border-radius: var(--radius);
      border: 1px dashed var(--line);
      background:
        radial-gradient(ellipse at center, rgba(0, 176, 240, 0.08) 0%, transparent 65%),
        rgba(20, 17, 13, 0.5);
    }
    .miv-stage::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--radius);
      background-image:
        linear-gradient(rgba(245, 236, 217, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 236, 217, 0.025) 1px, transparent 1px);
      background-size: 18px 18px;
      opacity: 0.5;
      pointer-events: none;
    }
    .miv-topbar {
      position: relative;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .miv-live {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      background: rgba(20, 17, 13, 0.75);
      border: 1px dashed var(--c-blue);
      border-radius: var(--radius-pill);
      font-family: var(--f-script);
      font-size: 11.5px;
      letter-spacing: 0.06em;
      color: var(--c-blue-soft);
    }
    .miv-live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--c-blue);
      box-shadow: 0 0 8px var(--c-blue);
      animation: mivLivePulse 1.8s ease-in-out infinite;
    }
    @keyframes mivLivePulse {
      0%, 100% { opacity: 0.55; transform: scale(1); }
      50%      { opacity: 1;    transform: scale(1.3); }
    }
    .miv-room {
      margin-inline-start: auto;       /* logical: pushes to the RTL end */
      font-family: var(--f-body);
      font-size: 10.5px;
      color: var(--chalk-muted);
      opacity: 0.85;
    }

    /* ---- participant tiles ---- */
    /* Stacked rather than side-by-side: the stage column is portrait, so
       two rows give each participant a landscape tile that reads as video. */
    .miv-tiles {
      position: relative;
      flex: 1;
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 10px;
    }
    .miv-tile {
      position: relative;
      border-radius: var(--radius);
      border: 1px dashed var(--line);
      background: linear-gradient(160deg, var(--chalk-bg) 0%, var(--chalk-deep) 100%);
      display: grid;
      place-items: center;
      overflow: hidden;
      min-height: 0;
    }
    .miv-tile.is-speaking {
      border-color: var(--c-blue);
      box-shadow: 0 0 0 1px var(--c-blue-tint);
    }
    .miv-tile.is-speaking::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--radius);
      border: 1px solid var(--c-blue);
      opacity: 0.3;
      pointer-events: none;
      animation: mivSpeak 2.2s ease-in-out infinite;
    }
    @keyframes mivSpeak {
      0%, 100% { opacity: 0.14; }
      50%      { opacity: 0.5; }
    }
    .miv-avatar {
      width: 58%;
      max-width: 92px;
      aspect-ratio: 1;
      border-radius: 50%;
      border: 1.5px dashed var(--gold);
      background:
        radial-gradient(ellipse at center 35%, var(--gold-tint) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 192, 0, 0.10) 0%, rgba(20, 17, 13, 0.9) 100%);
      display: grid;
      place-items: center;
      font-family: var(--f-display-ar);
      font-size: 21px;
      color: var(--gold-bright);
      box-shadow: 0 0 20px rgba(255, 192, 0, 0.15);
    }
    .miv-avatar.is-counsellor {
      border-color: var(--c-blue);
      color: var(--c-blue-soft);
      background:
        radial-gradient(ellipse at center 35%, var(--c-blue-tint) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0, 176, 240, 0.12) 0%, rgba(20, 17, 13, 0.9) 100%);
      box-shadow: 0 0 22px rgba(0, 176, 240, 0.22);
    }
    .miv-name {
      position: absolute;
      bottom: 8px;
      inset-inline-start: 8px;         /* logical */
      background: rgba(20, 17, 13, 0.85);
      border: 1px dashed var(--line);
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-family: var(--f-body);
      font-size: 10px;
      color: var(--chalk-muted);
    }
    .miv-mic {
      position: absolute;
      top: 8px;
      inset-inline-end: 8px;           /* logical */
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(20, 17, 13, 0.85);
      border: 1px dashed var(--line);
      display: grid;
      place-items: center;
      font-size: 9.5px;
      color: var(--c-green);
    }
    .miv-tile.is-speaking .miv-mic {
      color: var(--c-blue);
      border-color: var(--c-blue);
    }

    /* ---- call controls ---- */
    .miv-controls {
      position: relative;
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      gap: 8px;
    }
    .miv-ctrl {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(20, 17, 13, 0.7);
      border: 1px dashed var(--line-strong);
      display: grid;
      place-items: center;
      font-size: 13px;
      color: var(--chalk-muted);
      transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }
    .miv-ctrl:hover {
      transform: translateY(-2px);
      border-color: var(--gold);
      color: var(--gold-bright);
    }
    /* same red the base already uses for .ctrl-btn.end */
    .miv-ctrl.miv-ctrl-end {
      background: rgba(255, 87, 87, 0.15);
      border-color: rgba(255, 87, 87, 0.5);
      color: rgba(255, 87, 87, 0.95);
    }
    .miv-ctrl.miv-ctrl-end:hover {
      background: rgba(255, 87, 87, 0.25);
      border-color: rgba(255, 87, 87, 0.7);
      color: rgba(255, 120, 120, 1);
    }

    /* ---- feedback scorecard ---- */
    .miv-score {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      padding: 12px;
      border-radius: var(--radius);
      border: 1px dashed var(--line);
      background: rgba(20, 17, 13, 0.5);
    }
    .miv-score-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-bottom: 9px;
      border-bottom: 1px dashed var(--line);
      flex-shrink: 0;
    }
    .miv-score-title {
      font-family: var(--f-display-ar);
      font-size: 14px;
      color: var(--gold-bright);
    }
    .miv-score-note {
      font-family: var(--f-body);
      font-size: 9px;
      color: var(--chalk-muted);
      opacity: 0.8;
      background: rgba(245, 236, 217, 0.05);
      border: 1px dashed var(--line);
      border-radius: var(--radius-pill);
      padding: 2px 8px;
      white-space: nowrap;
    }
    .miv-rows {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      padding-inline-end: 2px;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }
    .miv-rows::-webkit-scrollbar { width: 4px; }
    .miv-rows::-webkit-scrollbar-thumb {
      background: var(--line-strong);
      border-radius: 2px;
    }
    .miv-row {
      display: flex;
      flex-direction: column;
      gap: 7px;
      padding: 8px 10px;
      background: rgba(245, 236, 217, 0.03);
      border: 1px dashed var(--line);
      border-radius: 10px;
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .miv-row:hover {
      background: rgba(0, 176, 240, 0.05);
      border-color: var(--line-strong);
      transform: translateX(-2px);     /* RTL — matches the base mockups */
    }
    .miv-row-label {
      font-family: var(--f-body);
      font-size: 10.5px;
      letter-spacing: 0.02em;
      color: var(--chalk);
      line-height: 1.3;
    }
    /* chalk rating strokes — flex order fills from the RTL start edge */
    .miv-marks {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .miv-marks span {
      width: 16px;
      height: 4px;
      border-radius: 3px;
      background: rgba(245, 236, 217, 0.10);
      transform: rotate(-8deg);
      flex-shrink: 0;
    }
    .miv-marks span.is-on {
      background: var(--c-blue);
      box-shadow: 0 0 8px rgba(0, 176, 240, 0.4);
    }
    .miv-hand {
      flex-shrink: 0;
      font-family: var(--f-script);
      font-size: 14px;
      line-height: 1.4;
      color: var(--gold-bright);
      opacity: 0.9;
      padding-top: 9px;
      border-top: 1px dashed var(--line);
    }


    /* =========================================================
       Responsive
       ========================================================= */

    /* ---------- TABLET (≤ 1024px) ----------
       The base collapses .feature-grid to one column here and resets
       .feature-image's order; mockups need the same reset so a
       .reverse section still leads with its visual. */
    @media (max-width: 1024px) {
      .feature-grid.reverse .sign-mockup,
      .feature-grid.reverse .miv-mockup { order: 0; }
    }

    /* ---------- MID / LARGE PHONE (≤ 768px) ---------- */
    @media (max-width: 768px) {
      .sign-stamp { width: 104px; height: 104px; }
      .sign-stamp-top, .sign-stamp-bottom { font-size: 15px; }
      .sign-by-name { font-size: 18px; }

      .miv-avatar { max-width: 80px; font-size: 19px; }
      .miv-row-label { font-size: 10px; }
    }

    /* ---------- PHONE (≤ 640px) ----------
       Mirrors the base's shared mockup rule: drop the aspect ratio,
       tighten the padding and let the box grow from a min-height. */
    @media (max-width: 640px) {
      .sign-mockup, .miv-mockup {
        padding: 10px;
        gap: 10px;
        aspect-ratio: auto;
        min-height: 500px;
      }

      /* ---- sign-off mockup ---- */
      .sign-body { padding: 11px; gap: 10px; }
      .sign-doc-title { font-size: 13.5px; }
      .sign-doc-tag { font-size: 9px; padding: 2px 8px; }
      .sign-doc { gap: 7px; }
      .sign-line { height: 6px; }
      .sign-off { gap: 10px; padding-top: 10px; }
      .sign-by-name { font-size: 17px; }
      .sign-by-label,
      .sign-by-role { font-size: 9.5px; }
      .sign-stamp {
        width: 88px;
        height: 88px;
        border-width: 1.5px;
        box-shadow: 0 0 16px -6px rgba(255, 192, 0, 0.45), inset 0 0 0 4px rgba(255, 192, 0, 0.06);
      }
      .sign-stamp::before { inset: 6px; }
      .sign-stamp-top, .sign-stamp-bottom { font-size: 13px; }
      .sign-stamp-check { font-size: 11px; }
      .sign-chips { gap: 6px; padding-top: 9px; }
      .sign-chip { font-size: 10.5px; padding: 5px 10px; gap: 6px; }
      .sign-chip-tick { width: 13px; height: 13px; font-size: 8px; }

      /* ---- mock interview mockup ---- */
      .miv-body { grid-template-columns: 1fr; gap: 10px; }
      .miv-stage { padding: 10px; }
      /* Stacked in one column and no longer sharing a fixed stage height,
         so the tiles size themselves: a landscape ratio that follows the
         width, floored on small phones and capped near the breakpoint. */
      .miv-tiles { gap: 8px; grid-template-rows: auto auto; }
      .miv-tile {
        width: 100%;                 /* definite width, so the ratio drives
                                        the height and not the other way round */
        aspect-ratio: 2.6 / 1;
        min-height: 96px;
        max-height: 180px;
      }
      .miv-avatar { max-width: 68px; font-size: 18px; }
      .miv-name { font-size: 9.5px; bottom: 6px; padding: 2px 7px; }
      .miv-mic { width: 18px; height: 18px; font-size: 9px; top: 6px; }
      .miv-ctrl { width: 29px; height: 29px; font-size: 12px; }
      .miv-score { padding: 10px; gap: 9px; }
      .miv-score-title { font-size: 13px; }
      .miv-rows { overflow-y: visible; gap: 7px; }
      .miv-row { padding: 7px 9px; gap: 6px; }
      .miv-marks span { width: 14px; }
      .miv-hand { font-size: 13px; padding-top: 8px; }
    }

    /* ---------- SMALL PHONE (≤ 420px) ---------- */
    @media (max-width: 420px) {
      .sign-stamp { width: 76px; height: 76px; }
      .sign-stamp-top, .sign-stamp-bottom { font-size: 11.5px; }
      .sign-by-name { font-size: 16px; }
      .sign-chip { font-size: 10px; }

      .miv-avatar { max-width: 56px; font-size: 16px; }
      .miv-row-label { font-size: 9.5px; }
      .miv-marks { gap: 4px; }
      .miv-marks span { width: 12px; }
    }


    /* =========================================================
       Reduced motion — every animation added above is neutralised
       to its resting state, matching how the base file does it.
       ========================================================= */
    @media (prefers-reduced-motion: reduce) {
      /* sign-off: stamp sits in its final position, no press-down */
      .js .sign-mockup .sign-stamp,
      .js .sign-mockup.is-visible .sign-stamp {
        animation: none;
        opacity: 1;
        transform: rotate(-8deg);
      }
      .sign-chip { transition: none; }
      .sign-chip:hover { transform: none; }

      /* mock interview: no pulsing dot, no breathing speaker ring */
      .miv-live-dot {
        animation: none;
        opacity: 1;
        transform: none;
      }
      .miv-tile.is-speaking::after {
        animation: none;
        opacity: 0.3;
      }
      .miv-ctrl, .miv-row { transition: none; }
      .miv-ctrl:hover, .miv-row:hover { transform: none; }
    }

/* =========================================================
   الباقات — السعر المشطوب وأزرار الشراء والتواصل والتفاصيل
   ========================================================= */
:root {
  /* أيقونة واتساب — تُرسم بالـ mask فبتاخد لون النص */
  --wa-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 .396C7.164.396.004 7.556.004 16.392c0 2.823.738 5.582 2.14 8.017L0 32l7.785-2.103a15.91 15.91 0 0 0 8.21 2.25h.007c8.835 0 15.995-7.16 15.999-15.997A15.9 15.9 0 0 0 27.31 4.69 15.9 15.9 0 0 0 16 .396zm0 29.234h-.006a13.3 13.3 0 0 1-6.766-1.852l-.485-.288-5.027 1.319 1.342-4.9-.316-.502a13.25 13.25 0 0 1-2.03-7.067c.003-7.345 5.98-13.322 13.33-13.322a13.24 13.24 0 0 1 9.42 3.906 13.24 13.24 0 0 1 3.9 9.424c-.003 7.346-5.98 13.323-13.327 13.323zm7.307-9.98c-.4-.2-2.368-1.168-2.735-1.302-.367-.134-.634-.2-.901.2-.267.4-1.034 1.302-1.268 1.569-.234.267-.467.3-.867.1-.4-.2-1.69-.623-3.219-1.987-1.19-1.062-1.993-2.373-2.226-2.773-.233-.4-.025-.616.175-.815.18-.179.4-.467.6-.7.2-.234.267-.4.4-.667.134-.267.067-.5-.033-.7-.1-.2-.901-2.171-1.234-2.971-.325-.78-.655-.675-.901-.688l-.767-.013c-.267 0-.7.1-1.067.5-.367.4-1.401 1.369-1.401 3.34s1.434 3.876 1.634 4.143c.2.267 2.822 4.31 6.837 6.043.955.412 1.7.658 2.282.843.959.305 1.832.262 2.522.159.769-.115 2.368-.968 2.702-1.902.334-.934.334-1.735.234-1.902-.1-.167-.367-.267-.767-.467z'/></svg>");
}
/* خيار التقسيط — مقصود إنه يقرأ كخيار دفع تاني، مش كخصم:
   ما في سعر مشطوب، والمجموع مكتوب صريح لإنه أعلى من الدفعة الواحدة. */
.tier-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-body);
  text-align: center;
}
.tier-alt-or {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--chalk-dim);
}
.tier-alt-main {
  font-family: var(--f-script);
  font-size: 24px;
  line-height: 1.15;
  color: var(--chalk);
}
.tier-alt-main em {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 13px;
  color: var(--chalk-muted);
}
.tier-alt-sum {
  font-size: 12px;
  line-height: 1.5;
  color: var(--chalk-muted);
  opacity: 0.85;
}
/* الباقة اللي ما إلها تقسيط: سطر واحد هادي بدل فراغ بلا تفسير */
.tier-alt.is-single { gap: 0; }
.tier-alt.is-single .tier-alt-or { line-height: 1.7; }

/* «تواصل معنا» — دايماً واتساب. أخضر عشان يبيّن إنه مسار تانٍ
   غير زر الشراء الذهبي، بدون ما ينافسه بصرياً. */
.tier-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(146, 208, 80, 0.45);
  background: rgba(146, 208, 80, 0.07);
  font-family: var(--f-script);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--c-green-soft);
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease;
}
.tier-contact::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--wa-glyph) center / contain no-repeat;
  mask: var(--wa-glyph) center / contain no-repeat;
}
.tier-contact:hover {
  background: rgba(146, 208, 80, 0.16);
  border-color: var(--c-green);
  color: var(--c-green);
  transform: translateY(-2px);
}
.tier-contact:active { transform: translateY(0); transition-duration: 0.09s; }
.tier-contact:focus-visible { outline: 2px solid var(--c-green-soft); outline-offset: 3px; }

/* بالرئيسية باقتَي التقديم والرحلة الكاملة إلهم زر واحد: «تواصل معنا».
   فبياخد وزن الزر الرئيسي مكان زر الشراء — بس بلون واتساب الأخضر
   عشان يضل واضح إنه محادثة مش صفحة دفع. */
.tier-contact.is-primary {
  margin-top: auto;
  padding: 12px 20px;
  font-size: 19px;
  border-width: 1px;
}
.tier-contact.is-primary .arrow {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.tier-contact.is-primary:hover .arrow { transform: translateX(-5px); }
.tier-contact.is-solid {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--chalk-deep);
  box-shadow: 0 6px 20px -8px rgba(146, 208, 80, 0.6);
}
.tier-contact.is-solid:hover {
  background: var(--c-green-soft);
  border-color: var(--c-green-soft);
  color: var(--chalk-deep);
}
.tier-contact.is-solid::before { background: var(--chalk-deep); }

/* بالشريط الجانبي وبالـ CTA النهائي بدنا وزن أخف من الكرت */
.pkg-contact { margin-top: 2px; }

.tier-details {
  display: block;
  margin-top: 10px;
  padding: 9px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--chalk-muted);
  text-align: center;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.tier-details:hover {
  border-color: rgba(255, 192, 0, 0.55);
  color: var(--gold-bright);
  background: rgba(255, 192, 0, 0.06);
}
.tier-details:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
/* The buy button is no longer the last child — keep it pinned to the bottom
   of the card so all three cards line up regardless of copy length. */
.tier-cta { margin-top: auto; }

@media (max-width: 640px) {
  .tier-alt-main { font-size: 22px; }
  .tier-contact { font-size: 16px; padding: 10px 16px; }
  .tier-contact.is-primary { font-size: 17px; padding: 11px 18px; }
  .tier-details { font-size: 13.5px; padding: 8px 16px; }
}

/* =========================================================
   الكرت الثالث بالباقات — رجوع للعرض الكامل على الموبايل
   قاعدة «الكرت اليتيم» (max-width: 50%) مكتوبة بـ @media
   ≤1024 عشان الشبكة الثنائية على التابلت، وكانت بتضل
   شغّالة لما الشبكة تصير عمود واحد ≤640 فبتضغط الكرت
   الثالث لنص العرض. منلغيها هون.
   ========================================================= */
@media (max-width: 640px) {
  .tiers > .tier:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0;
  }
}

/* =========================================================
   ملاحظة الدفع من مصر — تحت كروت الباقات بالرئيسية،
   وتحت زر الشراء بالشريط الجانبي في صفحات الباقات.
   ========================================================= */
.egypt-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: -28px auto 44px;
  padding: 13px 22px;
  background: rgba(20, 17, 13, 0.55);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--chalk-soft);
  text-align: center;
}
.egypt-flag { font-size: 17px; flex: 0 0 auto; }
.egypt-note strong { color: var(--chalk); font-weight: 600; }
.egypt-note a {
  color: var(--c-green-soft);
  border-bottom: 1px solid rgba(146, 208, 80, 0.45);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.egypt-note a:hover { color: var(--c-green); border-bottom-color: var(--c-green); }
.egypt-note a:focus-visible { outline: 2px solid var(--c-green-soft); outline-offset: 3px; }

/* داخل الشريط الجانبي — أضيق، بلا حواف دائرية عريضة */
.egypt-note.is-compact {
  max-width: 100%;
  margin: 0;
  padding: 11px 12px;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.65;
  align-items: flex-start;
  text-align: center;
}
.egypt-note.is-compact .egypt-flag { font-size: 15px; line-height: 1.5; }

@media (max-width: 1024px) {
  .egypt-note { margin: -12px auto 36px; }
}
@media (max-width: 640px) {
  .egypt-note {
    font-size: 13.5px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    margin: -4px auto 30px;
    line-height: 2;
  }
  .egypt-note.is-compact { margin: 0; font-size: 12.5px; }
  /* مساحة لمس أوسع للرابط على الشاشة الصغيرة */
  .egypt-note a { display: inline-block; padding-block: 7px; }
}

/* =========================================================
   الموبايل — زر واتساب العائم كان بيغطّي عنوان الشركة
   بالفوتر (على الأربع صفحات). منزوّد مسافة تحت محتوى
   الفوتر بحيث يطلع فوق نطاق الزر بدل ما ينقصّ.
   ========================================================= */
@media (max-width: 640px) {
  footer { padding-bottom: 96px; }
}

/* =========================================================
   الموبايل — تكبير الـ breadcrumb وشارة الباقة شوي
   (كانوا ١١–١٢٫٥px، صغار على الشاشة الصغيرة)
   ========================================================= */
@media (max-width: 640px) {
  .breadcrumb > .container { font-size: 13.5px; gap: 8px; }
  .breadcrumb a { padding-block: 7px; }
  .pkg-badge { font-size: 13px; padding: 7px 20px 8px; }

  /* زر «سجّل الآن» بالهيدر كان ٣٤px — صغير على الإصبع */
  .nav-cta { min-height: 40px; display: inline-flex; align-items: center; }

  /* سطر «دفع آمن · ضمان · وصول مدى الحياة» كان ١١px */
  .pricing-trust { font-size: 12.5px; line-height: 1.85; }
}

/* =========================================================
   زر واتساب العائم على صفحات الباقات (ديسكتوب)
   الزر بالزاوية اليسار-تحت، وهي بالضبط مكان كرت الشراء
   الـ sticky بصفحات الباقات — فكان بيغطّي زر «احجز مكالمة».
   منقّله للزاوية المقابلة على هالصفحات بس، والفقاعة بتفتح
   لجوّا الصفحة مش لبرّا الشاشة.
   ========================================================= */
@media (min-width: 1025px) {
  body.has-pkg-bar .wa-float {
    left: auto;
    right: 24px;
    flex-direction: row-reverse;
  }
  body.has-pkg-bar .wa-bubble::after {
    left: auto;
    right: -6px;
    border-right: 0;
    border-left: 6px solid #fff;
  }
}

/* =========================================================
   صفحات الباقات — «عن الباقة» و«شو بتاخد بالضبط»
   أول بلوكين بعمود المحتوى، عشان العمود يبلّش مليان
   جنب الشريط الجانبي بدل ما يفضى لحد أول قسم ميزات.
   ========================================================= */
.pkg-about { padding: 6px 0 8px; }
.pkg-about .eyebrow { margin-bottom: 10px; }
.pkg-about .display { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 18px; }

.pkg-about-text {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.95;
  color: var(--chalk-soft);
  max-width: 62ch;
}
.pkg-about-text strong { color: var(--gold-bright); font-weight: 600; }

.pkg-includes-title {
  font-family: var(--f-script-2);
  font-size: 26px;
  font-weight: 500;
  color: var(--chalk);
  margin: 30px 0 16px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.pkg-includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
.pkg-includes li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
}
.inc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  background: var(--gold-tint);
  border: 1px dashed rgba(255, 192, 0, 0.45);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}
.inc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inc-title {
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--chalk);
  line-height: 1.5;
}
.inc-note {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--chalk-muted);
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .pkg-includes { grid-template-columns: 1fr; gap: 13px; }
}
@media (max-width: 640px) {
  .pkg-about-text { font-size: 16px; line-height: 1.85; }
  .pkg-includes-title { font-size: 23px; margin: 26px 0 14px; }
  .pkg-includes li { grid-template-columns: 30px 1fr; gap: 10px; }
  .inc-ico { width: 30px; height: 30px; font-size: 14px; }
  .inc-title { font-size: 15px; }
  .inc-note { font-size: 12.5px; }
}

/* =========================================================
   تناوب أقسام الميزات
   كلاس `reverse` كان بيقلب `.feature-image` بس، فما كان
   إله أي أثر على الأقسام اللي بصريّتها موك (بنك الأسئلة،
   Community، الأقسام الجديدة) — اتجاهها كان محكوم بترتيب
   الـ DOM لحاله. هون منخلّيه يقلب أول عنصر بالشبكة أياً كان،
   فبيصير مفتاح واحد بيتحكّم بتناوب كل الأقسام.
   ========================================================= */
.feature-grid.reverse > *:first-child { order: 2; }

@media (max-width: 1024px) {
  /* عمود واحد — الترتيب بيرجع لترتيب الـ DOM زي الأصل */
  .feature-grid.reverse > *:first-child { order: 0; }
}

/* =========================================================
   إصلاح: زر الـ FAQ كان يطلع برّا الكرت
   `all: unset` بيلغي كمان الـ box-sizing العام، فصار
   width:100% + padding يعطي عرض أكبر من الحاوية (بيبيّن
   أوضح على الموبايل). موجود من قبل التقسيم — انصلح هون.
   ========================================================= */
.faq-toggle { box-sizing: border-box; }

