/* ───────────────────────────────────────────────────────────────
   KinderLink — landing styles
   Watercolor pastel theme, elevated to an enterprise standard.
   Single shared sheet for /index.html and /ar/index.html.

   Conventions:
     · Logical properties (inset-inline, margin-inline, padding-inline,
       text-align: start/end) so the SAME rules render correctly LTR
       and RTL. The AR page only sets dir="rtl" — no AR-specific CSS.
     · Fluid type via clamp() so headings scale smoothly 320 → 1440px
       with far fewer breakpoints.
   ─────────────────────────────────────────────────────────────── */

/* ─── Design tokens ───────────────────────────────────────── */
:root {
  /* Palette — lifted from the parent / teacher app */
  --mauve-deep: #4A3663;
  --mauve:      #6B5780;
  --mauve-soft: #B594DB;
  --rose:       #E8A0C0;
  --rose-soft:  #F3E1EA;
  --cream:      #FFFCF7;
  --mauve-tint: #E6DFEE;

  --text:       #2D1F3D;
  --text-soft:  #6B5780;
  --text-muted: #9F8AB0;

  /* Activity accents */
  --art:      #8B5CF6;
  --meal:     #F59E0B;
  --learning: #10B981;
  --wc:       #3B82F6;
  --outdoor:  #06B6D4;
  --nap:      #8B5CF6;
  --heart:    #E24553;

  /* Surfaces */
  --glass:        rgba(255, 255, 255, 0.70);
  --glass-soft:   rgba(255, 255, 255, 0.45);
  --hairline:     rgba(107, 87, 128, 0.12);
  --hairline-200: rgba(107, 87, 128, 0.18);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 24px);

  /* Fluid type scale */
  --fs-h1:  clamp(38px, 6.2vw, 66px);
  --fs-h2:  clamp(28px, 4.2vw, 46px);
  --fs-h3:  clamp(18px, 2.2vw, 22px);
  --fs-lead: clamp(17px, 1.6vw, 20px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 4px 14px rgba(74, 54, 99, 0.10);
  --shadow-md: 0 18px 40px -16px rgba(45, 31, 61, 0.28);
  --shadow-lg: 0 36px 80px -20px rgba(45, 31, 61, 0.40);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The soft watercolor base lives on the root element. A root-element
   background propagates to the whole canvas (the full scrollable area)
   with no `background-attachment: fixed` — which is janky / unsupported
   on iOS Safari and renders black in headless screenshots. */
html {
  background: linear-gradient(135deg, var(--mauve-tint) 0%, var(--rose-soft) 50%, var(--cream) 100%);
  background-color: var(--cream);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Friendlier Arabic font stack on the AR variant */
html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'Noto Naskh Arabic', 'Tajawal', system-ui, sans-serif;
}

/* Floating watercolor blobs — fixed, page-wide */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 620px; height: 620px;
  top: -200px; inset-inline-start: -200px;
  background: radial-gradient(circle, rgba(181, 148, 219, 0.30), transparent 70%);
}
body::after {
  width: 720px; height: 720px;
  top: 220px; inset-inline-end: -260px;
  background: radial-gradient(circle, rgba(232, 160, 192, 0.26), transparent 70%);
}

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

img { max-width: 100%; }

/* ─── Reveal-on-scroll (safe: hidden ONLY when JS is present) ──
   The <html> gets class `js` synchronously from an inline head
   script. Without JS the class never appears, so .reveal stays at
   its natural (visible) state — no blank page in no-JS / print /
   headless contexts. JS adds `.is-in` as elements enter view. */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ─── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; inset-inline-start: -9999px;
  background: var(--mauve-deep); color: white;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

/* ─── Focus visibility ────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--mauve-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─── Header ──────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 247, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
header.site.is-scrolled {
  background: rgba(255, 252, 247, 0.85);
  border-bottom-color: rgba(255,255,255,0.6);
  box-shadow: 0 6px 24px -16px rgba(45, 31, 61, 0.35);
}
.nav-row {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--mauve-deep);
  font-weight: 800; font-size: 19px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(107, 87, 128, 0.25));
}
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  color: var(--text-soft); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
nav.primary a:hover { color: var(--mauve-deep); }

/* "Who we serve" nav dropdown — CSS-only (hover + focus-within) */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-trigger .caret {
  width: 7px; height: 7px; display: inline-block;
  border-inline-end: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease);
}
.nav-item:hover .nav-trigger .caret, .nav-item:focus-within .nav-trigger .caret { transform: translateY(1px) rotate(225deg); }
.nav-menu {
  position: absolute; top: 100%; inset-inline-start: -10px;
  min-width: 210px; padding: 8px;
  background: rgba(255,252,247,0.98);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.65); border-radius: 14px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 120;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-soft); white-space: nowrap; }
