/* ===========================================================
   ACHNO v2 — Design system magazine, voice-first, non-AI
   =========================================================== */

:root {
  --orange: #FF7F24;
  --orange-deep: #E66A12;
  --orange-soft: #FFE8D4;
  --cream: #FFFAF5;
  --cream-deep: #FFF5EC;
  --ink: #1C1B1F;
  --ink-soft: #44434A;
  --ink-mute: #76747C;
  --line: #EDE8E2;
  --green: #1F7A4D;
  --paper: #FAF6F0;
  --shadow-card: 0 1px 0 rgba(28,27,31,.04), 0 12px 32px -8px rgba(28,27,31,.08);
  --shadow-soft: 0 8px 24px -10px rgba(255,127,36,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Tajawal", "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[lang="fr"] body, body[lang="fr"] { font-family: "Poppins", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* === LAYOUT === */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* === TYPO scale === */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  padding: 6px 12px;
  background: var(--orange-soft);
  border-radius: 100px;
  margin-bottom: 22px;
}
.kicker { font-size: .78rem; font-weight: 600; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { color: var(--ink-soft); line-height: 1.75; }

/* === HEADER === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
img.brand-mark { background: transparent; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: .95rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--orange); }
@media (max-width: 880px) { .nav-links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(28,27,31,.4);
}
.btn-orange {
  background: var(--orange);
  color: white;
}
.btn-orange:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: white; }

.lang-toggle {
  display: inline-flex;
  background: var(--cream-deep);
  border-radius: 100px;
  padding: 4px;
  gap: 0;
}
.lang-toggle button {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
  transition: all .15s ease;
}
.lang-toggle button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
[dir="rtl"] .hero { direction: rtl; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--orange);
  font-style: italic;
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--orange-soft);
  z-index: -1;
  border-radius: 4px;
}
.hero p.lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-cta .btn { padding: 16px 28px; font-size: 1rem; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero-stat span {
  font-size: .82rem;
  color: var(--ink-mute);
  font-weight: 500;
}

/* === Hero visual : phone mockup + waveform === */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--orange-soft) 0%, var(--cream) 100%);
  border-radius: 36px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,127,36,.18) 0%, transparent 60%);
  pointer-events: none;
}
.phone-frame {
  position: relative;
  width: 75%;
  max-width: 280px;
  aspect-ratio: 9/19;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 30px 60px -15px rgba(28,27,31,.35);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-status {
  height: 22px;
  background: white;
}
.phone-content {
  flex: 1;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, white 0%, var(--cream) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.phone-mic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255,127,36,.5);
  animation: micPulse 2.5s ease-in-out infinite;
}
.phone-mic svg { width: 36px; height: 36px; color: white; }
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,127,36,.5); }
  50% { box-shadow: 0 0 0 22px rgba(255,127,36,0); }
}
.phone-waveform {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 50px;
}
.phone-waveform span {
  display: block;
  width: 4px;
  background: var(--orange);
  border-radius: 4px;
  animation: waveBar 1.4s ease-in-out infinite;
}
.phone-waveform span:nth-child(1) { height: 16px; animation-delay: 0s; }
.phone-waveform span:nth-child(2) { height: 32px; animation-delay: .1s; }
.phone-waveform span:nth-child(3) { height: 24px; animation-delay: .2s; }
.phone-waveform span:nth-child(4) { height: 44px; animation-delay: .3s; }
.phone-waveform span:nth-child(5) { height: 18px; animation-delay: .4s; }
.phone-waveform span:nth-child(6) { height: 36px; animation-delay: .5s; }
.phone-waveform span:nth-child(7) { height: 22px; animation-delay: .6s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.phone-caption {
  font-size: .72rem;
  color: var(--ink-mute);
  text-align: center;
  font-weight: 500;
  direction: rtl;
}

.floating-tag {
  position: absolute;
  background: white;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.floating-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31,122,77,.18);
  animation: dotBlink 1.6s ease-in-out infinite;
}
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.floating-tag.t1 { top: 12%; right: -10px; }
.floating-tag.t2 { bottom: 14%; left: -16px; }
.floating-tag svg { width: 16px; height: 16px; color: var(--orange); }

/* === SECTION generic === */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }

/* === BENTO (3 steps) === */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 880px) { .bento { grid-template-columns: 1fr; } }

.bento-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.bento-card .step-num {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: .18em;
  margin-bottom: 18px;
  font-family: "Poppins", sans-serif;
}
.bento-card .step-num::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; opacity: .5; }
[dir="rtl"] .bento-card .step-num::before { margin-right: 0; margin-left: 10px; }
.bento-card.feature .step-num { color: rgba(255,255,255,.55); }
.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.bento-card p { font-size: .98rem; }
.bento-card.feature {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.bento-card.feature .step-num { color: rgba(255,127,36,.5); }
.bento-card.feature h3 { color: white; }
.bento-card.feature p { color: rgba(255,255,255,.7); }
.bento-icon {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--ink);
  opacity: .85;
}
.bento-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-card.feature .bento-icon { color: rgba(255,255,255,.92); }

