/* Schoolio public site — same language as Device Management */
:root {
  --navy: #041647;
  --navy2: #0a2a78;
  --blue: #1677ff;
  --gold: #f9b233;
  --bg: #f2f6ff;
  --card: #ffffff;
  --line: #dbe4f5;
  --text: #14213d;
  --muted: #5b6b8c;
  --r: 16px;
  --font: "Nunito", "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(4, 22, 71, 0.04);
  --shadow-lg: 0 12px 40px rgba(4, 22, 71, 0.1);
  /* aliases used by older rules */
  --schoolio-blue: var(--blue);
  --schoolio-navy: var(--navy);
  --schoolio-white: #fff;
  --schoolio-bg: var(--bg);
  --schoolio-text: var(--text);
  --schoolio-secondary: var(--muted);
  --schoolio-border: var(--line);
  --schoolio-border-subtle: #e8eef8;
  --schoolio-radius: var(--r);
  --schoolio-radius-sm: 12px;
  --schoolio-shadow: var(--shadow);
  --schoolio-shadow-lg: var(--shadow-lg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.schoolio-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
.schoolio-page > .sio-hero,
.schoolio-page > .sio-section,
.schoolio-page > main { flex: 1 0 auto; }
.schoolio-page > .sio-footer { flex-shrink: 0; margin-top: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy2); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons — DM style */
.sio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, color 0.15s;
  text-decoration: none;
  line-height: 1.25;
}
.sio-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.sio-btn-primary:hover { filter: brightness(0.95); color: #fff; }
.sio-btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.sio-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.sio-btn-lg { padding: 12px 22px; font-size: 15px; }
.sio-btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.sio-btn-gold:hover { filter: brightness(0.97); color: var(--navy); }

/* Nav — white top bar like DM top strip */
.sio-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.sio-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.sio-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.sio-brand img {
  height: 96px !important;
  max-height: 96px !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
}
.sio-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.sio-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sio-nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.sio-nav-links a:hover {
  color: var(--navy);
  background: var(--bg);
}
.sio-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sio-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.sio-nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) {
  .sio-nav-toggle { display: flex; }
  .sio-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }
  .sio-nav-menu.open { display: flex; }
  .sio-nav-links { flex-direction: column; width: 100%; }
  .sio-nav-actions { flex-direction: column; width: 100%; }
  .sio-nav-actions .sio-btn { width: 100%; }
}

