/* ============================================================================
   CHERT Learning Hub — marketing site (chertlearninghub.com, EN at /, AR at /ar/).

   The visual system is the one chertiot.com, cherttt.com and chertfleet.com share (their
   static/shell.css + site.css), PORTED rather than copied, for two reasons this project's
   mandatory rules force:
     1. Arabic is real right-to-left (rule 14, design system §7). The sister sites run
        "translation-only" Arabic on an LTR layout with physical left/right; here every
        property is logical, so the whole page mirrors when <html dir> flips.
     2. Orange never carries text on a light surface (design system §3.6). Eyebrows,
        kickers, counters and icon glyphs on light backgrounds are ink; orange stays a fill,
        a rule or a dark-surface accent.
   Tokens only (chert-tokens.css); tints via color-mix. No external assets.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("/landing-assets/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/landing-assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/landing-assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/landing-assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

/* The design system sets the Arabic face on [lang="ar"] (the <html> element) but also sets
   Inter directly on body, which wins for everything inside it — so Arabic fell back to a system
   font. Re-apply §7.4 on body itself (found on the live page, Phase 10r). */
[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: var(--lh-ar); }

/* +1 in LTR, -1 in RTL: for the few transforms that have no logical form. */
:root { --flip: 1; }
[dir="rtl"] { --flip: -1; }

/* --------------------------------------------------------------- shell --- */
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-h) + 16px); }
.sx { background: var(--chert-cream); text-align: start; }
.sx main { overflow-x: clip; }
.sx [hidden] { display: none !important; }
.sx a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.sx-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sx-wrap--wide { max-width: var(--maxw-wide); }
.sx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: -9999px; inset-block-start: 0; z-index: var(--z-toast); background: var(--chert-ink); color: var(--chert-cream);
  padding: 10px 16px; border-end-end-radius: var(--radius-sm); }
.skip-link:focus { inset-inline-start: 0; }
.sx-hero :focus-visible, .sx-arch :focus-visible, .sx-final :focus-visible, .sx-foot :focus-visible, .lh-gallery :focus-visible,
.sx-nav:not(.is-solid) :focus-visible { outline-color: var(--chert-orange); }
[lang="ar"] .sx :is(h1, h2, h3, h4, .sx-eyebrow, .sx-stage__powered, .sx-inspector__layer, .lh-engine__kicker, .lh-mock *) { letter-spacing: normal; text-transform: none; }
.ltr-content { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ----------------------------------------------------------------- nav --- */
.sx-nav { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky); height: var(--header-h); color: var(--chert-dark-text);
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.sx-nav.is-solid { background: color-mix(in srgb, var(--chert-cream) 90%, transparent); color: var(--chert-ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--chert-border); }
.sx-nav__inner { display: flex; align-items: center; gap: var(--space-5); height: 100%; }
.sx-nav__brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
[lang="ar"] .sx-nav__brand { letter-spacing: normal; }
.sx-nav__brand b { font-weight: 500; opacity: .85; }
.sx-nav__brand img { display: block; }
.sx-nav__brand span, .sx-nav__lang, .sx-nav__cta { white-space: nowrap; }
.sx-nav__links { display: flex; gap: var(--space-5); margin-inline-start: var(--space-4); }
.sx-nav__links a, .sx-nav__signin { color: inherit; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); opacity: .8; transition: opacity var(--dur-base); white-space: nowrap; }
.sx-nav__links a:hover, .sx-nav__signin:hover { opacity: 1; }
.sx-nav__actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--space-4); }
.sx-nav__lang { color: inherit; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.sx-nav__lang:hover { border-color: var(--chert-orange); }
/* The header sign-up is outlined, not orange: the hero and the final band each hold the one
   primary button of their view (design system: exactly one primary per view). */
.sx-nav__cta { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: var(--radius-pill); color: inherit; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 700; border: 1.5px solid currentColor; transition: background-color var(--dur-base), color var(--dur-base); }
.sx-nav__cta:hover { background: var(--chert-orange); border-color: var(--chert-orange); color: var(--chert-ink); }
@media (max-width: 1099px) { .sx-nav__links { display: none; } }
@media (max-width: 560px) { .sx-nav__signin { display: none; } .sx-nav__actions { gap: var(--space-2); } .sx-nav__inner { gap: var(--space-2); }
  .sx-nav__brand { font-size: 15px; gap: 7px; } .sx-nav__brand img { width: 26px; height: 26px; } .sx-nav__cta { padding: 6px 11px; } .sx-nav__lang { padding: 3px 9px; } }

/* -------------------------------------------------------------- shared --- */
.sx-section { padding-block: var(--space-9); }
@media (max-width: 639px) { .sx-section { padding-block: var(--space-8); } }
.sx-head { max-width: 800px; margin: 0 auto var(--space-8); text-align: center; }
.sx-head h2 { margin: 0 0 var(--space-4); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
[lang="ar"] .sx-head h2 { line-height: 1.35; }
.sx-head p { margin: 0; font-size: var(--fs-lg); color: var(--chert-muted); }
.sx-head--dark h2 { color: var(--chert-dark-text); }
.sx-head--dark p { color: var(--chert-dark-muted); }
/* Eyebrow: ink text with an orange rule on light surfaces; orange text only on dark ones. */
.sx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-4);
  font-size: var(--fs-overline); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--chert-ink); }
[lang="ar"] .sx-eyebrow { font-size: 14px; }
.sx-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--chert-orange); }
.sx-hero .sx-eyebrow, .sx-head--dark .sx-eyebrow { color: var(--chert-orange); }
.sx-btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); color: inherit; text-decoration: none; font-weight: 600;
  transition: border-color var(--dur-base), color var(--dur-base); }
.sx-btn-ghost:hover { border-color: var(--chert-orange); color: var(--chert-orange); }
.sx-iconbtn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--chert-border-strong); background: var(--chert-surface); color: var(--chert-ink); transition: border-color var(--dur-base), background-color var(--dur-base); }
.sx-iconbtn:hover { border-color: var(--chert-ink); }
.sx-iconbtn--play { background: var(--chert-ink); border-color: var(--chert-ink); color: var(--chert-cream); }
.sx-iconbtn--play:hover { background: var(--chert-dark-surface); }
.sx-i-pause, .sx-iconbtn[aria-pressed="true"] .sx-i-play { display: none; }
.sx-iconbtn[aria-pressed="true"] .sx-i-pause { display: inline-flex; }