/* === LEXIQUE strip === */
.lex-strip {
  background: var(--ink);
  color: white;
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.lex-strip h2 { color: white; max-width: 600px; margin-bottom: 12px; }
.lex-strip p { color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 600px; }
.lex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.lex-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  transition: all .2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.lex-card:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
}
.lex-darija {
  font-family: "Tajawal", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
  direction: rtl;
}
.lex-card:hover .lex-darija { color: white; }
.lex-fr {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.lex-card:hover .lex-fr { color: rgba(255,255,255,.85); }

/* === SOCIAL FEED (dynamic) === */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feed-grid { grid-template-columns: 1fr; } }

.feed-card {
  position: relative;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feed-card-img {
  aspect-ratio: 1/1;
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
}
.feed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.feed-card:hover .feed-card-img img { transform: scale(1.04); }
.feed-card-body {
  padding: 18px 20px 20px;
}
.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .78rem;
  color: var(--ink-mute);
}
.feed-card-meta a {
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.feed-card-meta a:hover { color: var(--orange); }
.feed-card-meta svg { width: 14px; height: 14px; }
.feed-card-tagline {
  font-size: .98rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  direction: rtl;
  font-family: "Tajawal", sans-serif;
}
.feed-card-skel {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--cream-deep) 0%, white 50%, var(--cream-deep) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 22px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === CITIES === */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.city-tile {
  position: relative;
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s ease;
  text-decoration: none;
  color: inherit;
}
.city-tile:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
  transform: translateY(-3px);
}
.city-tile-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.city-tile-ar {
  display: block;
  font-family: "Tajawal", sans-serif;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
  direction: rtl;
}
.city-tile-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: grid; place-items: center;
  color: var(--ink);
  transition: all .2s ease;
}
.city-tile:hover .city-tile-arrow { background: var(--ink); color: white; transform: rotate(-45deg); }
.city-tile-arrow svg { width: 16px; height: 16px; }

/* === DOWNLOAD CTA === */
.cta-final {
  background: linear-gradient(135deg, var(--ink) 0%, #2A2832 100%);
  color: white;
  border-radius: 36px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,127,36,.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
  position: relative;
}
.cta-final p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-stores {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: white;
  color: var(--ink);
  border-radius: 100px;
  font-weight: 600;
  transition: transform .15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .lbl { font-size: .7rem; color: var(--ink-mute); font-weight: 500; }
.store-btn .name { font-size: 1rem; font-weight: 700; }

/* === FOOTER === */
footer.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
  font-weight: 700;
}
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a {
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.foot a:hover { color: var(--orange); }
.foot-brand p {
  font-size: .92rem;
  margin-top: 16px;
  max-width: 320px;
}
.foot-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .15s ease;
}
.foot-social a:hover { background: var(--orange); border-color: var(--orange); color: white; }
.foot-social svg { width: 16px; height: 16px; }

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* RTL polish */
[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] .hero h1 { text-align: right; }
[dir="rtl"] .hero p.lead { text-align: right; margin-left: auto; margin-right: 0; }
[dir="rtl"] .floating-tag.t1 { right: auto; left: -10px; }
[dir="rtl"] .floating-tag.t2 { left: auto; right: -16px; }

/* ===========================================================
   INNER PAGES — services, villes, comparisons, blog, glossaire
   =========================================================== */

/* Page header (sub-page hero) */
.page-hero {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--orange); font-weight: 500; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.page-hero h1 .ar {
  display: block;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  color: var(--orange);
  font-size: .85em;
  margin-top: 8px;
  direction: rtl;
}
[dir="rtl"] .page-hero h1 .ar { display: inline-block; }
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 700px;
}
.page-hero .meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.page-hero .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.page-hero .meta-pill svg { width: 14px; height: 14px; color: var(--orange); }

/* Article body */
.prose-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  padding: 60px 0;
}
@media (max-width: 880px) { .prose-wrap { grid-template-columns: 1fr; gap: 40px; } }

