/* ---------- Tokens ---------- */
:root {
  --color-primary: #4F46E5;
  --color-primary-dark: #4338CA;
  --color-accent: #F59E0B;
  --color-ink: #1E1B2E;
  --color-body: #4B5069;
  --color-muted: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7FB;
  --color-border: #E5E7EB;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --container-w: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/*
  Mobile-first: every rule below is written for small screens by default.
  Layout is progressively enhanced upward via `min-width` media queries at
  640px (tablet) and 960px (desktop) — never the other way around.
*/

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; border-radius: var(--radius-sm); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.section-head p { color: var(--color-muted); }

section { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 22px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--color-ink); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Navbar (mobile: hamburger + slide-down panel) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.navbar--scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--color-ink); }
.navbar__links {
  position: absolute; top: 64px; left: 0; right: 0; background: #fff;
  flex-direction: column; align-items: stretch; padding: 16px 20px 20px; gap: 4px;
  border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  font-weight: 600; font-size: 0.95rem;
  display: none;
}
.navbar__links.open { display: flex; }
.navbar__links a:not(.btn) { color: var(--color-body); padding: 10px 0; }
.navbar__links a:not(.btn):hover { color: var(--color-primary); }
.navbar__links .btn { margin-top: 10px; }
.navbar__toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.navbar__toggle span { width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; }

/* ---------- Hero (mobile: stacked, media below copy) ---------- */
.hero { padding: 48px 0 32px; background: linear-gradient(180deg, #F7F7FF 0%, #FFFFFF 100%); }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
.hero__copy p { font-size: 1.02rem; max-width: 480px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero__meta { font-size: 0.85rem; color: var(--color-muted); }

.mockup {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--color-border);
}
.mockup__bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--color-bg-alt); }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.mockup__body { display: flex; min-height: 260px; }
.mockup__sidebar { width: 52px; background: var(--color-ink); display: flex; flex-direction: column; gap: 14px; padding: 20px 0; align-items: center; }
.mockup__pill { width: 24px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); }
.mockup__pill--active { background: var(--color-accent); width: 30px; }
.mockup__main { flex: 1; padding: 18px; }
.mockup__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mockup__stat { flex: 1 1 100px; background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 12px; }
.mockup__stat strong { display: block; font-size: 1.1rem; color: var(--color-ink); }
.mockup__stat span { font-size: 0.72rem; color: var(--color-muted); }
.mockup__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.mockup__chart div { flex: 1; background: linear-gradient(180deg, var(--color-primary), #8B85F0); border-radius: 6px 6px 0 0; }

/* ---------- School showcase (extensible grid of onboarded schools) ---------- */
.showcase-school { padding: 32px 0; background: var(--color-bg-alt); }
.school-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.school-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 24px;
}
.school-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border);
}
.school-card__id { display: flex; align-items: center; gap: 14px; }
.school-card__mark {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #8B85F0);
  color: #fff; font-size: 0.9rem; font-weight: 800;
}
.school-card__logo {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--color-border); object-fit: contain; background: #fff;
}
.school-card__id h3 { margin: 0 0 2px; font-size: 1.05rem; }
.school-card__id p { margin: 0; font-size: 0.85rem; color: var(--color-muted); }
.school-card__badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; font-weight: 700;
  background: #E0F2FE; color: #075985; border: 1px solid #BAE6FD;
}
/* Active, in-production schools get a green badge */
.school-card__badge--live {
  background: #DCFCE7; color: #166534; border-color: #BBF7D0;
}
/* Demo (unverified / no publish permission) schools get an amber badge instead */
.school-card--demo .school-card__badge {
  background: #FEF3C7; color: #92400E; border-color: #FDE68A;
}
.school-card__overview { margin: 0 0 18px; font-size: 0.92rem; color: var(--color-body); }
.school-card__modules-label {
  display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.module-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.module-tag {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--color-ink);
}
.school-card__disclaimer {
  margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #F0F0FB; font-size: 0.82rem; color: var(--color-muted); line-height: 1.55;
}
.school-card__disclaimer strong { color: var(--color-ink); }