.js .sx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.js .sx-reveal.is-in { opacity: 1; transform: none; }

@keyframes sx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sx-spin { to { transform: rotate(360deg); } }
@keyframes sx-shimmer { to { background-position: 100% 0; } }
@keyframes sx-ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chert-orange) 55%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
@keyframes sx-dash { to { stroke-dashoffset: -20; } }
@keyframes sx-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
@keyframes sx-blink { 50% { opacity: .35; } }
@keyframes sx-float { 50% { transform: translateY(-7px); } }

/* ---------------------------------------------------------------- hero --- */
.sx-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-9); color: var(--chert-dark-text);
  background:
    radial-gradient(ellipse at 78% 18%, color-mix(in srgb, var(--chert-orange-deep) 24%, transparent), transparent 55%),
    radial-gradient(ellipse at 8% 92%, color-mix(in srgb, var(--chert-tan) 14%, transparent), transparent 50%),
    var(--chert-dark); }
[dir="rtl"] .sx-hero { background:
    radial-gradient(ellipse at 22% 18%, color-mix(in srgb, var(--chert-orange-deep) 24%, transparent), transparent 55%),
    radial-gradient(ellipse at 92% 92%, color-mix(in srgb, var(--chert-tan) 14%, transparent), transparent 50%),
    var(--chert-dark); }
.sx-hero__field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, black 62%); mask-image: linear-gradient(100deg, transparent 0%, black 62%); }
[dir="rtl"] .sx-hero__field { -webkit-mask-image: linear-gradient(260deg, transparent 0%, black 62%); mask-image: linear-gradient(260deg, transparent 0%, black 62%); }
@media (max-width: 999px) { .sx-hero__field, [dir="rtl"] .sx-hero__field { -webkit-mask-image: linear-gradient(180deg, transparent 10%, black 70%); mask-image: linear-gradient(180deg, transparent 10%, black 70%); } }
.sx-hero__grid { display: grid; gap: var(--space-8); align-items: center; width: 100%; }
@media (min-width: 1000px) { .sx-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.sx-hero__title { margin: 0 0 var(--space-5); font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
[lang="ar"] .sx-hero__title { line-height: 1.35; font-size: clamp(34px, 4.8vw, 58px); }
.sx-grad { display: block; color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 200% 100%;
  background-image: linear-gradient(100deg, var(--chert-orange) 0%, var(--chert-tan) 45%, var(--chert-orange) 90%);
  animation: sx-shimmer 8s ease-in-out infinite alternate; }
.sx-hero__lead { max-width: 60ch; margin: 0 0 var(--space-6); font-size: var(--fs-lg); line-height: 1.65; color: var(--chert-dark-muted); }
[lang="ar"] .sx-hero__lead { line-height: 1.85; }
.sx-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-block-end: var(--space-7); }
.sx-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--space-6); margin: 0; }
@media (max-width: 639px) { .sx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.sx-stats div { display: flex; flex-direction: column-reverse; padding-inline-start: var(--space-4); border-inline-start: 2px solid var(--chert-dark-border); }
.sx-stats dd { margin: 0; font-size: 34px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--chert-dark-text); }
.sx-stats dt { margin-block-start: 6px; font-size: var(--fs-xs); color: var(--chert-dark-muted); }
[lang="ar"] .sx-stats dt { font-size: 14px; }

/* isometric layer stack — decorative; all geometry scales with --u and mirrors with dir */
.sx-hero__art { --u: 1px; position: relative; min-height: calc(560 * var(--u)); }
@media (max-width: 1199px) { .sx-hero__art { --u: .9px; } }
@media (max-width: 560px)  { .sx-hero__art { --u: .62px; } }
.sx-stack { position: relative; width: calc(520 * var(--u)); height: calc(430 * var(--u)); margin-inline: auto; }
.sx-plate { position: absolute; inset-inline-start: calc(170 * var(--u)); inset-block-start: calc((70 + var(--i) * 92) * var(--u)); width: 0; height: 0;
  animation: sx-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.sx-plate__face { position: absolute; width: calc(230 * var(--u)); height: calc(230 * var(--u)); inset-inline-start: calc(-115 * var(--u)); inset-block-start: calc(-115 * var(--u));
  display: grid; place-items: center; border-radius: calc(24 * var(--u)); transform: rotateX(58deg) rotateZ(45deg);
  border: 1px solid color-mix(in srgb, var(--chert-orange) 42%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--chert-dark-surface) 92%, transparent), color-mix(in srgb, var(--chert-dark) 78%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chert-dark-text) 6%, transparent), 0 40px 60px -30px color-mix(in srgb, var(--chert-dark) 90%, transparent); }
.sx-plate:nth-child(4) .sx-plate__face { background: linear-gradient(135deg, color-mix(in srgb, var(--chert-orange) 34%, var(--chert-dark-surface)), color-mix(in srgb, var(--chert-orange-deep) 18%, var(--chert-dark))); border-color: var(--chert-orange); }
.sx-plate__icons { display: grid; grid-template-columns: repeat(2, auto); gap: calc(22 * var(--u)); color: var(--chert-orange); }
.sx-plate:nth-child(4) .sx-plate__icons { color: var(--chert-cream); }
.sx-plate__tag { position: absolute; inset-inline-start: calc(150 * var(--u)); inset-block-start: calc(-12 * var(--u)); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: calc(14 * var(--u)); font-weight: 600; color: var(--chert-dark-text); }
[lang="ar"] .sx-plate__tag { font-size: calc(15 * var(--u)); }
.sx-plate__tag::before { content: ""; width: calc(26 * var(--u)); height: 1px; background: color-mix(in srgb, var(--chert-dark-text) 35%, transparent); }
.sx-plate__tag b { font-family: var(--font-mono); font-size: calc(11 * var(--u)); color: var(--chert-orange); padding: 1px 6px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--chert-orange) 50%, transparent); }
.sx-stack__beam { position: absolute; inset-inline-start: calc(170 * var(--u) - 1px); inset-block-start: calc(70 * var(--u)); width: 2px; height: calc(276 * var(--u));
  background: linear-gradient(to top, transparent, var(--chert-orange), transparent); opacity: .55; }