.prose {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.prose h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 48px 0 18px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--ink); }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 22px; }
.prose li { margin-bottom: 8px; line-height: 1.75; }
.prose a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-deep); }
.prose blockquote, .prose .ar-block {
  border-left: 3px solid var(--orange);
  padding: 16px 22px;
  background: var(--cream-deep);
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
  font-family: "Tajawal", sans-serif;
  font-size: 1.08rem;
  direction: rtl;
}
[dir="rtl"] .prose blockquote, [dir="rtl"] .prose .ar-block {
  border-left: none;
  border-right: 3px solid var(--orange);
  border-radius: 14px 0 0 14px;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose img { border-radius: 16px; margin: 24px 0; }
.prose .callout {
  background: linear-gradient(135deg, var(--orange-soft), var(--cream));
  border-left: 4px solid var(--orange);
  padding: 22px 26px;
  border-radius: 0 18px 18px 0;
  margin: 28px 0;
  color: var(--ink);
}
[dir="rtl"] .prose .callout { border-left: none; border-right: 4px solid var(--orange); border-radius: 18px 0 0 18px; }
.prose .tarif-box {
  background: var(--ink);
  color: white;
  padding: 22px 26px;
  border-radius: 18px;
  margin: 24px 0;
  font-weight: 600;
}
.prose .tarif-box strong { color: var(--orange); display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .94rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
.prose th { background: var(--cream-deep); font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* Sidebar (TOC, related, CTA) */
.aside {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 880px) { .aside { position: static; } }
.aside-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.aside-card h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.aside-card ul { list-style: none; }
.aside-card li { margin-bottom: 8px; }
.aside-card a { font-size: .92rem; color: var(--ink-soft); }
.aside-card a:hover { color: var(--orange); }
.aside-cta {
  background: var(--ink);
  color: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
}
.aside-cta h4 { color: rgba(255,255,255,.6); }
.aside-cta p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 14px; }

/* Hub grid (services/villes/blog index) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.hub-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-tile:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: var(--shadow-card);
}
.hub-tile-icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--ink);
  opacity: .82;
}
.hub-tile-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub-tile h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.hub-tile .ar { font-family: "Tajawal", sans-serif; color: var(--orange); font-weight: 700; font-size: 1rem; margin-bottom: 8px; direction: rtl; }
.hub-tile p { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }

/* Tag/chip group */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.tag-row a {
  padding: 7px 14px;
  background: var(--cream-deep);
  border-radius: 100px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.tag-row a:hover {
  background: var(--orange);
  color: white;
}

/* Comparison table */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cmp-table thead th {
  background: var(--ink);
  color: white;
  padding: 18px 16px;
  text-align: left;
  font-size: .9rem;
}
[dir="rtl"] .cmp-table thead th { text-align: right; }
.cmp-table thead th.brand { color: var(--orange); }
.cmp-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
  vertical-align: top;
}
.cmp-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-yes { color: var(--green); font-weight: 700; }
.cmp-no { color: #C44; font-weight: 700; }
.cmp-mid { color: var(--orange); font-weight: 700; }

/* Glossary tables */
.gloss-section { margin-bottom: 36px; }
.gloss-section h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 18px; font-weight: 800; }
.gloss-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.gloss-table th { background: var(--cream-deep); padding: 14px 16px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); font-weight: 700; }
[dir="rtl"] .gloss-table th { text-align: right; }
.gloss-table td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.gloss-table td.darija { font-family: "Tajawal", sans-serif; font-size: 1.3rem; color: var(--orange); font-weight: 700; direction: rtl; }
.gloss-table td.fusha { font-family: "Tajawal", sans-serif; color: var(--ink-mute); text-decoration: line-through; direction: rtl; }
.gloss-table td strong { color: var(--ink); font-weight: 700; }

/* FAQ inline (article style) */
.faq-block { margin: 36px 0; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 12px;
}
.faq-item h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.faq-item p { color: var(--ink-soft); margin: 0; line-height: 1.7; font-size: .95rem; }
.faq-item h3[dir="rtl"], .faq-item p[dir="rtl"] { font-family: "Tajawal", sans-serif; }

/* CTA inline */
.inline-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #2A2832 100%);
  color: white;
  padding: 34px 36px;
  border-radius: 22px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta h3 { color: white; font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.inline-cta p { color: rgba(255,255,255,.7); font-size: .92rem; margin: 0; }
.inline-cta .btn-orange { padding: 12px 22px; }

/* Article meta date */
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 8px;
}

/* Compat hub-card (legacy) -> v2 hub-tile */
.hub-header { text-align: center; margin: 30px 0 40px; max-width: 760px; margin-left: auto; margin-right: auto; }
.hub-header h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 14px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.hub-header p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 50px; }
.hub-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 28px; text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow-card); }
.hub-card .emoji { display: none; }
.hub-card .icon-mark {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--ink);
  opacity: .8;
}
.hub-card .icon-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub-card .num-mark {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink-mute);
  letter-spacing: .14em;
  margin-bottom: 14px;
}
.hub-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0 0 4px; letter-spacing: -.01em; }
.hub-card .ar { font-family: "Tajawal", sans-serif; color: var(--orange); font-weight: 700; font-size: 1rem; margin-bottom: 8px; direction: rtl; }
.hub-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.hub-cta { text-align: center; margin: 50px 0 30px; }
.hub-cta a { display: inline-block; background: var(--orange); color: white; padding: 14px 32px; border-radius: 100px; text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.hub-cta a:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

/* Compat classes legacy v1 (service-/city-/cross-section, etc.) */
.service-section, .city-section, .cross-section, .article-section, .gloss-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 18px;
}
.service-section h2, .city-section h2, .cross-section h2, .article-section h2, .gloss-section h2 {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.service-section p, .city-section p, .cross-section p, .article-section p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}
.service-section ul, .city-section ul, .cross-section ul, .article-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
}
.service-section ul li a, .city-section ul li a, .cross-section ul li a, .article-section ul li a {
  display: block;
  padding: 10px 14px;
  background: var(--cream-deep);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: all .15s ease;
}
.service-section ul li a:hover, .city-section ul li a:hover, .cross-section ul li a:hover, .article-section ul li a:hover {
  background: var(--orange);
  color: white;
}
.service-cta, .city-cta, .cross-cta, .article-cta {
  text-align: center;
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, var(--cream-deep), var(--orange-soft));
  border-radius: 18px;
}
.service-cta a, .city-cta a, .cross-cta a, .article-cta a {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
}
.service-back, .city-back, .cross-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.service-back:hover, .city-back:hover, .cross-back:hover { color: var(--orange-deep); }
.service-breadcrumb, .city-breadcrumb, .cross-breadcrumb {
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.service-breadcrumb a, .city-breadcrumb a, .cross-breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.service-header, .city-header, .cross-header { margin-bottom: 30px; }
.service-header h1, .city-header h1, .cross-header h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.service-content, .city-content, .cross-content { max-width: 900px; margin: 0 auto; }
.posts-placeholder {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
}
.cross-links, .other-cmp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cross-links a, .other-cmp a {
  padding: 7px 14px;
  background: var(--cream-deep);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s ease;
}
.cross-links a:hover, .other-cmp a:hover { background: var(--orange); color: white; }
.tarif-box { background: var(--ink); color: white; padding: 22px 26px; border-radius: 18px; margin: 18px 0; }
.tarif-box strong { display: block; color: var(--orange); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

/* Glossary specific */
.gloss-page, .service-page, .city-page, .cross-page { background: var(--cream); padding: 40px 0 60px; }
.gloss-content, .service-content, .city-content, .cross-content { padding: 0 20px; }
.gloss-table { width: 100%; border-collapse: collapse; background: white; border-radius: 14px; overflow: hidden; }
.gloss-table th { background: var(--cream-deep); color: var(--ink-mute); padding: 12px 14px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.gloss-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .94rem; }
.gloss-table td.darija { font-family: "Tajawal", sans-serif; color: var(--orange); font-weight: 700; font-size: 1.2rem; direction: rtl; }
.gloss-table td.fusha { color: var(--ink-mute); text-decoration: line-through; direction: rtl; font-family: "Tajawal", sans-serif; }
.gloss-note {
  background: linear-gradient(135deg, var(--orange-soft), var(--cream-deep));
  border-left: 3px solid var(--orange);
  padding: 16px 22px;
  border-radius: 0 14px 14px 0;
  margin: 18px 0;
  color: var(--ink-soft);
  line-height: 1.7;
}
[dir="rtl"] .gloss-note { border-left: none; border-right: 3px solid var(--orange); border-radius: 14px 0 0 14px; }
.gloss-cta { text-align: center; margin: 32px 0; }
.gloss-cta a { display: inline-block; background: var(--orange); color: white; padding: 14px 32px; border-radius: 100px; text-decoration: none; font-weight: 600; }
.gloss-header { margin-bottom: 28px; }
.gloss-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--ink); margin-bottom: 12px; font-weight: 800; }
.gloss-header p { color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; }

/* FAQ legacy */
.faq-item { margin-bottom: 14px; padding: 22px 26px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.faq-item h3 { color: var(--ink); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.faq-item h3[dir="rtl"] { color: var(--orange); margin-top: 12px; }
.faq-item p { color: var(--ink-soft); margin: 0; line-height: 1.7; font-size: .95rem; }

/* Compat classes legacy (arl-*, etc.) -> bridge to v2 components */
.arl-section { margin: 28px 0; }
.arl-section h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.arl-section p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 12px; }
.arl-section ul, .arl-section ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); line-height: 1.8; }
.arl-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.arl-links a { padding: 7px 14px; background: var(--cream-deep); border-radius: 100px; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; transition: all .15s ease; }
.arl-links a:hover { background: var(--orange); color: white; }

/* Mobile spacing */
@media (max-width: 640px) {
  .hero { padding: 50px 0 60px; }
  .section { padding: 60px 0; }
  .page-hero { padding: 50px 0 30px; }
  .prose-wrap { padding: 40px 0; }
  .cta-final { padding: 50px 24px; border-radius: 24px; }
  .nav-links { display: none; }
}
