/* Dar Alwan — site styles. Arabic-first (RTL), logical properties only, mobile-first.
   Brand (clients/dar-alwan/brand.md): indigo ink, purple, one rose accent, Cairo only, paper white, no gradient text. */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --indigo: #462C7D;
  --ink: #2F1E52;
  --text: #4A3D63;
  --muted: #7A6E8E;
  --purple: #831C91;
  --rose: #D552A3;
  --pink: #FF70BF;
  --paper: #FBF8FD;
  --white: #FFFFFF;
  --lilac: #F3EDF9;
  --lilac-2: #E9E0F4;
  --line: #E7DEF1;
  --shadow-sm: 0 1px 2px rgba(46, 26, 82, .06), 0 2px 8px rgba(46, 26, 82, .06);
  --shadow-book: 0 2px 3px rgba(30, 15, 60, .18), 0 18px 34px -10px rgba(30, 15, 60, .38);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; margin: 0 0 .7em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--indigo); color: #fff;
  padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { inset-block-start: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--lilac { background: var(--lilac); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--purple); margin-block-end: 1em; }
.section-head { max-width: 640px; margin-block-end: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05em; }
.center { text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .65em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.2; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: #B83E8B; color: #fff; box-shadow: 0 8px 22px -8px rgba(184, 62, 139, .65); }   /* white text ≥ 4.5:1 */
.btn--primary:hover { background: #A8357F; }
.btn--ghost { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--light { background: #fff; color: var(--indigo); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 40;
  background: rgba(251, 248, 253, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-block-end-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 50px; } }
/* phones & tablets: menu | centred logo | cart */
@media (max-width: 1023px) {
  .header-row { position: relative; }
  .brand { position: absolute; inset-inline: 0; margin-inline: auto; width: max-content; }
}
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .98rem; color: var(--ink); }
.nav a:hover { background: var(--lilac); }
.nav a[aria-current="page"] { background: var(--lilac-2); color: var(--indigo); }
@media (min-width: 1024px) { .nav { display: block; margin-inline-start: 8px; } }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--lilac); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.header-cta { display: none; }
@media (min-width: 1180px) { .header-cta { display: inline-flex; min-height: 44px; padding-inline: 1.2em; font-size: .95rem; } }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 60; display: none; }
.mnav.is-open { display: block; }
.mnav__scrim { position: absolute; inset: 0; background: rgba(30, 15, 60, .35); }
.mnav__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 360px); background: var(--paper);
  padding: 20px 22px 32px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  animation: slide-in .22s ease-out;
}
@keyframes slide-in { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.mnav__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 14px; }
.mnav__top img { height: 40px; width: auto; }
.mnav a.mnav__link { display: block; padding: 14px 6px; font-size: 1.15rem; font-weight: 700; color: var(--ink); border-block-end: 1px solid var(--line); }
.mnav__levels { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px 4px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { font-size: clamp(2.05rem, 5.2vw, 3.6rem); line-height: 1.32; margin-block-end: .35em; }
.hero h1 .accent { color: var(--rose); display: inline-block; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 26px 22px; }
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--indigo);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
}
.chips svg { width: 18px; height: 18px; color: var(--rose); flex: none; }

/* brand-first hero: the full logo is big enough to read the name */
.hero-logo { width: clamp(210px, 30vw, 330px); height: auto; margin-block-end: clamp(12px, 2vw, 22px); margin-inline-start: -8px; }
.hero--brand h1 { font-size: clamp(1.85rem, 4.4vw, 3.1rem); }
/* phones & tablets (single column): centred brand block */
@media (max-width: 959px) {
  .hero--brand .hero-grid > div:first-child { text-align: center; }
  .hero--brand .hero-logo { margin-inline: auto; }
  .hero--brand .hero-sub { margin-inline: auto; }
  .hero--brand .hero-actions { justify-content: center; }
}
/* hero scene (Higgsfield background plate + gentle loop) with the REAL covers standing on the table */
.stage--scene { background: #CBBCE3 50% 75% / cover no-repeat; }
.stage--scene::after { display: none; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; z-index: -1; }
@media (prefers-reduced-motion: reduce) { .stage-video { display: none; } }
.stage--scene .stage-books { inset: 10% 8% 15.5%; }
.stage--scene .book { box-shadow: 0 2px 3px rgba(60, 35, 20, .22), 0 22px 30px -14px rgba(60, 35, 20, .55); }
.stage--scene .stage-badge { background: rgba(255, 255, 255, .9); color: var(--indigo); border-color: transparent; }
@media (max-width: 599px) {
  .stage .stage-author { display: none; }
  .stage--scene .stage-books { inset: 12% 6% 14%; }
  .stage--scene .stage-books .book { width: 34%; }
  .stage--scene .stage-books .book:nth-child(3) { width: 41%; }
}
.stage-author {
  position: absolute; inset-block-end: 16px; inset-inline-start: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 999px; padding-block: 6px; padding-inline: 6px 22px; font-size: .88rem; font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(20, 10, 40, .5);
}
.stage-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }

/* three doors: books / sessions / schools */
.pillars { display: grid; gap: 14px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pillar {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-book); border-color: transparent; }
.pillar strong { font-size: 1.2rem; color: var(--ink); }
.pillar span:not(.pillar-icon) { color: var(--muted); font-size: .97rem; line-height: 1.7; }
.pillar em { font-style: normal; font-weight: 800; color: var(--rose); margin-block-start: auto; padding-block-start: 8px; }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lilac); color: var(--rose); margin-block-end: 6px; }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar--accent { background: var(--indigo); border-color: var(--indigo); }
.pillar--accent strong { color: #fff; }
.pillar--accent span:not(.pillar-icon) { color: #DCD2EE; }
.pillar--accent em { color: var(--pink); }
.pillar--accent .pillar-icon { background: rgba(255, 255, 255, .12); color: var(--pink); }

/* dark band (success stories) */
.band { background: var(--indigo); color: #E4DBF3; padding-block: clamp(56px, 8vw, 104px); }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.band-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.15fr .85fr; } }
.band .owner-figure { background: rgba(255, 255, 255, .08); }
.eyebrow--light { color: var(--pink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--indigo); }

/* the stage: real covers as objects on an indigo backdrop (TASCHEN-style restraint) */
.stage {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 15%, #5B3C98 0%, var(--indigo) 55%, #351F63 100%);
  aspect-ratio: 5 / 4; isolation: isolate;
}
@media (min-width: 600px) and (max-width: 959px) { .stage { aspect-ratio: 16 / 10; } }
@media (min-width: 960px) { .stage { aspect-ratio: 5 / 5.2; } }
.stage::after { /* floor */
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 26%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .0), rgba(255, 255, 255, .07)); z-index: -1;
}
.stage-books { position: absolute; inset: 9% 7% 13%; display: grid; place-items: end center; }
.stage-books .book { position: absolute; inset-block-end: 0; width: 31%; }
@media (min-width: 960px) { .stage-books .book { width: 41%; } }
.stage-books .book:nth-child(1) { inset-inline-end: 6%; transform: rotate(4deg) translateY(-8%); z-index: 1; }
.stage-books .book:nth-child(2) { inset-inline-start: 6%; transform: rotate(-5deg) translateY(-6%); z-index: 1; }
.stage-books .book:nth-child(3) { width: 37%; z-index: 3; }
@media (min-width: 960px) { .stage-books .book:nth-child(3) { width: 48%; } }
.stage-books .book:nth-child(1) { inset-inline-end: 12%; }
.stage-books .book:nth-child(2) { inset-inline-start: 12%; }
@media (min-width: 960px) { .stage-books .book:nth-child(1) { inset-inline-end: 6%; } .stage-books .book:nth-child(2) { inset-inline-start: 6%; } }
.stage-badge {
  position: absolute; inset-block-start: 18px; inset-inline-start: 18px; z-index: 5;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 8px 20px; font-size: .88rem; font-weight: 700;
}

/* a printed book: cover image + spine on the RIGHT (Arabic books open from the right) + page block + real shadow */
.book { position: relative; aspect-ratio: 1000 / 1400; border-start-start-radius: 3px; border-end-start-radius: 3px;
  border-start-end-radius: 8px; border-end-end-radius: 8px; box-shadow: var(--shadow-book); background: #fff; }
.book img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.book::before { /* spine fold & light */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 7%;
  border-start-start-radius: 3px; border-end-start-radius: 3px;
  background: linear-gradient(to left, rgba(0, 0, 0, .22), rgba(255, 255, 255, .18) 38%, rgba(0, 0, 0, .06) 70%, transparent);
  z-index: 1;
}
.book::after { /* soft sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 35%, transparent 70%, rgba(0, 0, 0, .05));
}

/* ---------- level picker ---------- */
.levels { display: flex; gap: 14px; overflow-x: auto; padding-block: 6px 14px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
@media (min-width: 768px) { .levels { flex-wrap: wrap; overflow: visible; } }
.level-pill {
  scroll-snap-align: start; flex: none; display: inline-flex; align-items: center; gap: 16px;
  padding-block: 12px; padding-inline: 12px 30px; min-height: 76px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 800; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.level-pill img { width: 38px; height: 53px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(30, 15, 60, .25); }
.level-pill small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); line-height: 1.2; margin-block-end: 6px; }
.level-pill span { line-height: 1.25; }
.level-pill:hover, .level-pill[aria-current="true"] { border-color: var(--rose); transform: translateY(-1px); }
.level-pill[aria-current="true"] { background: #FFF5FB; }

/* ---------- product cards ---------- */
/* book cards: generous, calm — 2 per row on phones, 3 on tablet and desktop (6 books = two clean rows) */
.grid-books { display: grid; gap: clamp(16px, 3vw, 36px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-book {
  display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) clamp(14px, 2vw, 22px);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.card-book:hover { box-shadow: 0 22px 44px -26px rgba(46, 26, 82, .45); border-color: transparent; }
.card-book__media { display: block; padding: 12% 20% 11%; background: var(--lilac); border-radius: calc(var(--radius) - 6px); margin-block-end: 6px; transition: background-color .2s; }
.card-book:hover .card-book__media { background: var(--lilac-2); }
/* professional photo instead of the CSS mockup */
.card-book__media.is-photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.card-book__media.is-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-book:hover .card-book__media.is-photo img { transform: scale(1.04); }
.gallery-main.is-photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main .gallery-photo { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.is-photo .book--solo { width: 46%; }
.gallery-main.is-photo .phone { margin-block: 12px; width: min(220px, 60%); }
.gallery-thumbs .thumb-wide { width: 104px; }
.gallery-thumbs .thumb-wide img { aspect-ratio: 4 / 3; border-radius: 6px; }
.card-book:hover .book { transform: translateY(-5px); }
.card-book .book { transition: transform .3s ease; }
.card-book h3 { font-size: clamp(.98rem, 1.6vw, 1.2rem); margin: 4px 0 2px; line-height: 1.55; padding-inline: 6px; }
.card-book h3 small { display: block; color: var(--purple); font-weight: 700; font-size: .82em; margin-block-end: 8px; }
.card-book .price, .card-book .price--soon { padding-inline: 6px; margin-block-end: 6px; }
.price { font-weight: 800; color: var(--ink); }
.price--soon { font-weight: 700; color: var(--muted); font-size: .9rem; }
.card-book .btn { min-height: 46px; font-size: .95rem; padding-inline: .8em; margin-block-start: auto; width: 100%; }
@media (max-width: 420px) { .card-book__media { padding: 10% 14% 9%; } .card-book .btn { font-size: .88rem; } }

/* every card media is the same 4:3 frame, so photo cards and cover cards line up in any grid */
.card-book__media:not(.is-photo) { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 7% 0; }
.card-book__media:not(.is-photo) .book { height: 100%; width: auto; }
@media (max-width: 420px) { .card-book__media:not(.is-photo) { padding: 7% 0; } }
/* typographic cover: stands in until the owner's cover scan is added */
.book--type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em; text-align: center;
  padding: 10% 9%; color: #fff; background: linear-gradient(160deg, var(--indigo), var(--purple)); container-type: inline-size; }
.book--type.s-grammar-in-a-story { background: linear-gradient(160deg, #1F6F8B, #2E4C9A); }
.book--type.s-bulbul { background: linear-gradient(160deg, #F29A2E, #D552A3); }
.book--type img { width: 34%; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; border-radius: 0; }
.book--type strong { font-size: 16cqi; line-height: 1.25; font-weight: 900; }
.book--type span { font-size: 10cqi; font-weight: 700; opacity: .9; line-height: 1.3; }
.book--ghost { background: repeating-linear-gradient(135deg, #fff 0 10px, var(--lilac) 10px 20px); color: var(--muted);
  box-shadow: none; border: 2px dashed var(--line); }
.book--ghost::before, .book--ghost::after { display: none; }
.card-book--soon { opacity: .85; }
.card-book--soon h3 small { color: var(--muted); }
/* a series block on the books page */
.series-block + .series-block { margin-block-start: clamp(48px, 7vw, 88px); }
.series-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-block-end: 22px; }
.series-head p { margin: 0; max-width: 62ch; }
.series-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px 0; padding: 0; list-style: none; }
.series-meta li { background: var(--lilac); color: var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .88rem; }
.units { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.units li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .9rem; color: var(--ink); }
/* services (remote-learning centre) */
.services { display: grid; gap: clamp(14px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); }
.service strong { display: block; color: var(--ink); font-size: 1.15rem; margin-block: 12px 6px; }
.service p { margin: 0; }
.service .pillar-icon { margin: 0; }

/* ---------- feature split ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first > :first-child { order: 2; } }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ticks svg { width: 24px; height: 24px; color: var(--rose); margin-block-start: 5px; }

/* look-inside phone frame */
.phone {
  position: relative; width: min(300px, 78vw); margin-inline: auto; border-radius: 34px; padding: 10px;
  background: #1E1433; box-shadow: 0 30px 60px -24px rgba(30, 15, 60, .6);
}
.phone video, .phone img { width: 100%; aspect-ratio: 474 / 850; object-fit: cover; border-radius: 26px; background: #2A1E44; }
.phone-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--indigo); display: grid; place-items: center; box-shadow: var(--shadow-book);
}
.phone-play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.phone.is-playing .phone-play { display: none; }
.level-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 18px; }
.level-tabs button {
  min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem;
}
.level-tabs button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- audiences ---------- */
.aud-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .aud-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.aud {
  position: relative; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.aud--dark { background: var(--indigo); border-color: var(--indigo); color: #E9E1F6; }
.aud--dark h3 { color: #fff; }
.aud h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.aud .ticks { margin-block: 10px 22px; }
.aud--dark .ticks svg { color: var(--pink); }
.aud .btn { align-self: flex-start; margin-block-start: auto; }
.aud-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--lilac); color: var(--rose); margin-block-end: 8px; }
.aud--dark .aud-icon { background: rgba(255, 255, 255, .12); color: var(--pink); }
.aud-icon svg { width: 28px; height: 28px; }

/* ---------- owner ---------- */
.owner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .owner { grid-template-columns: .8fr 1.2fr; } }
.owner-figure { position: relative; border-radius: var(--radius); background: var(--lilac); aspect-ratio: 4 / 4.4; overflow: hidden; display: grid; place-items: end center; }
.owner-figure img { width: 62%; height: auto; }
.owner-figure.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.owner-figure figcaption { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; font-size: .8rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 3px 12px; }
.owner blockquote { margin: 0 0 18px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--indigo); line-height: 1.7; }

/* ---------- media cards (stories / curriculum) ---------- */
.media-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .media-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.media-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-book); }
.media-card__img { position: relative; aspect-ratio: 16 / 9; background: var(--lilac); overflow: hidden; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; }
.media-card__img .yt { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; display: inline-flex; gap: 6px; align-items: center; background: rgba(20, 10, 40, .72); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.media-card__img .yt svg { width: 18px; height: 18px; }
.media-card__body { padding: 20px 22px 24px; }
.media-card__body h3 { font-size: 1.2rem; margin-block-end: .3em; }
.media-card__body p { color: var(--muted); margin: 0; }

/* ---------- reassurance strip ---------- */
.assure { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .assure { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.assure-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.assure-item svg { width: 30px; height: 30px; color: var(--rose); flex: none; margin-block-start: 3px; }
.assure-item strong { display: block; color: var(--ink); }
.assure-item span { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ---------- product page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding-block: 16px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--line); }
.crumbs a:hover { color: var(--rose); }
.pdp { display: grid; gap: clamp(26px, 4vw, 60px); padding-block: clamp(18px, 3vw, 36px) clamp(48px, 7vw, 88px); align-items: start; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.05fr 1fr; } }
.gallery-main { background: var(--lilac); border-radius: var(--radius); padding: 9% 18%; }
.pdp > * { min-width: 0; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
@media (max-width: 599px) { .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block-end: 2px; } .gallery-thumbs button { flex: none; width: 60px; } .gallery-thumbs .thumb-wide { width: 84px; } }
.gallery-thumbs button { width: 74px; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: var(--lilac); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--rose); background: #fff; }
.gallery-thumbs img { width: 100%; aspect-ratio: 1000 / 1400; object-fit: cover; border-radius: 3px; }
.gallery-thumbs .thumb-video { display: grid; place-items: center; aspect-ratio: 1000 / 1400; border-radius: 3px; background: var(--indigo); color: #fff; }
.gallery-thumbs .thumb-video svg { width: 22px; height: 22px; }
.pdp h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-block-end: .45em; }
.pdp .level-line { font-size: 1.15rem; font-weight: 800; color: var(--purple); margin-block-end: .7em; }
.pdp .by { color: var(--muted); margin-block-end: 1.6em; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-block: 22px; display: grid; gap: 14px; }
.buybox .price { font-size: 1.6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 800; color: var(--indigo); }
.qty output { min-width: 34px; text-align: center; font-weight: 800; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 200px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 700; }
.note { font-size: .9rem; color: var(--muted); }
.ico-inline svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; color: var(--rose); }
.ico-inline--lg svg { width: 26px; height: 26px; vertical-align: -6px; }
.sticky-buy {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; display: flex; gap: 12px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  border-block-start: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
}
.sticky-buy.is-on { transform: none; }
.sticky-buy .btn { flex: 1; min-height: 48px; }
.sticky-buy__t { line-height: 1.3; font-size: .9rem; }
.sticky-buy__t strong { display: block; color: var(--ink); }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 15, 60, .38); }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(94vw, 420px); background: var(--paper);
  display: flex; flex-direction: column; animation: slide-in-end .22s ease-out;
}
@keyframes slide-in-end { from { transform: translateX(-30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-block-end: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.25rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-block-end: 1px solid var(--line); }
.line-item img { width: 58px; aspect-ratio: 1000 / 1400; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-sm); }
.line-item h4 { font-size: .98rem; margin: 0; line-height: 1.4; }
.line-item small { color: var(--muted); }
.line-item .qty button { width: 36px; height: 36px; font-size: 1.1rem; }
.empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.totals { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: clamp(24px, 4vw, 48px); padding-block: 24px 80px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.15fr .85fr; } .summary { position: sticky; inset-block-start: calc(var(--header-h) + 16px); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; margin-block-end: 16px; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.field .err { color: #B3261E; font-size: .88rem; display: none; }
.field.has-err input, .field.has-err select { border-color: #B3261E; }
.field.has-err .err { display: block; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: var(--paper); }
.pay-opt:has(input:checked) { border-color: var(--rose); background: #FFF5FB; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--rose); margin-block-start: 4px; }
.pay-opt strong { color: var(--ink); display: block; }
.pay-opt span { color: var(--muted); font-size: .9rem; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* ---------- success stories page ---------- */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pains li { position: relative; padding: 14px 18px; padding-inline-start: 46px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pains li::before { content: "؟"; position: absolute; inset-inline-start: 16px; inset-block-start: 12px; font-weight: 900; color: var(--rose); font-size: 1.1rem; }
.big-quote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--indigo); line-height: 1.5; margin-block-end: .6em; }
.stories { display: grid; gap: 20px; }
@media (min-width: 860px) { .stories { grid-template-columns: repeat(2, 1fr); } }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.story-media { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16 / 10; object-fit: cover; background: var(--lilac); }
.story-change { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: var(--lilac); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.story-change small { display: block; color: var(--muted); font-weight: 700; }
.story-change strong { color: var(--indigo); }
.story-arrow { color: var(--rose); font-weight: 900; font-size: 1.3rem; }
.story blockquote { margin: 0; font-size: 1.08rem; color: var(--ink); line-height: 1.8; }
.story-by { margin: 0; color: var(--muted); font-weight: 700; font-size: .92rem; }
.story-empty { border: 2px dashed var(--lilac-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; background: #fff; }
.story-empty strong { display: block; font-size: 1.3rem; color: var(--ink); margin-block-end: 8px; }
.story-empty p { color: var(--muted); margin-block-end: .5em; }
.story-empty .btn { margin-block-start: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 900; font-size: 1.2rem; margin-block-end: 12px; }
.steps strong { display: block; font-size: 1.15rem; color: var(--ink); margin-block-end: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #24163F; color: #CFC4E2; padding-block: 56px 28px; margin-block-start: 0; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-brand img { width: 150px; height: auto; background: #fff; border-radius: 18px; padding: 12px; }
.foot-brand p { margin-block-start: 14px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-block-end: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-block-start: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--rose); }
.socials svg { width: 20px; height: 20px; }
.legal { border-block-start: 1px solid rgba(255, 255, 255, .1); margin-block-start: 36px; padding-block-start: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* floating WhatsApp */
.wa-float {
  position: fixed; inset-block-end: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: 18px; z-index: 35;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.wa-float svg { width: 30px; height: 30px; }
body.has-sticky .wa-float { inset-block-end: calc(86px + env(safe-area-inset-bottom)); }

/* toast */
.toast {
  position: fixed; inset-inline: 0; inset-block-end: 22px; margin-inline: auto; width: max-content; max-width: 92vw; z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* reveal on scroll (kept subtle) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.series-meta li.is-soon { background: var(--rose); color: #fff; }
.book--square { aspect-ratio: 1 / 1; }
.card-book__media:not(.is-photo) .book--square { height: 92%; }
.gallery-main .gallery-page { max-height: 100%; max-width: 92%; width: auto; height: auto; box-shadow: var(--shadow-book); border-radius: 4px; background: #fff; }
.gallery-thumbs .thumb-page img { object-position: top; }
.title-en { font-weight: 800; color: var(--muted); margin: -.3em 0 .6em; font-size: 1.05rem; text-align: end; }
.units a { color: inherit; }

/* ---------- look-inside viewer (preview only) ---------- */
.reader-open { margin-block-start: 16px; min-height: 54px; }
.reader-open svg { width: 22px; height: 22px; }
.reader { position: fixed; inset: 0; z-index: 90; background: #1C1233; display: grid; grid-template-rows: auto 1fr;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reader[hidden] { display: none; }
.reader__bar { display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); color: #fff; font-weight: 700; }
.reader__hint { margin-inline-start: auto; font-size: .82rem; color: #CFC4E2; }
.reader__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.reader__close svg { width: 22px; height: 22px; }
.reader__stage { position: relative; display: grid; place-items: center; padding: 8px clamp(8px, 6vw, 90px) 24px; min-height: 0; }
.reader__page { width: auto; height: auto; max-width: min(100%, 900px); max-height: calc(100dvh - 120px); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: #fff;
  transition: filter .2s; pointer-events: none; }
.reader.is-veiled .reader__page { filter: blur(22px) brightness(.6); }
.reader__nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; z-index: 2; }
.reader__nav--next { inset-inline-end: 12px; }
.reader__nav--prev { inset-inline-start: 12px; }
.reader__nav:disabled { opacity: .25; }
.reader__end { text-align: center; color: #fff; max-width: 420px; display: grid; gap: 12px; justify-items: center; }
.reader__end strong { font-size: 1.4rem; line-height: 1.5; }
.reader__end p { color: #CFC4E2; margin: 0; }
@media print { .reader, .reader-open { display: none !important; } }
.reader__end[hidden], .reader__page[hidden] { display: none; }

/* ---------- Dar Alwan assistant ---------- */
.ai-launch { position: fixed; z-index: 60; inset-block-end: 88px; inset-inline-end: 18px; display: flex; align-items: center; gap: 8px;
  padding-block: 6px; padding-inline: 6px 20px; border-radius: 999px; border: 0; background: #fff; color: var(--indigo); font-weight: 800;
  box-shadow: 0 10px 30px -10px rgba(46, 26, 82, .45); }
.ai-launch[hidden] { display: none; }
.ai-launch img { width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); padding: 9px; object-fit: contain; box-sizing: border-box; }
body.has-sticky .ai-launch { inset-block-end: 152px; }
.ai-panel { position: fixed; z-index: 70; inset-block-end: 16px; inset-inline-end: 16px; width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto 1fr auto auto auto; background: #fff;
  border-radius: 24px; box-shadow: 0 30px 70px -20px rgba(30, 15, 60, .5); overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--indigo), var(--purple)); color: #fff; }
.ai-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 9px; object-fit: contain; box-sizing: border-box; }
.ai-head strong { display: block; line-height: 1.3; }
.ai-head small { color: #E7DDF6; font-size: .8rem; }
.ai-close { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.ai-close svg { width: 20px; height: 20px; }
.ai-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.ai-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.75; font-size: .96rem; white-space: pre-line; overflow-wrap: anywhere; }
.ai-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-start-start-radius: 6px; }
.ai-msg--me { align-self: flex-end; background: var(--indigo); color: #fff; border-start-end-radius: 6px; }
.ai-msg a { color: var(--purple); font-weight: 700; text-decoration: underline; }
.ai-msg .btn { margin-block-start: 8px; min-height: 42px; font-size: .9rem; color: #fff; text-decoration: none; }
.ai-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: ai-dot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; }
.ai-chips[hidden] { display: none; }
.ai-chips button { flex: none; border: 1px solid var(--line); background: var(--lilac); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .85rem; }
.ai-form { display: flex; gap: 8px; padding: 12px 14px; }
.ai-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; background: var(--paper); }
.ai-form .btn { min-height: 46px; padding-inline: 1.1em; }
.ai-foot { margin: 0; padding: 0 14px 12px; font-size: .74rem; color: var(--muted); text-align: center; }
.ai-foot a { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .ai-typing i { animation: none; } }

/* ---------- home: one row per series ---------- */
.home-series + .home-series { margin-block-start: clamp(40px, 6vw, 72px); }
.home-series__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 18px; }
.home-series__head h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 .25em; color: var(--ink); }
.home-series__head p { margin: 0; color: var(--muted); }
.home-series__all { flex: none; font-weight: 800; color: var(--purple); white-space: nowrap; padding-block: 8px; }
.home-series__soon { background: var(--lilac); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 0; max-width: 820px; }
.soon-tag { display: inline-block; vertical-align: middle; font-size: .8rem; background: var(--rose); color: #fff; border-radius: 999px; padding: 2px 12px; margin-inline-start: 6px; }
/* a rail: swipeable row of cards, three visible on desktop */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * clamp(16px, 3vw, 36px)) / 3); gap: clamp(16px, 3vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 14px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 767px) { .rail { grid-auto-columns: 72%; } }

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 800; font-size: .9rem; color: var(--indigo); background: #fff; }
.lang-switch:hover { border-color: var(--rose); }
.lang-full { display: none; }
@media (min-width: 600px) { .lang-full { display: inline; } .lang-short { display: none; } .lang-switch { padding-inline: 14px; } }
.mnav__lang { color: var(--purple); }
[dir="ltr"] .qty { flex-direction: row-reverse; }   /* reads − 1 + left to right */

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--rose); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; }
/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 32px 16px; }
.notfound > img { width: 110px; height: auto; margin-block-end: 10px; }
.notfound__en { margin-block-start: 28px; padding-block-start: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.notfound__en h2 { font-size: 1.2rem; margin-block-end: .3em; color: var(--ink); }
.notfound__en a { text-decoration: underline; }

.owner-figure.is-illustrated { background: #fff; }
.owner-figure.is-illustrated img { object-position: 50% 12%; }
