/* ============ بلبل — design tokens ============ */
:root {
  --ink: #2C2318;          /* dark brown: text, dark panels */
  --ink-2: #4a3b2a;
  --cream: #EDE0C8;        /* brand cream: section bands */
  --paper: #FBF6EC;        /* page background */
  --teal: #1D9E75;         /* primary action */
  --teal-deep: #137556;
  --teal-soft: #d4efe4;
  --marigold: #E8A33D;     /* small highlights only */
  --muted: #76664f;
  --line: #e2d4b9;
  --warn-bg: #fff3d6;
  --warn-line: #e3b35c;

  --font-display: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[lang="en"] { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.section--ink .section-head p { color: #d8cbb2; }
.eyebrow { display: none; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.hidden { display: none !important; }
.loading { padding: 96px 0; text-align: center; color: var(--muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--wa { background: #25a35a; color: #fff; }
.btn--wa:hover { background: #1e8a4b; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; line-height: 1.4; padding-block: 8px; } }

.link-btn { background: none; border: 0; padding: 6px 0; color: var(--teal-deep); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }

/* ============ Preview / config markers ============ */
.preview-bar { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #6b4a10; font-size: .88rem; padding: 8px 0; }
.cfg { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; line-height: 1.4; background: var(--warn-bg); color: #6b4a10; border: 1px dashed var(--warn-line); padding: 4px 10px; border-radius: 8px; }
.cfg-block { display: block; padding: 14px 16px; border-radius: var(--r-sm); }

/* ============ Header ============ */
.ribbon { background: var(--ink); color: #e9dcc3; font-size: .85rem; text-align: center; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.logo-text small { font-size: .72rem; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--cream); }
.header-cta { min-height: 42px; padding: 0 18px; }
@media (max-width: 860px) { .nav { display: none; } .header-cta { margin-inline-start: auto; } }

/* ============ Hero with the bookshelf ============ */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.15; letter-spacing: 0; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); margin-top: 18px; max-width: 32em; }
.hero-for { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-for span { font-weight: 600; font-size: .92rem; padding: 4px 14px; border-radius: 999px; background: var(--cream); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.shelf { position: relative; padding-top: 24px; }
.shelf-label { font-family: var(--font-display); font-size: 1.15rem; color: var(--muted); margin-bottom: 10px; text-align: center; }
.books { display: flex; justify-content: center; align-items: flex-end; gap: 14px; height: 400px; padding: 0 10px; }
.book {
  --h: 360px;
  position: relative; width: 112px; height: var(--h); border-radius: 8px 8px 3px 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 18px 10px 16px; text-decoration: none; cursor: pointer; border: 0;
  box-shadow: inset -10px 0 0 rgba(0,0,0,.12), inset 6px 0 0 rgba(255,255,255,.08);
  transform-origin: bottom center; transition: transform .2s ease;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.book:hover, .book:focus-visible { transform: translateY(-14px) rotate(-1.5deg); }
.book[aria-current="true"] { transform: translateY(-22px); }
.book .band { width: 100%; height: 10px; border-radius: 3px; background: currentColor; opacity: .35; }
.book .spine-title { writing-mode: vertical-rl; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.book .grade-no { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; }
.book .grade-name { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.3; }
.book--g1 { --h: 330px; background: var(--marigold); color: var(--ink); animation-delay: .05s; }
.book--g2 { --h: 372px; background: var(--teal); color: #fff; animation-delay: .15s; }
.book--g3 { --h: 350px; background: var(--ink); color: var(--cream); animation-delay: .25s; }
.plank { height: 22px; background: #6b4a2b; border-radius: 4px; box-shadow: 0 10px 0 #4f3620; margin: 0 -20px; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 28px; }
  .books { height: 250px; gap: 10px; }
  .book { width: 88px; padding: 12px 6px; }
  .book--g1 { --h: 236px; } .book--g2 { --h: 262px; } .book--g3 { --h: 248px; }
  .books { height: 272px; }
  .book .spine-title { font-size: .98rem; }
  .book .grade-no { font-size: 2.2rem; }
  .book .grade-name { font-size: .72rem; }
  .plank { margin: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ============ Who are you (tabs) ============ */
.who { padding: 72px 0 88px; }
.who h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 20px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 2px solid var(--ink); background: transparent; border-radius: 999px; min-height: 48px; padding: 0 22px; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-panel { margin-top: 20px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.tab-panel h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tab-panel p { color: var(--ink-2); margin-top: 8px; max-width: 46em; }
@media (max-width: 700px) { .tab { flex: 1 1 auto; padding: 0 12px; } .tab-panel { grid-template-columns: 1fr; padding: 24px 20px; } }

/* ============ Pains -> answers ============ */
.pains { display: grid; gap: 14px; }
.pain { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
.pain .q { padding: 20px 24px; color: var(--ink-2); position: relative; }
.pain .q::before { content: "”"; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--marigold); position: absolute; top: 10px; inset-inline-start: 10px; opacity: .8; }
.pain .q span { display: block; padding-inline-start: 22px; }
.pain .a { padding: 20px 24px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.pain .a::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
@media (max-width: 700px) { .pain { grid-template-columns: 1fr; } }

/* ============ Finder ============ */
.finder { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 30px; }
.finder-step + .finder-step { margin-top: 26px; }
.finder-step h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--marigold); display: grid; place-items: center; font-size: .9rem; flex: none; font-family: var(--font-display); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 50px; padding: 0 20px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips--grades .chip { flex: 1 1 160px; min-height: 62px; font-size: 1.05rem; }
.finder-hint { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.finder-results { margin-top: 28px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h3 { font-size: 1.25rem; }
.empty { text-align: center; padding: 34px 20px; border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--paper); }
.empty h4 { font-size: 1.25rem; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 30em; }
.empty .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ Course cards ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.card-foot .go { font-weight: 700; color: var(--teal-deep); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.price s { color: var(--muted); font-weight: 400; font-size: .8em; margin-inline-start: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); }
.tag--gold { background: var(--teal-soft); color: var(--teal-deep); }

/* generated cover: looks like the book's front */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; background: var(--ink); color: var(--cream); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .big { position: absolute; inset-inline-end: 16px; top: -10px; font-family: var(--font-display); font-size: 8rem; font-weight: 700; line-height: 1; opacity: .3; }
.cover .meta { position: relative; }
.cover .meta b { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.cover .meta span { font-size: .9rem; opacity: .9; }
.cover .curr { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 999px; }
.cover--g1 { background: var(--marigold); color: var(--ink); }
.cover--g1 .curr { background: rgba(44,35,24,.12); }
.cover--g2 { background: var(--teal); color: #fff; }
.cover--g3 { background: var(--ink); color: var(--cream); }

/* ============ Price promise ============ */
.promise { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.promise .amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 10vw, 6rem); line-height: 1; color: var(--marigold); }
.promise .amount small { display: block; font-size: 1rem; color: #d8cbb2; font-family: var(--font-body); font-weight: 500; margin-top: 10px; }
.promise h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 14px; }
.promise ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.promise li { padding-inline-start: 28px; position: relative; color: #efe4cf; }
.promise li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--teal); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 20px; } }

/* ============ Steps (a real sequence) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.step { padding: 26px; position: relative; }
.step + .step { border-inline-start: 2px solid var(--ink); }
.step::before { counter-increment: s; content: counter(s, arabic-indic); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.step:last-child::before { background: #25a35a; color: #fff; }
.step h3 { font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--muted); }
.note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); background: #fff; border-inline-start: 4px solid var(--teal); color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step + .step { border-inline-start: 0; border-top: 2px solid var(--ink); } }

/* ============ Teacher ============ */
.teacher { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; }
.teacher-photo { width: 240px; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--teal); display: grid; place-items: center; color: var(--paper); font-family: var(--font-display); font-size: 4rem; font-weight: 700; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.teacher .bio { color: var(--ink-2); margin-top: 10px; font-size: 1.1rem; max-width: 36em; }
.teacher .proof { margin-top: 16px; font-weight: 600; color: var(--ink); padding: 12px 16px; background: var(--cream); border-radius: var(--r-sm); display: inline-block; }
.socials { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.socials a { font-weight: 700; color: var(--teal-deep); text-underline-offset: 5px; }
@media (max-width: 720px) { .teacher { grid-template-columns: 1fr; gap: 20px; } .teacher-photo { width: 130px; font-size: 2.4rem; } }
.stats { display: none; }

/* ============ Testimonials ============ */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.quote { margin: 0; background: #fff; border-radius: var(--r-md); padding: 22px; }
.quote p { color: var(--ink-2); }
.quote footer { margin-top: 12px; font-weight: 700; font-size: .93rem; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* ============ Share ============ */
.share-box { background: var(--teal); color: #fff; border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.share-box h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.share-box p { color: #e3f5ee; margin-top: 10px; font-size: 1.08rem; }
.share-actions { display: grid; gap: 10px; position: relative; }
.share-actions .btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.share-actions .btn--ghost:hover { background: #fff; color: var(--teal-deep); }
.share-box .bird { position: absolute; width: 180px; inset-inline-start: -30px; bottom: -40px; opacity: .14; }
.copied { font-size: .9rem; color: #fff; min-height: 1.4em; text-align: center; }
@media (max-width: 760px) { .share-box { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ============ Contact + footer ============ */
.contact-box { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.contact-box h2 { color: var(--paper); font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.contact-box p { color: #d8cbb2; margin-top: 10px; }
.contact-list { display: grid; gap: 10px; }
.contact-meta { font-size: .92rem; color: #d8cbb2; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; padding: 28px 22px; } }

.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,246,236,.97); border-top: 1px solid var(--line); gap: 10px; transform: translateY(110%); transition: transform .25s; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: 80px; }
}

/* ============ Course page ============ */
.crumbs { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.course-hero { background: var(--cream); padding: 14px 0 60px; }
.course-hero .wrap > .layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; margin-top: 18px; }
.course-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); margin-top: 12px; }
.course-hero .lead { font-size: 1.12rem; color: var(--ink-2); margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.fact { background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-size: .82rem; }
.fact b { font-weight: 700; }
.buy-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 92px; }
.buy-card .cover { aspect-ratio: 16 / 9; }
.buy-body { padding: 20px; display: grid; gap: 12px; }
.buy-body .price { font-size: 2rem; }
.buy-note { font-size: .88rem; color: var(--muted); }
.buy-note b { color: var(--ink); }
.unavailable { color: #9b3b1a; font-weight: 700; }
.course-main { padding: 60px 0; }
.course-main .layout { display: grid; grid-template-columns: minmax(0, 780px); gap: 40px; }
.block + .block { margin-top: 48px; }
.block h2 { font-size: 1.6rem; margin-bottom: 14px; }
.block .text { color: var(--ink-2); white-space: pre-line; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 34px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.units { display: grid; gap: 10px; }
.units details { border: 2px solid var(--line); border-radius: var(--r-md); background: #fff; }
.units summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.units summary::-webkit-details-marker { display: none; }
.units summary small { color: var(--muted); font-weight: 400; }
.units ol { margin: 0; padding: 0 40px 16px 16px; color: var(--ink-2); }
.access-box { background: var(--cream); border-radius: var(--r-lg); padding: 22px; }
.access-box .steps { grid-template-columns: 1fr; }
.access-box .step + .step { border-inline-start: 0; border-top: 2px solid var(--ink); }
.course-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sticky-buy { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: rgba(251,246,236,.97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
.sticky-buy .price { font-size: 1.2rem; }
.sticky-buy .btn { flex: 1; }
@media (max-width: 900px) {
  .course-hero .wrap > .layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .sticky-buy { display: flex; }
  body.has-sticky { padding-bottom: 84px; }
}

.instructor { display: flex; gap: 16px; align-items: center; }
.instructor img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--teal); }
/* photo on the left so the teacher looks toward the text */
@media (min-width: 721px) { .teacher { grid-template-columns: 1fr 240px; } .teacher-photo { order: 2; } }

/* teacher credentials */
.hero-teacher { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 600; color: var(--ink-2); }
.hero-teacher img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); flex: none; }
.hero-teacher a { text-decoration: none; color: inherit; }
.hero-teacher a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.tstat { background: var(--paper); border-radius: var(--r-sm); padding: 14px 12px; }
.tstat b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--teal-deep); text-align: right; }
.tstat span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.creds { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.creds li { position: relative; padding-inline-start: 30px; }
.creds li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.creds b { font-weight: 700; }
.creds span { display: block; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .tstats { grid-template-columns: repeat(2, 1fr); } }

/* hero teacher line: one tappable link to the teacher section */
.hero-teacher { display: block; }
.hero-teacher-link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; padding-inline-end: 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 600; transition: border-color .15s; max-width: 100%; }
.hero-teacher-link:hover { border-color: var(--teal); }
.hero-teacher-link:hover .ht-text { text-decoration: none; }
.hero-teacher-link img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); flex: none; }
.ht-text { line-height: 1.45; }
.ht-more { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--teal-deep); font-weight: 700; font-size: .9rem; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
#teacher { scroll-margin-top: 80px; }
@media (max-width: 600px) { .hero-teacher-link { border-radius: var(--r-md); } .ht-more { font-size: .85rem; padding-inline-start: 8px; } }

@media (max-width: 600px) {
  .hero-teacher-link { flex-wrap: wrap; row-gap: 6px; padding: 10px 12px; }
  .ht-text { flex: 1 1 0; min-width: 0; }
  .ht-more { width: 100%; border: 0; padding: 0; padding-inline-start: 60px; }
}

/* reviews carousel */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.reviews-head .section-head { margin-bottom: 24px; }
.car-nav { display: flex; gap: 8px; margin-bottom: 28px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.car-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.car-btn:disabled { opacity: .3; cursor: default; }
.quotes { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 4px 2px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.quotes::-webkit-scrollbar { display: none; }
.quotes .quote { flex: 0 0 clamp(260px, 31%, 360px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid var(--line); }
.quotes .cfg-block { flex: 1 0 100%; }
@media (max-width: 700px) { .quotes .quote { flex-basis: 84%; } .car-nav { display: none; } .quotes { margin-inline: -20px; padding-inline: 20px; } }

/* ---- round of refinements ---- */
/* pains as four compact cards: problem on top, answer below */
.pains { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { grid-template-columns: 1fr; grid-template-rows: 1fr auto; background: #fff; border: 2px solid var(--line); }
.pain .q { padding: 22px 22px 16px; font-size: 1.05rem; }
.pain .a { padding: 14px 22px; }
@media (max-width: 700px) { .pains { grid-template-columns: 1fr; gap: 12px; } .pain .q { padding: 18px 18px 12px; } .pain .a { padding: 12px 18px; } }

/* course page: purchase steps side by side on wide screens */
@media (min-width: 900px) {
  .access-box .steps { grid-template-columns: repeat(3, 1fr); }
  .access-box .step + .step { border-top: 0; border-inline-start: 2px solid var(--ink); }
}

/* instructor photo: cream ring so it stands out from the green photo */
.instructor img { border-color: var(--cream); box-shadow: 0 0 0 2px var(--line); }

/* footer with logo */
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; }
.foot-brand b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.foot-brand small { color: var(--muted); font-size: .82rem; }
.foot-copy { font-size: .88rem; }
.site-footer .wrap { gap: 16px 28px; }

/* auto-scrolling reviews: continuous movement, no snapping */
.quotes { scroll-snap-type: none; scroll-behavior: auto; }
.quotes.is-manual { scroll-snap-type: x mandatory; }
.quotes .quote { scroll-snap-align: none; }
.quotes.is-manual .quote { scroll-snap-align: start; }

.foot-policies { flex-basis: 100%; display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; }
.foot-policies a { text-decoration: underline; text-underline-offset: 3px; }
.buy-policies a { color: var(--ink-2); text-underline-offset: 3px; }

.foot-cr { margin-inline-start: auto; color: var(--muted); }
.foot-cr b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 600px) { .foot-cr { margin-inline-start: 0; flex-basis: 100%; } }

/* policy pages */
.policy-body { max-width: 760px; }
.policy-body h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 6px; }
.policy-body h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.policy-body p { color: var(--ink-2); margin-bottom: 10px; }
.policy-body .policy-date { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.policy-list { margin: 8px 0 14px; gap: 8px; }

/* "اختر كتابك" with a small audience tag inside the button */
.btn--tagged { gap: 10px; }
.btn-tag { font-size: .78rem; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.2); white-space: nowrap; }

/* sample lesson video */
.sample .section-head { margin-bottom: 0; }
.sample-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .sample-grid { grid-template-columns: 1fr; gap: 22px; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video--vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.video-play:hover img { opacity: 1; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.play-icon svg { margin-inline-start: 4px; }
.sample .cfg-block { color: #6b4a10; }

.video--loading { background: rgba(255,255,255,.06); }
.sample #sample-video { display: flex; justify-content: center; }
.sample #sample-video .video { width: 100%; }
.sample #sample-video .video--vertical { width: min(340px, 100%); }

.sample-more { display: inline-block; margin-top: 16px; color: var(--paper); font-weight: 700; text-underline-offset: 5px; }
.sample-more:hover { color: #fff; }

/* pains: one compact row (2x2 on phones) */
.pains-section { padding: 56px 0; }
.pains-section .section-head { margin-bottom: 20px; }
.pains-section .pains { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pains-section .pain { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); }
.pains-section .pain .q { padding: 0; font-size: .95rem; color: var(--muted); font-weight: 500; }
.pains-section .pain .q::before { content: none; }
.pains-section .pain .q span { padding: 0; }
.pains-section .pain .a { padding: 0; background: none; color: var(--ink); font-weight: 700; font-size: 1.02rem; line-height: 1.45; align-items: flex-start; }
.pains-section .pain .a::before { width: 20px; height: 20px; margin-top: 2px; background-size: 12px; }
@media (max-width: 900px) {
  .pains-section { padding: 40px 0; }
  .pains-section .pains { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pains-section .pain { padding: 14px; gap: 8px; }
  .pains-section .pain .q { font-size: .88rem; }
  .pains-section .pain .a { font-size: .95rem; }
}

/* purchase steps slider */
.sslider { --ss-d: 5s; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.ss-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.ss-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 18px 20px; background: none; border: 0; cursor: pointer; text-align: start; color: var(--muted); font-weight: 700; }
.ss-tab + .ss-tab { border-inline-start: 2px solid var(--line); }
.ss-tab[aria-selected="true"] { color: var(--ink); background: var(--paper); }
.ss-no { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font-family: var(--font-display); }
.ss-tab[aria-selected="true"] .ss-no, .ss-tab.done .ss-no { background: var(--teal); color: #fff; }
.ss-label { line-height: 1.35; }
.ss-bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: transparent; }
.ss-bar i { display: block; height: 100%; width: 0; background: var(--teal); }
.ss-tab.done .ss-bar i { width: 100%; }
.ss-tab[aria-selected="true"] .ss-bar i { animation: ss-fill var(--ss-d) linear forwards; }
.sslider.is-paused .ss-tab[aria-selected="true"] .ss-bar i { animation-play-state: paused; }
@keyframes ss-fill { from { width: 0; } to { width: 100%; } }
.ss-viewport { overflow: hidden; }
.ss-track { display: flex; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.ss-slide { flex: 0 0 100%; display: flex; align-items: center; gap: 28px; padding: 34px 36px; }
.ss-big { flex: none; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--marigold); color: var(--ink); font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; }
.ss-slide--last .ss-big { background: #25a35a; color: #fff; }
.ss-slide h3 { font-size: 1.5rem; margin-bottom: 6px; }
.ss-slide p { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }
@media (max-width: 700px) {
  .ss-tab { flex-direction: column; gap: 6px; padding: 12px 6px 16px; text-align: center; font-size: .82rem; }
  .ss-slide { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }
  .ss-big { width: 64px; height: 64px; border-radius: 20px; font-size: 2.2rem; }
  .ss-slide h3 { font-size: 1.25rem; }
  .ss-slide p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ss-track { transition: none; } }

.sample-caption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
