/* school.SYS — public landing / sign-in page ("Daftar").
   Same palette and type as the dashboard (school-ui.css). Loaded after
   app.css; replaces the old playful identity.css on this page only. */

html:root,
html:root[data-theme="light"] {
  --canvas: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --line: #E6E3DC;
  --line-strong: #D3CFC6;
  --ink: #0F1114;
  --ink-2: #363B42;
  --ink-3: #575D66;
  --brand: #0F5E4E;
  --brand-hover: #0B4B3E;
  --brand-soft: #E5EFEB;
  --brand-ink: #0B4B3E;
  --on-brand: #FFFFFF;
  --amber: #9A6206;
  --amber-soft: #FBF1DC;
  --red: #B42318;
  --focus: rgba(15, 94, 78, .18);
  --shadow-pop: 0 1px 2px rgba(27,30,34,.06), 0 12px 32px rgba(27,30,34,.12);

  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
  --primary-subtle: var(--brand-soft);
  --primary-light: var(--brand-ink);
  --accent: var(--brand);
  --secondary: var(--brand);
  --danger: var(--red);
  --bg-canvas: var(--canvas);
  --bg-surface: var(--surface);
  --bg-elevated: var(--surface-2);
  --border: var(--line-strong);
  --border-subtle: var(--line);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-tertiary: var(--ink-3);
  --logo-a: var(--brand);
  --logo-b: var(--brand);
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html:root[data-theme="dark"] {
  --canvas: #121416;
  --surface: #191C1F;
  --surface-2: #1E2125;
  --line: #2A2E33;
  --line-strong: #3A3F45;
  --ink: #ECEDEE;
  --ink-2: #AEB3BA;
  --ink-3: #80868E;
  --brand: #3E9C82;
  --brand-hover: #4BAE93;
  --brand-soft: rgba(62, 156, 130, .14);
  --brand-ink: #7FCBB4;
  --on-brand: #0E1513;
  --amber: #E2B15A;
  --amber-soft: rgba(226, 177, 90, .13);
  --red: #F08A80;
  --focus: rgba(62, 156, 130, .28);
  --shadow-pop: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.45);
}

html:root body {
  font-family: var(--font-arabic) !important;
  background: var(--canvas) !important;
  background-image: none !important;
  color: var(--ink) !important;
  -webkit-font-smoothing: antialiased;
}
html:root body :is(h1, h2, h3, h4, .logo) { font-family: var(--font-arabic) !important; letter-spacing: 0 !important; }
html:root body :is(.blob, .float-chip, .glow) { display: none !important; }
html:root body :is(.animate-in, .reveal, .sec.reveal) { animation: none !important; opacity: 1 !important; transform: none !important; }
html:root body .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Navigation ---------- */
html:root body .site-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 90%, transparent) !important;
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
html:root body .site-nav.scrolled { border-bottom-color: var(--line) !important; }
html:root body .site-nav .inner { flex-wrap: nowrap !important; max-width: 1160px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
html:root body .logo { display: inline-flex !important; align-items: center !important; gap: 10px !important; color: var(--ink) !important; text-decoration: none !important; }
html:root body .logo-mark {
  width: 30px !important; height: 30px !important; flex: 0 0 30px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: var(--brand) !important; color: var(--on-brand) !important;
  border: 0 !important; border-radius: 7px !important; box-shadow: none !important; transform: none !important;
}
html:root body .logo-mark svg { width: 17px !important; height: 17px !important; color: var(--on-brand) !important; }
html:root body .logo-text { display: flex; flex-direction: column; line-height: 1.25; }
html:root body .logo-text b { font-size: 15px; font-weight: 600; color: var(--ink); direction: ltr; text-align: right; }
html:root body .logo-text small { font-size: 11.5px; color: var(--ink-3); }
html:root body .nav-links { display: flex; gap: 22px; }
html:root body .nav-links a { color: var(--ink-2) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
html:root body .nav-links a::after { display: none !important; }
html:root body .nav-links a:hover { color: var(--ink) !important; }
html:root body .nav-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
html:root body .nav-text-link { color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; padding: 0 10px; }
html:root body .nav-text-link:hover { color: var(--brand-ink); }

/* ---------- Buttons ---------- */
html:root body .btn {
  height: 38px !important; padding: 0 16px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  background: var(--surface) !important; background-image: none !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 8px !important;
  box-shadow: none !important; transform: none !important; filter: none !important;
  font-family: var(--font-arabic) !important; font-size: 14px !important; font-weight: 500 !important;
  text-decoration: none !important; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease !important;
}
html:root body .btn:hover { background: var(--surface-2) !important; border-color: var(--ink-3) !important; transform: none !important; box-shadow: none !important; }
html:root body .btn::after { display: none !important; }
html:root body .btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--on-brand) !important; }
html:root body .btn-primary:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; }
html:root body .btn-lg { height: 46px !important; padding: 0 22px !important; font-size: 15px !important; }
html:root body :is(.btn, a, button, input, select, textarea):focus-visible { outline: 2px solid var(--brand) !important; outline-offset: 2px !important; }