.sx-stack__packet { position: absolute; inset-inline-start: calc(170 * var(--u) - 4px); inset-block-start: calc(346 * var(--u)); width: 8px; height: 8px; border-radius: 50%; opacity: 0;
  background: var(--chert-orange); box-shadow: 0 0 12px 2px var(--chert-orange); animation: sx-rise 4s linear infinite; animation-delay: var(--d); }
@keyframes sx-rise { 0% { transform: translateY(0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translateY(calc(-276 * var(--u))); opacity: 0; } }

/* hero: learner progress card (the Learning Hub's equivalent of Fleet's shipment card) */
.lh-prog { position: absolute; inset-inline-end: calc(-24 * var(--u)); inset-block-end: calc(-150 * var(--u)); width: calc(250 * var(--u)); min-width: 224px; padding: 14px 16px; border-radius: var(--radius-card);
  border: 1px solid var(--chert-dark-border); background: color-mix(in srgb, var(--chert-dark-surface) 84%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-modal); animation: sx-float 7s ease-in-out infinite; }
.lh-prog__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--chert-dark-muted); }
.lh-prog__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--chert-orange); animation: sx-blink 1.6s ease-in-out infinite; }
.lh-prog__tag { margin-inline-start: auto; font-size: 10.5px; padding: 1px 7px; border-radius: var(--radius-pill); border: 1px solid var(--chert-dark-border); }
.lh-prog__title { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--chert-dark-text); line-height: 1.3; }
.lh-prog__steps { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 7px; }
.lh-prog__steps li { position: relative; display: flex; align-items: center; gap: 8px; padding-inline-start: 22px; font-size: 13px; color: var(--chert-dark-muted); line-height: 1.35; }
.lh-prog__steps li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 50%; width: 12px; height: 12px; margin-block-start: -6px; border-radius: 50%; border: 1.5px solid var(--chert-dark-border); }
.lh-prog__steps li.is-done { color: var(--chert-dark-text); }
.lh-prog__steps li.is-done::before { background: var(--chert-success); border-color: var(--chert-success); }
.lh-prog__steps li.is-now { color: var(--chert-dark-text); font-weight: 700; }
.lh-prog__steps li.is-now::before { border-color: var(--chert-orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--chert-orange) 25%, transparent); animation: sx-blink 1.6s ease-in-out infinite; }
.lh-prog__steps small { margin-inline-start: auto; font-size: 10.5px; font-weight: 600; padding: 0 7px; border-radius: var(--radius-pill); border: 1px solid var(--chert-dark-border); color: var(--chert-dark-muted); }
.lh-prog__bar { height: 6px; border-radius: 6px; overflow: hidden; background: var(--chert-dark-border); }
.lh-prog__bar span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--chert-orange-deep), var(--chert-orange)); }
.lh-prog__row { display: flex; align-items: baseline; justify-content: space-between; margin-block-start: 8px; font-size: 12px; color: var(--chert-dark-muted); }
.lh-prog__row b { font-size: 18px; color: var(--chert-dark-text); }
@media (max-width: 760px) { .lh-prog { display: none; } }

.sx-hero__scroll { position: absolute; inset-inline: 0; inset-block-end: 26px; width: 24px; height: 38px; margin-inline: auto; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--chert-dark-text) 40%, transparent); }
.sx-hero__scroll span { position: absolute; inset-inline: 0; inset-block-start: 7px; width: 4px; height: 8px; margin-inline: auto; border-radius: 2px; background: var(--chert-orange); animation: sx-scroll 1.8s ease-in-out infinite; }
@keyframes sx-scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-height: 760px), (max-width: 999px) { .sx-hero__scroll { display: none; } }

/* --------------------------------------------------------------- doors --- */
.lh-doors { background: var(--chert-surface-alt); }
.sx-pillars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sx-pillar { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.sx-pillar::after { content: ""; position: absolute; inset-inline-end: -80px; inset-block-end: -110px; width: 240px; height: 240px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--chert-orange) 20%, transparent), transparent 70%); transition: opacity var(--dur-slow); }
.js .sx-pillar.sx-reveal { transition-property: opacity, transform, translate, box-shadow, border-color;
  transition-duration: .8s, .8s, var(--dur-slow), var(--dur-slow), var(--dur-slow);
  transition-delay: calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms), 0s, 0s, 0s; }
.sx-pillar:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.sx-pillar:hover::after { opacity: 1; }
.sx-pillar__icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--chert-ink); color: var(--chert-orange); }
.sx-pillar h3 { margin: 18px 0 8px; font-size: 20px; line-height: 1.3; }
.sx-pillar p { margin: 0; color: var(--chert-muted); }
.lh-door__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.lh-door__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--chert-ink); }
.lh-door__list svg { flex: none; margin-block-start: 3px; }

/* ----------------------------------------------------------- lifecycle --- */
.sx-life { background: radial-gradient(color-mix(in srgb, var(--chert-tan) 38%, transparent) 1px, transparent 1px) 0 0 / 22px 22px, var(--chert-cream); }
.sx-life__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .sx-life__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sx-wheel { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
/* The ring starts at the top and runs with the reading direction: clockwise in English,
   counter-clockwise in Arabic — the stops (placed with inset-inline-start) mirror the same way. */
.sx-wheel__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
[dir="rtl"] .sx-wheel__ring { transform: scaleX(-1) rotate(-90deg); }
.sx-wheel__track { fill: none; stroke: var(--chert-border-strong); stroke-width: .7; stroke-linecap: round; stroke-dasharray: .2 2.2; }
.sx-wheel__progress { fill: none; stroke: var(--chert-orange-deep); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .8s var(--ease); }
.sx-wheel__orbit { position: absolute; inset: 0; animation: sx-spin 26s linear infinite; pointer-events: none; }
[dir="rtl"] .sx-wheel__orbit { animation-direction: reverse; }
.sx-wheel__orbit span { position: absolute; inset-inline-start: 50%; inset-block-start: 8%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--chert-orange);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--chert-orange) 20%, transparent), 0 0 22px var(--chert-orange); }
.sx-wheel__center { position: absolute; inset: 23%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%;
  background: radial-gradient(circle, var(--chert-surface) 58%, color-mix(in srgb, var(--chert-surface) 0%, transparent) 72%); }
