/* Docendra — marketing site. Palette and type follow the app (core/ui Tokens.kt, Theme.kt). */
:root {
  --brand: #8A1538;
  --brand-deep: #6E1230;
  --brand-soft: #F8EBEF;
  --mint: #246653;
  --mint-soft: #E4EEE4;
  --sky: #5B8DA8;
  --sky-deep: #315C74;
  --sky-soft: #E2EDF3;
  --sand: #F7E9DC;
  --amber: #B7791F;
  --amber-soft: #FFF3DB;
  --ink: #253632;
  --paper: #F7F9F6;
  --slate: #68746E;
  --line: #E0E5DD;

  --head: "Outfit", system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --wrap: 1200px;
  --shadow: 0 24px 60px -24px rgba(37, 54, 50, .35);
}
html[lang="ar"] { --head: "Noto Sans Arabic", "Outfit", sans-serif; --body: "Noto Sans Arabic", "Lexend", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Type */
.eyebrow { font: 600 .82rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; margin-block-end: 16px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow--brand { color: var(--brand); }
.eyebrow--sky { color: var(--sky-deep); }
.eyebrow--mint { color: var(--mint); }
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.display { font: 800 clamp(2.7rem, 5.6vw, 4.5rem)/1.02 var(--head); letter-spacing: -.025em; }
html[lang="ar"] .display { line-height: 1.3; letter-spacing: 0; }
.hl { color: var(--brand); }
.h2 { font: 700 clamp(2rem, 3.6vw, 2.9rem)/1.1 var(--head); letter-spacing: -.02em; max-width: 20ch; margin-block-end: 24px; }
html[lang="ar"] .h2 { line-height: 1.4; letter-spacing: 0; }
.h2--center { margin-inline: auto; text-align: center; }
.h2--light { color: #fff; }
.lead { font-size: 1.13rem; color: var(--slate); max-width: 56ch; }
.lead--light { color: rgba(255, 255, 255, .82); }
.lead--center { margin-inline: auto; text-align: center; }
.center { text-align: center; margin-block-end: 56px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 600 1rem/1 var(--head); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(138, 21, 56, .6); }
.btn--brand:hover { background: var(--brand-deep); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: .92rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.5) blur(14px); border-block-end: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; color: var(--brand); filter: drop-shadow(0 4px 10px rgba(138, 21, 56, .25)); }
.brand__word { font: 700 1.5rem/1 "Outfit", sans-serif; letter-spacing: -.035em; }
.brand--light { color: #fff; }
.brand--light .brand__mark { color: #fff; --mark-star: var(--brand); --mark-dot: var(--mint); filter: none; }
.nav__links { display: flex; gap: 30px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font: 500 .95rem/1 var(--head); color: var(--slate); }
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 600 .9rem/1 var(--head); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; color: var(--ink); }
html[lang="ar"] .lang { font-family: "Outfit", sans-serif; }
.lang:hover { border-color: var(--ink); }

/* Hero */
.hero { padding-block: 72px 88px; background: linear-gradient(180deg, var(--paper), #fff); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 .85rem/1 var(--head); margin-block-end: 24px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero__copy .lead { margin-block: 24px 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__fine { margin-block-start: 22px; font-size: .9rem; color: var(--slate); }

.hero__media { position: relative; padding: 28px 0 48px; }
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.photo--hero { aspect-ratio: 4 / 3.4; }

.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 18px 44px -16px rgba(37, 54, 50, .4); padding: 14px 16px; font-size: .85rem; }
.float--chat { inset-inline-start: -40px; bottom: 0; width: 290px; display: grid; gap: 8px; }
.float__head { display: flex; align-items: center; gap: 8px; font: 600 .85rem/1 var(--head); }
.float__head svg { width: 20px; height: 20px; color: var(--brand); }
.float__head em { margin-inline-start: auto; font: 500 .7rem/1 var(--body); font-style: normal; color: var(--mint); background: var(--mint-soft); padding: 5px 8px; border-radius: 999px; }
.bubble { line-height: 1.45; padding: 9px 12px; border-radius: 14px; max-width: 92%; }
.bubble--me { background: var(--brand); color: #fff; justify-self: end; border-end-end-radius: 4px; }
.bubble--ai { background: var(--paper); border: 1px solid var(--line); border-end-start-radius: 4px; }
.float--hand { inset-inline-end: -16px; top: 0; display: flex; gap: 12px; align-items: center; }
.float__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--amber-soft); font-size: 1.15rem; }
.float--hand strong, .float--mastery strong { display: block; font: 600 .92rem/1.2 var(--head); }
.float--hand small, .float--mastery small { color: var(--slate); font-size: .75rem; }
.float--mastery { inset-inline-end: 24px; bottom: 16px; width: 200px; display: grid; gap: 6px; }
.float--mastery strong { font-size: 1.6rem; color: var(--mint); }
.bar { height: 8px; border-radius: 99px; background: var(--mint-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }

/* Stats */
.stats { background: var(--ink); color: #fff; padding-block: 44px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats strong { display: block; font: 700 2.3rem/1.1 var(--head); color: #fff; margin-block-end: 6px; }
.stats span { font-size: .92rem; color: rgba(255, 255, 255, .7); }

/* Sections */
.section { padding-block: 112px; }
.section--soft { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand); color: #fff; }

.row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.row--flip .row__media { order: 2; }
.row__media { position: relative; }
.float--tag { display: inline-flex; align-items: center; gap: 10px; font: 600 .88rem/1 var(--head); padding: 13px 16px; }
.float--tl { inset-inline-start: -20px; top: 28px; }
.float--br { inset-inline-end: -20px; bottom: 28px; }
.float--tr { inset-inline-end: -20px; top: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--mint { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.dot--brand { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.float--dash { width: 220px; display: grid; gap: 12px; }
.float--dash small { color: var(--slate); font: 600 .75rem/1.2 var(--head); }
.dash__bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.dash__bars i { flex: 1; background: var(--sky); border-radius: 6px 6px 2px 2px; }
.dash__bars i:nth-child(4) { background: var(--mint); }

.arabic { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: 560px; }
.mosaic img:not(.mosaic__tall) { min-height: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.mosaic__tall { grid-row: 1 / 3; object-position: 75% center; }
.mosaic__card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; align-content: center; font: 400 .9rem/1.5 "Noto Sans Arabic", sans-serif; }
.mosaic__card .float__head { font-family: "Noto Sans Arabic", sans-serif; }
.photo--hero { object-position: center 30%; }

.world { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.world img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 40px -22px rgba(37, 54, 50, .5); }
.world img:nth-child(even) { transform: translateY(28px); }

.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 36px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .1em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 700 .78rem/1 var(--head); color: var(--brand); background: var(--brand-soft); }
.ticks--sky li::before { color: var(--sky-deep); background: var(--sky-soft); }
.ticks--mint li::before { color: var(--mint); background: var(--mint-soft); }

.socratic { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.quote { margin: 0 0 24px; font: 800 clamp(2.3rem, 4.4vw, 3.6rem)/1.05 var(--head); letter-spacing: -.02em; }
html[lang="ar"] .quote { line-height: 1.45; letter-spacing: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 18px; }
.steps span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand); font: 700 1.1rem/1 var(--head); }
.steps h3 { font: 600 1.05rem/1.3 var(--head); }
.steps p { color: rgba(255, 255, 255, .75); font-size: .93rem; }

.mission__statement { font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.25 var(--head); letter-spacing: -.015em; text-align: center; max-width: 30ch; margin: 0 auto 64px; }
html[lang="ar"] .mission__statement { line-height: 1.6; letter-spacing: 0; }
.center-text { text-align: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 12px; align-content: start; }
.pillar h3 { font: 700 1.35rem/1.25 var(--head); }
.pillar p { color: var(--slate); }
.pillar__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 1.3rem; }
.pillar--brand { background: var(--brand-soft); } .pillar--brand .pillar__icon { background: var(--brand); }
.pillar--mint { background: var(--mint-soft); } .pillar--mint .pillar__icon { background: var(--mint); }
.pillar--sky { background: var(--sky-soft); } .pillar--sky .pillar__icon { background: var(--sky-deep); }

.gallery { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(37, 54, 50, .5); }
.gallery figcaption { grid-column: 1 / -1; text-align: center; font-size: .88rem; color: var(--slate); margin-block-start: 8px; }

.compare { max-width: 960px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(37, 54, 50, .35); }
.compare__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.compare__row > span { padding: 20px 24px; border-block-end: 1px solid var(--line); }
.compare__row:last-child > span { border-block-end: 0; }
.compare__row > span:nth-child(1) { font: 600 1rem/1.4 var(--head); }
.compare__row > span:nth-child(2) { color: var(--slate); }
.compare__row > span:nth-child(3) { background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.compare__row--head > span { font: 700 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); padding-block: 18px; }
.compare__row--head > span:nth-child(3) { color: #fff; background: var(--brand); }
html[lang="ar"] .compare__row--head > span { letter-spacing: 0; font-size: .95rem; }

.path { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: grid; gap: 10px; align-content: start; }
.path li:nth-child(1) { border-block-start: 5px solid var(--sky); }
.path li:nth-child(2) { border-block-start: 5px solid var(--mint); }
.path li:nth-child(3) { border-block-start: 5px solid var(--brand); }
.path__step { font: 700 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
html[lang="ar"] .path__step { letter-spacing: 0; font-size: .95rem; }
.path h3 { font: 700 1.5rem/1.2 var(--head); }
.path p { color: var(--slate); }

.contact { position: relative; padding-block: 120px; color: #fff; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(110, 18, 48, .96) 0%, rgba(138, 21, 56, .9) 45%, rgba(37, 54, 50, .75) 100%); }
html[dir="rtl"] .contact::before { background: linear-gradient(260deg, rgba(110, 18, 48, .96) 0%, rgba(138, 21, 56, .9) 45%, rgba(37, 54, 50, .75) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.form { display: grid; gap: 14px; background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font: 600 .88rem/1.2 var(--head); }
.form input, .form textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form input:focus, .form textarea:focus { border-color: var(--brand); outline: none; }
.form .btn { width: 100%; margin-block-start: 6px; }
.form__note { font-size: .88rem; color: var(--brand); min-height: 1.3em; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding-block: 40px; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__copy { margin-inline-start: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .float--chat { inset-inline-start: -8px; }
  .float--hand, .float--tl, .float--br, .float--tr { inset-inline: auto 12px; }
  .float--tl { inset-inline: 12px auto; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .hero { padding-block: 48px 64px; }
  .hero__grid, .row, .socratic, .contact__grid, .arabic { grid-template-columns: 1fr; gap: 48px; }
  .mosaic { height: 440px; }
  .row--flip .row__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .path, .pillars { grid-template-columns: 1fr; }
  .world { grid-template-columns: repeat(3, 1fr); }
  .world img:nth-child(even) { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 80px; }
}
@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
  .hero__media { padding-block: 16px 150px; }
  .float--chat { width: calc(100% - 24px); inset-inline: 12px; bottom: 0; }
  .float--hand { top: 0; }
  .float--mastery { display: none; }
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span:nth-child(1) { grid-column: 1 / -1; padding-block-end: 4px; border-block-end: 0; }
  .compare__row--head > span:nth-child(1) { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__copy { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Inner pages ---------- */
.nav__links a[aria-current="page"] { color: var(--brand); }
.nav__login { font: 600 .92rem/1 var(--head); text-decoration: none; color: var(--ink); padding: 10px 6px; }
.nav__login:hover { color: var(--brand); }
.page-hero { padding-block: 72px 56px; background: linear-gradient(180deg, var(--paper), #fff); }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.page-hero .lead { margin-block-start: 20px; }
.crumbs { font: 500 .88rem/1 var(--head); color: var(--slate); margin-block-end: 18px; }
.crumbs a { color: var(--brand); text-decoration: none; }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { margin-block-start: 12px; font-size: .9rem; color: var(--slate); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shots--3 { grid-template-columns: repeat(3, 1fr); }

.phones { display: flex; justify-content: center; gap: 22px; align-items: flex-end; }
.phone { width: 220px; flex: none; margin: 0; }
.phone img { width: 100%; border-radius: 28px; border: 8px solid #1B2826; box-shadow: var(--shadow); background: #fff; }
.phone:nth-child(2) { margin-block-end: 28px; }
.phone figcaption { text-align: center; margin-block-start: 12px; font-size: .88rem; color: var(--slate); }

.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; padding-block: 64px; border-block-end: 1px solid var(--line); }
.feature:last-child { border-block-end: 0; }
.feature--flip .feature__media { order: -1; }
.feature__media--phone { display: flex; justify-content: center; }
.feature__media--phone .phone { width: 260px; }
.feature__media--phone .phone:nth-child(2) { transform: none; }
.feature h2 { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--head); letter-spacing: -.015em; margin-block-end: 14px; }
html[lang="ar"] .feature h2 { line-height: 1.45; letter-spacing: 0; }
.feature p { color: var(--slate); margin-block-end: 14px; }
.tag { display: inline-block; font: 600 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-block-end: 14px; }
html[lang="ar"] .tag { letter-spacing: 0; font-size: .88rem; }
.tag--mint { background: var(--mint-soft); color: var(--mint); }
.tag--sky { background: var(--sky-soft); color: var(--sky-deep); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }

.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.explore a { display: grid; gap: 10px; align-content: start; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.explore a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.explore strong { font: 700 1.2rem/1.25 var(--head); }
.explore span { color: var(--slate); font-size: .95rem; }
.explore em { font: 600 .9rem/1 var(--head); font-style: normal; color: var(--brand); margin-block-start: 6px; }

.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: grid; gap: 10px; align-content: start; }
.device__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.device__icon svg { width: 28px; height: 28px; }
.device h3 { font: 700 1.3rem/1.2 var(--head); }
.device p { color: var(--slate); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.chip { font: 500 .8rem/1 var(--head); padding: 7px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow li { background: var(--paper); border-radius: 18px; padding: 22px 20px; counter-increment: flow; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 1rem/1 var(--head); margin-block-end: 12px; }
.flow strong { display: block; font: 600 1.05rem/1.3 var(--head); margin-block-end: 6px; }
.flow span { font-size: .92rem; color: var(--slate); }

/* Downloads + login */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.dl__card h3 { font: 700 1.35rem/1.2 var(--head); }
.dl__meta { font-size: .85rem; color: var(--slate); }
.dl__meta code, .dl__steps code { font: 500 .78rem/1.4 ui-monospace, Menlo, monospace; word-break: break-all; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.dl__steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--slate); }
.notice { background: var(--amber-soft); border: 1px solid #F1DDB0; color: #6B4A12; border-radius: 16px; padding: 16px 18px; font-size: .95rem; }
.auth { min-height: calc(100vh - 72px - 120px); display: grid; place-items: center; padding-block: 64px; background: linear-gradient(180deg, var(--paper), #fff); }
.auth__card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 32px; display: grid; gap: 16px; }
.auth__card h1 { font: 700 1.8rem/1.2 var(--head); }
.auth__card p { color: var(--slate); }
.auth__card .form { box-shadow: none; padding: 0; }
.auth__alt { font-size: .9rem; color: var(--slate); text-align: center; }
.auth__alt a { color: var(--brand); }

@media (max-width: 980px) {
  .page-hero__grid, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip .feature__media { order: 0; }
  .shots, .shots--3, .dl { grid-template-columns: 1fr; }
  .explore, .flow { grid-template-columns: repeat(2, 1fr); }
  .devices { grid-template-columns: 1fr; }
  .phones { flex-wrap: wrap; }
  .phone:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
  .explore, .flow { grid-template-columns: 1fr; }
  .phone { width: 46%; }
}

/* Hero product stage (real screenshots over a classroom photo) */
.stage { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.9); transform: scale(1.04); z-index: -2; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(37, 54, 50, .55), rgba(110, 18, 48, .45)); }
.stage__board { position: absolute; top: 9%; inset-inline: 6%; padding: 10px; background: #111A18; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); }
.stage__board img { display: block; width: 100%; border-radius: 8px; }
.stage__board::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 26%; height: 8px; transform: translateX(-50%); background: #0B1210; border-radius: 0 0 6px 6px; }
.stage__tablet { position: absolute; bottom: -6%; inset-inline-end: 6%; width: 27%; padding: 6px; background: #111A18; border-radius: 18px; transform: rotate(-4deg); box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .65); }
html[dir="rtl"] .stage__tablet { transform: rotate(4deg); }
.stage__tablet img { display: block; width: 100%; border-radius: 13px; }
.stage__hand { top: auto; bottom: 10%; inset-inline: 5% auto; }
.stage__badge { position: absolute; top: 3%; inset-inline-start: 6%; font: 600 .72rem/1 var(--head); color: #fff; background: rgba(0, 0, 0, .35); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Device strip */
.strip { background: var(--paper); border-block-end: 1px solid var(--line); padding-block: 18px; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; justify-content: center; font-size: .92rem; color: var(--slate); }
.strip__inner strong { font: 700 1rem/1 var(--head); color: var(--ink); }
.strip__inner a { font: 600 .92rem/1 var(--head); color: var(--brand); text-decoration: none; }

.flow--5 { grid-template-columns: repeat(5, 1fr); }

.split-draw { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: start; }
.draw__board { margin-block-start: 28px; }
.draw__models img { max-height: 760px; width: 100%; object-fit: cover; object-position: top; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: #fff; }
.faq summary { font: 600 1.08rem/1.4 var(--head); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-block-start: 12px; color: var(--slate); }

@media (max-width: 980px) {
  .flow--5 { grid-template-columns: repeat(2, 1fr); }
  .split-draw, .faq { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .flow--5 { grid-template-columns: 1fr; }
  .stage__hand { display: none; }
}

/* Ministry KPIs */
.kpis { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kpis li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.kpis__tag { justify-self: start; font: 700 .78rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 7px 12px; }
html[lang="ar"] .kpis__tag { letter-spacing: 0; font-size: .9rem; }
.kpis li:nth-child(3n+2) .kpis__tag { color: var(--mint); background: var(--mint-soft); }
.kpis li:nth-child(3n) .kpis__tag { color: var(--sky-deep); background: var(--sky-soft); }
.kpis h3 { font: 700 1.25rem/1.25 var(--head); }
.kpis p { color: var(--slate); }
.kpis__note { margin-top: 20px; color: var(--slate); font-weight: 500; }
.path__title { margin-top: 72px; }
@media (max-width: 960px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } .path__title { margin-top: 48px; } }

/* How it works: a screenshot per step */
.flow li { display: flex; flex-direction: column; }
.flow__shot { margin: 0 0 16px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(37, 54, 50, .5); order: -1; }
.flow__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.flow__shot--tab { background: var(--sand); display: grid; place-items: center; padding-top: 10px; }
.flow__shot--tab img { width: 58%; height: auto; aspect-ratio: auto; border-radius: 10px 10px 0 0; align-self: end; box-shadow: 0 0 0 4px #253632; }
.flow__shot--wide img { object-position: left top; }

/* Devices: Samsung hardware */
.sam-hero { position: relative; padding-block-end: 40px; padding-inline-start: 0; }
.sam-hero__photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -36px rgba(37, 54, 50, .55); display: block; }
.sam-hero__tab { position: absolute; inset-inline-start: -28px; inset-block-end: 0; width: 38%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 20px 40px -20px rgba(37, 54, 50, .55); }
.sam-hero__badge { position: absolute; inset-inline-end: 16px; inset-block-start: 16px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 10px 16px; font: 600 .85rem/1 var(--head); color: var(--slate); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .4); }
.sam-hero__badge img { height: 14px; width: auto; }
.sam-band { background: #1428A0; color: #fff; }
.sam-band__inner { display: flex; align-items: center; gap: 36px; padding-block: 28px; }
.sam-band img { height: 26px; width: auto; flex: none; }
.sam-band p { font: 500 1.05rem/1.5 var(--body); opacity: .92; }
.sam-models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block-start: 40px; }
.sam-model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sam-model figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.sam-model figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sam-model__body { padding: 26px 28px 30px; display: grid; gap: 8px; }
.sam-model__kind { font: 700 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #1428A0; }
html[lang="ar"] .sam-model__kind { letter-spacing: 0; font-size: .9rem; }
.sam-model h3 { font: 700 1.5rem/1.2 var(--head); }
.sam-model__code { font: 500 .85rem/1.4 ui-monospace, Menlo, monospace; color: var(--slate); margin-block-end: 8px; direction: ltr; text-align: start; }
.sam-gallery { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-block-start: 24px; }
.sam-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.sam-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sam-credit { margin-block-start: 14px; font-size: .8rem; color: var(--slate); }
@media (max-width: 960px) { .sam-models { grid-template-columns: 1fr; } .sam-band__inner { flex-direction: column; align-items: flex-start; gap: 14px; } .sam-hero__tab { inset-inline-start: 12px; } }
@media (max-width: 640px) { .sam-gallery { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
/* Reveal on scroll (classes added by main.js only when motion is allowed). */
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .rv--wipe { transform: translateY(18px) scale(.98); clip-path: inset(0 0 22% 0 round 24px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
.motion .rv--wipe.in { clip-path: inset(0 0 0 0 round 0); }

/* Screenshots: glow, glass sheen and a pointer tilt. */
.shot { position: relative; isolation: isolate; }
.shot::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 30% 30%, rgba(138, 21, 56, .28), transparent 70%), radial-gradient(60% 60% at 75% 70%, rgba(36, 102, 83, .28), transparent 70%); filter: blur(30px); opacity: .9; }
.shot figcaption { position: relative; }
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; will-change: transform; }
.motion .rv.tilt.in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .8s ease, transform .35s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
.shot img, .phone img, .flow__shot { position: relative; }
.shot::after, .phone::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 45%); opacity: 0; transition: opacity .3s; }
.phone { position: relative; }
.phone::after { border-radius: 28px; }
.shot:hover::after, .phone:hover::after { opacity: 1; }
.shot.rv--wipe.in img { animation: sheen-in 1.4s ease .3s both; }
@keyframes sheen-in { from { filter: brightness(1.15) saturate(.8); } to { filter: none; } }

/* Tablets float gently. */
.motion .phone img { animation: bob 6s ease-in-out infinite; }
.motion .phone:nth-child(2) img { animation-delay: -2s; }
.motion .phone:nth-child(3) img { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero stage: slow zoom on the room, the board and tablet breathe, the raised hand pops in. */
.motion .stage__bg { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.motion .stage__board { animation: drift 9s ease-in-out infinite; }
.motion .stage__tablet { animation: tablet-bob 7s ease-in-out infinite; }
.motion .stage__hand { animation: pop 7s cubic-bezier(.3, 1.4, .5, 1) infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tablet-bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-12px); } }
@keyframes pop { 0%, 8% { transform: scale(.6) translateY(10px); opacity: 0; } 14%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: scale(.9); opacity: 0; } }
.stage__board::before { content: ""; position: absolute; inset: 10px; border-radius: 8px; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%) no-repeat; background-size: 250% 100%; }
.motion .stage__board::before { animation: glare 7s ease-in-out infinite; }
@keyframes glare { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }

/* Photos zoom slowly on hover; flow and model shots lift. */
.photo { transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.photo:hover { transform: scale(1.015); box-shadow: 0 40px 80px -40px rgba(37, 54, 50, .6); }
.flow li { transition: transform .3s, box-shadow .3s; }
.flow li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(37, 54, 50, .5); }
.flow__shot img, .sam-model figure img, .sam-gallery img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.flow li:hover .flow__shot img, .sam-model:hover figure img, .sam-gallery figure:hover img { transform: scale(1.06); }
.flow li:hover .flow__shot--tab img { transform: translateY(-6px) scale(1.04); }
.kpis li, .device, .path li, .sam-model { transition: transform .3s, box-shadow .3s, border-color .3s; }
.kpis li:hover, .device:hover, .path li:hover, .sam-model:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

/* Samsung hero: the inset tablet floats, the badge glints. */
.motion .sam-hero__tab { animation: bob 7s ease-in-out infinite; }
.motion .sam-hero__photo { animation: kenburns-soft 20s ease-in-out infinite alternate; }
@keyframes kenburns-soft { from { object-position: 50% 40%; } to { object-position: 40% 30%; } }

/* Headline accent: a slow light sweep across the brand-coloured words. */
.motion .display .hl { background: linear-gradient(100deg, var(--brand) 40%, #D24A78 50%, var(--brand) 60%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ink 6s ease-in-out infinite; }
@keyframes ink { 0%, 40% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; }
  .photo:hover, .flow li:hover, .kpis li:hover, .device:hover, .path li:hover, .sam-model:hover { transform: none; }
}

/* Draw with AI: board + dialog composite, then a moving gallery of real drawings */
.draw2 { display: grid; grid-template-columns: .9fr 1.25fr; gap: 56px; align-items: center; }
.draw2__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.draw2__steps li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 12px 16px; }
.draw2__steps span { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 .95rem/1 var(--head); }
.draw2__steps em { font-style: normal; color: var(--brand); font-weight: 600; }
.draw2__stage { position: relative; padding: 0 0 70px; }
.draw2__board { background: #111A18; padding: 12px; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(37, 54, 50, .7); position: relative; }
.draw2__board::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 22%; height: 10px; transform: translateX(-50%); background: #0B1210; border-radius: 0 0 8px 8px; }
.draw2__board img { display: block; width: 100%; border-radius: 9px; }
.draw2__dialog { position: absolute; inset-inline-start: -36px; bottom: 0; width: 46%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(37, 54, 50, .65); border: 1px solid var(--line); }
.draw2__dialog img { display: block; width: 100%; }
.draw2__chip { position: absolute; inset-inline-end: 12px; top: -16px; background: var(--mint); color: #fff; font: 600 .8rem/1 var(--head); padding: 9px 14px; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(36, 102, 83, .8); }
.dgal { margin-top: 56px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dgal__track { display: flex; gap: 18px; width: max-content; }
.dgal__dup { display: flex; gap: 18px; }
.dgal__item { margin: 0; width: 210px; flex: none; background: #fff; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 16px 34px -24px rgba(37, 54, 50, .5); transition: transform .3s; }
.dgal__item:hover { transform: translateY(-6px) rotate(-1deg); }
.dgal__item img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.dgal__item figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: .88rem; }
.dgal__q { font-weight: 600; color: var(--ink); }
.dgal__ar { font-family: "Noto Sans Arabic", sans-serif; color: var(--brand); }
.dgal__note { margin-top: 14px; text-align: center; font-size: .88rem; color: var(--slate); }
.dgal__dup { display: none; }
.motion .dgal__dup { display: flex; }
.motion .dgal__track { animation: marquee 48s linear infinite; }
.motion .dgal:hover .dgal__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
html[dir="rtl"] .dgal__track { flex-direction: row; direction: ltr; }
.motion .draw2__dialog { animation: dialog-pop 9s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes dialog-pop { 0%, 4% { transform: translateY(24px) scale(.92); opacity: 0; } 12%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(10px) scale(.96); opacity: 0; } }
.motion .draw2__board img { animation: board-reveal 9s ease infinite; }
@keyframes board-reveal { 0%, 62% { filter: saturate(.2) brightness(1.06); } 74%, 100% { filter: none; } }
.motion .draw2__chip { animation: bob 5s ease-in-out infinite; }
@media (max-width: 960px) { .draw2 { grid-template-columns: 1fr; gap: 36px; } .draw2__dialog { inset-inline-start: 0; width: 52%; } }
@media (max-width: 640px) { .dgal__item { width: 180px; } .draw2__dialog { width: 62%; } }

/* Screenshot grids: every image in the same 16:9 frame. */
.shots .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
.shots { align-items: start; }

/* Sovereign: a classroom map with numbered callouts */
.sovmap { margin: 40px auto 36px; max-width: 1080px; }
.sovmap__scene { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; isolation: isolate; box-shadow: var(--shadow); }
.sovmap__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(.85); transform: scale(1.06); z-index: -2; }
.sovmap__scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, rgba(37, 54, 50, .62), rgba(110, 18, 48, .5)); }
.sovmap__board { position: absolute; left: 6%; top: 9%; width: 58%; padding: 9px; background: #111A18; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.sovmap__board img { display: block; width: 100%; border-radius: 7px; }
.sovmap__tab { position: absolute; right: 9%; top: 16%; width: 17%; padding: 6px; background: #111A18; border-radius: 18px; transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75); }
.sovmap__tab img { display: block; width: 100%; border-radius: 13px; }
.sovmap__wifi, .sovmap__lock { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.sovmap__wifi { right: 3.5%; top: 4%; } .sovmap__lock { left: 67.5%; bottom: 6%; color: var(--mint); }
.sovmap__wifi svg, .sovmap__lock svg { width: 30px; height: 30px; }
.sovmap__pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; direction: ltr; }
.sovmap__pins li { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; transform: translate(-15px, -50%); }
.sovmap__pins li.r { flex-direction: row-reverse; transform: translate(calc(-100% + 15px), -50%); }
.pin { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--head); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
.pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.tip { background: #fff; color: var(--ink); font: 600 .9rem/1.25 var(--head); padding: 10px 14px; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); white-space: nowrap; }
html[lang="ar"] .tip { font-family: "Noto Sans Arabic", sans-serif; direction: rtl; }
.motion .pin::after { animation: ping 2.4s ease-out infinite; animation-delay: var(--d); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.motion .sovmap.in .sovmap__pins li { animation: pin-in .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--d) + .3s); }
@keyframes pin-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.motion .sovmap__tab { animation: tab-sway 8s ease-in-out infinite; }
@keyframes tab-sway { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
.sovmap__legend { display: none; }
@media (max-width: 860px) {
  .tip { display: none; }
  .sovmap__pins li, .sovmap__pins li.r { flex-direction: row; transform: translate(-50%, -50%); }
  .sovmap__wifi, .sovmap__lock { width: 40px; height: 40px; border-radius: 12px; } .sovmap__wifi svg, .sovmap__lock svg { width: 22px; height: 22px; }
  .sovmap__legend { display: block; margin-top: 18px; }
  .sovmap__legend ol { margin: 0; padding-inline-start: 0; list-style: none; counter-reset: sm; display: grid; gap: 10px; }
  .sovmap__legend li { counter-increment: sm; display: flex; gap: 12px; align-items: center; font: 500 .95rem/1.35 var(--body); }
  .sovmap__legend li::before { content: counter(sm); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 .8rem/1 var(--head); }
}

/* Stats row: centred */
.stats__grid { text-align: center; justify-items: center; max-width: 1080px; margin-inline: auto; }
.stats__grid > div { max-width: 230px; }

.dgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dgrid .dgal__item { width: auto; }
@media (max-width: 960px) { .dgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .dgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Home review pass ---------- */
/* Hero: a larger stage with a soft glow behind it */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(50% 50% at 60% 40%, rgba(138, 21, 56, .13), transparent 70%), radial-gradient(40% 40% at 30% 70%, rgba(36, 102, 83, .12), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; grid-template-columns: .92fr 1.18fr; gap: 56px; }
.stage { aspect-ratio: 5 / 4.1; box-shadow: 0 50px 100px -50px rgba(37, 54, 50, .7); }
.stage__chip { position: absolute; top: 3%; inset-inline-end: 5%; background: var(--mint); color: #fff; font: 600 .76rem/1 var(--head); padding: 8px 12px; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.motion .stage__chip { animation: bob 5s ease-in-out infinite; }

/* Explore cards: thumbnail on top */
.explore a { padding: 16px 16px 24px; overflow: hidden; }
.explore .tag { justify-self: start; }
.explore .flow__shot { margin: 0 0 6px; aspect-ratio: 16 / 10; }
.explore a .flow__shot img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.explore a:hover .flow__shot img { transform: scale(1.06); }
.explore a:hover .flow__shot--tab img { transform: translateY(-6px) scale(1.04); }

/* Product rows */
.phones--row { gap: 4%; padding: 28px 0 0; }
.phones--row .phone { width: 30%; }
.phones--row .phone img { border-width: 6px; border-radius: 22px; }
.frame { background: #111A18; padding: 12px; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(37, 54, 50, .7); position: relative; }
.frame::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 22%; height: 10px; transform: translateX(-50%); background: #0B1210; border-radius: 0 0 8px 8px; }
.frame img { display: block; width: 100%; border-radius: 9px; }
.browser { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -44px rgba(37, 54, 50, .65); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #EEF1EC; border-block-end: 1px solid var(--line); direction: ltr; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8DDD5; }
.browser__bar span { margin-inline: auto; font: 500 .76rem/1 var(--head); color: var(--slate); background: #fff; border-radius: 999px; padding: 6px 16px; }
.browser img { display: block; width: 100%; }
.section--join { padding-block-end: 0; }
.row__media .float--dash { display: none; }

/* Sovereign: dark, larger, with a classroom boundary */
.section--ink { background: radial-gradient(80% 60% at 50% 0%, #24403A, #131C1A 70%); color: #fff; }
.section--ink .h2 { color: #fff; }
.section--ink .eyebrow--brand { color: #F2B8C6; }
.section--ink .lead { color: rgba(255, 255, 255, .72); margin-block-start: 18px; }
.section--ink .sovmap { max-width: 1180px; margin-block: 8px 44px; }
.section--ink .sovmap__scene { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 70px 120px -50px #000; }
.sovmap__scene::after { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(127, 209, 174, .75); border-radius: 18px; pointer-events: none; }
.motion .sovmap__scene::after { animation: zone 3.5s ease-in-out infinite; }
@keyframes zone { 0%, 100% { border-color: rgba(127, 209, 174, .35); } 50% { border-color: rgba(127, 209, 174, .95); } }
.sovmap__zone { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 50%); background: #7FD1AE; color: #10201B; font: 700 .76rem/1 var(--head); padding: 8px 14px; border-radius: 999px; white-space: nowrap; z-index: 2; }
html[lang="ar"] .sovmap__zone { font-family: "Noto Sans Arabic", sans-serif; }
.sovmap__pins li { transition: scale .35s cubic-bezier(.3, 1.4, .5, 1); }
.tip, .pin { transition: background .35s, color .35s, box-shadow .35s; }
.sovmap__pins li.is-active, .sovmap__pins li:hover { z-index: 3; }
.sovmap__pins li.is-active .tip, .sovmap__pins li:hover .tip { background: var(--brand); color: #fff; }
.sovmap__pins li.is-active .pin, .sovmap__pins li:hover .pin { background: #fff; color: var(--brand); box-shadow: 0 0 0 4px var(--brand); }
.section--ink .sovmap__legend li { color: #fff; }
.section--ink .compare { border-color: transparent; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -50px #000; }
.compare--marks .compare__row:not(.compare__row--head) > span:nth-child(2)::before { content: "✕"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 10px; border-radius: 50%; background: #F1F2F0; color: #9AA39E; font: 700 .7rem/1 var(--head); vertical-align: 2px; }
.compare--marks .compare__row:not(.compare__row--head) > span:nth-child(3)::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 10px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .7rem/1 var(--head); vertical-align: 2px; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .sovmap__zone { font-size: .66rem; white-space: normal; text-align: center; width: 76%; } }

.phones--row ~ .float--tl { top: auto; bottom: -14px; }

/* ---- Professional pass: header, footer, legal pages, calmer cards ---- */
::selection { background: var(--brand); color: #fff; }
[id] { scroll-margin-top: 88px; }
body { text-rendering: optimizeLegibility; }
.h2, .mission__statement { text-wrap: balance; }
.lead, .pillar p, .kpis p, .explore span { text-wrap: pretty; }

/* Header */
.nav { transition: box-shadow .25s, background .25s; }
.nav--scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -18px rgba(37, 54, 50, .45); }
.nav__links a { position: relative; padding-block: 8px; transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mobile, .nav__menu { display: none; }
.nav__menu { width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; place-content: center; gap: 4px; }
.nav__menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav--open .nav__menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__menu span:nth-child(2) { opacity: 0; }
.nav--open .nav__menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav__menu { display: grid; }
  .nav__login { display: none; }
  .nav__links { display: none; position: absolute; inset-inline: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: #fff; border-block-end: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(37, 54, 50, .5); }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 15px 4px; font-size: 1.05rem; color: var(--ink); border-block-end: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__mobile { display: block; }
  .nav__links .btn { display: flex; margin-block-start: 16px; border: 0; color: #fff; padding: 15px 26px; }
}

/* Stats: thin dividers between the figures */
@media (min-width: 981px) {
  .stats__grid { gap: 0; }
  .stats__grid > div { max-width: none; padding-inline: 28px; }
  .stats__grid > div + div { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
}
.stats strong { letter-spacing: -.02em; }

/* Mission pillars: white cards, one accent each */
.pillar { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(37, 54, 50, .04); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--accent); }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pillar--brand { --accent: var(--brand); --accent-soft: var(--brand-soft); background: #fff; }
.pillar--mint { --accent: var(--mint); --accent-soft: var(--mint-soft); background: #fff; }
.pillar--sky { --accent: var(--sky-deep); --accent-soft: var(--sky-soft); background: #fff; }
.pillar .pillar__icon { background: var(--accent-soft); color: var(--accent); }
.pillar__icon svg { width: 24px; height: 24px; }
.float__icon { color: var(--amber); }
.float__icon svg { width: 22px; height: 22px; }

/* Explore cards: links line up along the bottom edge */
.explore a { display: flex; flex-direction: column; }
.explore em { margin-block-start: auto; padding-block-start: 10px; }
.explore .tag { align-self: flex-start; margin-block-end: 4px; }
.kpis li { transition: transform .25s, box-shadow .25s; }
.kpis li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* FAQ */
.faq__more { color: var(--slate); }
.faq__more a { color: var(--brand); font: 600 1rem/1.4 var(--head); text-decoration: none; white-space: nowrap; }
.faq__more a:hover { text-decoration: underline; }
.faq details { transition: border-color .2s, box-shadow .2s; }
.faq details:hover, .faq details[open] { border-color: #C9D1C7; box-shadow: 0 14px 30px -22px rgba(37, 54, 50, .45); }
.faq summary { align-items: center; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft) linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat; box-shadow: inset 0 0 0 0 transparent; transition: transform .25s; }
.faq details:not([open]) summary::after { background-image: linear-gradient(var(--brand), var(--brand)), linear-gradient(var(--brand), var(--brand)); background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; }
.faq details[open] summary::after { content: ""; transform: rotate(180deg); }

/* Contact */
.contact { background: radial-gradient(70% 90% at 12% 10%, #A61C46 0%, transparent 60%), linear-gradient(135deg, #5E0F29 0%, var(--brand) 55%, #3A1A2A 100%); padding-block: 112px; }
.contact::before { background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 26px 26px; mask-image: linear-gradient(to right, #000, transparent 70%); -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); }
html[dir="rtl"] .contact::before { background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 26px 26px; mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__list li { position: relative; padding-inline-start: 34px; color: rgba(255, 255, 255, .92); }
.contact__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.contact__direct { margin-block-start: 28px; color: rgba(255, 255, 255, .75); font-size: .98rem; }
.contact__direct a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.form input, .form textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
.form input:focus, .form textarea:focus { background: #fff; box-shadow: 0 0 0 4px rgba(138, 21, 56, .12); }
.form__note:empty { display: none; }
.form__privacy { font-size: .82rem; color: var(--slate); text-align: center; }
.form__privacy a { color: var(--ink); text-underline-offset: 3px; }

/* Footer */
.footer { padding-block: 72px 0; font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-block-end: 56px; }
.footer__brand { display: grid; gap: 14px; justify-items: start; max-width: 36ch; }
.footer__brand p { line-height: 1.6; }
.footer__tag { font-size: .88rem; color: rgba(255, 255, 255, .45); }
.footer__mail { color: #fff; font: 600 1rem/1 var(--head); text-decoration: none; border-block-end: 1px solid rgba(255, 255, 255, .35); padding-block-end: 4px; }
.footer__mail:hover { border-color: #fff; }
.footer__col { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer__col h2 { font: 600 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin: 6px 0 6px; }
html[lang="ar"] .footer__col h2 { letter-spacing: 0; font-size: .9rem; }
.footer__col a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 24px; border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .footer__brand { grid-column: 1 / -1; } }

/* Legal and not-found pages */
.legal__wrap { max-width: 760px; }
.legal .h2 { max-width: none; margin-block-end: 8px; }
.legal__date { color: var(--slate); font-size: .9rem; margin-block-end: 28px; }
.legal h2 { font: 700 1.35rem/1.3 var(--head); margin: 44px 0 12px; padding-block-start: 28px; border-block-start: 1px solid var(--line); }
.legal p, .legal li { color: #46524D; }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal a { color: var(--brand); text-underline-offset: 3px; }
.notfound { text-align: center; min-height: 62vh; display: grid; align-items: center; }
.notfound__code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--head); letter-spacing: -.04em; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); margin-block-end: 8px; }
.notfound .hero__cta { justify-content: center; margin-block-start: 32px; }
@media (max-width: 640px) { .stage__badge { display: none; } }

/* Device strip in Samsung blue */
.strip { background: #1428A0; border: 0; padding-block: 20px; }
.strip__inner { color: rgba(255, 255, 255, .78); }
.strip__inner strong { color: #fff; }
.strip__inner a { color: #fff; border-block-end: 1px solid rgba(255, 255, 255, .5); padding-block-end: 3px; }
.strip__inner a:hover { border-color: #fff; }
.strip__logo { height: 18px; width: auto; margin-inline-end: 6px; }
.dl__out { color: var(--slate); font-size: .92rem; text-underline-offset: 3px; }
.auth__card .notice { margin-block-end: 4px; }

/* Sovereignty scene: one illustrated classroom (teacher in Arabic at the display, a boy in English on his tablet) */
.sovmap__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sovmap__scene::before { display: none; }
.sovmap__scene::after { border-color: rgba(36, 102, 83, .7); }
.motion .sovmap.in .sovmap__art { animation: none; }
.strip__inner { gap: 10px 22px; } .strip__inner span, .strip__inner a { font-size: .88rem; }
html[lang="ar"] .tip { white-space: normal; max-width: 235px; }

/* Ministry KPIs: the heading and the introduction share the full width */
.kpi-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-block-end: 40px; }
.kpi-head .h2 { max-width: none; margin-block-end: 0; }
.kpi-head .lead { max-width: none; }
.kpis__note { max-width: none; }
@media (max-width: 900px) { .kpi-head { grid-template-columns: 1fr; } }

/* Contact form honeypot: hidden from people, bots fill it in. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