.nav-menu a:hover { background: rgba(107,87,128,0.08); color: var(--mauve-deep); }
.nav-menu a svg { width: 17px; height: 17px; color: var(--mauve); flex-shrink: 0; }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.lang-pill {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--hairline-200);
  padding: 8px 14px; border-radius: 999px;
  color: var(--mauve-deep); text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.lang-pill:hover { background: white; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; padding: 11px 18px;
  border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--mauve-deep); color: white;
  box-shadow: 0 4px 14px rgba(74, 54, 99, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(74, 54, 99, 0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--mauve-deep);
  border: 1px solid var(--hairline-200);
}
.btn-ghost:hover { background: white; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* Hamburger — hidden on desktop, shown < 900px */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--hairline-200);
  width: 42px; height: 42px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  color: var(--mauve-deep); cursor: pointer;
}

/* ─── Hero ────────────────────────────────────────────────── */
section.hero { padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 60px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--mauve-deep);
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.6);
}
h1 {
  font-size: var(--fs-h1); line-height: 1.04;
  font-weight: 800; letter-spacing: -2px;
  color: var(--text); margin-bottom: 20px;
}
h1 .grad {
  background: linear-gradient(135deg, var(--mauve-deep), var(--rose));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block;
}
.hero-lead {
  font-size: var(--fs-lead); color: var(--text-soft);
  line-height: 1.55; margin-bottom: 28px; max-width: 540px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 32px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  color: var(--text-muted); font-size: 13px;
}
.hero-trust strong { color: var(--text-soft); font-weight: 600; }
.hero-trust .sep { opacity: 0.5; }