.sx-wheel__n { font-size: clamp(46px, 7vw, 78px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--chert-ink);
  text-decoration: underline; text-decoration-color: var(--chert-orange); text-decoration-thickness: 5px; text-underline-offset: 10px; }
.sx-wheel__t { margin-block-start: 14px; padding-inline: 8px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
.sx-wheel__loop { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 8px; font-size: 12px; color: var(--chert-muted); }
.sx-wheel__center.is-swap .sx-wheel__n, .sx-wheel__center.is-swap .sx-wheel__t { animation: sx-in .45s var(--ease); }
/* Stops are centred on their point with negative margins (direction-neutral), not translate(-50%). */
.sx-stop { --s: 56px; position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); z-index: 1; width: var(--s); height: var(--s);
  margin-inline-start: calc(var(--s) / -2); margin-block-start: calc(var(--s) / -2);
  display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--chert-border-strong); background: var(--chert-surface); color: var(--chert-ink); box-shadow: var(--shadow-card);
  transition: scale var(--dur-slow) var(--ease), background-color var(--dur-slow), color var(--dur-slow), border-color var(--dur-slow), box-shadow var(--dur-slow); }
.sx-stop:hover { border-color: var(--chert-ink); scale: 1.07; }
.sx-stop.is-done { border-color: var(--chert-orange-deep); background: var(--chert-orange-tint); }
.sx-stop.is-active { background: var(--chert-ink); border-color: var(--chert-ink); color: var(--chert-orange); scale: 1.16;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--chert-orange) 22%, transparent); }
.sx-stop__label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: -80px; width: max-content; margin-inline: auto; white-space: nowrap; pointer-events: none;
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--chert-ink); color: var(--chert-cream); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity var(--dur-base); }
.sx-stop:hover .sx-stop__label, .sx-stop:focus-visible .sx-stop__label { opacity: 1; }
@media (max-width: 520px) { .sx-stop { --s: 42px; } .sx-stop svg { width: 17px; height: 17px; } }

.sx-life__panels { position: relative; }
.sx-stage { padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--chert-ink) 45%, transparent); }
.sx-stage + .sx-stage { margin-block-start: var(--space-5); }
.js .sx-stage { display: none; }
.js .sx-stage.is-active { display: block; animation: sx-in .5s var(--ease); }
.sx-stage__count { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--chert-ink); font-variant-numeric: tabular-nums; }
.sx-stage__count span { color: var(--chert-muted); font-weight: 600; }
.sx-stage__title { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.sx-stage__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--chert-orange); color: var(--chert-ink); }
.sx-stage__tagline { margin: 0 0 12px; font-size: var(--fs-lg); font-weight: 600; }
.sx-stage__desc { margin: 0 0 22px; line-height: 1.7; color: var(--chert-muted); }
[lang="ar"] .sx-stage__desc { line-height: 1.85; }
.sx-stage__powered { margin: 0 0 10px; font-size: var(--fs-overline); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--chert-muted); }
[lang="ar"] .sx-stage__powered { font-size: 13px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-chip { display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--chert-border); background: var(--chert-surface-alt);
  color: var(--chert-ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; transition: border-color var(--dur-base), background-color var(--dur-base); }
.sx-chip:hover { border-color: var(--chert-orange-deep); background: var(--chert-orange-tint); }
.sx-life__controls { display: flex; align-items: center; gap: 10px; margin-block-start: var(--space-5); }
.no-js .sx-life__controls { display: none; }
.sx-life__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--chert-border); }
.sx-life__bar span { display: block; width: 0; height: 100%; background: var(--chert-ink); }

/* -------------------------------------------------------- architecture --- */
.sx-arch { color: var(--chert-dark-text);
  background:
    linear-gradient(color-mix(in srgb, var(--chert-dark-border) 60%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, color-mix(in srgb, var(--chert-dark-border) 60%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--chert-orange-deep) 14%, transparent), transparent 60%),
    var(--chert-dark); }
.sx-console__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.sx-journeys { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-jbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--chert-dark-border); background: var(--chert-dark-surface); color: var(--chert-dark-text); font: inherit; font-size: var(--fs-sm); font-weight: 600;
  transition: border-color var(--dur-base), background-color var(--dur-base), color var(--dur-base); }
.sx-jbtn svg { color: var(--chert-orange); }
.sx-jbtn:hover { border-color: var(--chert-orange); }
.sx-jbtn[aria-pressed="true"] { background: var(--chert-orange); border-color: var(--chert-orange); color: var(--chert-ink); }
.sx-jbtn[aria-pressed="true"] svg { color: currentColor; }
.sx-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--chert-dark-muted); cursor: pointer; }
.sx-toggle input { accent-color: var(--chert-orange); width: 16px; height: 16px; }

.sx-inspector { position: sticky; inset-block-start: calc(var(--header-h) + 8px); z-index: 5; min-height: 112px; margin-block-end: 18px; padding: 16px 20px; border-radius: 18px;
  border: 1px solid var(--chert-dark-border); background: color-mix(in srgb, var(--chert-dark-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--chert-dark) 90%, transparent); }
.sx-inspector__idle { display: flex; align-items: center; gap: 10px; min-height: 78px; color: var(--chert-dark-muted); }
.sx-inspector__idle svg { color: var(--chert-orange); }
.sx-inspector__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
.sx-inspector__body.is-swap > * { animation: sx-in .4s var(--ease); }
.sx-inspector__layer { grid-column: 1; margin: 0 0 2px; font-size: var(--fs-overline); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--chert-orange); }
.sx-inspector__name { grid-column: 1; margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.sx-inspector__name small { font-size: var(--fs-sm); font-weight: 500; color: var(--chert-dark-muted); }
.sx-inspector__text { grid-column: 1; max-width: 92ch; margin: 0 0 10px; line-height: 1.6; color: color-mix(in srgb, var(--chert-dark-text) 88%, transparent); }
.sx-inspector__meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sx-inspector__step { font-size: 12px; font-weight: 700; color: var(--chert-orange); padding: 3px 10px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--chert-orange) 45%, transparent); }
.sx-inspector__stages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--chert-dark-muted); }
.sx-stagechip { padding: 3px 10px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid var(--chert-dark-border); background: var(--chert-dark);
  color: var(--chert-dark-text); font: inherit; font-size: 12px; font-weight: 600; }