/* Hero */
.sio-hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 48px 20px 56px;
}
.sio-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.sio-hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sio-hero-content p {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.6;
}
.sio-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sio-hero-visual {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.sio-hero-visual img.sio-hero-img,
.sio-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

@media (max-width: 860px) {
  .sio-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .sio-brand img { height: 72px !important; max-height: 72px !important; }
}

/* Sections & cards — DM card style */
.sio-section { padding: 48px 20px; }
.sio-section-alt { background: #fff; }
.sio-section-inner { max-width: 1200px; margin: 0 auto; }
.sio-section-header { text-align: center; margin-bottom: 28px; }
.sio-section-header h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.sio-section-header p { margin: 0; color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }

.sio-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.sio-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sio-feature:hover {
  border-color: #c5d9ff;
  box-shadow: 0 6px 20px rgba(4, 22, 71, 0.08);
}
.sio-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.sio-feature-icon svg { width: 22px; height: 22px; }
.sio-feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}
.sio-feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA — navy like DM sidebar */
.sio-cta {
  background: linear-gradient(180deg, var(--navy) 0%, #07236a 100%);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.sio-cta h2 { margin: 0 0 10px; font-size: 1.75rem; font-weight: 800; }
.sio-cta p { margin: 0 0 22px; color: #b9c9f5; max-width: 480px; margin-left: auto; margin-right: auto; }
.sio-cta .sio-btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.sio-cta .sio-btn-primary:hover { filter: brightness(0.97); color: var(--navy); }
.sio-cta .sio-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.sio-cta .sio-btn-outline:hover { border-color: #fff; color: #fff; }

/* Footer */
.sio-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 20px 20px;
}
.sio-footer-inner {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.sio-footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 10px 0 0; }
.sio-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.sio-footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.sio-footer-links a:hover { color: var(--blue); }
.sio-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--muted);
}
.sio-footer-bottom a { color: var(--muted); font-weight: 600; }
.sio-footer-bottom a:hover { color: var(--blue); }

/* Login — DM navy panel */
body.schoolio-login {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
.sio-login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sio-login-left {
  background: linear-gradient(180deg, var(--navy) 0%, #07236a 100%);
  color: #dfe8ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}
.sio-login-left-inner { max-width: 400px; }
.sio-login-logo {
  display: flex;
  margin-bottom: 32px;
  text-decoration: none;
}
.sio-login-logo img {
  height: 160px !important;
  max-height: 180px !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  display: block !important;
}
.sio-login-left h1 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.sio-login-left p { margin: 0; color: #b9c9f5; line-height: 1.6; }
.sio-login-features {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.sio-login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 700;
  color: #cfdcff;
}
.sio-login-features li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.sio-login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
}
.sio-login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.sio-login-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.sio-login-card .sio-login-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.sio-login-card label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.sio-login-card input[type="text"],
.sio-login-card input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.sio-login-card input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}
.sio-login-card .sio-btn { width: 100%; margin-top: 8px; }
.sio-login-mobile-brand { display: none; margin-bottom: 16px; }
.sio-login-mobile-brand img {
  height: 48px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.sio-login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.sio-login-footer a { font-weight: 700; }

@media (max-width: 860px) {
  .sio-login-wrap { grid-template-columns: 1fr; }
  .sio-login-left { display: none; }
  .sio-login-mobile-brand { display: block; }
}

/* Register form */
.sio-register-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.sio-register-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
}
.sio-register-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.sio-register-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}
.sio-register-form .sio-err { color: #c62f3b; font-size: 14px; margin: 8px 0; font-weight: 700; }
.sio-register-form .sio-ok { color: #16805a; font-size: 14px; margin: 8px 0; font-weight: 700; }

/* Pricing / updates cards inherit .sio-feature */

/* ===== Login form (password field + toggle) ===== */
.sio-login-logo img {
  height: 160px !important;
  max-height: 180px !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  display: block !important;
}
.sio-login-mobile-brand img {
  height: 64px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sio-login-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.sio-login-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.sio-login-error {
  background: #ffeaec;
  border: 1px solid #f3b4ba;
  color: #c62f3b;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sio-login-error[hidden] { display: none !important; }

.sio-field {
  margin-bottom: 14px;
}
.sio-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.sio-field input[type="text"],
.sio-field input[type="password"],
.sio-login-card input[type="text"],
.sio-login-card input[type="password"] {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}
.sio-field input:focus,
.sio-login-card input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}
.sio-field input[aria-invalid="true"] {
  border-color: #c62f3b;
}

.sio-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.sio-password-wrap input {
  padding-right: 48px !important;
  width: 100%;
  box-sizing: border-box;
}
.sio-pw-toggle {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--muted) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  line-height: 0 !important;
  overflow: hidden !important;
}
.sio-pw-toggle:hover {
  color: var(--navy) !important;
  background: var(--bg) !important;
}
.sio-pw-toggle svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: block !important;
  flex-shrink: 0 !important;
}
.sio-pw-toggle .sio-sr-only,
.sio-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sio-login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
}
.sio-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.sio-remember input { width: auto; margin: 0; accent-color: var(--blue); }
.sio-forgot {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.sio-forgot:hover { text-decoration: underline; }

.sio-login-submit {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.sio-login-submit:hover { filter: brightness(0.95); }
.sio-login-submit:disabled { opacity: 0.65; cursor: wait; }

.sio-login-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #eaf2ff;
  border: 1px solid #c5d9ff;
  border-radius: 12px;
  font-size: 13px;
  color: var(--navy);
}
.sio-login-note[hidden] { display: none !important; }

.sio-login-foot a { font-weight: 700; }


/* Logo on all public pages — always visible */
.sio-brand img,
.sio-footer-brand img,
.sio-login-logo img,
.sio-login-mobile-brand img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain;
}
.sio-brand img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
}
.sio-footer-brand img {
  height: 48px !important;
  width: auto !important;
  background: transparent !important;
}

/* Mobile apps coming soon */
.sio-mobile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.sio-mobile-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #dbe4f5);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(4, 22, 71, 0.04);
  text-align: left;
}
.sio-mobile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--blue, #1677ff);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.sio-mobile-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy, #041647);
}
.sio-mobile-card p {
  margin: 0 0 14px;
  color: var(--muted, #5b6b8c);
  font-size: 0.95rem;
}
.sio-soon {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff6dd;
  color: #9a6200;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sio-login-mobile-brand img {
  height: 96px !important;
  width: auto !important;
  max-width: 280px !important;
}
.sio-nav-inner { min-height: 88px; align-items: center; }
.sio-footer-brand img {
  height: 64px !important;
}