/* ─── Dual-surface hero visual (phone + admin) ────────────── */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-frame {
  width: 100%; max-width: 340px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, var(--mauve-tint) 0%, var(--rose-soft) 32%, var(--cream) 100%);
  border-radius: 46px;
  padding: 26px 15px 13px;
  box-shadow:
    0 0 0 8px #2D1F3D,
    0 0 0 9px #6B5780,
    var(--shadow-lg);
  position: relative; overflow: hidden; z-index: 2;
}
html[lang="ar"] .phone-frame { direction: rtl; }
.phone-frame::before {
  content: ''; position: absolute;
  width: 240px; height: 240px; top: -90px; inset-inline-start: -70px;
  background: radial-gradient(circle, rgba(181, 148, 219, 0.4), transparent 70%);
  border-radius: 50%;
}
.phone-frame::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; bottom: -130px; inset-inline-end: -90px;
  background: radial-gradient(circle, rgba(232, 160, 192, 0.32), transparent 70%);
  border-radius: 50%;
}
.phone-content { position: relative; z-index: 1; }
.phone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phone-logo { color: var(--mauve-deep); font-weight: 800; font-size: 17px; }
.phone-actions { display: flex; gap: 4px; }
.phone-action {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--mauve-deep); font-weight: 700;
}
.child-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-radius: 14px; padding: 10px;
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
}
.child-photo {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #DDB8E0, #F8C7C7, #E8C088);
  flex-shrink: 0;
}
.child-info { flex: 1; }
.child-name { font-weight: 700; font-size: 15px; color: var(--text); }
.child-status { font-size: 10px; color: var(--text-soft); margin-top: 1px; }
.child-tags { display: flex; gap: 4px; margin-top: 5px; }
.child-tag {
  background: rgba(255,255,255,0.7); padding: 2px 7px; border-radius: 999px;
  font-size: 9px; color: var(--text-soft); font-weight: 600;
}
.today-pill { background: rgba(255,255,255,0.8); border-radius: 12px; padding: 4px 10px; text-align: center; }
.today-pill .num { font-size: 14px; font-weight: 800; color: var(--text); }
.today-pill .lbl { font-size: 7px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.4px; }
.child-pills { display: flex; gap: 6px; margin-bottom: 10px; }
.child-pill {
  padding: 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.7); color: var(--text-soft);
  display: flex; gap: 4px; align-items: center;
}
.child-pill.active { background: var(--mauve-deep); color: white; }
.child-pill .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #DDB8E0, #F8C7C7); }
.activity-row {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.4);
}
.activity-row:last-child { border: none; }
.activity-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.activity-icon.art      { background: rgba(139,92,246,0.16); }
.activity-icon.meal     { background: rgba(245,158,11,0.16); }
.activity-icon.outdoor  { background: rgba(6,182,212,0.16); }
.activity-icon.learning { background: rgba(16,185,129,0.16); }
.activity-icon.nap      { background: rgba(139,92,246,0.16); }
.activity-body { flex: 1; min-width: 0; }
.activity-titlerow { display: flex; gap: 6px; align-items: center; }
.activity-title { font-size: 11px; font-weight: 800; }
.activity-title.art      { color: var(--art); }
.activity-title.meal     { color: var(--meal); }
.activity-title.outdoor  { color: var(--outdoor); }
.activity-title.learning { color: var(--learning); }
.activity-title.nap      { color: var(--nap); }
.mood-chip {
  background: rgba(255,255,255,0.65); border-radius: 999px; padding: 1px 6px;
  font-size: 9px; color: var(--text-soft); font-weight: 600;
}
.activity-text { font-size: 10px; color: var(--text); margin-top: 2px; line-height: 1.35; }
.activity-meta { font-size: 8px; color: var(--text-muted); margin-top: 3px; }
.activity-thumb {
  width: 38px; height: 38px; border-radius: 7px;
  background: linear-gradient(135deg, #DDB8E0, #F8C7C7);
  flex-shrink: 0; position: relative;
}
.activity-thumb-heart {
  position: absolute; top: -2px; inset-inline-start: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--heart); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Admin mini-window peeking from behind the phone — the second surface */
.admin-mock {
  position: absolute;
  inset-inline-end: -28px; bottom: -26px;
  width: 280px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  z-index: 3;
}
.admin-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.admin-bar .dot { width: 8px; height: 8px; border-radius: 50%; }
.admin-bar .r { background: #F6A6A6; } .admin-bar .y { background: #F3C77B; } .admin-bar .g { background: #A6D6A6; }
.admin-bar .title { margin-inline-start: 6px; font-size: 10px; font-weight: 700; color: var(--mauve-deep); }
.admin-rowhead { font-size: 9px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.admin-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(107,87,128,0.08); }
.admin-row:last-child { border: none; }
.admin-av { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #DDB8E0, #F8C7C7); flex-shrink: 0; }
.admin-meta { flex: 1; min-width: 0; }
.admin-nm { font-size: 11px; font-weight: 700; color: var(--text); }
.admin-sub { font-size: 8.5px; color: var(--text-muted); }
.admin-chip { font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.admin-chip.in  { background: rgba(16,185,129,0.16); color: var(--learning); }
.admin-chip.inv { background: rgba(139,92,246,0.16); color: var(--art); }

/* ─── Trust / compliance bar ──────────────────────────────── */
section.trustbar { padding: 8px 0 4px; }
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; padding: 14px;
  background: rgba(255,255,255,0.40);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.6);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.trust-chip svg { width: 16px; height: 16px; color: var(--mauve); flex-shrink: 0; }

/* ─── Stats strip ─────────────────────────────────────────── */
section.stats { padding: 30px 0; }
.stats-row {
  display: flex; justify-content: center; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap;
  padding: 24px 32px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 24px;
}
.stat-cell { text-align: center; }
.stat-num {
  font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--mauve-deep), var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px;
}

/* ─── Who we serve ────────────────────────────────────────── */
section.who { padding: clamp(48px, 6vw, 70px) 0 0; }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.who-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 24px; padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  scroll-margin-top: 90px;
}
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.who-ic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.who-ic.pre { background: rgba(139,92,246,0.16); } .who-ic.cen { background: rgba(6,182,212,0.16); }
.who-ic svg { width: 26px; height: 26px; }
.who-ic.pre svg { color: var(--art); } .who-ic.cen svg { color: var(--outdoor); }
.who-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.who-card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }
@media (max-width: 760px) { .who-grid { grid-template-columns: 1fr; } }

