/*!
 * Midar (مدار) - School Management Platform
 * Copyright (c) 2026 Midar. All rights reserved.
 * Proprietary and confidential. Unauthorized copying or distribution is prohibited.
 */
/* MIDAR SCHOOL 2.0 — public design system (home, public pages, dialogs). Mobile first; loaded after site.css.
   Motion uses transform and opacity only and stops with prefers-reduced-motion. No fixed widths: every grid column is
   minmax(0, …) and long Latin strings (emails, links) wrap inside their box. */

.st.m2, .m2-page, .m2-drawer, dialog.st-dlg, dialog.rg-dlg {
  --navy-950: #0F1A38; --navy-900: #16244A; --navy-800: #1B2B57; --navy-700: #23376B;
  --royal: #0B7A75; --royal-600: #08615D; --royal-50: #E3F1F0;
  --sky: #9FCFCB; --teal: #2E9C95; --teal-ink: #0B7A75; --teal-50: #E6F7F5;
  --ink: #0F1A33; --text: #33415C; --muted: #5F6B85; --line: #E3E8F2; --line-2: #D3DAE8;
  --bg: #FFFFFF; --soft: #F5F7FC; --card: #FFFFFF;
  --acc: var(--royal); --acc2: #F0A53A;
  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --sh-1: 0 1px 2px rgba(15, 26, 51, .05), 0 4px 14px rgba(15, 26, 51, .05);
  --sh-2: 0 2px 4px rgba(15, 26, 51, .04), 0 18px 40px -12px rgba(15, 26, 51, .16);
  --sh-3: 0 30px 70px -24px rgba(15, 26, 56, .45);
  --gut: 16px;
  --font-head: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.st.m2 { background: var(--bg); color: var(--text); overflow-x: clip; min-height: 100vh; }
.st.m2 *, .m2-page * { box-sizing: border-box; }
.st.m2 img { max-width: 100%; height: auto; }
.m2-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)); }
.m2-wrap.narrow { max-width: 860px; }
.m2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m2-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--royal); color: #fff; font-weight: 700; text-decoration: none; }
.m2-skip:focus { top: calc(10px + env(safe-area-inset-top)); }
.st.m2 :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.st.m2 main:focus { outline: none; }
.st.m2 > main { max-width: none; width: 100%; margin: 0; padding: 0; display: block; }

/* ── Buttons ─────────────────────────────────────────────────────────────────────────── */
.m2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px;
  border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.m2-btn:active { transform: translateY(1px) scale(.99); }