.sx-stagechip:hover { border-color: var(--chert-orange); color: var(--chert-orange); }
.sx-inspector__nav { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: flex; gap: 8px; }
.sx-arch .sx-iconbtn { border-color: var(--chert-dark-border); background: var(--chert-dark); color: var(--chert-dark-text); }
.sx-arch .sx-iconbtn:hover { border-color: var(--chert-orange); color: var(--chert-orange); }
@media (max-width: 639px) {
  .sx-inspector { inset-block-start: calc(var(--header-h) + 4px); min-height: 0; padding: 12px 14px; }
  .sx-inspector__idle { min-height: 0; }
  .sx-inspector__name { font-size: 18px; }
  .sx-inspector__text { font-size: 14px; margin-block-end: 6px; }
  .sx-inspector__nav { gap: 6px; }
  .sx-inspector__nav .sx-iconbtn { width: 34px; height: 34px; }
  .sx-inspector__stages > span:first-child { display: none; }
}

.sx-diagram { position: relative; isolation: isolate; display: grid; gap: 14px; }
@media (min-width: 1100px) {
  .sx-diagram { grid-template-columns: 200px minmax(0, 1fr) 200px;
    grid-template-areas: "sec devices ops" "sec connect ops" "sec platform ops" "sec apps ops"; }
  .sx-layer--devices { grid-area: devices; } .sx-layer--connect { grid-area: connect; }
  .sx-layer--platform { grid-area: platform; } .sx-layer--apps { grid-area: apps; }
  .sx-layer--security { grid-area: sec; } .sx-layer--ops { grid-area: ops; }
  .sx-layer--band { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 16px; }
  .sx-layer--rail { display: flex; flex-direction: column; }
  .sx-layer--rail .sx-layer__nodes { flex: 1; align-content: space-around; }
}
.sx-wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sx-layer { padding: 14px; border-radius: 18px; border: 1px solid var(--chert-dark-border); background: color-mix(in srgb, var(--chert-dark-surface) 58%, transparent); }
.sx-layer--rail { border-style: dashed; }
.sx-layer__head { display: flex; align-items: flex-start; gap: 12px; margin-block-end: 12px; }
@media (min-width: 1100px) { .sx-layer--band .sx-layer__head { margin-block-end: 0; } }
.sx-layer__n { flex: none; padding: 2px 7px; border-radius: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--chert-orange);
  border: 1px solid color-mix(in srgb, var(--chert-orange) 45%, transparent); }
.sx-layer__head h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.sx-layer__head p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--chert-dark-muted); }
[lang="ar"] .sx-layer__head p { font-size: 13px; line-height: 1.6; }
.sx-layer__nodes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sx-layer--rail .sx-layer__nodes { grid-template-columns: 1fr; }
@media (max-width: 1099px) and (min-width: 560px) { .sx-layer--rail .sx-layer__nodes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.sx-node { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--chert-dark-border); background: var(--chert-dark); color: var(--chert-dark-text); font: inherit; text-align: start;
  transition: border-color var(--dur-slow), background-color var(--dur-slow), opacity var(--dur-slow), translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow); }
.sx-node:hover { translate: 0 -2px; border-color: color-mix(in srgb, var(--chert-orange) 60%, transparent); }
.sx-node__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--chert-orange);
  background: color-mix(in srgb, var(--chert-orange) 13%, transparent); }
.sx-node__txt { display: flex; flex-direction: column; min-width: 0; }
.sx-node__txt b { font-size: 14px; line-height: 1.3; }
.sx-node__txt small { font-size: 12px; line-height: 1.4; color: var(--chert-dark-muted); }
.sx-node.is-related, .sx-node.is-visited { border-color: color-mix(in srgb, var(--chert-orange) 48%, transparent); }
.sx-node.is-selected { border-color: var(--chert-orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chert-orange) 26%, transparent), 0 0 32px -6px var(--chert-orange); }
.sx-node.is-lit { border-color: var(--chert-orange); background: color-mix(in srgb, var(--chert-orange) 20%, var(--chert-dark)); animation: sx-ping 1.4s ease-out infinite; }
.sx-node.is-lit .sx-node__icon { background: var(--chert-orange); color: var(--chert-ink); }
.sx-diagram.is-focus .sx-node:not(.is-selected):not(.is-related):not(.is-lit):not(.is-visited) { opacity: .36; }
.sx-node__badge { position: absolute; inset-block-start: -8px; inset-inline-end: 8px; padding: 0 7px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700;
  background: var(--chert-tan); color: var(--chert-ink); }

.sx-wire { fill: none; stroke: color-mix(in srgb, var(--chert-dark-muted) 38%, transparent); stroke-width: 1.3; stroke-dasharray: 4 6;
  animation: sx-dash 1.6s linear infinite; transition: opacity var(--dur-slow), stroke var(--dur-slow); }
.sx-wire.is-hot { stroke: var(--chert-orange); stroke-width: 2.2; stroke-dasharray: none; animation: none; filter: drop-shadow(0 0 4px var(--chert-orange)); }
.sx-diagram.is-focus .sx-wire:not(.is-hot) { opacity: .18; }
.sx-diagram.no-wires .sx-wire:not(.is-hot) { opacity: 0; }
.sx-packet { fill: var(--chert-orange); filter: drop-shadow(0 0 6px var(--chert-orange)); }
.sx-packet--ambient { fill: var(--chert-tan); filter: none; opacity: .85; }