/* ─── Curriculum (Montessori highlighted) ─────────────────── */
section.curriculum { padding: clamp(56px, 7vw, 80px) 0; }
.curr-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: stretch; }
.curr-feature {
  position: relative;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 2px solid var(--mauve-soft); border-radius: 24px; padding: 32px;
}
.curr-badge {
  position: absolute; top: 22px; inset-inline-end: 24px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--mauve-deep); color: #fff;
}
.curr-feature-ic { width: 56px; height: 56px; border-radius: 15px; background: rgba(139,92,246,0.16); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.curr-feature-ic svg { width: 28px; height: 28px; color: var(--art); }
.curr-feature h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.curr-feature > p { font-size: 15px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; max-width: 480px; }
.curr-feature ul { list-style: none; }
.curr-feature li { padding: 6px 0; color: var(--text-soft); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.curr-feature li::before { content: '✓'; color: var(--mauve); font-weight: 800; flex-shrink: 0; }

.curr-others {
  background: var(--glass-soft); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column;
}
.curr-others h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--mauve); font-weight: 800; margin-bottom: 16px; }
.curr-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.curr-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.curr-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mauve-soft); flex-shrink: 0; }
.curr-note { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 860px) { .curr-layout { grid-template-columns: 1fr; } }

/* Dropdown inside the mobile drawer — render the sub-items inline */
@media (max-width: 900px) {
  .nav-item { position: static; display: block; width: 100%; }
  .nav-trigger .caret { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0; min-width: 0; gap: 0;
  }
  nav.primary.is-open .nav-item > a { display: block; }
  nav.primary.is-open .nav-menu a { display: flex; padding-inline-start: 22px; font-size: 15px; }
}

/* ─── Section headings ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block; font-size: 13px;
  color: var(--mauve); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px;
}
h2 {
  font-size: var(--fs-h2); font-weight: 800;
  letter-spacing: -1.2px; color: var(--text);
  margin-bottom: 16px; line-height: 1.1;
}
.section-lead {
  font-size: var(--fs-lead); color: var(--text-soft);
  max-width: 620px; line-height: 1.55; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-lead a { color: var(--mauve-deep); }

/* ─── Features ────────────────────────────────────────────── */
section.features { padding: clamp(60px, 8vw, 90px) 0 clamp(40px, 5vw, 60px); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 28px; border-radius: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.85);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.feature-icon.art      { background: rgba(139,92,246,0.18); }
.feature-icon.meal     { background: rgba(245,158,11,0.18); }
.feature-icon.learning { background: rgba(16,185,129,0.18); }
.feature-icon.wc       { background: rgba(59,130,246,0.18); }
.feature-icon.outdoor  { background: rgba(6,182,212,0.18); }
.feature-icon.nap      { background: rgba(139,92,246,0.18); }
.feature-icon.safety   { background: rgba(220,38,38,0.16); }
.feature-card h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 6px; color: var(--text); letter-spacing: -0.3px; }
.feature-card p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; }

