/* School Screen LMS — Marketing Site Design System */
:root {
  --ink: #0f172a;
  --slate: #475569;
  --slate-l: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eef2ff;
  --primary: #4f46e5;
  --primary-d: #4338ca;
  --violet: #7c3aed;
  --accent: #059669;
  --accent-l: #d1fae5;
  --dark: #0b1120;
  --dark-2: #151c33;
  --radius: 16px;
  --font-ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 60px -20px rgba(79, 70, 229, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
[dir="ltr"] body, [dir="ltr"] { font-family: var(--font-en); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 22px; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 15px; font-weight: 800;
}
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--slate); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-tint); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.lang-sw {
  font-size: 12.5px; font-weight: 700; color: var(--slate);
  border: 1px solid var(--line); padding: 7px 12px; border-radius: 9px; background: #fff;
}
.lang-sw:hover { color: var(--primary); border-color: var(--primary); }
#nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
@media (max-width: 940px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 68px; inset-inline: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
    display: none; box-shadow: var(--shadow);
  }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 15px; }
  .nav-links .nav-cta-inline { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 420px at 75% -10%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(800px 380px at 15% 0%, rgba(79,70,229,.22), transparent 55%),
    var(--dark);
  color: #fff; padding: 84px 0 72px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(124,58,237,.18); border: 1px solid rgba(167,139,250,.35); color: #c4b5fd;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: -1px; margin: 20px 0 16px; max-width: 16em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero .lead { font-size: clamp(15.5px, 2vw, 18px); color: #cbd5e1; max-width: 44em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 26px; margin-top: 46px; flex-wrap: wrap; }
.hero-proof span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #94a3b8; }
.hero-proof i { font-style: normal; color: #34d399; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; max-width: 24em; }
.section > .wrap > p, .section p.lead-b { color: var(--slate); font-size: 15.5px; max-width: 46em; margin-bottom: 10px; }
.section h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-tint); color: var(--primary); margin-bottom: 14px; font-size: 19px;
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { font-size: 14px; color: var(--slate); }
.card a.more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.card a.more:hover { text-decoration: underline; }
.checklist { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--slate); }
.checklist li::before {
  content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-l);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: linear-gradient(150deg, var(--dark-2), var(--dark)); border-radius: 20px;
  padding: 34px; color: #cbd5e1; border: 1px solid rgba(255,255,255,.08);
}
.panel .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.panel .row:last-child { border: 0; }
.panel .row b { color: #fff; font-weight: 600; }
.panel .pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(52,211,153,.15); color: #34d399; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 17px 22px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 19px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--slate); font-size: 14.5px; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); max-width: 640px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 14.5px; transition: border .15s, box-shadow .15s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.hp-field { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--slate-l); margin-top: 12px; }
.form-ok { background: var(--accent-l); border: 1px solid #6ee7b7; color: #065f46; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  border-radius: 22px; color: #fff; padding: 52px 40px; text-align: center;
  position: relative; overflow: hidden; margin: 20px 0;
}
.cta-band::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.08); top: -200px; inset-inline-end: -100px; }
.cta-band h2 { color: #fff; margin-inline: auto; font-size: clamp(22px,3vw,30px); }
.cta-band p { color: #e0e7ff; margin: 10px auto 26px; max-width: 40em; font-size: 15.5px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #94a3b8; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: .4px; }
.footer a { display: block; font-size: 13.5px; padding: 5px 0; color: #94a3b8; }
.footer a:hover { color: #fff; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.footer .fnote { font-size: 13px; max-width: 30em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Article ---------- */
.article h2 { margin-top: 38px; font-size: 21px; }
.article .byline { font-size: 13px; color: var(--slate-l); margin-bottom: 26px; display: flex; gap: 12px; }
.crumbs { font-size: 12.5px; color: var(--slate-l); padding: 18px 0 0; }
.crumbs a { color: var(--primary); font-weight: 600; }