/* ------------------------------------------------------ capabilities --- */
.lh-caps { background: var(--chert-surface); }
.lh-caps__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.lh-cap { position: relative; display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 18px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .lh-cap.sx-reveal { transition-delay: 0s, 0s, 0s, calc(var(--k, 0) * 50ms), calc(var(--k, 0) * 50ms); }
.lh-cap:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.lh-cap__top { display: flex; align-items: center; gap: 12px; margin-block-end: 12px; }
.lh-cap__top .sx-pillar__icon { width: 44px; height: 44px; border-radius: 12px; }
.lh-cap h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.lh-cap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lh-cap li { position: relative; padding-inline-start: 18px; font-size: 14.5px; color: var(--chert-muted); line-height: 1.45; }
[lang="ar"] .lh-cap li { font-size: 15px; line-height: 1.7; }
.lh-cap li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--chert-orange); transform: rotate(45deg); }
.lh-status { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; padding: 1px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  background: var(--chert-tan); color: var(--chert-ink); }
[lang="ar"] .lh-status { font-size: 12px; }

/* ------------------------------------------------------- interactive --- */
.lh-types { background: var(--chert-cream); }
.lh-types__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.lh-type { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .lh-type.sx-reveal { transition-delay: 0s, 0s, calc(var(--k, 0) * 45ms), calc(var(--k, 0) * 45ms); }
.lh-type:hover { translate: 0 -3px; border-color: var(--chert-orange); }
.lh-type__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--chert-orange-tint); color: var(--chert-ink); }
.lh-type h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.lh-type p { margin: 0; font-size: 14px; color: var(--chert-muted); line-height: 1.5; }
[lang="ar"] .lh-type p { font-size: 14.5px; line-height: 1.7; }
.lh-note { display: flex; align-items: flex-start; gap: 12px; max-width: 860px; margin: var(--space-7) auto 0; padding: 16px 18px; border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--chert-orange-deep); background: var(--chert-orange-tint); color: var(--chert-ink); font-size: 15px; }
.lh-note svg { flex: none; margin-block-start: 2px; }

/* ----------------------------------------------------------- engines --- */
.lh-engines { background: var(--chert-surface-alt); }
.lh-engines__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lh-engine { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; border: 1px solid var(--chert-border); background: var(--chert-surface);
  transition: translate var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .lh-engine.sx-reveal { transition-delay: 0s, 0s, 0s, calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms); }
.lh-engine:hover { translate: 0 -4px; box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--chert-orange) 50%, var(--chert-border)); }
.lh-engine__kicker { margin: 18px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--chert-muted); }
[lang="ar"] .lh-engine__kicker { font-size: 13px; }
.lh-engine h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.lh-engine > p:not(.lh-engine__kicker) { margin: 0 0 14px; color: var(--chert-muted); }
.lh-engine ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lh-engine li { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--chert-surface-alt); border: 1px solid var(--chert-border); font-size: 12.5px; font-weight: 600; }
[lang="ar"] .lh-engine li { font-size: 13px; }
.lh-engine__foot { margin-block-start: auto; display: inline-flex; align-items: center; gap: 8px; padding-block-start: 14px; border-block-start: 1px solid var(--chert-border);
  font-size: 13px; font-weight: 600; color: var(--chert-ink); }
.lh-engine__foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--chert-success); }
.lh-engine__foot.is-ready i { background: var(--chert-tan); }

/* ----------------------------------------------------------- gallery --- */
.lh-gallery { color: var(--chert-dark-text); background:
  radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--chert-orange) 14%, transparent), transparent 70%), var(--chert-dark); }
.lh-gallery__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
.lh-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--chert-dark-border); background: var(--chert-dark-surface); box-shadow: var(--shadow-modal);
  transition: translate var(--dur-slow) var(--ease), border-color var(--dur-slow), opacity .8s var(--ease), transform .8s var(--ease); }
.js .lh-shot.sx-reveal { transition-delay: 0s, 0s, calc(var(--k, 0) * 110ms), calc(var(--k, 0) * 110ms); }
.lh-shot:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--chert-orange) 55%, var(--chert-dark-border)); }
.lh-shot__frame { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-block-end: 1px solid var(--chert-dark-border); }
.lh-shot__frame > span:not(.lh-shot__url) { width: 9px; height: 9px; border-radius: 50%; background: var(--chert-dark-border); }
.lh-shot__url { margin-inline-start: 10px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--chert-dark); font-family: var(--font-mono); font-size: 11px; color: var(--chert-dark-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--chert-dark-muted); }
.lh-shot figcaption b { color: var(--chert-dark-text); font-weight: 700; }
.lh-gallery__note { margin: var(--space-6) 0 0; text-align: center; font-size: 13px; color: var(--chert-dark-muted); }

/* ------------------------------------------------- product-screen mocks ---
   Illustrations, not screenshots: HTML drawn from the platform's own interface strings.
   Everything inside is sized in em off a container-relative font size, so a mock scales
   like an image and mirrors with the page direction like the real app does. */