/* ─── Timeline ────────────────────────────────────────────── */
section.timeline { padding: clamp(56px, 7vw, 80px) 0; }
.timeline-track {
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
}
.timeline-row {
  display: flex; gap: clamp(12px, 2vw, 20px); align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid rgba(107, 87, 128, 0.08);
}
.timeline-row:last-child { border: none; padding-bottom: 0; }
.timeline-row:first-child { padding-top: 0; }
.timeline-time { width: 70px; flex-shrink: 0; color: var(--mauve); font-weight: 700; font-size: 13px; padding-top: 12px; }
.timeline-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.timeline-body { flex: 1; padding-top: 4px; }
.timeline-title { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.timeline-text { font-size: 14px; color: var(--text-soft); line-height: 1.5; }

/* ─── Roles ───────────────────────────────────────────────── */
section.roles { padding: clamp(56px, 7vw, 80px) 0; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px; padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.role-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; margin-bottom: 14px;
}
.role-card.parent  .role-tag { background: rgba(139,92,246,0.18);  color: var(--art); }
.role-card.teacher .role-tag { background: rgba(16,185,129,0.18);  color: var(--learning); }
.role-card.admin   .role-tag { background: rgba(245,158,11,0.18);  color: var(--meal); }
.role-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.role-card ul { list-style: none; }
.role-card li {
  padding: 7px 0; color: var(--text-soft); font-size: 14.5px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
.role-card li::before { content: '✓'; color: var(--mauve); font-weight: 800; flex-shrink: 0; }
/* Manager gets its own accent (amber); parent=purple, teacher=green */
.role-card.manager .role-tag { background: rgba(245,158,11,0.18); color: var(--meal); }

/* ── Compact app mockup shown at the top of each role card ── */
.app-phone {
  width: 100%; max-width: 218px; margin: 0 auto 22px;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, var(--mauve-tint) 0%, var(--rose-soft) 38%, var(--cream) 100%);
  border-radius: 32px; padding: 15px 10px 10px;
  box-shadow: 0 0 0 6px #2D1F3D, 0 0 0 7px #6B5780, var(--shadow-md);
  position: relative; overflow: hidden;
}
html[lang="ar"] .app-phone { direction: rtl; }
.mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mp-logo { font-size: 12px; font-weight: 800; color: var(--mauve-deep); }
.mp-dots { display: flex; gap: 4px; }
.mp-dots span { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.mp-card { background: rgba(255,255,255,0.6); border-radius: 11px; padding: 8px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.mp-av { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #DDB8E0, #F8C7C7, #E8C088); flex-shrink: 0; }
.mp-meta { flex: 1; min-width: 0; }
.mp-nm { font-size: 11px; font-weight: 700; color: var(--text); }
.mp-sub { font-size: 9px; color: var(--text-muted); }
.mp-chip { font-size: 8.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.mp-chip.in  { background: rgba(16,185,129,0.18); color: var(--learning); }
.mp-chip.out { background: rgba(159,138,176,0.20); color: var(--text-muted); }
.mp-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,0.45); }
.mp-row:last-child { border: none; }
.mp-ic { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.mp-ic.art { background: rgba(139,92,246,0.16); } .mp-ic.meal { background: rgba(245,158,11,0.16); } .mp-ic.nap { background: rgba(139,92,246,0.16); }
.mp-t { font-size: 10px; color: var(--text); }
.mp-cta { margin-top: 9px; text-align: center; font-size: 10px; font-weight: 800; color: var(--learning); background: rgba(16,185,129,0.14); border-radius: 999px; padding: 7px; }
.mp-stat { background: rgba(255,255,255,0.62); border-radius: 11px; padding: 9px 11px; margin-bottom: 9px; display: flex; align-items: baseline; gap: 7px; }
.mp-stat .n { font-size: 18px; font-weight: 800; color: var(--meal); }
.mp-stat .l { font-size: 9.5px; color: var(--text-soft); font-weight: 600; }
.mp-ratio { margin-bottom: 9px; }
.mp-ratio .top { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; color: var(--text-soft); margin-bottom: 3px; }
.mp-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.6); overflow: hidden; }
.mp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mauve-deep), var(--rose)); }