/* ---------- Hero ---------- */
html:root body .sec { max-width: 1160px; margin: 0 auto; padding: 72px 24px; }
html:root body .sec:first-child { padding-top: 56px; }
html:root body .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  gap: 56px !important;
  align-items: center !important;
  padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
html:root body .hero::before, html:root body .hero::after, html:root body .hero > div::before { display: none !important; }
html:root body .eyebrow { margin: 0 0 14px; color: var(--brand-ink); font-size: 13.5px; font-weight: 600; }
html:root body .hero h1 {
  margin: 0 0 18px !important;
  color: var(--ink) !important;
  font-size: clamp(32px, 4.1vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html:root body .hero h1 .accent-line { color: var(--brand); }
html:root body .lead { max-width: 520px; margin: 0 0 28px !important; color: var(--ink-2) !important; font-size: 17px !important; line-height: 1.85 !important; }
html:root body .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
html:root body .hero-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3) !important; font-size: 13px; }
html:root body .hero-note svg { color: var(--brand); }

/* Product preview: a quiet replica of the real dashboard, not a mock-up with effects. */
html:root body .preview {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(27,30,34,.04), 0 24px 48px -24px rgba(27,30,34,.18);
  overflow: hidden;
}
html:root body .preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
html:root body .preview-school { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
html:root body .preview-logo { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-2); }
html:root body .preview-logo svg { width: 14px; height: 14px; }
html:root body .preview-tag { font-size: 11.5px; color: var(--ink-3); }
html:root body .preview-body { padding: 16px; display: grid; gap: 14px; }
html:root body .preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; }
html:root body .preview-kpis > div { padding: 12px 14px; display: grid; gap: 4px; border-inline-start: 1px solid var(--line); }
html:root body .preview-kpis > div:first-child { border-inline-start: 0; }
html:root body .preview-kpis span { font-size: 12px; color: var(--ink-2); }
html:root body .preview-kpis b { font-size: 21px; font-weight: 600; color: var(--ink); }
html:root body .preview-chart { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 0; }
html:root body .preview-chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink); }
html:root body .preview-chart-head small { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
html:root body .preview-bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-top: 10px; }
html:root body .preview-bars i { flex: 1; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--brand) 24%, var(--surface)); }
html:root body .preview-bars i:last-child { background: var(--brand); }
html:root body .preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
html:root body .preview-table th { text-align: start; font-weight: 500; color: var(--ink-3); padding: 6px 4px; border-bottom: 1px solid var(--line); }
html:root body .preview-table td { padding: 8px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
html:root body .preview-table tr:last-child td { border-bottom: 0; }
html:root body .p-badge { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; }
html:root body .p-badge.ok { background: var(--brand-soft); color: var(--brand-ink); }
html:root body .p-badge.wait { background: var(--amber-soft); color: var(--amber); }

html:root body .trust {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; gap: 0 !important;
  margin-top: 64px !important; padding: 0 !important;
  border-top: 1px solid var(--line) !important; background: none !important; box-shadow: none !important;
}
html:root body .trust span {
  padding: 20px 4px 0 18px !important; background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important;
  color: var(--ink-3) !important; font-size: 13px !important; line-height: 1.7 !important; text-align: start !important;
}
html:root body .trust b { color: var(--ink) !important; font-size: 14px !important; font-weight: 600 !important; }

/* ---------- Sections ---------- */
html:root body .sec-head { max-width: 640px; margin: 0 0 32px !important; text-align: start !important; }
html:root body .sec-head h2 { margin: 0 0 8px !important; color: var(--ink) !important; font-size: 28px !important; font-weight: 700 !important; text-decoration: none !important; }
html:root body .sec-head h2::after, html:root body .sec-head h2::before { display: none !important; }
html:root body .sec-head p { margin: 0 !important; color: var(--ink-2) !important; font-size: 15.5px !important; line-height: 1.8 !important; }

html:root body .feature-grid {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
html:root body .feature,
html:root body .feature:nth-child(n) {
  padding: 24px !important; background: transparent !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  border-bottom: 1px solid var(--line) !important; border-inline-start: 1px solid var(--line) !important;
}
html:root body .feature:nth-child(3n + 1) { border-inline-start: 0 !important; }
html:root body .feature:hover { background: var(--surface-2) !important; transform: none !important; box-shadow: none !important; }
html:root body .feature .icon-box {
  width: 34px !important; height: 34px !important; margin-bottom: 14px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: var(--brand-soft) !important; color: var(--brand-ink) !important;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important; transform: none !important;
}
html:root body .feature .icon-box svg { width: 18px !important; height: 18px !important; color: inherit !important; }
html:root body .feature h3 { margin: 0 0 6px !important; color: var(--ink) !important; font-size: 16px !important; font-weight: 600 !important; }
html:root body .feature p { margin: 0 !important; color: var(--ink-2) !important; font-size: 14px !important; line-height: 1.8 !important; }
html:root body #getting-started .feature::before { display: none !important; }
html:root body #getting-started .feature h3 { color: var(--ink) !important; }

/* Pricing */
html:root body .billing { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--ink-2); font-size: 13.5px; }
html:root body .billing .seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; box-shadow: none !important; }
html:root body .billing .seg button {
  height: 30px; padding: 0 14px; border: 0 !important; border-radius: 6px !important; box-shadow: none !important;
  background: transparent !important; color: var(--ink-2) !important; font-family: var(--font-arabic); font-size: 13px; font-weight: 500; cursor: pointer;
}
html:root body .billing .seg button.active { background: var(--brand-soft) !important; color: var(--brand-ink) !important; }
html:root body #plans-status { color: var(--ink-3) !important; font-size: 13.5px; }
html:root body .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
html:root body .plan {
  padding: 24px !important; background: var(--surface) !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important; transform: none !important;
  display: flex; flex-direction: column; gap: 10px;
}
html:root body .plan:hover { transform: none !important; box-shadow: none !important; }
html:root body .plan.featured { border-color: var(--brand) !important; box-shadow: 0 0 0 1px var(--brand) !important; }
html:root body .plan.featured::before { display: none !important; }
html:root body .plan h3 { margin: 0 !important; color: var(--ink) !important; font-size: 17px !important; font-weight: 600 !important; }
html:root body .plan .plan-desc { margin: 0 !important; color: var(--ink-2) !important; font-size: 13.5px !important; }
html:root body .plan .price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0; }
html:root body .plan .price .val { color: var(--ink) !important; font-size: 30px !important; font-weight: 700 !important; font-family: var(--font-arabic) !important; }
html:root body .plan .price .per { color: var(--ink-3) !important; font-size: 13px; }
html:root body .plan ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
html:root body .plan li { position: relative; padding-inline-start: 22px; color: var(--ink-2) !important; font-size: 13.5px; }
html:root body .plan li::before {
  content: "" !important; position: absolute; inset-inline-start: 2px; top: .55em; width: 10px; height: 6px;
  border-inline-start: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) scaleX(-1);
  background: none !important; border-radius: 0 !important; box-shadow: none !important;
}
html:root body .plan-v-ghost:not(.plan-toggle) { color: var(--brand-ink) !important; font-size: 13.5px; text-align: center; text-decoration: none; }