.lh-mock { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; background: var(--chert-cream); color: var(--chert-ink); }
.lh-mock__in { height: 100%; font-size: 1.62cqw; line-height: 1.4; display: grid; grid-template-columns: 11.5em minmax(0, 1fr); }
[lang="ar"] .lh-mock__in { line-height: 1.55; }
.lh-mock__side { display: flex; flex-direction: column; gap: .35em; padding: 1.1em .8em; background: var(--chert-tan); }
.lh-mock__brand { display: flex; align-items: center; gap: .45em; margin-block-end: .9em; font-weight: 800; font-size: 1.05em; }
.lh-mock__brand img { width: 1.6em; height: 1.6em; }
.lh-mock__nav { display: flex; align-items: center; gap: .55em; padding: .5em .7em; border-radius: 2em; font-weight: 600; font-size: .92em; }
.lh-mock__nav svg { width: 1.25em; height: 1.25em; flex: none; }
.lh-mock__nav.is-on { background: var(--chert-ink); color: var(--chert-cream); }
.lh-mock__sidecta { margin-block-start: auto; padding: .6em .7em; border-radius: .6em; background: var(--chert-orange); color: var(--chert-ink); font-weight: 700; font-size: .9em; text-align: center; }
.lh-mock__main { display: flex; flex-direction: column; min-width: 0; }
.lh-mock__top { display: flex; align-items: center; gap: .8em; padding: .7em 1.3em; border-block-end: 1px solid var(--chert-border); background: var(--chert-cream); font-size: .9em; }
.lh-mock__crumb { color: var(--chert-muted); font-weight: 600; }
.lh-mock__lang { margin-inline-start: auto; padding: .15em .7em; border-radius: 2em; border: 1px solid var(--chert-border-strong); font-weight: 600; }
.lh-mock__avatar { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--chert-ink); color: var(--chert-orange); font-weight: 800; font-size: .85em; }
.lh-mock__body { flex: 1; min-height: 0; padding: 1.2em 1.4em; overflow: hidden; }
.lh-mock__h { display: block; margin: 0 0 .15em; font-size: 1.55em; line-height: 1.2; font-weight: 800; }
.lh-mock__sub { margin: 0 0 1em; color: var(--chert-muted); font-size: .95em; }
.lh-mock__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.lh-mock__tile { padding: .8em .9em; border-radius: .8em; border: 1px solid var(--chert-border); background: var(--chert-surface); }
.lh-mock__tile i { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .6em; background: var(--chert-orange-tint); margin-block-end: .5em; }
.lh-mock__tile i svg { width: 1.2em; height: 1.2em; }
.lh-mock__tile b { display: block; font-size: 1.6em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lh-mock__tile span { display: block; font-weight: 700; font-size: .9em; }
.lh-mock__tile small { display: block; color: var(--chert-muted); font-size: .78em; line-height: 1.3; }
.lh-mock__tile.is-cta { background: var(--chert-ink); color: var(--chert-cream); border-color: var(--chert-ink); }
.lh-mock__tile.is-cta i { background: var(--chert-orange); color: var(--chert-ink); }
.lh-mock__tile.is-cta small { color: var(--chert-dark-muted); }
.lh-mock__steps { display: flex; gap: .3em; margin-block-end: 1.1em; }
.lh-mock__steps span { flex: 1; display: grid; justify-items: center; gap: .3em; font-size: .72em; font-weight: 600; color: var(--chert-muted); text-align: center; line-height: 1.2; }
.lh-mock__steps span::before { content: attr(data-n); display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; border: 1.5px solid var(--chert-border-strong); background: var(--chert-surface); color: var(--chert-ink); font-weight: 800; }
.lh-mock__steps span.is-done::before { background: var(--chert-orange-tint); border-color: var(--chert-orange-deep); }
.lh-mock__steps span.is-on { color: var(--chert-ink); }
.lh-mock__steps span.is-on::before { background: var(--chert-ink); border-color: var(--chert-ink); color: var(--chert-orange); }
.lh-mock__card { padding: 1em 1.1em; border-radius: .9em; border: 1px solid var(--chert-border); background: var(--chert-surface); }
.lh-mock__label { display: block; margin-block-end: .3em; font-weight: 700; font-size: .88em; }
.lh-mock__field { padding: .55em .8em; margin-block-end: .7em; border-radius: .5em; border: 1px solid var(--chert-border); background: var(--chert-surface); font-size: .9em; }
.lh-mock__field.is-focus { border-color: var(--chert-orange); box-shadow: 0 0 0 .2em color-mix(in srgb, var(--chert-orange) 25%, transparent); }
.lh-mock__row { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.lh-mock__btn { display: inline-flex; padding: .5em 1.1em; border-radius: .5em; font-weight: 700; font-size: .9em; border: 1.5px solid var(--chert-ink); }
.lh-mock__btn.is-primary { background: var(--chert-orange); border-color: var(--chert-orange); }
.lh-mock__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.lh-mock__choice { display: flex; flex-direction: column; gap: .35em; padding: .9em; border-radius: .8em; border: 1px solid var(--chert-border); background: var(--chert-surface); }
.lh-mock__choice i { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--chert-orange-tint); }
.lh-mock__choice i svg { width: 1.25em; height: 1.25em; }
.lh-mock__choice b { font-size: .95em; }
.lh-mock__choice small { color: var(--chert-muted); font-size: .76em; line-height: 1.3; }
.lh-mock__choice.is-on { border-color: var(--chert-ink); box-shadow: 0 0 0 .15em var(--chert-orange); }
.lh-mock__table { width: 100%; border-collapse: collapse; border-radius: .7em; overflow: hidden; font-size: .9em; }
.lh-mock__table th { padding: .55em .8em; background: var(--chert-ink); color: var(--chert-cream); text-align: start; font-weight: 700; }
.lh-mock__table td { padding: .55em .8em; border-block-end: 1px solid var(--chert-border); background: var(--chert-surface); }
.lh-mock__table tr:nth-child(even) td { background: var(--chert-surface-alt); }
.lh-mock__seg { display: inline-flex; border: 1px solid var(--chert-border-strong); border-radius: 2em; overflow: hidden; font-size: .85em; font-weight: 700; }
.lh-mock__seg span { padding: .2em .8em; }
.lh-mock__seg span.is-on { background: var(--chert-ink); color: var(--chert-cream); }
.lh-mock__toggle { display: flex; align-items: center; gap: .6em; margin-block-start: .7em; font-size: .9em; font-weight: 600; }
.lh-mock__toggle::before { content: ""; flex: none; width: 2.2em; height: 1.2em; border-radius: 1em;
  background: radial-gradient(circle at calc(100% - .6em) 50%, var(--chert-orange) .42em, var(--chert-ink) .46em); }
[dir="rtl"] .lh-mock__toggle::before { background: radial-gradient(circle at .6em 50%, var(--chert-orange) .42em, var(--chert-ink) .46em); }
.lh-mock__bar { height: .55em; border-radius: 1em; overflow: hidden; background: var(--chert-border); margin-block: .5em .2em; }
.lh-mock__bar span { display: block; height: 100%; width: var(--p); background: var(--chert-orange); border-radius: inherit; }
.lh-mock__grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: .8em; }
.lh-mock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; font-size: .88em; }
.lh-mock__list li { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .45em .7em; border-radius: .5em; background: var(--chert-surface-alt); }
.lh-mock__tag { padding: .05em .6em; border-radius: 2em; font-size: .82em; font-weight: 700; background: var(--chert-orange-tint); white-space: nowrap; }
.lh-mock__tag.is-ink { background: var(--chert-ink); color: var(--chert-cream); }
.lh-mock__badges { display: flex; gap: .5em; }
.lh-mock__badges i { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--chert-orange); }
.lh-mock__badges i svg { width: 1.3em; height: 1.3em; }
/* video player mock */
.lh-mock__video { position: relative; aspect-ratio: 16 / 8.2; border-radius: .8em; overflow: hidden; background:
  radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--chert-orange-deep) 35%, transparent), transparent 60%), var(--chert-dark); color: var(--chert-dark-text); }