.m2-btn.lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.m2-btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.m2-btn.primary { color: #fff; background: linear-gradient(135deg, var(--royal) 0%, #0E8F88 55%, var(--sky) 140%); box-shadow: 0 10px 24px -10px rgba(11, 122, 117, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.m2-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(11, 122, 117, .75), inset 0 1px 0 rgba(255,255,255,.2); }
.m2-btn.glass { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.m2-btn.glass:hover { background: rgba(255,255,255,.14); }
.m2-btn.ghost { color: var(--ink); background: #fff; border-color: var(--line-2); }
.m2-btn.ghost:hover { border-color: var(--royal); color: var(--royal); }
.m2-btn.ghost-dark { color: var(--ink); background: transparent; border-color: var(--line-2); }
.m2-btn.ghost-dark:hover { border-color: var(--royal); color: var(--royal); }
.m2-btn.soft { color: var(--royal); background: var(--royal-50); }
.m2-btn.soft.done { color: var(--teal-ink); background: var(--teal-50); }
.m2-btn.light { color: var(--navy-900); background: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.m2-btn.light:hover { transform: translateY(-1px); }
.m2-btn.wa { color: #fff; background: #1FA855; }
.m2-btn.wa:hover { background: #188C46; }
.m2-btn .icon, .m2-btn svg { flex: none; }

/* ── Header and mobile menu ──────────────────────────────────────────────────────────── */
.m2-nav { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .m2-nav { background: #fff; } }
.m2-nav.scrolled, .m2-nav.open { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 26, 51, .35); }
.m2-nav-in { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin-inline: auto; min-height: 64px;
  padding-inline: max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)); }
.m2-brand { display: inline-flex; align-items: center; flex: none; }
.st.m2 .m2-brand img, .m2-page .m2-brand img { height: 32px; width: auto; max-width: none; display: block; }
.m2-links { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.m2-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px;
  font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; transition: color .15s, background-color .15s; }
.m2-link:hover { color: var(--royal); background: var(--royal-50); }
.m2-acts { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.m2-acts > .m2-btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.m2-acts > .m2-btn.ghost-dark { display: none; }
.m2-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
/* Side drawer: the full height of the screen, sliding in from the menu button's side. */
.m2-drawer { position: fixed; inset: 0; z-index: 90; font-family: var(--font-head); }
.m2-drawer[hidden] { display: none; }
.m2-dr-scrim { position: absolute; inset: 0; background: rgba(15, 26, 56, .5); opacity: 0; transition: opacity .28s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.m2-dr-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(88vw, 400px); display: flex; flex-direction: column; background: #fff;
  box-shadow: -24px 0 60px -20px rgba(15, 26, 56, .45); transform: translateX(-100%); transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
[dir="ltr"] .m2-dr-panel { transform: translateX(100%); }
.m2-drawer.m2-open .m2-dr-scrim { opacity: 1; }
.m2-drawer.m2-open .m2-dr-panel { transform: none; }
html.m2-dr-on, html.m2-dr-on body { overflow: hidden; }
.m2-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.m2-dr-brand img { height: 30px; width: auto; display: block; }
.m2-dr-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.m2-dr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.m2-dr-body > * { flex: none; }
.m2-dr-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.m2-dr-acts .m2-btn { width: 100%; min-height: 48px; padding: 0 10px; font-size: 14px; }
.m2-dr-title { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .2px; }
.m2-dr-nav { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.m2-dr-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: start; cursor: pointer; }
.m2-dr-link:last-child { border-bottom: 0; }
.m2-dr-link svg { color: var(--muted); flex: none; }
.m2-dr-link:hover, .m2-dr-link:focus-visible { background: var(--soft); color: var(--teal-ink); }
.m2-dr-feats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.m2-dr-feat { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: start; cursor: pointer; }
.m2-dr-feat:hover { border-color: var(--teal-ink); }
.m2-dr-feat .m2-ic.sm { flex: none; }
.m2-dr-sign .m2-btn { width: 100%; min-height: 48px; }
.m2-dr-contact { display: grid; gap: 6px; }
.m2-dr-contact a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.m2-dr-contact svg { color: var(--teal-ink); flex: none; }
.m2-dr-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; }
.m2-dr-legal a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .m2-dr-panel, .m2-dr-scrim { transition: none; } }
@media (min-width: 380px) { .m2-acts > .m2-btn.ghost-dark { display: inline-flex; } }
@media (min-width: 1000px) {
  .m2-links { display: flex; }
  .m2-burger { display: none !important; }
  .m2-acts { margin-inline-start: 0; }
}

/* ── Typography and section heads ────────────────────────────────────────────────────── */
.st.m2 h1, .st.m2 h2, .st.m2 h3 { color: var(--ink); margin: 0; letter-spacing: -.2px; overflow-wrap: anywhere; }
.st.m2 h1, .st.m2 h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.4px; }
.st.m2 p { overflow-wrap: anywhere; }
.m2-sec { padding: 64px 0; }
.m2-sec.soft { background: var(--soft); }
.m2-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.m2-head h2 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.35; }
.m2-head p { margin: 12px auto 0; font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.9; color: var(--muted); }
.m2-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--royal); background: var(--royal-50); border: 1px solid rgba(11, 122, 117, .12); }
.m2-eyebrow.light { color: #BFE9FF; background: rgba(159, 207, 203, .12); border-color: rgba(159, 207, 203, .25); }
.m2-ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--royal);
  background: linear-gradient(135deg, var(--royal-50), #E7F7FB); border: 1px solid rgba(11, 122, 117, .1); }
.m2-ic.sm { width: 34px; height: 34px; border-radius: 11px; }

/* ── Hero ────────────────────────────────────────────────────────────────────────────── */
.m2-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 48px 0 64px;
  background: radial-gradient(1000px 520px at 85% -10%, rgba(11, 122, 117, .55), transparent 62%),
    radial-gradient(700px 480px at 0% 110%, rgba(11, 122, 117, .28), transparent 60%),
    linear-gradient(170deg, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.m2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 85%); mask-image: linear-gradient(180deg, #000 10%, transparent 85%); }
.m2-glow { position: absolute; z-index: -1; inset-inline-end: -12%; top: 18%; width: 520px; height: 520px; max-width: 90vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(159, 207, 203, .35), rgba(11, 122, 117, .12) 45%, transparent 70%); }
.m2-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.m2-hero-txt { text-align: center; }
.m2-hero .m2-eyebrow { color: #CFE8FF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.st.m2 .m2-hero h1 { color: #fff; font-size: clamp(30px, 7.6vw, 58px); line-height: 1.3; }
.m2-lead { margin: 18px auto 0; max-width: 620px; font-size: clamp(16px, 2vw, 19px); line-height: 1.95; color: #C9D6EE; }
.m2-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.m2-ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 24px 0 0; padding: 0; font-size: 14px; color: #C9D6EE; }
.m2-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.m2-ticks svg { color: #6EE7D8; flex: none; }
.m2-hero-art { position: relative; margin: 0 auto; width: 100%; max-width: 640px; padding-bottom: 8%; }
.m2-device { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sh-3), 0 0 0 1px rgba(255,255,255,.12); }
.m2-device-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEF1F7; direction: ltr; }
.m2-device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #F87171; } .m2-device-bar i:nth-child(2) { background: #F0A53A; } .m2-device-bar i:nth-child(3) { background: #34D399; }
.m2-device-bar span { margin-inline: auto; padding: 2px 14px; border-radius: 8px; background: #fff; color: #7A859C; font-size: 11px; }
.m2-device img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.m2-phone { position: absolute; inset-inline-start: -2%; bottom: 0; width: 27%; border-radius: 22px; padding: 5px; background: #16244A; box-shadow: var(--sh-3); }
.m2-phone img { display: block; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; }
.m2-chip { position: absolute; display: none; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.95); box-shadow: var(--sh-2); white-space: nowrap; }
.m2-chip svg { color: var(--royal); }
.m2-chip.c1 { inset-inline-end: 2%; top: 10%; } .m2-chip.c2 { inset-inline-end: 10%; bottom: 2%; }
@media (min-width: 1100px) { .m2-chip.c1 { inset-inline-end: -3%; } }
@media (min-width: 640px) { .m2-chip { display: inline-flex; } }
@media (min-width: 1000px) {
  .m2-hero { padding: 72px 0 96px; }
  .m2-hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; }
  .m2-hero-txt { text-align: start; }
  .m2-lead { margin-inline: 0; }
  .m2-hero .m2-cta, .m2-hero .m2-ticks { justify-content: flex-start; }
}

/* ── Entrance and scroll reveal (only with JS, IntersectionObserver and motion allowed) ─ */
@keyframes m2-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes m2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.m2-in { animation: m2-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.m2-in.d2 { animation-delay: .06s; } .m2-in.d3 { animation-delay: .14s; } .m2-in.d4 { animation-delay: .22s; } .m2-in.d5 { animation-delay: .3s; }
.m2-phone, .m2-chip.c1 { animation: m2-float 7s ease-in-out infinite; }
.m2-chip.c2 { animation: m2-float 8s ease-in-out .8s infinite; }
.m2-anim .m2-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.m2-anim .m2-reveal.m2-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .m2 *, .m2 *::before, .m2 *::after, .m2-page * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .m2-anim .m2-reveal { opacity: 1; transform: none; }
}

/* ── Announcements carousel ──────────────────────────────────────────────────────────── */
.m2-sec-slides { padding: 40px 0 8px; }
.m2-slides { position: relative; }
.m2-sl-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--sh-2);
  aspect-ratio: 4 / 5; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
@supports not (aspect-ratio: 1) { .m2-sl-frame { height: 0; padding-bottom: 125%; } }
.m2-sl-track { position: absolute; inset: 0; }
.m2-slide { position: absolute; inset: 0; display: grid; opacity: 0; transform: scale(1.015); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.m2-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.m2-slide.composed { grid-template-rows: auto minmax(0, 1fr); color: #fff; overflow: hidden; }
.m2-slide.composed.tone-royal { background: radial-gradient(600px 300px at 90% 0%, rgba(159, 207, 203,.35), transparent 60%), linear-gradient(150deg, #0B7A75, #1B2B57 75%); }
.m2-slide.composed.tone-teal { background: radial-gradient(600px 300px at 90% 0%, rgba(159, 207, 203,.35), transparent 60%), linear-gradient(150deg, #0F8C86, #0B2E4A 78%); }
.m2-slide.composed.tone-navy { background: radial-gradient(600px 320px at 85% 0%, rgba(11, 122, 117,.5), transparent 60%), linear-gradient(160deg, #23376B, #0F1A38 80%); }
.m2-slide.composed.tone-sky { background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.25), transparent 60%), linear-gradient(150deg, #23376B, #16244A 80%); }
.m2-sl-text { position: relative; z-index: 2; padding: 26px 22px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.m2-sl-kicker { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.m2-sl-text h3, .m2-sl-text h2 { margin-block: 1em; color: #fff !important; font-family: var(--font-head); font-size: clamp(22px, 5.6vw, 38px); line-height: 1.35; }
.m2-sl-text p { margin: 0; color: rgba(255,255,255,.86); font-size: clamp(14.5px, 1.7vw, 17px); line-height: 1.85; max-width: 520px; }
.m2-sl-text .m2-btn { margin-top: 6px; }
.m2-sl-shot { position: relative; min-height: 0; padding: 0 18px; display: flex; align-items: flex-start; justify-content: center; }
.m2-sl-shot img { display: block; width: 100%; max-width: 760px; border-radius: 14px 14px 0 0; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); object-fit: cover; object-position: top;
  height: 100%; background: #fff; }
.m2-slide.uploaded .m2-sl-picture, .m2-slide.uploaded .m2-sl-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m2-sl-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15, 26, 56,.82) 0%, rgba(15, 26, 56,.25) 55%, transparent 80%); }
.m2-slide.uploaded { align-items: end; }
.m2-sl-arrow { position: absolute; top: 50%; z-index: 3; display: none; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0;
  color: var(--ink); background: rgba(255,255,255,.92); box-shadow: var(--sh-1); cursor: pointer; transition: transform .15s; }
.m2-sl-arrow:hover { transform: scale(1.06); }
.m2-sl-arrow.prev { inset-inline-start: 14px; } .m2-sl-arrow.next { inset-inline-end: 14px; }
.m2-sl-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.m2-dots { display: flex; gap: 4px; }
.m2-dot { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.m2-dot i { display: block; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .3s, background-color .3s; }
.m2-dot[aria-current="true"] i { width: 24px; background: var(--royal); }
.m2-sl-pause { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
@media (min-width: 701px) {
  .m2-sl-frame { aspect-ratio: 16 / 7.4; }
  @supports not (aspect-ratio: 1) { .m2-sl-frame { padding-bottom: 46%; } }
  .m2-slide.composed { grid-template-rows: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
  .m2-sl-text { padding: 36px 44px; justify-content: center; }
  .m2-sl-shot { align-self: stretch; padding: 36px 0 0; padding-inline-end: 0; align-items: flex-end; overflow: hidden; }
  .m2-sl-shot img { border-radius: 16px 0 0 0; height: auto; max-height: 100%; }
  [dir="rtl"] .m2-sl-shot img { border-radius: 0 16px 0 0; }
  .m2-sl-arrow { display: grid; }
  .m2-sl-text { padding-inline-start: 72px; }
}

/* ── Feature bento ───────────────────────────────────────────────────────────────────── */
.m2-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.m2-tile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.m2-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #CBD5EA; }
.m2-tile-txt { padding: 22px 22px 18px; }
.m2-tile h3 { font-size: 18px; margin: 14px 0 6px; }
.m2-tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.m2-tile-shot { margin-top: auto; padding: 0 18px; height: 210px; overflow: hidden; }
.m2-tile-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -8px 26px -18px rgba(15,26,51,.4); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.m2-tile:hover .m2-tile-shot img { transform: translateY(-4px); }
.m2-tile-phone { margin-top: auto; display: flex; justify-content: center; padding: 0 18px; height: 230px; overflow: hidden; }
.m2-tile-phone img { display: block; width: 190px; height: 100%; object-fit: cover; object-position: top; border-radius: 24px 24px 0 0; border: 5px solid var(--navy-900); border-bottom: 0; }
.m2-tile.accent { background: linear-gradient(150deg, var(--navy-700), var(--navy-950)); border-color: transparent; justify-content: center; }
.m2-tile.accent h3 { color: #fff; } .m2-tile.accent p { color: #C9D6EE; }
.m2-tile.accent .m2-ic { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.m2 img[loading="lazy"] { content-visibility: visible; }
@media (min-width: 700px) {
  .m2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .m2-bento > .m2-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .m2-tile-shot { height: 260px; padding: 0 22px; }
  .m2-tile-phone { height: 260px; }
}
@media (min-width: 1100px) { .m2-tile-txt { padding: 26px 26px 20px; } .m2-tile-shot { height: 290px; } }
.m2-catalog { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 0 20px; }
.m2-catalog > summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--royal); list-style: none; }
.m2-catalog > summary::-webkit-details-marker { display: none; }
.m2-catalog > summary::after { content: "+"; float: inline-end; font-size: 20px; line-height: 1; }
.m2-catalog[open] > summary::after { content: "−"; }
.m2-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; padding-bottom: 18px; }
.m2-cat-item { padding: 12px 14px; border-radius: 12px; background: var(--soft); min-width: 0; }
.m2-cat-item b { display: block; font-size: 14.5px; color: var(--ink); } .m2-cat-item small { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── How it works ────────────────────────────────────────────────────────────────────── */
.m2-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; counter-reset: none; }
.m2-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); min-width: 0; }
.m2-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--royal), var(--sky)); box-shadow: 0 8px 18px -8px rgba(11, 122, 117,.7); }
.m2-steps h3 { font-size: 17px; margin: 14px 0 6px; } .m2-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
@media (min-width: 700px) { .m2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .m2-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* ── Roles (tabs) ────────────────────────────────────────────────────────────────────── */
.m2-tabs { display: flex; gap: 6px; padding: 6px; margin: 0 auto 22px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 16px;
  background: var(--soft); border: 1px solid var(--line); scrollbar-width: none; }
.m2-tabs::-webkit-scrollbar { display: none; }
.m2-tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.m2-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--royal); box-shadow: var(--sh-1); }
.m2-role { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fff, var(--soft)); border: 1px solid var(--line); animation: m2-up .45s ease both; }
.m2-role[hidden] { display: none; }
.m2-role h3 { font-family: var(--font-head); font-size: clamp(21px, 3vw, 28px); line-height: 1.4; }
.m2-role ul { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.m2-role li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.m2-role li svg { flex: none; margin-top: 4px; color: var(--teal-ink); }
.m2-role-shot img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh-2); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.m2-role-phone { display: flex; justify-content: center; }
.m2-role-phone img { display: block; width: min(260px, 72%); aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 30px; border: 7px solid var(--navy-900); box-shadow: var(--sh-3); }
@media (min-width: 860px) {
  .m2-role { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 36px; gap: 40px; }
  .m2-role.wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

/* ── Demo, trial, plans ──────────────────────────────────────────────────────────────── */
.m2-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.m2-demo-card { display: grid; gap: 8px; justify-items: start; text-align: start; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
  font: inherit; color: inherit; cursor: pointer; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.m2-demo-card:hover { transform: translateY(-2px); border-color: var(--royal); box-shadow: var(--sh-2); }
.m2-demo-card b { color: var(--ink); font-size: 16px; } .m2-demo-card small { color: var(--muted); line-height: 1.7; font-size: 13.5px; }
.m2-demo-card.busy { opacity: .6; cursor: progress; }
.m2-trial { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 22px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(700px 360px at 100% 0%, rgba(11, 122, 117,.6), transparent 60%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--sh-3); }
.m2-trial .m2-glow { inset-inline-end: auto; inset-inline-start: -20%; top: 40%; }
.m2-trial h2 { color: #fff !important; font-size: clamp(25px, 4vw, 36px); line-height: 1.35; }
.m2-trial p { color: #C9D6EE; line-height: 1.9; margin: 12px 0 0; }
.m2-trial .m2-cta { justify-content: flex-start; margin-top: 22px; }
.m2-trial-cols { display: grid; gap: 12px; }
.m2-trial-cols > div { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.m2-trial-cols b { color: #fff; }
.m2-trial-cols ul { margin: 10px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; color: #C9D6EE; font-size: 14.5px; line-height: 1.7; }
@media (min-width: 900px) { .m2-trial { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 44px; align-items: center; } }

.m2 .st-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .m2 .st-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } }
.m2 .st-plan { position: relative; min-width: 0; padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.m2 .st-plan:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.m2 .st-plan.hi { border: 2px solid var(--royal); box-shadow: 0 24px 50px -24px rgba(11, 122, 117,.45); }
.m2 .st-plan .badge { position: absolute; top: -13px; inset-inline-start: 22px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--royal), var(--sky)); }
.m2 .st-plan h3 { font-size: 21px; } .m2 .st-plan .tag { color: var(--royal); font-weight: 600; font-size: 14px; margin-top: 2px; }
.m2 .st-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.m2 .st-price .n { font-family: var(--font-head); font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1; }
.m2 .st-price .u { color: var(--muted); font-size: 14px; }
.m2 .st-price del { color: #98A2B7; } .m2 .st-price .off { color: var(--teal-ink); font-weight: 700; font-size: 13.5px; background: var(--teal-50); padding: 2px 10px; border-radius: 999px; }
.m2 .plan-facts { list-style: none; padding: 0; margin: 18px 0 20px !important; display: grid; gap: 10px; }
.m2 .plan-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.m2 .plan-facts li svg { flex: none; color: var(--royal); margin-top: 2px; }
.m2 .st-plan .acts { margin-top: auto; display: grid; gap: 8px; }
.m2 .st-plan .acts .st-btn { width: 100%; min-height: 48px; border-radius: 14px; font-weight: 700; }
.m2 .st-plan .acts .st-btn.pri { background: linear-gradient(135deg, var(--royal), #0E8F88); color: #fff; border: 0; }
.m2 .st-plan .acts .st-btn.out { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.m2 .st-plan .acts .try { border: 0; background: none; font: inherit; font-size: 14px; color: var(--royal); font-weight: 600; cursor: pointer; padding: 8px; }
.m2 .plans-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 18px auto 0; max-width: 720px; line-height: 1.9; }
.m2 .plans-note a { color: var(--royal); }

/* ── Trust, FAQ ──────────────────────────────────────────────────────────────────────── */
.m2-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.m2-protect { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m2-protect li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); line-height: 1.8; font-size: 15px; min-width: 0; }
.m2-trust-side { padding: 22px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); min-width: 0; }
.m2-trust-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px 14px; }
.m2-trust-links a { color: var(--royal); font-weight: 600; text-decoration: none; padding: 6px 0; } .m2-trust-links a:hover { text-decoration: underline; }
.m2 .tb-chip { background: var(--teal-50); color: var(--teal-ink); border-color: #A7E3DB; }
.m2 .tb-more { color: var(--royal); }
@media (min-width: 900px) { .m2-trust { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; } }
.m2-faq { display: grid; gap: 10px; }
.m2 .st-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s, border-color .2s; }
.m2 .st-faq details[open] { border-color: #C9D5F2; box-shadow: var(--sh-1); }
.m2 .st-faq summary { padding: 18px 0; color: var(--ink); font-size: 16px; }
.m2 .st-faq summary::after { color: var(--royal); }

/* ── Contact cards (home and /support) ───────────────────────────────────────────────── */
.m2-contacts { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.m2-wa { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: #0F8A4B; color: #fff !important;
  text-decoration: none; box-shadow: 0 10px 24px rgba(15, 138, 75, .18); transition: transform .2s ease, box-shadow .2s ease; }
.m2-wa:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15, 138, 75, .24); }
.m2-wa-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .16); flex: none; }
.m2-wa-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.m2-wa-text b { font-size: 16.5px; }
.m2-wa-text small { color: #D7F3E3; font-size: 13px; }
.m2-wa-num { font-weight: 700; font-size: 14px; color: #fff; text-align: right; }
.m2-wa-go { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: #0F8A4B; font-weight: 800; font-size: 14px; white-space: nowrap; }
.m2-crows { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
@media (min-width: 760px) { .m2-crows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m2-crow:nth-child(odd) { border-inline-end: 1px solid var(--line); } }
.m2-crow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; color: var(--ink) !important; text-decoration: none;
  border-bottom: 1px solid var(--line); transition: background .15s ease; }
.m2-crow:hover { background: #F7F9FD; }
.m2-crow-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--royal); background: var(--royal-50); flex: none; }
.m2-crow-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.m2-crow-text b { font-size: 15px; }
.m2-crow-text small { color: var(--muted); font-size: 12.5px; }
.m2-crow-val { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13.5px; color: var(--royal); }
@media (max-width: 480px) {
  .m2-wa { flex-wrap: wrap; } .m2-wa-go { width: 100%; text-align: center; }
  .m2-crow { flex-wrap: wrap; row-gap: 4px; } .m2-crow-val { max-width: 100%; flex-basis: 100%; padding-inline-start: 52px; text-align: right; }
}
.m2-contact-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ── Closing call to action ──────────────────────────────────────────────────────────── */
.m2-end { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0; color: #fff; text-align: center;
  background: radial-gradient(800px 400px at 50% 120%, rgba(159, 207, 203,.35), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.m2-end .m2-glow { inset-inline-end: 35%; top: -60%; }
.m2-end h2 { color: #fff !important; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.35; }
.m2-end p { color: #C9D6EE; margin: 14px auto 0; max-width: 560px; line-height: 1.9; }

/* ── Footer ──────────────────────────────────────────────────────────────────────────── */
.m2-foot { background: var(--navy-950); color: #A9B6D0; padding-bottom: env(safe-area-inset-bottom); }
.m2-foot-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1200px; margin-inline: auto; padding: 48px max(var(--gut), env(safe-area-inset-left)) 28px; }
.m2-fbrand img { height: 34px; width: auto; max-width: none; display: block; }
.m2-fbrand p { margin: 14px 0 16px; line-height: 1.9; font-size: 14.5px; max-width: 360px; color: #A9B6D0; }
.m2-fcontact { display: grid; gap: 8px; }
.m2-fcontact a { display: inline-flex; align-items: center; gap: 8px; color: #E2E9F7; text-decoration: none; font-size: 14.5px; min-width: 0; }
.m2-fcontact a bdi { overflow-wrap: anywhere; min-width: 0; }
.m2-fcontact a:hover { color: #fff; text-decoration: underline; }
.m2-fcol h3 { color: #fff !important; font-size: 15px; margin-bottom: 12px; }
.m2-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.m2-flink { display: inline-block; padding: 5px 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: #A9B6D0; text-decoration: none; cursor: pointer; text-align: start; }
.m2-flink:hover { color: #fff; }
.m2-foot-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 18px max(var(--gut), env(safe-area-inset-left)); text-align: center; font-size: 13px; color: #7F8DAA; }
@media (min-width: 640px) { .m2-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m2-fbrand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .m2-foot-in { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); } .m2-fbrand { grid-column: auto; } }

/* ── Section spacing on larger screens ───────────────────────────────────────────────── */
@media (min-width: 760px) { .m2-sec { padding: 88px 0; } .m2-head { margin-bottom: 44px; } .m2-end { padding: 88px 0; } }
@media (min-width: 1440px) { .m2-wrap, .m2-nav-in { max-width: 1280px; } }

/* ── Dialogs share the new palette ───────────────────────────────────────────────────── */
dialog.rg-dlg .rg-btn.pri, dialog.st-dlg .st-btn.pri { background: linear-gradient(135deg, var(--royal), #0E8F88); color: #fff; }
dialog.rg-dlg .rg-steps li.on { border-bottom-color: var(--royal); }
dialog.rg-dlg .rg-steps li.on .n { background: var(--royal); border-color: var(--royal); }
dialog.rg-dlg .rg-in:focus { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(11, 122, 117, .14); }
dialog.rg-dlg .rg-chip[aria-pressed="true"], dialog.rg-dlg .rg-plan[aria-pressed="true"] { border-color: var(--royal); background: var(--royal-50); color: var(--royal); }
dialog.rg-dlg .rg-plan[aria-pressed="true"] .dot { border-color: var(--royal); }

/* ── Public pages (legal, help, status…) on the same chrome ──────────────────────────── */
.m2-page { background: var(--soft); min-height: 100vh; overflow-x: clip; color: var(--text); }
.m2-page .lg { width: auto; max-width: 860px; margin: 28px auto 56px; padding: 28px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.m2-page .lg h1 { font-family: var(--font-head); color: var(--ink); font-size: clamp(26px, 4.4vw, 36px); line-height: 1.35; overflow-wrap: anywhere; }
.m2-page .lg h2 { color: var(--ink); overflow-wrap: anywhere; }
.m2-page .lg a { color: var(--royal); overflow-wrap: anywhere; }
.m2-page .lg p, .m2-page .lg li { overflow-wrap: anywhere; }
@media (min-width: 760px) { .m2-page .lg { padding: 44px 48px; margin-top: 40px; } }
@media (max-width: 400px) { .m2-page .lg { margin: 14px max(10px, env(safe-area-inset-left)) 32px; padding: 22px 16px; border-radius: var(--r); } }
@media (max-width: 479px) {
  .m2-trial .m2-cta .m2-btn, .m2-end .m2-cta .m2-btn { flex: 1 1 100%; }
  .m2-contact-more .m2-btn { flex: 1 1 100%; }
}

/* Public pages before their script runs: the static header already has the new header's height and look, and the
   contact list reserves the space of its cards, so replacing them moves nothing (no layout shift). */
body > .st > header.st-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; }
body > .st > header.st-nav .in { min-height: 64px; box-sizing: border-box; display: flex; align-items: center; max-width: 1200px; margin-inline: auto; padding-block: 0;
  padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
body > .st > header.st-nav .brand img { height: 32px; width: auto; }
body > .st > header.st-nav .links { display: none; }
[data-official] { min-height: 1560px; }
@media (min-width: 640px) { [data-official] { min-height: 760px; } }
@media (min-width: 1000px) { [data-official] { min-height: 500px; } }
[data-official].m2-ready { min-height: 0; }
/* The hero heading and text are the largest paint: they slide in without starting transparent, so they count at once. */
@keyframes m2-rise { from { transform: translateY(14px); } to { transform: none; } }
.m2-hero h1.m2-in, .m2-hero .m2-lead.m2-in { animation-name: m2-rise; }
/* Buttons inside page text keep their own colours (not the link colour). */
.m2-page .lg a.m2-btn { text-decoration: none; overflow-wrap: normal; }
.m2-page .lg a.m2-btn.wa, .m2-page .lg a.m2-btn.primary { color: #fff; }
.m2-page .lg a.m2-btn.ghost { color: var(--ink); }
.m2-page .lg a.m2-btn.ghost:hover { color: var(--royal); }

/* ── Phones: two features per row (less scrolling), compact tiles ───────────────────── */
@media (min-width: 340px) and (max-width: 699px) {
  .m2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m2-bento > .m2-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .m2-tile { border-radius: 16px; }
  .m2-tile-txt { padding: 14px 12px 10px; }
  .m2-tile .m2-ic { width: 36px; height: 36px; border-radius: 11px; }
  .m2-tile .m2-ic svg { width: 17px; height: 17px; }
  .m2-tile h3 { font-size: 15px; margin: 10px 0 4px; line-height: 1.45; }
  .m2-tile p { font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .m2-tile-shot { height: 120px; padding: 0 10px; }
  .m2-tile-shot img { border-radius: 9px 9px 0 0; }
  .m2-tile-phone { height: 140px; padding: 0 10px; }
  .m2-tile-phone img { width: 110px; border-width: 4px; border-radius: 16px 16px 0 0; }
  .m2-bento > .m2-tile:last-child:nth-child(odd) .m2-tile-shot, .m2-bento > .m2-tile:last-child:nth-child(odd) .m2-tile-phone { height: 170px; }
  .m2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m2-steps li { padding: 16px 14px; }
  .m2-steps h3 { font-size: 15px; margin-top: 10px; } .m2-steps p { font-size: 13px; line-height: 1.75; }
  .m2-step-n { width: 34px; height: 34px; border-radius: 10px; }
  .m2-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-cat-item { padding: 10px; }
}

/* ── Home page motion ───────────────────────────────────────────────────────────────── */
.m2-anim .m2-reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms); }
.m2-anim .m2-reveal.m2-shown { opacity: 1; transform: none; }
.m2-anim .m2-head.m2-reveal .m2-eyebrow { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .1s; transform: scale(.85); }
.m2-anim .m2-head.m2-reveal.m2-shown .m2-eyebrow { transform: none; }
/* Hero screens drift with the scroll (set by script; still without it). */
.m2-device { transform: translateY(var(--m2-par, 0)); transition: transform .12s linear; will-change: transform; }
.m2-phone { translate: 0 var(--m2-par-phone, 0); }
.m2-hero-art.m2-in { animation: m2-art-in 1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes m2-art-in { from { opacity: 0; transform: perspective(1200px) rotateY(-8deg) translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
/* Carousel: the active slide's text arrives line by line, its screen rises in. */
.m2-slide.on .m2-sl-text > * { animation: m2-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.m2-slide.on .m2-sl-text > :nth-child(2) { animation-delay: .08s; } .m2-slide.on .m2-sl-text > :nth-child(3) { animation-delay: .16s; } .m2-slide.on .m2-sl-text > :nth-child(4) { animation-delay: .24s; }
.m2-slide.on .m2-sl-shot img { animation: m2-shot-in .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
@keyframes m2-shot-in { from { opacity: .4; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
.m2-slide.uploaded.on .m2-sl-picture img { animation: m2-zoom 8s ease-out both; }
@keyframes m2-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
/* Progress of autoplay on the active dot. */
.m2-slides.playing .m2-dot[aria-current="true"] i { background: linear-gradient(90deg, var(--royal) 50%, var(--line-2) 50%); background-size: 200% 100%; animation: m2-dot 5s linear both; }
[dir="rtl"] .m2-slides.playing .m2-dot[aria-current="true"] i { background: linear-gradient(270deg, var(--royal) 50%, var(--line-2) 50%); background-size: 200% 100%; }
@keyframes m2-dot { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Primary buttons: a soft light sweep on hover. */
.m2 .m2-btn.primary { background-image: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%), linear-gradient(135deg, var(--royal) 0%, #0E8F88 55%, var(--sky) 140%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  transition: transform .18s ease, box-shadow .18s ease, background-position .8s ease; }
.m2 .m2-btn.primary:hover { background-position: -30% 0, 0 0; }
/* Feature tiles: the icon tilts and the screen lifts on hover. */
.m2-tile .m2-ic { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.m2-tile:hover .m2-ic { transform: rotate(-8deg) scale(1.08); }
.m2-steps li { transition: transform .25s ease, box-shadow .25s ease; }
.m2-steps li:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.m2-role:not([hidden]) .m2-role-shot img, .m2-role:not([hidden]) .m2-role-phone img { animation: m2-shot-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .m2-device, .m2-phone { transform: none !important; translate: none !important; }
  .m2-slides.playing .m2-dot[aria-current="true"] i { animation: none; background: var(--royal); }
}

/* ── Phones: an app-like home. The hero fills exactly one screen (text, the two actions side by side and a compact
   preview); sections are tighter, headings smaller, cards rounder. ─────────────────────────────────────────── */
@media (max-width: 699px) {
  .st.m2 { --gut: 14px; }
  .m2-hero { min-height: calc(100svh - 64px - env(safe-area-inset-top)); display: flex; flex-direction: column; justify-content: center; padding: 18px 0 22px; }
  .m2-hero-in { gap: 18px; }
  .m2-hero .m2-eyebrow { font-size: 12px; padding: 5px 11px; }
  .st.m2 .m2-hero h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.35; margin-top: 10px; }
  .m2-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.8; }
  .m2-hero .m2-cta { flex-wrap: nowrap; gap: 8px; margin-top: 18px; }
  .m2-hero .m2-cta .m2-btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 10px; font-size: 14.5px; border-radius: 14px; }
  .m2-hero .m2-cta .m2-btn svg { display: none; }
  .m2-ticks { gap: 6px; margin-top: 14px; font-size: 12px; }
  .m2-ticks li { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
  .m2-hero-art { max-width: 340px; padding-bottom: 6%; }
  .m2-device { border-radius: 12px; }
  .m2-device-bar { height: 22px; }
  .m2-device-bar span { font-size: 9.5px; }
  .m2-device img { aspect-ratio: 16 / 9; }
  .m2-sec { padding: 40px 0; }
  .m2-sec-slides { padding: 20px 0 4px; }
  .m2-head { margin-bottom: 20px; }
  .m2-head h2 { font-size: 22px; line-height: 1.45; }
  .m2-head p { margin-top: 8px; font-size: 14px; line-height: 1.8; }
  .m2-eyebrow { font-size: 12px; }
  .m2-end { padding: 44px 0; }
  .m2-end h2 { font-size: 22px; }
  .m2-trial { padding: 22px 16px; border-radius: 20px; }
  .m2-trial h2 { font-size: 21px; }
}
@media (max-width: 699px) and (max-height: 700px) { .m2-hero-art { max-width: 280px; } }
.m2-crow { margin-bottom: -1px; }
@media (min-width: 760px) { .m2-crow:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; } }

/* Public identity, compact navigation and readable footer. */
.m2-brand-name { unicode-bidi: isolate; }
.m2-header-cta { display: none; }
.m2-acts > .m2-btn.ghost-dark { display: inline-flex; min-height: 44px; }
.m2-brand img { width: 124px; height: 46px; object-fit: contain; }
.m2-dr-trial { margin-bottom: 8px; }
.m2-dr-panel { padding-inline-end: env(safe-area-inset-left); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.m2-foot-in { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; padding-block: 30px 20px; }
.m2-fbrand { grid-column: 1 / -1; }
.m2-fbrand img { width: 140px; height: 52px; object-fit: contain; aspect-ratio: 594 / 220; }
.m2-fbrand p { max-width: 38ch; margin-block: 10px; font-size: 13px; line-height: 1.8; }
.m2-fcontact { gap: 4px; }
.m2-fcontact a { min-height: 32px; }
.m2-fcol h3 { font-size: 14px; margin-bottom: 6px; }
.m2-flink { display: inline-flex; align-items: center; min-height: 44px; padding-block: 5px; line-height: 1.5; font-size: 13px; white-space: normal; text-align: start; }
.m2-fcol ul { margin: 0; padding: 0; }
.m2-fcol li { margin: 0; }
.m2-foot-bar { color: #A9B6D0; padding-block: 16px; line-height: 1.8; }
.m2-hero .m2-in { animation: none; }
.m2-anim .m2-reveal { opacity: 1; transform: none; }
.st.m2 :focus-visible, .m2-page :focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.m2-hero :focus-visible, .m2-end :focus-visible, .m2-foot :focus-visible { outline-color: #fff; }
.m2-page .m2-skip:focus { top: calc(10px + env(safe-area-inset-top)); }
.m2-plan-scope { max-width: 760px; margin: 18px auto 0; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.8; }
.public-guide { scroll-margin-top: 100px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-block: 12px; }
.public-guide > summary { cursor: pointer; padding: 16px; min-height: 48px; font-weight: 650; color: var(--ink); }
.public-guide-body { padding: 0 18px 16px; line-height: 1.9; }
.public-guide-body ol { margin: 0; padding-inline-start: 22px; }
.public-guide-body p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.public-guides h2 { font-size: 21px; margin-block: 26px 12px; }
.public-note { border-inline-start: 3px solid var(--royal); background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.9; }
.public-type-list { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; padding: 0; list-style: none; }
.public-type-list li { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; }
.inq-form [role=alert] { scroll-margin-top: 100px; }
@media(min-width:640px) { .m2-header-cta { display: inline-flex; } }
@media(min-width:1000px) { .m2-foot-in { grid-template-columns: minmax(0,1.3fr) repeat(4,minmax(0,1fr)); gap: 24px; padding-block: 36px 26px; } .m2-fbrand { grid-column: auto; } .m2-flink { min-height: 32px; } }
@media(min-width:1000px) and (max-width:1199px) { .m2-links .m2-link { font-size: 13px; padding-inline: 8px; } .m2-acts { gap: 6px; } .m2-acts .m2-btn { padding-inline: 12px; } }
@media(max-width:359px) { .m2-nav-in { gap: 8px; } .m2-acts { gap: 6px; } .m2-acts > .m2-btn { padding-inline: 12px; } .m2-brand img { width: 112px; height: 42px; } }
@media(prefers-reduced-motion:reduce) { .m2-hero .m2-in, .m2-reveal { animation: none; transition: none; transform: none; } }

.m2-static-menu { display: inline-flex; }
@media(min-width:1000px) { .m2-static-menu { display: none; } }

.m2-foot { line-height: 1.7; font-size: 14px; }
.m2-fcol h3 { line-height: 1.5; margin: 0 0 6px; }
@media(min-width:640px) and (max-width:999px) { .m2-foot-in { grid-template-columns: repeat(4,minmax(0,1fr)); } }
/* Public entry uses the existing account and institution authentication. */
/* Public sign-in: a compact Arabic identity and one clear entry point. */
.ln.ln-unified{width:100%;max-width:960px;min-height:100svh;margin-inline:auto;padding:28px 24px 20px;padding-block-start:max(28px,env(safe-area-inset-top));padding-block-end:max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:24px;box-sizing:border-box;color:#16244a}
.ln-unified *{box-sizing:border-box}
.ln-unified .ln-head{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.ln-unified .ln-brand{display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;min-height:64px;color:#16244a}
.ln-unified .ln-brand-mark{display:block;width:76px;height:54px;object-fit:contain;flex:none}
.ln-unified .ln-brand-copy{display:grid;gap:2px;text-align:start}
.ln-unified .ln-brand-name{font-size:37px;line-height:1.2;font-weight:800;letter-spacing:0}
.ln-unified .ln-brand-caption{color:#647086;font-size:11px;line-height:1.7}
.ln-unified h1{font-size:clamp(24px,3vw,32px);line-height:1.45;margin:6px 0 0;font-weight:800;letter-spacing:0}
.ln-unified .ln-intro{margin:0;color:#647086;font-size:15px;line-height:1.7}
.ln-unified .ln-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:20px}
.ln-unified .ln-no-recent{grid-template-columns:minmax(0,520px);justify-content:center}
.ln-unified .ln-stage{padding:26px;background:#fff;border:1px solid #e2e8ee;border-radius:22px;box-shadow:0 8px 28px -18px rgba(22,36,74,.22);margin:0;min-width:0}
.ln-unified .ln-section-head{display:grid;gap:5px;margin-bottom:20px}
.ln-unified h2{font-size:20px;line-height:1.6;font-weight:750;margin:0;color:#16244a}
.ln-unified .ln-section-head p{font-size:14px;line-height:1.7;color:#647086;margin:0}
.ln-unified .ln-form{display:grid;gap:10px}
.ln-unified .ln-form label{font-size:14px;font-weight:700;line-height:1.7}
.ln-unified .ln-code-wrap{display:flex;align-items:center;gap:10px;border:1px solid #cdd7e1;border-radius:12px;background:#fbfcfd;padding-inline:13px;min-height:54px}
.ln-unified .ln-code-wrap:focus-within{border-color:#0b7a75;box-shadow:0 0 0 3px #0b7a7512;background:#fff}
.ln-unified .ln-code-wrap>span{display:flex;flex:none;color:#607586}
.ln-unified input.ln-code{width:100%;min-width:0;padding:12px 0;font:inherit;font-size:16px;line-height:1.6;background:transparent;border:0;box-shadow:none;outline:none;min-height:52px;border-radius:0}
.ln-unified input.ln-code::placeholder{color:#82909d;font-size:14px}
.ln-unified .ln-field-hint{font-size:12px;color:#647086;line-height:1.8;margin:0}
.ln-unified .ln-submit{width:100%;min-height:50px;margin-top:4px;border-radius:12px;justify-content:space-between;font-size:15px;padding-inline:18px}
.ln-unified .ln-help{margin-top:18px;padding-top:12px;border-top:1px solid #edf0f4}
.ln-unified .ln-help summary{display:flex;align-items:center;gap:8px;min-height:40px;color:#0b7a75;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.ln-unified .ln-help summary::-webkit-details-marker{display:none}
.ln-unified .ln-help p{font-size:13px;line-height:1.9;margin:6px 0;color:#647086}
.ln-unified .ln-recent{margin:0;min-width:0}
.ln-unified .ln-recent[hidden]{display:none}
.ln-unified .ln-recent .ln-section-head{margin:0 0 12px;padding-inline:3px}
.ln-unified .ln-recent h2{font-size:17px}
.ln-unified .ln-recent .ln-section-head p{font-size:12px}
.ln-unified .ln-recent-list{display:grid;gap:10px}
.ln-unified .ln-saved{border:1px solid #e2e8ee;border-radius:17px;background:#fff;padding:12px 14px;min-width:0}
.ln-unified .ln-saved-head{display:grid;grid-template-columns:36px minmax(0,1fr) 44px;align-items:center;gap:8px}
.ln-unified .ln-choice-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#0b7a75;background:#eef7f5}
.ln-unified .ln-saved h3{font-size:14px;line-height:1.7;margin:0;font-weight:700;overflow-wrap:anywhere}
.ln-unified .ln-x{width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;background:transparent;border-radius:10px;color:#6f7d8b;cursor:pointer}
.ln-unified .ln-x:hover{background:#f3f5f8;color:#16244a}
.ln-unified .ln-saved-roles{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.ln-unified .ln-school{display:inline-flex;align-items:center;justify-content:space-between;flex:1 1 auto;gap:9px;min-height:42px;margin:0;padding:8px 11px;border:1px solid #e4ebe9;border-radius:10px;background:#f7fbfa;text-decoration:none;font-size:12px;font-weight:650;line-height:1.6;color:#0a6a66;white-space:normal}
.ln-unified .ln-school:hover{border-color:#0b7a75;background:#eef7f5}
.ln-unified .ln-school svg{flex:none}
.ln-unified .ln-account{display:flex;align-items:center;gap:13px;min-width:0;padding:17px 20px;border:1px solid #dce8e7;border-radius:17px;background:#eef6f5}
.ln-unified .ln-account-icon{width:42px;height:42px;display:grid;place-items:center;flex:none;color:#0b7a75;background:#fff;border-radius:12px}
.ln-unified .ln-account-copy{min-width:0;flex:1}
.ln-unified .ln-account h2{font-size:15px;line-height:1.7}
.ln-unified .ln-account p{font-size:12px;line-height:1.8;margin:3px 0 0;color:#647086}
.ln-unified .ln-account-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #c6dbd8;border-radius:10px;color:#0a6a66;font-size:13px;font-weight:700;text-decoration:none;background:#fff;white-space:nowrap}
.ln-unified .ln-about{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 24px;margin:0;padding-top:0;font-size:12px}
.ln-unified .ln-about a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:#647086}
.ln-unified :focus-visible{outline:3px solid #0b7a75;outline-offset:3px}
.ln-unified .ln-code:focus-visible{outline:none}
.ln-unified .ln-msg{font-size:13px;line-height:1.8;margin:0!important}
.ln-unified .ln-msg:empty{display:none}
@media(max-width:699px){.ln.ln-unified{max-width:500px;padding-inline:18px;gap:20px;padding-block-start:max(20px,env(safe-area-inset-top))}.ln-unified .ln-grid{grid-template-columns:minmax(0,1fr);gap:22px}.ln-unified .ln-stage{padding:22px}.ln-unified .ln-account{display:grid;grid-template-columns:40px minmax(0,1fr);padding:16px;gap:10px}.ln-unified .ln-account-link{grid-column:1/-1;width:100%}.ln-unified .ln-head{gap:7px}.ln-unified .ln-brand-name{font-size:34px}.ln-unified .ln-brand-mark{width:68px;height:50px}.ln-unified h1{font-size:25px}.ln-unified .ln-intro{font-size:14px}}
@media(max-width:359px){.ln.ln-unified{padding-inline:12px}.ln-unified .ln-stage{padding:18px}.ln-unified h1{font-size:23px}.ln-unified .ln-saved{padding-inline:11px}}