/* Security & CTA bands */
html:root body .security-band {
  display: grid !important; grid-template-columns: 1.1fr 1fr !important; gap: 40px !important; align-items: start !important;
  padding: 32px !important; background: var(--surface) !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important;
}
html:root body .security-band h3 { margin: 0 0 10px !important; color: var(--ink) !important; font-size: 22px !important; font-weight: 700 !important; }
html:root body .security-band p { margin: 0 !important; color: var(--ink-2) !important; line-height: 1.85 !important; }
html:root body .security-points { display: grid; gap: 12px; }
html:root body .security-points .row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink) !important; font-size: 14px; line-height: 1.7; background: none !important; border: 0 !important; padding: 0 !important; }
html:root body .security-points svg { flex: 0 0 18px; margin-top: 3px; color: var(--brand) !important; }
html:root body .cta-band {
  padding: 44px 40px !important; text-align: start !important;
  background: var(--brand) !important; background-image: none !important;
  border: 0 !important; border-radius: 12px !important; box-shadow: none !important;
}
html:root body .cta-band::before, html:root body .cta-band::after { display: none !important; }
html:root body .cta-band h2 { margin: 0 0 8px !important; color: #FFFFFF !important; font-size: 26px !important; font-weight: 700 !important; }
html:root body .cta-band p { max-width: 640px; margin: 0 0 22px !important; color: rgba(255,255,255,.82) !important; line-height: 1.85 !important; }
html:root body .cta-band .btn-primary { background: #FFFFFF !important; border-color: #FFFFFF !important; color: #0B4B3E !important; }
html:root body .cta-band .btn-primary:hover { background: #F0F5F3 !important; }

html:root body .footer { border-top: 1px solid var(--line) !important; background: transparent !important; box-shadow: none !important; }
html:root body .footer .inner { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-3) !important; font-size: 13px; }
html:root body .footer .logo-mark { box-shadow: none !important; transform: none !important; }

/* ---------- Modals (login / sign-up) ---------- */
html:root body .modal-backdrop { background: rgba(27, 30, 34, .45) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html:root[data-theme="dark"] body .modal-backdrop { background: rgba(0, 0, 0, .6) !important; }
html:root body :is(.modal, .modal.modal-wide) {
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: var(--shadow-pop) !important;
  padding: 28px !important;
}
html:root body .modal-backdrop.open .modal { animation: none !important; }
html:root body .modal h2 { margin: 0 0 4px !important; color: var(--ink) !important; font-size: 20px !important; font-weight: 700 !important; }
html:root body .modal .sub { margin: 0 0 20px !important; color: var(--ink-2) !important; font-size: 13.5px !important; }
html:root body .modal-close {
  width: 32px !important; height: 32px !important; background: transparent !important; color: var(--ink-3) !important;
  border: 1px solid transparent !important; border-radius: 8px !important; box-shadow: none !important; transform: none !important;
}
html:root body .modal-close:hover { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }
html:root body .field { margin-bottom: 14px; }
html:root body .field label, html:root body .modal label { display: block; margin-bottom: 6px; color: var(--ink-2) !important; font-size: 13px !important; font-weight: 500 !important; }
html:root body :is(.input, .modal input:not(:where([type="checkbox"], [type="radio"])), .modal select, .modal textarea) {
  width: 100%; height: 42px; padding: 0 12px !important;
  background: var(--surface) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 8px !important; box-shadow: none !important;
  font-family: var(--font-arabic) !important; font-size: 14px !important;
}
html:root body .modal textarea { height: auto; padding: 10px 12px !important; }
html:root body :is(.input, .modal input, .modal select, .modal textarea):focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--focus) !important; outline: none !important; }
html:root body :is(.input, .modal input)::placeholder { color: var(--ink-3) !important; opacity: 1; }
html:root body .btn-toggle-pw { color: var(--ink-3) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html:root body .modal .btn-primary[type="submit"] { width: 100%; height: 44px !important; }
html:root body .modal-v-ghost { display: block; margin-top: 14px; color: var(--brand-ink) !important; font-size: 13.5px; text-align: center; text-decoration: none; }
html:root body .modal-v-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
html:root body #login-error { margin: 0 0 12px; padding: 10px 12px; background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-radius: 8px; color: var(--red) !important; font-size: 13.5px; }
html:root body #login-error[hidden] { display: none; }
html:root body :is(fieldset, .fieldset-box) { background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  html:root body .hero { grid-template-columns: 1fr !important; gap: 40px !important; }
  html:root body .feature-grid { grid-template-columns: 1fr 1fr !important; }
  html:root body .feature:nth-child(n) { border-inline-start: 1px solid var(--line) !important; }
  html:root body .feature:nth-child(2n + 1) { border-inline-start: 0 !important; }
  html:root body .security-band { grid-template-columns: 1fr !important; }
  html:root body .nav-links { display: none; }
}
@media (max-width: 600px) {
  html:root body .sec { padding: 48px 16px; }
  html:root body .site-nav .inner { padding: 0 16px; gap: 12px; }
  html:root body .nav-cta .btn-primary, html:root body .nav-text-link { display: none !important; }
  html:root body .logo-text small { display: none; }
  html:root body .feature-grid { grid-template-columns: 1fr !important; }
  html:root body .feature:nth-child(n) { border-inline-start: 0 !important; }
  html:root body .preview-kpis b { font-size: 17px; }
  html:root body .cta-band { padding: 28px 22px !important; }
  html:root body .footer .inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html:root body * { transition: none !important; } }

/* In-page anchors land below the sticky navigation. */
html:root { scroll-behavior: smooth; }
html:root body :is(#top, #features, #pricing, #security, #getting-started) { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html:root { scroll-behavior: auto; } }

/* Plan cards list the plan's actual modules. */
html:root body .plan .plan-count { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; }
html:root body .plan-toggle {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  height: 30px; padding: 0 10px; margin: 0 0 6px; cursor: pointer;
  font-family: var(--font-arabic); font-size: 13px; font-weight: 500;
  border-radius: 6px; transition: background-color .12s ease, color .12s ease;
}
html:root body .plan-toggle svg { width: 15px; height: 15px; transition: transform .15s ease; }
/* Closed: an invitation to see more, in the brand colour. */
html:root body .plan-toggle[data-state="closed"] { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid transparent; }
html:root body .plan-toggle[data-state="closed"]:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
/* Open: a quiet secondary action that folds the list back. */
html:root body .plan-toggle[data-state="open"] { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
html:root body .plan-toggle[data-state="open"]:hover { color: var(--ink); border-color: var(--ink-3); }
html:root body .plan-toggle[data-state="open"] svg { transform: rotate(180deg); }
html:root body .plan .btn-primary { margin-top: auto; }
html:root body .plan-modules li[hidden] { display: none !important; }

/* ---------- Document pages (about, policies) ---------- */
html:root body .doc-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
html:root body .doc-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
html:root body .doc-head h1 { margin: 0 0 12px; color: var(--ink); font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; line-height: 1.35; }
html:root body .doc-head .lead { margin: 0 0 12px !important; max-width: none; }
html:root body .doc-updated { margin: 0; color: var(--ink-3); font-size: 13px; }
html:root body .doc-section { padding: 26px 0 4px; }
html:root body .doc-section h2 { margin: 0 0 10px; color: var(--ink); font-size: 19px; font-weight: 600; }
html:root body .doc-section p, html:root body .doc-list { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }
html:root body .doc-section b { color: var(--ink); font-weight: 600; }
html:root body .doc-list { padding-inline-start: 22px; }
html:root body .doc-list li { margin-bottom: 6px; padding-inline-start: 4px; }
html:root body .doc-list li::marker { color: var(--brand); }
html:root body .doc-body a:not(.btn) { color: var(--brand-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
html:root body .doc-body a:not(.btn):hover { text-decoration-color: currentColor; }
html:root body .doc-contact { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
html:root body .doc-contact > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
html:root body .doc-contact > div:last-child { border-bottom: 0; }
html:root body .doc-contact dt { color: var(--ink-3); font-size: 13.5px; }
html:root body .doc-contact dd { margin: 0; color: var(--ink); font-size: 14.5px; }
html:root body .doc-cta { margin-top: 36px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
html:root body .doc-cta h2 { margin: 0 0 4px; color: var(--ink); font-size: 18px; font-weight: 600; }
html:root body .doc-cta p { margin: 0; color: var(--ink-2); font-size: 14px; }
html:root body .nav-links a[aria-current="page"] { color: var(--ink) !important; font-weight: 600; }

/* ---------- Site footer ---------- */
html:root body .site-footer .inner { align-items: flex-start; padding-top: 40px; padding-bottom: 28px; }
html:root body .footer-brand { max-width: 320px; display: grid; gap: 12px; }
html:root body .footer-brand p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
html:root body .footer-links { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 32px; }
html:root body .footer-links h2 { margin: 0 0 10px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
html:root body .footer-links a { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 13.5px; text-decoration: none; }
html:root body .footer-links a:hover { color: var(--brand-ink); }
html:root body .site-footer .footer-bottom { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--line); align-items: center; }
html:root body .footer-bottom a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
html:root body .footer-bottom a:hover { color: var(--brand-ink); }
@media (max-width: 760px) {
  html:root body .site-footer .inner { flex-direction: column; gap: 28px; text-align: start; }
  html:root body .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; width: 100%; }
  html:root body .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; }
}
@media (max-width: 600px) {
  html:root body .doc-page { padding: 36px 16px 56px; }
  html:root body .doc-contact > div { grid-template-columns: 1fr; gap: 2px; }
  html:root body .doc-cta .btn { width: 100%; }
}

/* ---------- Email verification ---------- */
html:root body .modal-row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
html:root body .verify-msg { margin: 6px 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink) !important; font-size: 13.5px; line-height: 1.7; }
html:root body .login-verify { margin-top: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); border-radius: 10px; background: var(--amber-soft); }
html:root body .login-verify-text { margin: 0 0 10px; color: var(--ink) !important; font-size: 13.5px; line-height: 1.8; }
html:root body .login-verify-row { display: flex; gap: 8px; }
html:root body .login-verify-row .input { flex: 1; min-width: 0; height: 38px; }
html:root body .login-verify-row .btn { flex: 0 0 auto; }
html:root body .verify-resend { margin-top: 28px; max-width: 420px; }
@media (max-width: 600px) { html:root body .login-verify-row { flex-direction: column; } }
html:root body .dev-verify { margin: 4px 0 12px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--amber) 55%, var(--line)); border-radius: 10px; background: var(--amber-soft); }
html:root body .dev-verify p { margin: 0 0 10px; color: var(--ink) !important; font-size: 13px; line-height: 1.7; }

/* ---------- Compact school sign-up form ---------- */
html:root body #signup-modal .modal.modal-wide { max-width: 640px !important; width: calc(100% - 32px) !important; padding: 22px 24px !important; max-height: calc(100vh - 32px); overflow-y: auto; }
html:root body #signup-modal .modal h2 { font-size: 18px !important; margin-bottom: 2px !important; }
html:root body #signup-modal .modal .sub { margin-bottom: 14px !important; font-size: 13px !important; }
html:root body #signup-modal .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
html:root body #signup-modal .field { margin-bottom: 10px; min-width: 0; }
html:root body #signup-modal .field label { margin-bottom: 4px; font-size: 12.5px !important; }
html:root body #signup-modal :is(.input, input, select) { height: 36px; padding: 0 10px !important; font-size: 13.5px !important; }
html:root body #signup-modal .field-hint { display: block; margin-top: 4px; color: var(--ink-3) !important; font-size: 11.5px; line-height: 1.6; }
html:root body #signup-modal .btn-primary[type="submit"] { height: 40px !important; margin-top: 4px; }
html:root body #signup-modal .modal-v-ghost { margin-top: 10px; }
@media (max-width: 600px) {
  html:root body #signup-modal .form-grid { grid-template-columns: 1fr; }
  html:root body #signup-modal .modal.modal-wide { padding: 18px 16px !important; }
}

/* Second login step: authenticator code */
html:root body .login-mfa { margin-top: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 10px; background: var(--brand-soft); }
html:root body .login-mfa label { display: block; margin-bottom: 8px; color: var(--ink) !important; font-weight: 600 !important; }
html:root body .login-mfa small { display: block; margin-top: 8px; color: var(--ink-3) !important; font-size: 12px; }
html:root body .login-mfa .input { letter-spacing: 3px; font-size: 16px !important; text-align: center; }

/* Close (X) buttons in brand green so they stand out. */
html:root body :is(.modal-close, .btn-icon[data-close-drawer]), html:root[data-theme] body :is(.modal-close, .btn-icon[data-close-drawer]) { color: var(--brand) !important; background: var(--brand-soft) !important; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent) !important; }
html:root body :is(.modal-close, .btn-icon[data-close-drawer]):hover, html:root[data-theme] body :is(.modal-close, .btn-icon[data-close-drawer]):hover { color: #fff !important; background: var(--brand) !important; border-color: var(--brand) !important; }

/* ---------- Brand logo ---------- */
html:root body .brand-logo { height: 24px; width: auto; display: block; overflow: visible; }
html:root body .logo-text { gap: 4px; }
html:root body .footer .brand-logo { height: 26px; }
