/* AI Literacy page — matches the redesigned home page (Geist, coral/ink, pill buttons, soft cards).
   Tokens mirror public/css/home.css (.home-v2). Direction-neutral: logical properties only, so it
   renders correctly in LTR and RTL. Geist has no Arabic glyphs, so Arabic falls through to IBM Plex Sans Arabic. */
.ail {
  --coral:#E96358; --coral-stat:#E05F55; --coral-700:#BA4F46;
  --ink:#0D0D0D; --grey:#4D4D4D; --line:#E6E6E6; --pill-bg:#F4F5F5; --eyebrow-blue:#0288D1;
  --sans:'Geist','IBM Plex Sans Arabic',-apple-system,'Segoe UI',sans-serif;
  font-family:var(--sans); color:var(--ink); -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
.ail *, .ail *::before, .ail *::after { box-sizing:border-box; }
.ail h1,.ail h2,.ail h3,.ail p { font-family:var(--sans); }
.ail-wrap { max-width:1412px; margin-inline:auto; padding-inline:50px; }
.ail-section { margin-block:72px; }

/* eyebrow pill (same as home) */
.ail-eyebrow,.ail-pill { display:inline-flex; align-items:center; min-height:28px; padding:4px 20px; border-radius:100px;
  background:var(--pill-bg); font-weight:700; font-size:16px; line-height:1.3; color:var(--eyebrow-blue); }
.ail-pill { margin-bottom:24px; }

/* ---- hero ---- */
.ail-hero { position:relative; padding:90px 50px 70px; overflow:hidden; }
.ail-hero__grid { position:absolute; inset:0; z-index:0;
  background-image:linear-gradient(#f4f4f4 1px,transparent 1px),linear-gradient(90deg,#f4f4f4 1px,transparent 1px);
  background-size:90px 90px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 30%,#fff 30%,transparent 72%);
  mask-image:radial-gradient(120% 90% at 50% 30%,#fff 30%,transparent 72%); }
.ail-hero .ail-wrap { position:relative; z-index:1; padding-inline:0; }
.ail-hero h1 { font-weight:700; font-size:clamp(36px,5.6vw,64px); line-height:1.15; letter-spacing:-.5px; margin:22px 0 20px; text-wrap:balance; max-width:900px; text-align:start; }
.ail-em { font-family:'Caveat',cursive; font-weight:700; color:var(--coral); font-size:1.18em; line-height:1; padding-inline-end:.15em; }
html[dir="rtl"] .ail-em { font-family:var(--sans); font-size:1em; }
.ail-lead { font-size:clamp(16px,1.6vw,20px); line-height:1.55; color:var(--grey); max-width:760px; margin:0 0 32px; text-align:start; }
.ail-btns { display:flex; flex-wrap:wrap; gap:12px; }

/* ---- buttons (home .btn) ---- */
.ail-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:var(--sans); font-weight:700;
  font-size:16px; line-height:1; border-radius:999px; padding:14px 26px; border:1.5px solid transparent; cursor:pointer;
  text-decoration:none; white-space:nowrap; transition:background .12s,color .12s,border-color .12s,transform .06s; }
.ail-btn:active { transform:translateY(1px); }
.ail-btn--primary { background:var(--coral); color:#fff; }
.ail-btn--primary:hover { background:var(--coral-700); color:#fff; text-decoration:none; }
.ail-btn--secondary { background:#fff; color:var(--coral); border-color:var(--coral); }
.ail-btn--secondary:hover { background:#fff8f8; color:var(--coral-700); text-decoration:none; }

/* ---- domain cards ---- */
.ail h2 { font-weight:700; font-size:clamp(28px,3.6vw,47px); line-height:1.1; letter-spacing:-.5px; margin:0 0 32px; text-align:start; text-wrap:balance; }
.ail-grid { display:grid; gap:20px; }
.ail-grid--3 { grid-template-columns:repeat(3,1fr); }
.ail-card { border:1.5px solid var(--line); border-radius:28px; padding:32px 28px; background:#fff; transition:border-color .2s,transform .2s; }
.ail-card:hover { border-color:var(--coral); transform:translateY(-3px); }
.ail-card h3 { font-weight:700; font-size:22px; line-height:1.25; margin:18px 0 16px; text-align:start; }
.ail-card ul { list-style:none; margin:0; padding:0; }
.ail-card li { position:relative; padding-inline-start:18px; margin-bottom:10px; line-height:1.5; color:var(--grey); font-size:16px; }
.ail-card li::before { content:''; position:absolute; inset-inline-start:0; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--coral); }
.ail-num { display:inline-flex; width:44px; height:44px; border-radius:50%; color:#fff; font-weight:700; font-size:18px; align-items:center; justify-content:center; }

/* cycles */
.ail-cycles { margin-top:20px; }
.ail-cycle { background:var(--pill-bg); border-radius:20px; padding:20px 24px; display:flex; flex-direction:column; gap:4px; }
.ail-label { font-size:13px; font-weight:700; text-transform:uppercase; color:var(--eyebrow-blue); }
.ail-cycle strong { font-size:22px; font-weight:700; }
.ail-cycle small { color:var(--grey); font-weight:500; font-size:14px; }

/* ---- stats band (home .stats-band) ---- */
.ail-band { background:var(--coral-stat); color:#fff; border-radius:20px; padding:43px 64px; display:grid; grid-template-columns:repeat(3,1fr); gap:48px; margin-top:72px; text-align:center; }
.ail-band strong { display:block; font-weight:700; font-size:clamp(40px,5vw,66px); line-height:.95; margin-bottom:12px; }
.ail-band .ail-band__cta { font-size:clamp(26px,3vw,36px); line-height:1.15; }
.ail-band p { margin:0 auto; max-width:260px; font-size:16px; line-height:1.4; font-weight:500; }
.ail-band a { color:#fff; text-decoration:underline; }

/* ---- framework table ---- */
.ail-table { border-top:2px solid var(--ink); }
.ail-row { display:grid; grid-template-columns:1fr 1.6fr; gap:32px; padding:20px 4px; border-bottom:1px solid var(--line); line-height:1.55; color:var(--grey); }
.ail-row strong { color:var(--ink); font-weight:700; }
.ail-row--head { font-size:13px; font-weight:700; text-transform:uppercase; padding-block:14px; }
.ail-row--head > div:first-child { color:var(--grey); }
.ail-row--head > div:last-child { color:var(--coral); }

/* curricula + integrations */
.ail-card--soft { background:var(--pill-bg); border-color:transparent; }
.ail-card--soft:hover { border-color:var(--coral); }
.ail-card--soft p { margin:10px 0 0; color:var(--grey); line-height:1.6; }
.ail-integrations { margin:20px 0 0; padding:18px 24px; border-radius:100px; background:var(--pill-bg); color:var(--ink); font-weight:600; text-align:center; }

/* ---- closing CTA ---- */
.ail-cta { background:var(--ink); color:#fff; border-radius:28px; padding:48px 56px; display:grid; grid-template-columns:1.2fr 1fr; gap:32px 56px; }
.ail-cta h2 { color:#fff; margin-bottom:12px; }
.ail-cta p { margin:0 0 10px; }
.ail-cta a { color:#fff; }
.ail-cta .ail-btn { margin-top:12px; }
.ail-cta__contact p { font-weight:700; font-size:20px; }
.ail-cta__contact .ail-cta__addr { font-weight:400; font-size:14px; opacity:.75; line-height:1.6; }
.ail-cta__legal { grid-column:1/-1; border-top:1px solid rgba(255,255,255,.2); padding-top:20px; font-size:13px; opacity:.7; line-height:1.6; }

@media (max-width:991px) {
  .ail-wrap { padding-inline:20px; }
  .ail-hero { padding:44px 20px 48px; }
  .ail-section { margin-block:48px; }
  .ail-grid--3 { grid-template-columns:1fr; }
  .ail-band { grid-template-columns:1fr; gap:28px; padding:32px 24px; margin-top:48px; }
  .ail-row { grid-template-columns:1fr; gap:6px; }
  .ail-row--head > div:last-child { display:none; }
  .ail-cta { grid-template-columns:1fr; padding:32px 24px; border-radius:20px; }
  .ail-integrations { border-radius:20px; }
}

/* Arabic numerals/words are wider than Latin — keep the big stat on one line. */
html[dir="rtl"] .ail-band strong { font-size:clamp(30px,3.6vw,50px); line-height:1.15; }
html[dir="rtl"] .ail-band .ail-band__cta { font-size:clamp(24px,2.6vw,34px); }
html[dir="rtl"] .ail-label, html[dir="rtl"] .ail-row--head { text-transform:none; }