/* ── Admin web portal strip (the fourth surface) ── */
.admin-strip {
  display: flex; align-items: center; gap: 18px;
  margin-top: 24px; padding: 22px 26px;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 22px;
}
.admin-strip .ic {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: rgba(107,87,128,0.12);
  display: flex; align-items: center; justify-content: center;
}
.admin-strip .ic svg { width: 24px; height: 24px; color: var(--mauve-deep); }
.admin-strip h3 { font-size: 17px; font-weight: 800; margin-bottom: 3px; letter-spacing: -0.3px; }
.admin-strip p { font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.admin-strip .tag {
  margin-inline-start: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(107,87,128,0.12); color: var(--mauve-deep);
}
@media (max-width: 620px) {
  .admin-strip { flex-wrap: wrap; gap: 12px; }
  .admin-strip .tag { margin-inline-start: 0; }
}

/* ─── Security & compliance (NEW) ─────────────────────────── */
section.security { padding: clamp(56px, 7vw, 80px) 0; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px; padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sec-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(107, 87, 128, 0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sec-icon svg { width: 22px; height: 22px; color: var(--mauve-deep); }
.sec-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.sec-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ─── How to get started (NEW) ────────────────────────────── */
section.steps { padding: clamp(56px, 7vw, 80px) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px; padding: 30px 26px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--mauve-deep), var(--mauve));
  color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px -6px rgba(74,54,99,0.5);
}
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.step-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ─── FAQ ─────────────────────────────────────────────────── */
section.faq { padding: clamp(56px, 7vw, 80px) 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq-item {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px; padding: 18px 24px; margin-bottom: 12px;
}
details.faq-item summary {
  font-weight: 700; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16px; cursor: pointer; letter-spacing: -0.2px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; font-size: 22px; color: var(--mauve); font-weight: 600;
  transition: transform 0.2s; flex-shrink: 0;
}
details.faq-item[open] summary { margin-bottom: 12px; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
details.faq-item p a { color: var(--mauve-deep); }

/* ─── CTA band ────────────────────────────────────────────── */
section.cta-band { padding: clamp(48px, 6vw, 60px) 0 clamp(64px, 8vw, 90px); }
.cta-card {
  background: linear-gradient(135deg, #4A3663 0%, #6B5780 50%, #8A5F7D 100%);
  border-radius: 32px; padding: clamp(40px, 6vw, 60px) clamp(24px, 4vw, 40px);
  text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute;
  width: 320px; height: 320px; top: -110px; inset-inline-start: -60px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); border-radius: 50%;
}
.cta-card::after {
  content: ''; position: absolute;
  width: 380px; height: 380px; bottom: -180px; inset-inline-end: -90px;
  background: radial-gradient(circle, rgba(232, 160, 192, 0.3), transparent 70%); border-radius: 50%;
}
.cta-card h2 {
  color: white; font-size: clamp(26px, 4vw, 38px);
  margin: 0 auto 12px; max-width: 720px; position: relative; z-index: 1; line-height: 1.15;
}
.cta-card p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-card .btn { position: relative; z-index: 1; background: white; color: var(--mauve-deep); font-size: 15px; padding: 14px 26px; }

/* ─── Footer ──────────────────────────────────────────────── */
footer.site { padding: 44px 0 32px; border-top: 1px solid rgba(107, 87, 128, 0.1); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .brand { font-size: 17px; }
.footer-tag { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 14px; font-weight: 800; }
.footer-col a { display: block; color: var(--text-soft); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--mauve-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid rgba(107, 87, 128, 0.1);
  color: var(--text-muted); font-size: 13px;
}

/* ─── Sticky mobile CTA (NEW) ─────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.6);
}
.mobile-cta .btn { width: 100%; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .roles-grid, .sec-grid, .steps-grid { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }

  /* Mobile nav drawer — the fix. Opens as a full-width panel below the bar. */
  nav.primary.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; inset-inline: 0; top: 100%;
    background: rgba(255, 252, 247, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-md);
    padding: 8px var(--gutter) 16px;
  }
  nav.primary.is-open a {
    padding: 14px 4px; font-size: 16px;
    border-bottom: 1px solid rgba(107,87,128,0.08);
  }
  nav.primary.is-open .drawer-ctas {
    display: flex; flex-direction: column; gap: 10px; margin-top: 14px;
  }
  nav.primary.is-open .drawer-ctas .btn { width: 100%; }

  .hero-visual { margin-top: 24px; }
  .admin-mock { inset-inline-end: -8px; bottom: -16px; width: 240px; }
  .timeline-track { padding: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .mobile-cta { display: block; }
  /* keep content clear of the sticky bar */
  body { padding-bottom: 76px; }
}

/* Hide drawer CTAs on desktop where the header already shows them */
.drawer-ctas { display: none; }

@media (max-width: 560px) {
  .nav-row { gap: 8px; padding: 12px var(--gutter); }
  h1 { letter-spacing: -1.2px; }
  .feature-card, .role-card, .sec-card, .step-card { padding: 24px; }
  .admin-mock { display: none; }   /* phone alone reads cleaner on small screens */
  .footer-top { grid-template-columns: 1fr; }
  .stats-row { gap: 22px 36px; padding: 20px; }
}