/* ---------- Features (mobile: 1 column, bento cards) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 24px; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #D9D7FB; }
.feature-card__num {
  position: absolute; top: 12px; right: 16px;
  font-size: 1.8rem; font-weight: 800; color: var(--color-border);
}
.feature-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card__icon--indigo { background: #EEEDFC; }
.feature-card__icon--amber { background: #FEF3E2; }
.feature-card__icon--green { background: #E3F9EE; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: 0.92rem; margin: 0; }
.feature-card--lg { background: linear-gradient(155deg, #F7F7FF 0%, #FFFFFF 60%); }

/* ---------- How it works (mobile: 1 column) ---------- */
.how { background: var(--color-bg-alt); }
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step { background: #fff; border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--color-border); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary);
  color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---------- Showcase / product tour ---------- */
.showcase { background: var(--color-bg-alt); }

.tour { position: relative; }

.tour__tabs {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  justify-content: flex-start; margin-bottom: 24px; padding-bottom: 4px;
  scrollbar-width: none;
}
.tour__tabs::-webkit-scrollbar { display: none; }
.tour__tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-body); font-weight: 600; font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tour__tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tour__tab.active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
  box-shadow: var(--shadow-md);
}
.tour__tab-icon { font-size: 1rem; }

/* MacBook-style frame wrapping the tour screens */
.tour__device { position: relative; max-width: 740px; margin: 0 auto 32px; }
.tour__glow {
  position: absolute; inset: -30px -6% auto -6%; height: 200px; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(79, 70, 229, 0.22), transparent 70%);
  pointer-events: none;
}
.tour__device-screen {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #2C2942 0%, #15121D 100%);
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 8px;
  border: 2px solid #443F5C;
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.15);
}
.tour__device-camera {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: #050308;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tour__device-inner {
  background: var(--color-bg-alt);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

/* Keyboard deck: a flat bar wider than the screen with a small darker
   centered notch — simple and reliably visible, no curved-waist trick. */
.tour__device-bottom {
  position: relative; z-index: 1;
  margin-left: -7%; margin-right: -7%;
  height: 14px;
  background: #C7CACA;
  border-radius: 0 0 6px 6px;
}
.tour__device-bottom::after {
  content: "";
  display: block; margin: 0 auto;
  width: 16%; height: 3px;
  border-radius: 0 0 6px 6px;
  background: #9A9E9E;
}

.tour__device-shadow {
  position: absolute; left: -10%; right: -10%; bottom: -25px; z-index: 0;
  height: 20px;
  background: radial-gradient(ellipse closest-side, #000, transparent);
  opacity: 0.35;
}

.tour__stage { position: relative; height: 100%; }

.tour__track {
  position: relative; z-index: 1; display: flex; overflow-x: auto; height: 100%;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tour__track::-webkit-scrollbar { display: none; height: 0; }
.tour__panel { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; }

.tour__captions { margin-top: 24px; }
.tour__caption {
  display: none; text-align: center; max-width: 480px; margin: 0 auto;
}
.tour__caption.active { display: block; }
.tour__caption p { margin: 0; }

/* Expandable pagination dots */
.tour__dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.tour__dot {
  width: 8px; height: 8px; border-radius: 999px; border: none;
  background: var(--color-border); padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.tour__dot:hover { background: #C7C5FA; }
.tour__dot.active { width: 24px; background: var(--color-primary); }

.tour__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.tour__cta-text { display: flex; flex-direction: column; gap: 4px; }
.tour__cta-text p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }
.tour__cta-text p[lang="ne"] { font-size: 0.88rem; }

/* Shared "app frame" used by every showcase mockup */
.app-frame {
  text-align: left; background: #fff; width: 100%;
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.app-frame__bar {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--color-bg-alt);
}
.app-frame__bar span { width: 8px; height: 20px; padding: 0px 10px;  background: var(--color-border); }
.app-frame--browser .app-frame__bar span:nth-child(1) { height: 8px; padding:0px; border-radius: 50%; background: #FF5F57; }
.app-frame--browser .app-frame__bar span:nth-child(2) { height: 8px; padding:0px; border-radius: 50%; background: #FEBC2E; }
.app-frame--browser .app-frame__bar span:nth-child(3) { height: 8px; padding:0px; border-radius: 50%; background: #28C840; }
.app-frame__url {
  margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #fff; border: 1px solid var(--color-border); border-radius: 999px;
  padding: 1px 1px; font-size: 0.7rem; color: var(--color-muted); text-align: left;
}
.app-frame__body { padding: 18px; flex: 1; overflow-y: auto; }

/* Attendance slide — Student | Class | Date | Status, matching the real
   attendance table's columns (see .dm-table-head for the header row). */
.att-row { display: grid; grid-template-columns: 1.8fr 0.8fr 1fr 0.9fr; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.att-row:last-of-type { border-bottom: none; }
.att-student { display: flex; align-items: center; gap: 7px; min-width: 0; }
.att-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--color-primary); color: #fff;
  font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.att-name { font-size: 0.76rem; color: var(--color-ink); font-weight: 600; }
.att-meta { font-size: 0.68rem; color: var(--color-muted); }
.att-pill { justify-self: start; font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.att-pill--present { background: #DCFCE7; color: #15803D; }
.att-pill--absent { background: #FEE2E2; color: #B91C1C; }
.att-pill--late { background: #FEF3C7; color: #B45309; }

/* Fee dashboard slide — Student | Class | Paid | Due | Status, matching the
   real Fees page's Student Ledger table columns. */
.fee-row { display: grid; grid-template-columns: 1.6fr 0.7fr 0.8fr 0.8fr 0.8fr; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 0.74rem; color: var(--color-ink); }
.fee-row:last-child { border-bottom: none; }
.fee-row span:first-child { font-weight: 600; }
.fee-meta { font-size: 0.68rem; color: var(--color-muted); }
.fee-tag { justify-self: start; font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fee-tag--paid { background: #DCFCE7; color: #15803D; }
.fee-tag--due { background: #FEE2E2; color: #B91C1C; }

/* Report card slide */
.report-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 0.74rem; align-items: center; }
.report-row:last-of-type { border-bottom: none; }
.report-row--head { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); font-weight: 700; }
.report-row span:first-child { color: var(--color-ink); font-weight: 600; }
.grade { display: inline-block; font-size: 0.64rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; width: fit-content; }
.grade--a { background: #DCFCE7; color: #15803D; }
.grade--b { background: #FEF3C7; color: #B45309; }
.report-total { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--color-border); font-size: 0.8rem; color: var(--color-ink); font-weight: 700; }

/* Dashboard slide: a "shadow"/skeleton of the real app shell (sidenav +
   header + main) — shapes only, no real data, so it doesn't go stale. */
.app-frame__body--dashboard { padding: 0; display: flex; }
.dash-mock { display: flex; flex: 1; min-height: 0; }
.dash-mock__sidebar {
  width: 56px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--color-border);
  display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 16px;
}
.dash-mock__logo { width: 20px; height: 20px; border-radius: 6px; background: var(--color-primary); flex-shrink: 0; }
.dash-mock__nav { display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: center; }
.dash-mock__nav-item { width: 26px; height: 6px; border-radius: 4px; background: var(--color-border); }
.dash-mock__nav-item--active { width: 32px; background: var(--color-primary); }
.dash-mock__content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-mock__header {
  height: 30px; flex-shrink: 0; border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.dash-mock__header-line { width: 60px; height: 6px; border-radius: 4px; background: var(--color-border); }
.dash-mock__header-icons { display: flex; gap: 5px; align-items: center; }
.dash-mock__header-icons span { width: 11px; height: 11px; border-radius: 50%; background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.dash-mock__header-icons span:last-child { background: var(--color-primary); border-color: var(--color-primary); }
.dash-mock__main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; background: var(--color-bg-alt); overflow: hidden; }
.dash-mock__row { display: flex; gap: 7px; flex: 1; min-height: 0; }
.dash-mock__card { background: #fff; border: 1px solid var(--color-border); border-radius: 7px; min-height: 24px; }
.dash-mock__card--accent { background: rgba(79, 70, 229, 0.12); border-color: rgba(79, 70, 229, 0.25); }

/* Building blocks that mirror the real dashboard home's internal composition
   (hero + stat trio + chart, quick-action grid, table, calendar, list,
   summary) so the "shadow" matches more than just the outer grid. */
.dash-mock__col { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.dash-mock__stat-row { display: flex; gap: 6px; flex: 0 0 auto; }
.dash-mock__stat { flex: 1; min-height: 16px; }
.dash-mock__hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.dash-mock__ring {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--color-primary) 0% 70%, rgba(79, 70, 229, 0.18) 70% 100%);
}
.dash-mock__line { width: 46%; height: 6px; border-radius: 4px; background: rgba(79, 70, 229, 0.32); }
.dash-mock__line--sm { width: 30%; }
.dash-mock__chart { flex: 1; display: flex; align-items: flex-end; gap: 3px; padding: 6px; min-height: 0; }
.dash-mock__chart span { flex: 1; background: rgba(79, 70, 229, 0.35); border-radius: 2px 2px 0 0; }
.dash-mock__chart--wide span { background: var(--color-primary); opacity: 0.4; }
.dash-mock__quick { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; padding: 6px; }
.dash-mock__quick span { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 5px; }
.dash-mock__table { display: flex; flex-direction: column; gap: 6px; padding: 8px; justify-content: center; }
.dash-mock__table span { height: 6px; border-radius: 4px; background: var(--color-border); }
.dash-mock__table span:nth-child(1) { width: 90%; }
.dash-mock__table span:nth-child(2) { width: 75%; }
.dash-mock__table span:nth-child(3) { width: 85%; }
.dash-mock__table span:nth-child(4) { width: 65%; }
.dash-mock__calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 8px; align-content: center; }
.dash-mock__calendar span { aspect-ratio: 1; border-radius: 2px; background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.dash-mock__calendar span:nth-child(9) { background: var(--color-primary); opacity: 0.55; border-color: transparent; }
.dash-mock__list { display: flex; flex-direction: column; gap: 8px; padding: 8px; justify-content: center; }
.dash-mock__list span { height: 6px; border-radius: 4px; background: var(--color-border); width: 78%; }
.dash-mock__summary { display: flex; flex-direction: column; gap: 7px; padding: 8px; justify-content: center; }
.dash-mock__summary span { height: 6px; border-radius: 4px; background: var(--color-border); width: 60%; }
.dash-mock__summary span:last-child { width: 40%; }

/* Same sidenav + header shell, but holding real module content instead of
   skeleton blocks — used by the Attendance/Fees/Report Cards slides so every
   tab reads as the exact in-app layout. */
.dash-mock__main--content {
  display: block; background: #fff; padding: 12px; overflow-y: auto;
}

/* Header/toolbar chrome shared by the Attendance/Fees/Marks slides, mirroring
   each real page's own title row, filters, and stats strip so the main
   content matches that page's actual layout, not just a bare list. */
.dm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dm-head h4 { margin: 0; font-size: 0.8rem; color: var(--color-ink); }
.dm-sub { display: block; font-size: 0.6rem; color: var(--color-muted); margin-top: 2px; }
.dm-btn { flex-shrink: 0; font-size: 0.62rem; font-weight: 700; color: #fff; background: var(--color-primary); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.dm-btn--ghost { background: #fff; color: var(--color-body); border: 1px solid var(--color-border); }
.dm-head__actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.dm-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dm-input { flex: 1 1 70px; min-width: 50px; height: 20px; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-bg-alt); }
.dm-input--sm { flex: 0 0 46px; }
.dm-pillstat { font-size: 0.6rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.dm-pillstat--present { background: #DCFCE7; color: #15803D; }
.dm-pillstat--absent { background: #FEE2E2; color: #B91C1C; }
.dm-pillstat--late { background: #FEF3C7; color: #B45309; }
.dm-toggle { display: flex; gap: 3px; background: var(--color-bg-alt); border-radius: 999px; padding: 2px; }
.dm-toggle__opt { font-size: 0.6rem; font-weight: 600; color: var(--color-muted); padding: 3px 8px; border-radius: 999px; }
.dm-toggle__opt--active { background: #fff; color: var(--color-ink); box-shadow: var(--shadow-sm); }
.dm-exampill { font-size: 0.6rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--color-bg-alt); color: var(--color-muted); border: 1px solid var(--color-border); white-space: nowrap; }
.dm-exampill--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.dm-stats { display: flex; gap: 6px; margin-bottom: 8px; }
.dm-stats > div { flex: 1; background: var(--color-bg-alt); border-radius: var(--radius-sm); padding: 6px 8px; }
.dm-stats span { display: block; font-size: 0.58rem; color: var(--color-muted); margin-bottom: 2px; }
.dm-stats strong { font-size: 0.78rem; color: var(--color-ink); }
.dm-table-head { display: grid; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-muted); font-weight: 700; padding-bottom: 4px; border-bottom: 1px solid var(--color-border); }
.dm-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--color-border); font-size: 0.62rem; color: var(--color-muted); }
.dm-section-label { font-size: 0.6rem; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 4px; }
.dm-payment-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--color-border); font-size: 0.7rem; color: var(--color-ink); }
.dm-payment-row:last-child { border-bottom: none; }
.dm-payment-row span:first-child { color: var(--color-muted); font-size: 0.62rem; }

/* ---------- Testimonials (mobile: 1 column) ---------- */
.testimonials { background: var(--color-bg-alt); }
.testimonial-grid { display: flex; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-md); padding: 24px; margin: 0;
  border: 1px solid var(--color-border);
}
.testimonial-card p { font-style: italic; color: var(--color-ink); }
.testimonial-card footer { font-size: 0.85rem; }
.testimonial-card footer strong { display: block; color: var(--color-ink); }
.testimonial-card footer span { color: var(--color-muted); }

/* ---------- Pricing (mobile: 1 column) ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.pricing-note { text-align: center; margin: 28px 0 0; font-size: 0.88rem; color: var(--color-muted); }
.pricing-card {
  position: relative; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px 24px; display: flex; flex-direction: column;
}
.pricing-card--featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 24px; background: var(--color-accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.pricing-card__price { font-size: 1.7rem; color: var(--color-ink); font-weight: 800; margin: 6px 0; white-space: nowrap; }
.pricing-card__price span { font-size: 0.82rem; font-weight: 500; color: var(--color-muted); white-space: normal; }
.pricing-card__desc { font-size: 0.9rem; }
.pricing-card ul { margin: 0 0 24px; flex: 1; }
.pricing-card li { padding: 8px 0; border-top: 1px solid var(--color-border); font-size: 0.9rem; }
.pricing-card li:first-child { border-top: none; }
.pricing-card li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }

/* ---------- FAQ / accordion ---------- */
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 0; font-size: 0.98rem; font-weight: 600; color: var(--color-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion__trigger::after { content: "+"; font-size: 1.3rem; color: var(--color-primary); flex-shrink: 0; }
.accordion__trigger[aria-expanded="true"]::after { content: "−"; }
.accordion__panel {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
}
.accordion__panel p { padding-bottom: 18px; margin: 0; font-size: 0.92rem; }

/* ---------- CTA (mobile: stacked, single unified panel) ---------- */
.cta {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #EEEDFC 0%, var(--color-bg-alt) 55%, #FFFFFF 100%);
}
.cta::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 560px; height: 280px; z-index: 0;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.16), transparent 72%);
  pointer-events: none;
}
.cta__panel {
  position: relative; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px 24px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.cta__copy p { color: var(--color-muted); }
.cta__benefits { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cta__benefits li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--color-body); }
.cta__benefits li::before {
  content: "✓"; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; background: #EEEDFC;
  color: var(--color-primary); font-size: 0.7rem; font-weight: 700;
}

.cta__form { position: relative; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.8rem; font-weight: 600; color: var(--color-ink); }
.form-row input {
  padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: 16px; font-family: inherit; /* 16px prevents iOS Safari auto-zoom on focus */
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus {
  outline: none; background: #fff; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.form-row input.invalid { border-color: #DC2626; background: #FEF2F2; }
.form-row input.invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.form-error { font-size: 0.78rem; color: #DC2626; min-height: 1em; }
.cta__success {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #ECFDF5; color: #047857; font-weight: 600; font-size: 0.88rem; text-align: center;
}
.cta__error {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #FEF2F2; color: #B91C1C; font-weight: 600; font-size: 0.88rem; text-align: center;
}

/* ---------- Footer (mobile: 1 column) ---------- */
.footer {
  position: relative; background: #14121F; color: #B4B7C6; padding: 48px 0 24px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent)) 1;
}
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__brand p { font-size: 0.9rem; max-width: 260px; }
.footer__credibility { font-size: 0.8rem; color: #7C7F94; margin-top: 6px; max-width: 260px; }
.navbar__logo--footer { color: #fff; margin-bottom: 12px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #383551;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer__social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.footer__col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 0.9rem; padding: 6px 0; }
.footer__col a:hover { color: #fff; }
.newsletter-form {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: #1E1B2E; border: 1px solid #383551; border-radius: 999px;
}
.newsletter-form input {
  flex: 1; min-width: 0; border: none; background: transparent; padding: 8px 12px;
  color: #fff; font-size: 16px;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--color-primary); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.newsletter-form button:hover { background: var(--color-primary-dark); }
.footer__bottom { border-top: 1px solid #26233A; margin-top: 40px; padding-top: 24px; font-size: 0.82rem; }

/* =========================================================
   Tablet and up (>= 640px)
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .feature-grid, .testimonial-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-row--full { grid-column: 1 / -1; }
}

/* =========================================================
   Desktop and up (>= 960px)
   ========================================================= */
@media (min-width: 960px) {
  section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }

  .navbar__inner { height: 72px; }
  .navbar__logo { font-size: 1.15rem; }
  .navbar__links {
    position: static; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; border-bottom: none; box-shadow: none; background: none;
    display: flex;
  }
  .navbar__links a:not(.btn) { padding: 0; }
  .navbar__links .btn { margin-top: 0; }
  .navbar__toggle { display: none; }

  .hero { padding: 88px 0 40px; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero__copy p { font-size: 1.08rem; }
  .hero__cta { margin: 28px 0 14px; }

  .mockup__body { min-height: 320px; }
  .mockup__sidebar { width: 64px; }
  .mockup__pill { width: 28px; }
  .mockup__pill--active { width: 34px; }
  .mockup__main { padding: 24px; }
  .mockup__stats { flex-wrap: nowrap; gap: 16px; margin-bottom: 24px; }
  .mockup__chart { gap: 10px; height: 140px; }

  .showcase-school { padding: 40px 0; }
  .school-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
  .school-card { padding: 32px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .feature-card { padding: 28px; }
  .feature-card--lg { grid-column: span 2; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { padding: 28px; }

  .app-frame__body { padding: 22px; }
  .app-frame__body--dashboard { padding: 0; }
  .app-frame__url { font-size: 0.68rem; }
  .dash-mock__sidebar { width: 68px; gap: 20px; padding: 16px 0; }
  .dash-mock__header { height: 38px; padding: 0 16px; }
  .dash-mock__main { padding: 14px; gap: 10px; }
  .tour__tabs { justify-content: center; }
  .tour__tab { padding: 12px 22px; font-size: 0.92rem; }
  .tour__device-screen { padding: 18px 18px 10px; border-radius: 22px 22px 0 0; }
  .tour__cta { flex-direction: row; justify-content: center; }

  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .testimonial-card { padding: 26px; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-card { padding: 32px 28px; }
  .pricing-grid--4 .pricing-card { padding: 28px 22px; }

  .accordion__trigger { padding: 20px 0; font-size: 1rem; }
  .accordion__panel p { font-size: 0.94rem; }

  .cta__panel { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px; }
  .cta__form { padding-left: 56px; border-left: 1px solid var(--color-border); }
  .form-row input { font-size: 0.95rem; }

  .footer { padding: 64px 0 24px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
  .footer__bottom { margin-top: 48px; }
  .newsletter-form input { font-size: 0.85rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