.lh-mock__q { position: absolute; inset: 12% 16%; padding: 1em 1.2em; border-radius: .8em; background: var(--chert-surface); color: var(--chert-ink); box-shadow: var(--shadow-modal); }
.lh-mock__q b { display: block; margin-block-end: .6em; font-size: 1.05em; }
.lh-mock__opt { display: flex; align-items: center; gap: .6em; padding: .4em .7em; margin-block-end: .35em; border-radius: .5em; border: 1px solid var(--chert-border); font-size: .9em; }
.lh-mock__opt::before { content: ""; width: .9em; height: .9em; border-radius: 50%; border: 1.5px solid var(--chert-border-strong); }
.lh-mock__opt.is-on { border-color: var(--chert-success); background: var(--chert-success-tint); }
.lh-mock__opt.is-on::before { background: var(--chert-success); border-color: var(--chert-success); }
.lh-mock__track { position: absolute; inset-inline: 1em; inset-block-end: .9em; display: flex; align-items: center; gap: .7em; font-size: .8em; }
.lh-mock__track svg { width: 1.3em; height: 1.3em; color: var(--chert-orange); }
.lh-mock__track div { position: relative; flex: 1; height: .35em; border-radius: 1em; background: color-mix(in srgb, var(--chert-dark-text) 25%, transparent); }
.lh-mock__track div::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 46%; border-radius: inherit; background: var(--chert-orange); }
.lh-mock__track div i { position: absolute; inset-block-start: 50%; width: .8em; height: .8em; margin-block-start: -.4em; margin-inline-start: -.4em; border-radius: 50%; background: var(--chert-cream); border: 2px solid var(--chert-orange); }
/* certificate mock */
.lh-mock--cert { display: grid; place-items: center; background: var(--chert-surface-alt); }
.lh-cert { width: 82%; aspect-ratio: 1.414; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em; text-align: center;
  font-size: 2.4cqw; border: .5em solid var(--chert-orange); outline: 1px solid var(--chert-border-strong); outline-offset: -1.2em; background: var(--chert-surface); box-shadow: var(--shadow-modal); }
.lh-cert img { width: 3em; height: 3em; margin-block-end: .3em; }
.lh-cert small { font-size: .85em; color: var(--chert-muted); }
.lh-cert strong { font-size: 2.1em; line-height: 1.2; }
.lh-cert em { font-style: normal; font-size: 1.2em; font-weight: 700; }
.lh-cert__foot { display: flex; gap: 3em; margin-block-start: .9em; font-size: .8em; color: var(--chert-muted); }
.lh-cert__foot b { display: block; color: var(--chert-ink); font-family: var(--font-mono); font-size: 1.05em; }
/* ask-the-assistant mock */
.lh-mock__answer { padding: .9em 1em; border-radius: .8em; background: var(--chert-surface); border: 1px solid var(--chert-border); font-size: .9em; }
.lh-mock__answer p { margin: 0 0 .6em; }
.lh-mock__src { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font-size: .82em; color: var(--chert-muted); }
.lh-mock__src span { padding: .1em .6em; border-radius: 2em; background: var(--chert-orange-tint); color: var(--chert-ink); font-weight: 600; }
.lh-mock__warn { margin-block-start: .6em; padding: .5em .8em; border-inline-start: .3em solid var(--chert-info); background: var(--chert-info-tint); border-radius: .4em; font-size: .8em; }
@media (max-width: 480px) { .lh-mock__in { grid-template-columns: 0 minmax(0, 1fr); } .lh-mock__side { display: none; } .lh-mock__in { font-size: 2.2cqw; } }

/* ----------------------------------------------------------------- why --- */
.sx-why { background: var(--chert-cream); }

/* --------------------------------------------------------------- final --- */
.sx-final { position: relative; isolation: isolate; overflow: hidden; padding-block: 128px; text-align: center; color: var(--chert-dark-text);
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--chert-orange-deep) 22%, transparent), transparent 60%), var(--chert-dark); }
.sx-final__rings span { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; z-index: -1; width: 300px; height: 300px; margin: -150px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--chert-orange) 45%, transparent); animation: sx-ripple 7.5s linear infinite; }
.sx-final__rings span:nth-child(2) { animation-delay: -2.5s; }
.sx-final__rings span:nth-child(3) { animation-delay: -5s; }
.sx-final h2 { margin: 0 0 var(--space-4); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
[lang="ar"] .sx-final h2 { line-height: 1.4; }
.sx-final p { max-width: 58ch; margin: 0 auto var(--space-6); font-size: var(--fs-lg); color: var(--chert-dark-muted); }
.sx-final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* -------------------------------------------------------------- footer --- */
.sx-foot { padding-block: 44px 28px; border-block-start: 1px solid var(--chert-dark-border); background: var(--chert-ink); color: var(--chert-dark-muted); }
.sx-foot__grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); }
@media (max-width: 760px) { .sx-foot__grid { grid-template-columns: 1fr 1fr; } .sx-foot__about { grid-column: 1 / -1; } }
.sx-foot .sx-nav__brand { color: var(--chert-dark-text); font-size: 17px; }
.sx-foot__about p { max-width: 42ch; margin: 12px 0 0; font-size: var(--fs-sm); }
.sx-foot h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--chert-dark-text); }
.sx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sx-foot a { color: inherit; text-decoration: none; font-size: var(--fs-sm); }
.sx-foot a:hover { color: var(--chert-orange); }
.sx-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-block-start: var(--space-7); padding-block-start: 18px;
  border-block-start: 1px solid var(--chert-dark-border); font-size: 13px; }
