/* School Pulse marketing site — shared stylesheet */

:root {
  /* Brand accent — blue, used sparingly (CTAs, links, active states, highlights) */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-primary-soft: #EFF6FF; /* tinted backgrounds for badges/active states only */
  --color-primary-soft-border: #BFDBFE;

  /* Ink / near-black text + dark surfaces */
  --color-ink: #0F172A;
  --color-ink-soft: #334155;
  --color-muted: #64748B;

  /* Neutral surfaces — majors are black & white, not blue */
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F5;      /* alternating section / neutral panel background */
  --color-surface-alt: #FAFAFA;  /* lighter neutral panel background */
  --color-card: #FFFFFF;         /* card / mockup / price-card surface */
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;

  /* Header / overlay surfaces */
  --color-header-bg: rgba(255,255,255,.92);

  /* Always-dark full-bleed surfaces (footer, CTA banner) */
  --color-ink-surface: #0F172A;

  /* Semantic status — out of scope for the blue reduction, kept as-is */
  --color-success: #16A34A;
  --color-success-bg: #DCFCE7;
  --color-success-text: #15803D;
  --color-error: #DC2626;
  --color-error-bg: #FEE2E2;
  --color-error-text: #B91C1C;
  --color-warning: #D97706;
  --color-warning-bg: #FEF3C7;
  --color-warning-text: #B45309;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Dark mode (system preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #3B82F6;
    --color-primary-dark: #60A5FA;
    --color-primary-light: #60A5FA;
    --color-primary-soft: rgba(59,130,246,.16);
    --color-primary-soft-border: rgba(59,130,246,.35);

    --color-ink: #F8FAFC;
    --color-ink-soft: #CBD5E1;
    --color-muted: #94A3B8;

    --color-bg: #000000;
    --color-surface: #141414;
    --color-surface-alt: #111111;
    --color-card: #141414;
    --color-border: #2A2A2A;
    --color-white: #FFFFFF;

    --color-header-bg: rgba(10,10,10,.85);
    --color-ink-surface: #0A0A0A;

    --color-success: #4ADE80;
    --color-success-bg: rgba(74,222,128,.16);
    --color-success-text: #86EFAC;
    --color-error: #F87171;
    --color-error-bg: rgba(248,113,113,.16);
    --color-error-text: #FCA5A5;
    --color-warning: #FBBF24;
    --color-warning-bg: rgba(251,191,36,.16);
    --color-warning-text: #FCD34D;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
  }
}

/* ---------- Dark mode (manual override, always wins) ---------- */
:root[data-theme="dark"] {
  --color-primary: #3B82F6;
  --color-primary-dark: #60A5FA;
  --color-primary-light: #60A5FA;
  --color-primary-soft: rgba(59,130,246,.16);
  --color-primary-soft-border: rgba(59,130,246,.35);

  --color-ink: #F8FAFC;
  --color-ink-soft: #CBD5E1;
  --color-muted: #94A3B8;

  --color-bg: #000000;
  --color-surface: #141414;
  --color-surface-alt: #111111;
  --color-card: #141414;
  --color-border: #2A2A2A;
  --color-white: #FFFFFF;

  --color-header-bg: rgba(10,10,10,.85);
  --color-ink-surface: #0A0A0A;

  --color-success: #4ADE80;
  --color-success-bg: rgba(74,222,128,.16);
  --color-success-text: #86EFAC;
  --color-error: #F87171;
  --color-error-bg: rgba(248,113,113,.16);
  --color-error-text: #FCA5A5;
  --color-warning: #FBBF24;
  --color-warning-bg: rgba(251,191,36,.16);
  --color-warning-text: #FCD34D;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}
.section-tight { padding: 40px 0; }
.section-alt { background: var(--color-surface); }

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .section-tight { padding: 28px 0; }
  .container { padding: 0 18px; }
}
@media (max-width: 400px) {
  .container { padding: 0 16px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: 44px; letter-spacing: -0.02em; }
h2 { font-size: 32px; letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--color-ink-soft); }
.lead { font-size: 19px; color: var(--color-ink-soft); }
.text-center { text-align: center; }
.muted { color: var(--color-muted); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .lead { font-size: 17px; }
  .section-head { margin-bottom: 32px; }
  .section-head.left { margin-bottom: 24px; }
}
@media (max-width: 390px) {
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  min-height: 44px;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: var(--color-card); color: var(--color-ink); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { text-decoration: underline; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-ink);
  min-width: 0;
}
/* Logo mark: two <img> tags (logo-light/logo-dark), toggled by theme -
   mirrors this file's existing light/dark custom-property pattern exactly
   (system-dark media query guarded by :not([data-theme=light]), then a
   manual [data-theme=dark] override that always wins) so the logo switches
   in lockstep with every other themed color on the page. Sized to the
   brand wordmark's own line-height (22px font, 1.2 line-height ~= 26px)
   rather than a fixed px value, so they always match. */
.brand-mark {
  height: 1.2em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { height: 100%; width: auto; display: block; }
.brand-mark .logo-dark { display: none; }
.brand-mark .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-mark .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand-mark .logo-light { display: none; }
:root[data-theme="dark"] .brand-mark .logo-dark { display: block; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--color-primary); background: var(--color-primary-soft); }
.nav-caret { transition: transform .15s ease; }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}
.dropdown a:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.dropdown a span { font-weight: 400; font-size: 12.5px; color: var(--color-muted); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn { font-size: 14px; padding: 10px 18px; }
.signin-link { padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--color-ink-soft); }
.signin-link:hover { color: var(--color-primary); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger svg { width: 20px; height: 20px; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 12px 24px 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel .m-link {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.mobile-panel .m-group summary {
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}
.mobile-panel .m-group summary::-webkit-details-marker { display: none; }
.mobile-panel .m-sub { padding: 4px 4px 8px 16px; }
.mobile-panel .m-sub a { display: block; padding: 10px 0; color: var(--color-ink-soft); font-weight: 500; font-size: 14.5px; }
.mobile-panel .m-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 900px) {
  .nav-main, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 400px) {
  .nav-wrap { padding: 0 16px; height: 60px; }
  .brand { font-size: 16px; }
  .mobile-panel { padding: 10px 16px 20px; }
}

/* ---------- Footer (compact, always near-black, white text — full-bleed dark surface) ---------- */
.site-footer { background: var(--color-ink-surface); color: #fff; padding: 32px 0 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }

.footer-top-row { display: flex; align-items: flex-start; gap: 40px; }
.footer-brand { flex: 1.4; min-width: 0; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.footer-brand p { color: #94A3B8; margin-top: 10px; font-size: 14px; max-width: 320px; }

/* Desktop link row: Product + Company columns, hidden on mobile in favour of accordions */
.footer-links-desktop { display: flex; gap: 48px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: #94A3B8; }
.footer-col a:hover { color: #fff; }

.footer-cta { flex-shrink: 0; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.12); align-self: center; }

/* CTA */
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-light, #3B82F6);
  font-size: 14.5px;
  font-weight: 600;
}
.footer-cta-btn:hover { text-decoration: underline; }

/* Mobile accordions: hidden by default, shown under 700px */
.footer-links-mobile { display: none; width: 100%; }
.footer-accordion { border-top: 1px solid rgba(255,255,255,.12); }
.footer-accordion:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  font-family: inherit;
}
.footer-accordion-icon { width: 18px; height: 18px; color: #94A3B8; display: inline-flex; transition: transform .2s ease; }
.footer-accordion-icon svg { width: 100%; height: 100%; }
.footer-accordion-trigger[aria-expanded="true"] .footer-accordion-icon { transform: rotate(180deg); }
.footer-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.footer-accordion-panel a { display: block; padding: 8px 0; font-size: 14px; color: #94A3B8; }
.footer-accordion-panel a:hover { color: #fff; }

/* Bottom row: divider + copyright + legal links + social icons */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #94A3B8;
}
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal a { color: #94A3B8; }
.footer-legal a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--color-primary-light, #3B82F6); color: #fff; }

@media (max-width: 700px) {
  .footer-top-row { flex-direction: column; gap: 20px; }
  .footer-links-desktop { display: none; }
  .footer-links-mobile { display: block; }
  .footer-cta { border-left: none; padding-left: 0; align-self: stretch; }
  .site-footer { padding: 32px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: 44px; line-height: 1.08; margin-bottom: 16px; }
.hero .eyebrow { margin-bottom: 14px; }
.hero .lead { margin-bottom: 24px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1, h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 28px; }
  .hero-grid { gap: 24px; }
  .hero h1, h1 { font-size: 28px; }
}
@media (max-width: 390px) {
  .hero { padding: 24px 0 24px; }
  .hero h1, h1 { font-size: 25px; }
}

/* ---------- Homepage: compact section rhythm ---------- */
.home-section { padding: 72px 0; }
.home-section.section-tight { padding: 56px 0; }
.home-section .section-head { margin-bottom: 36px; }
@media (max-width: 640px) {
  .home-section { padding: 44px 0; }
  .home-section.section-tight { padding: 32px 0; }
  .home-section .section-head { margin-bottom: 24px; }
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
@media (max-width: 480px) {
  .card { padding: 18px; }
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14.5px; color: var(--color-ink-soft); }
.checklist svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; margin-top: 3px; }

/* ---------- Mockup panel (fake product UI) ---------- */
.mockup {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.mockup-dot:nth-child(1) { background: #FCA5A5; }
.mockup-dot:nth-child(2) { background: #FCD34D; }
.mockup-dot:nth-child(3) { background: #86EFAC; }
.mockup-url { margin-left: 12px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 6px; padding: 4px 12px; font-size: 12px; color: var(--color-muted); }
.mockup-body { padding: 24px; overflow-x: auto; }
@media (max-width: 480px) {
  .mockup-body { padding: 16px; }
  .mockup-chrome { padding: 10px 12px; }
  .mockup-url { margin-left: 8px; font-size: 11px; padding: 3px 8px; }
}

.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.stat-pill.green { background: var(--color-success-bg); color: var(--color-success-text); }
.stat-pill.red { background: var(--color-error-bg); color: var(--color-error-text); }
.stat-pill.amber { background: var(--color-warning-bg); color: var(--color-warning-text); }
.stat-pill.blue { background: var(--color-primary-soft); color: var(--color-primary); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-red { background: var(--color-error-bg); color: var(--color-error-text); }
.badge-amber { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-blue { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-gray { background: var(--color-surface); color: var(--color-muted); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--color-muted); padding: 10px 12px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
table.data-table td { padding: 12px; border-bottom: 1px solid var(--color-border); color: var(--color-ink-soft); }
table.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Numbered steps ---------- */
.steps { display: grid; gap: 24px; }
.step { display: flex; gap: 16px; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps-row { grid-template-columns: repeat(4, 1fr); }
.steps-row .step { flex-direction: column; text-align: left; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- CTA banner (always near-black, white text) ---------- */
.cta-banner {
  background: var(--color-ink-surface);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #CBD5E1; }
@media (max-width: 560px) {
  .cta-banner { padding: 32px 22px; }
}

/* ---------- Pricing cards ---------- */
#pricingTiersGrid { gap: 14px; }
.price-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.price-card .tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.price-card-head { margin-bottom: 10px; }
.price-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.price-range { font-size: 11.5px; color: var(--color-muted); margin: 2px 0 0; }

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0;
  margin-bottom: 10px;
  border-top: 1px solid var(--color-border);
}
.price-currency { font-size: 11px; font-weight: 600; color: var(--color-muted); }
.price-value { font-size: 19px; font-weight: 800; color: var(--color-ink); letter-spacing: -.01em; }
.price-per { font-size: 11px; font-weight: 500; color: var(--color-muted); }

.price-features { margin: 0 0 14px; flex: 1; }
.price-features li { padding: 2px 0; font-size: 12.5px; }
.price-features svg { width: 14px; height: 14px; margin-top: 3px; }

.price-card .btn-block { padding: 8px 12px; font-size: 13px; margin-top: auto; }

@media (max-width: 900px) {
  #pricingTiersGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  #pricingTiersGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  #pricingTiersGrid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field .hint { font-size: 12.5px; color: var(--color-muted); margin-top: 6px; }
.form-field .error-text { font-size: 12.5px; color: var(--color-error); margin-top: 6px; display: none; }
.form-field.has-error .error-text { display: block; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--color-error); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--color-card);
  color: var(--color-ink);
  min-height: 44px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14.5px; min-height: 40px; }

.success-panel {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-soft-border);
  border-radius: var(--radius-lg);
}
@media (max-width: 480px) {
  .success-panel { padding: 32px 18px; }
}
.success-panel .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-panel .icon-circle svg { width: 32px; height: 32px; }

/* ---------- Two-column layout ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .layout-2col .sidebar-panel { position: static; order: 2; }
}
.sidebar-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}
@media (max-width: 480px) {
  .sidebar-panel { padding: 18px; }
}

/* ---------- Accordion / FAQ ---------- */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  background: none; border: none; cursor: pointer;
  font-size: 15.5px; font-weight: 600; color: var(--color-ink); text-align: left;
  min-height: 44px;
  gap: 12px;
}
.accordion-trigger svg { flex-shrink: 0; transition: transform .2s ease; width: 18px; height: 18px; color: var(--color-muted); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.accordion-panel-inner { padding: 0 4px 18px; color: var(--color-ink-soft); font-size: 14.5px; }

/* ---------- Wizard ---------- */
.wizard-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 76px; position: relative; }
.wizard-step::before {
  content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px;
  background: var(--color-border); z-index: 0;
}
.wizard-step:first-child::before { display: none; }
.wizard-step.done::before { background: var(--color-primary); }
.wizard-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-card); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--color-muted);
  position: relative; z-index: 1;
}
.wizard-step.active .wizard-circle { border-color: var(--color-primary); color: var(--color-primary); }
.wizard-step.done .wizard-circle { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.wizard-label { font-size: 12px; font-weight: 600; color: var(--color-muted); text-align: center; }
.wizard-step.active .wizard-label { color: var(--color-ink); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }

@media (max-width: 640px) {
  .wizard-steps { margin-bottom: 28px; padding-bottom: 4px; }
  .wizard-step { min-width: 64px; }
  .wizard-circle { width: 30px; height: 30px; font-size: 12.5px; }
  .wizard-step::before { top: 14px; }
  .wizard-label { font-size: 10.5px; }
}
@media (max-width: 400px) {
  .wizard-step { min-width: 56px; gap: 6px; }
  .wizard-label { display: none; }
  .wizard-circle { width: 28px; height: 28px; }
  .wizard-step::before { top: 13px; }
}

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; gap: 12px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--color-muted); }
.summary-row .v { font-weight: 600; text-align: right; }

/* ---------- Registration wizard: header + Administrator step ---------- */
.wizard-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.wizard-head-text { max-width: 640px; }
.wizard-head-text h1 { margin: 8px 0 8px; }
.wizard-head-text .lead { font-size: 17px; }
.wizard-step-count {
  flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--color-muted);
  padding-top: 30px; white-space: nowrap;
}
@media (max-width: 640px) {
  .wizard-head { flex-direction: column; gap: 8px; }
  .wizard-step-count { padding-top: 0; order: -1; }
}

/* done state uses green + check icon */
.wizard-step.done::before { background: var(--color-success); }
.wizard-step.done .wizard-circle {
  background: var(--color-success); border-color: var(--color-success); color: #fff;
}
.wizard-step.done .wizard-circle svg { width: 18px; height: 18px; }
.wizard-step.active .wizard-circle {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

/* sidebar column now holds the summary + verify dialog */
.layout-2col > .sidebar-col { display: flex; flex-direction: column; gap: 20px; }
.sidebar-col .sidebar-panel { position: static; }
@media (max-width: 900px) {
  .layout-2col > .sidebar-col { order: 2; }
}

/* Administrator form card */
.admin-card, .secure-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.admin-card { margin-bottom: 20px; }
.admin-card h3 { margin-bottom: 4px; }
.admin-card > .muted { margin-bottom: 20px; }
.admin-card .form-field:last-child, .admin-card .form-row:last-child .form-field { margin-bottom: 0; }

/* Secure your account panel */
.secure-card { margin-bottom: 20px; }
.secure-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.secure-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.secure-card-icon svg { width: 22px; height: 22px; }
.secure-card-icon--ok { background: var(--color-success-bg); color: var(--color-success-text); }
.secure-card-head h4 { margin: 2px 0 4px; }
.secure-card-head .muted { font-size: 13.5px; }
.secure-card--verified { margin-bottom: 20px; }
.secure-card--verified .secure-card-head { margin-bottom: 0; }

.secure-card-body { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
@media (max-width: 720px) { .secure-card-body { grid-template-columns: 1fr; } }
.secure-card-main .form-field { margin-bottom: 16px; }

.pw-input { position: relative; }
.pw-input input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--color-muted); display: flex; min-height: 0;
}
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle:hover { color: var(--color-ink); }

.pw-meter { display: flex; gap: 6px; margin-top: 10px; }
.pw-meter span {
  flex: 1; height: 4px; border-radius: 999px; background: var(--color-border);
  transition: background .15s ease;
}
.pw-meter.s1 span:nth-child(-n+1),
.pw-meter.s2 span:nth-child(-n+2) { background: var(--color-warning); }
.pw-meter.s3 span:nth-child(-n+3),
.pw-meter.s4 span:nth-child(-n+4) { background: var(--color-success); }
.pw-status { margin-top: 8px; font-size: 12.5px; }
.pw-status .ok { color: var(--color-success-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.why-verify {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-bg);
  border-radius: var(--radius-md);
  padding: 16px;
}
.why-verify-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--color-warning-text);
  margin-bottom: 8px;
}
.why-verify-title svg { width: 16px; height: 16px; }
.why-verify p { margin: 0; font-size: 12.5px; color: var(--color-warning-text); line-height: 1.5; }

.btn-ico { display: inline-flex; }
.btn-ico svg { width: 18px; height: 18px; }
.btn-ico--flip svg { transform: scaleX(-1); }

/* Check your email dialog / bottom sheet */
.verify-backdrop { display: none; }
.verify-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
}
.verify-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--color-muted); padding: 4px;
}
.verify-close:hover { color: var(--color-ink); }
.verify-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 14px;
}
.verify-icon svg { width: 26px; height: 26px; }
.verify-card h4 { margin: 0 0 8px; }
.verify-sub { font-size: 13.5px; color: var(--color-muted); margin: 0 0 16px; line-height: 1.5; }
.verify-sub strong { color: var(--color-ink); word-break: break-all; }
.verify-msg {
  font-size: 12.5px; text-align: left; margin: 0 0 16px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--color-warning-bg); color: var(--color-warning-text);
}
.verify-msg.is-error { background: var(--color-error-bg); color: var(--color-error-text); }
.verify-steps { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.verify-steps li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--color-ink-soft); padding: 6px 0;
}
.verify-step-ico { flex-shrink: 0; color: var(--color-muted); display: flex; }
.verify-step-ico svg { width: 16px; height: 16px; }
.verify-resend {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 16px; text-align: left;
}
.verify-resend-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--color-muted); padding: 3px 0;
}
.verify-countdown { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.verify-inline-btn, .verify-resend-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--color-primary);
  min-height: 0;
}
.verify-inline-btn:hover, .verify-resend-btn:hover { text-decoration: underline; }
.verify-foot { font-size: 11.5px; color: var(--color-muted); margin: 8px 0 0; }
.verify-card .btn-ico svg { width: 16px; height: 16px; }

/* Mobile: verify dialog becomes a bottom sheet */
@media (max-width: 900px) {
  .verify-backdrop {
    display: block; position: fixed; inset: 0; z-index: 60;
    background: rgba(0,0,0,.5);
  }
  .verify-backdrop[hidden] { display: none; }
  .sidebar-col .verify-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh; overflow-y: auto;
    margin: 0;
  }
  .sidebar-col .verify-card[hidden] { display: none; }
}

/* ---------- Registration wizard: Step 1 ("Tell us about your school") ----------
   Solid black header + light card + blue primary, matching the reference
   design exactly regardless of system light/dark mode — a deliberate brand
   choice for this page's chrome, not tied to the site's theme toggle. */
.reg-header--dark {
  background: #0A0A0A;
  border-bottom-color: #0A0A0A;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.reg-header--dark .brand,
.reg-header--dark .reg-header-link { color: #fff; }
.reg-header--dark .reg-header-link:hover { color: var(--color-primary-light); background: rgba(255,255,255,.08); }
.reg-header--dark .brand-mark .logo-dark { display: block; }
.reg-header--dark .brand-mark .logo-light { display: none; }

.reg-step1-head { margin-bottom: 24px; }
.reg-step1-head h3 { font-size: 26px; margin: 0 0 8px; }
.reg-step1-head .muted { font-size: 14.5px; line-height: 1.5; margin: 0; max-width: 52ch; }

.field-icon-wrap { position: relative; }
.field-icon-wrap .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.field-icon-wrap input { padding-left: 40px; }

.reg-step1-trust {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 20px 0 24px; padding: 16px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-soft-border);
  border-radius: var(--radius-md);
}
.reg-step1-trust-icon { flex-shrink: 0; color: var(--color-primary); }
.reg-step1-trust strong { display: block; font-size: 14.5px; color: var(--color-primary-dark); margin-bottom: 2px; }
.reg-step1-trust p { margin: 0; font-size: 13px; color: var(--color-ink-soft); }

.reg-step1 .wizard-nav button svg { margin-left: 4px; vertical-align: -3px; }
/* Step 1's real, visible Continue button lives in #wizardActionBar (the
   in-panel .wizard-nav is hidden, see the Step 4 comment below) — make it
   full width to match the reference screenshot, step 1 only. */
#wizardForm:has(.reg-step1.active) .wizard-action-bar { display: flex; grid-column: 2; }
#wizardForm:has(.reg-step1.active) #wizardBarNext { flex: 1; justify-content: center; }
#wizardForm:has(.reg-step1.active) #wizardBarBack[hidden] + #wizardBarNext { margin-left: 0; }

.reg-step1-note {
  display: flex; align-items: flex-start; gap: 8px;
  justify-content: center; text-align: center;
  margin: 16px 0 0; font-size: 12.5px; color: var(--color-muted);
}
.reg-step1-note svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 480px) {
  .reg-step1-head h3 { font-size: 22px; }
  .reg-step1-trust { flex-direction: column; gap: 8px; }
}

/* ---------- Registration wizard: Step 4 (Student count / pricing) ---------- */
/* One persistent bottom action bar — the in-panel nav is kept in the DOM for
   the existing JS wiring (step2 gate, submit handler) but hidden from view. */
.wizard-panel .wizard-nav { display: none !important; }
/* Step 4 has its own dedicated termly-estimate card (.price-card--estimate);
   the generic running sidebar would duplicate that content, so hide it here. */
#wizardForm:has(.wizard-panel[data-step="4"].active) .layout-2col > .sidebar-col { display: none; }
#wizardForm:has(.wizard-panel[data-step="4"].active) .layout-2col { grid-template-columns: 1fr; }

.wizard-action-bar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 32px; padding: 16px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.wizard-action-bar .btn { min-width: 120px; }
.wizard-action-bar .btn[hidden] { display: none; }
.wizard-action-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
/* When Back is hidden (step 1), keep Continue right-aligned. */
.wizard-action-bar #wizardBarBack[hidden] + #wizardBarNext { margin-left: auto; }
@media (max-width: 480px) {
  .wizard-action-bar { gap: 10px; }
  .wizard-action-bar .btn { min-width: 0; flex: 1; }
}

.price-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .price-step { grid-template-columns: 1fr; gap: 20px; } }

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.price-card h3 { margin: 12px 0 8px; font-size: 21px; }
.price-card > .muted { margin-bottom: 20px; }
.price-card .form-field { margin-bottom: 16px; }
.price-card .form-field:last-child { margin-bottom: 0; }

.step-chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 999px; padding: 4px 10px;
}

/* numeric input with stacked increment / decrement */
.stepper-input { position: relative; }
.stepper-input input {
  padding-right: 52px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btns {
  position: absolute; top: 4px; right: 4px; bottom: 4px;
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.stepper-btn {
  flex: 1; width: 34px; padding: 0; border: none; cursor: pointer;
  background: var(--color-card); color: var(--color-ink-soft);
  display: flex; align-items: center; justify-content: center; min-height: 0;
}
.stepper-btn:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.stepper-btn + .stepper-btn { border-top: 1px solid var(--color-border); }
.stepper-btn svg { width: 15px; height: 15px; }

.price-note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-md); padding: 14px 16px;
  font-size: 13px; line-height: 1.5;
}
.price-note p { margin: 0; }
.price-note-ico { flex-shrink: 0; display: flex; margin-top: 1px; }
.price-note-ico svg { width: 17px; height: 17px; }
.price-note--info {
  background: var(--color-primary-soft); color: var(--color-ink-soft);
  border: 1px solid var(--color-primary-soft);
}
.price-note--info .price-note-ico { color: var(--color-primary); }
.price-note--amber {
  background: var(--color-warning-bg); color: var(--color-warning-text);
  border: 1px solid var(--color-warning-bg);
  margin-top: 20px;
}
.price-note--amber .price-note-ico { color: var(--color-warning-text); }

/* right-hand live estimate card */
.price-card-title { margin: 0 0 18px; font-size: 17px; }
.price-facts { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 20px; }
.price-fact { display: flex; flex-direction: column; gap: 4px; }
.price-fact-k { font-size: 12px; color: var(--color-muted); }
.price-fact-v { font-size: 15px; font-weight: 700; color: var(--color-success-text); }
.price-fact-v--muted { color: var(--color-ink); }

.price-amount-wrap {
  text-align: center; padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.price-amount { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--color-muted); }
.price-amount.price-amount--num { font-size: 34px; font-weight: 800; color: var(--color-ink); }
.price-amount-sub { font-size: 13px; color: var(--color-muted); margin-top: 6px; }
@media (max-width: 480px) { .price-amount.price-amount--num { font-size: 27px; } }

.price-included { padding: 20px 0; }
.price-included-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.price-included ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-included li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--color-ink-soft); }
.price-tick { flex-shrink: 0; display: flex; color: var(--color-success); margin-top: 1px; }
.price-tick svg { width: 16px; height: 16px; }

.price-confirm {
  display: flex; gap: 10px; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--color-border);
  font-size: 12.5px; color: var(--color-primary);
}
.price-confirm-ico { flex-shrink: 0; display: flex; }
.price-confirm-ico svg { width: 15px; height: 15px; }

/* ---------- Misc ---------- */
.trust-strip { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 24px 0; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--color-muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--color-primary); }
.home-trust-strip { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
@media (max-width: 560px) {
  .trust-strip { gap: 20px 28px; padding: 20px 0; }
}

.hub-wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hub-center {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 480px) {
  .hub-center { padding: 22px 24px; width: 100%; }
}

/* ---------- Platform Overview: compact page rhythm ---------- */
.pf-hero { padding: 56px 0 8px; text-align: center; }
.pf-hero .eyebrow { margin-bottom: 14px; }
.pf-hero h1 { font-size: 42px; margin-bottom: 14px; }
.pf-hero .lead { max-width: 560px; margin: 0 auto 24px; }
.pf-hero .btn-row { justify-content: center; }
.pf-see-how { font-weight: 600; }
@media (max-width: 640px) {
  .pf-hero { padding: 36px 0 4px; }
  .pf-hero h1 { font-size: 30px; }
}

.pf-section { padding: 56px 0; }
.pf-section-alt { background: var(--color-surface); }
.pf-section .section-head { margin-bottom: 32px; }
@media (max-width: 640px) {
  .pf-section { padding: 40px 0; }
  .pf-section .section-head { margin-bottom: 24px; }
}

/* Connected platform map: hub-and-spoke, no wasted vertical space */
.hub-map {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  align-items: center;
  justify-items: center;
}
.hub-map .hub-center {
  grid-column: 2; grid-row: 2;
  padding: 22px 20px;
  min-width: 140px;
}
.hub-map .hub-center h3 { color: #fff; font-size: 16px; margin: 8px 0 2px; }
.hub-map .hub-center p { color: rgba(255,255,255,.85); margin: 0; font-size: 13px; }
.hub-center-icon {
  width: 32px; height: 32px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hub-center-icon svg { width: 20px; height: 20px; }

.hub-node {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-width: 108px;
  text-align: center;
}
.hub-node span { font-size: 13.5px; font-weight: 600; color: var(--color-ink); }
.hub-node-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.hub-node-icon svg { width: 18px; height: 18px; }

.hub-node--students { grid-column: 2; grid-row: 1; }
.hub-node--attendance { grid-column: 1; grid-row: 1; }
.hub-node--fees { grid-column: 3; grid-row: 1; }
.hub-node--academics { grid-column: 1; grid-row: 3; }
.hub-node--parents { grid-column: 2; grid-row: 3; }
.hub-node--operations { grid-column: 3; grid-row: 3; }

/* connector lines from each node toward the center cell */
.hub-node { z-index: 1; }
.hub-node::before {
  content: "";
  position: absolute;
  background: var(--color-border);
  z-index: 0;
}
.hub-node--students::before { left: 50%; bottom: -20px; width: 1px; height: 20px; transform: translateX(-50%); }
.hub-node--parents::before { left: 50%; top: -20px; width: 1px; height: 20px; transform: translateX(-50%); }
.hub-node--attendance::before { right: -20px; top: 50%; width: 20px; height: 1px; transform: translateY(-50%); }
.hub-node--fees::before { left: -20px; top: 50%; width: 20px; height: 1px; transform: translateY(-50%); }
.hub-node--academics::before { right: -20px; top: 50%; width: 20px; height: 1px; transform: translateY(-50%); }
.hub-node--operations::before { left: -20px; top: 50%; width: 20px; height: 1px; transform: translateY(-50%); }

@media (max-width: 640px) {
  .hub-map {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 14px;
    margin-bottom: 32px;
  }
  .hub-map .hub-center { grid-column: 1 / -1; grid-row: 1; order: -1; }
  .hub-node--students { grid-column: 1; grid-row: 2; }
  .hub-node--attendance { grid-column: 2; grid-row: 2; }
  .hub-node--fees { grid-column: 1; grid-row: 3; }
  .hub-node--academics { grid-column: 2; grid-row: 3; }
  .hub-node--parents { grid-column: 1; grid-row: 4; }
  .hub-node--operations { grid-column: 2; grid-row: 4; }
  .hub-node { min-width: 0; width: 100%; padding: 12px 10px; }
  .hub-node::before { display: none; }
}

.pf-modules-grid .card { text-align: left; }

.pf-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 32px 40px;
}
.pf-cta-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.pf-cta-icon svg { width: 26px; height: 26px; }
.pf-cta-text { flex: 1; min-width: 0; }
.pf-cta-text h2 { margin-bottom: 6px; }
.pf-cta-text p { margin: 0; }
.pf-cta-action { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pf-cta-note { font-size: 12.5px; color: #94A3B8; }
@media (max-width: 760px) {
  .pf-cta { flex-direction: column; text-align: center; padding: 32px 24px; }
  .pf-cta-action { align-items: center; }
}

.toc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 32px; }
.toc h4 { margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--color-primary); }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 22px; }

.search-bar { display: flex; gap: 10px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow-sm); }
.search-bar input { border: none; flex: 1; }
.search-bar input:focus { box-shadow: none; }

.role-card { text-align: center; }
.role-card .card-icon { margin: 0 auto 16px; width: 56px; height: 56px; }
.role-card .card-icon svg { width: 28px; height: 28px; }

.school-type-icon { width: 48px; height: 48px; }

.slider-wrap { padding: 24px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
input[type="range"] { width: 100%; accent-color: var(--color-primary); height: 24px; }
.slider-value { font-size: 15px; font-weight: 700; margin-top: 8px; }
@media (max-width: 480px) {
  .slider-wrap { padding: 18px; }
  .slider-value { font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
}

@media (max-width: 900px) {
  .grid-2.hub-grid { grid-template-columns: 1fr; }
}

/* ---------- Registration wizard: focused shell + academic calendar (Step 3) ---------- */

/* Focused header — brand + Help + Sign in only, no marketing nav / footer */
.reg-body { background: var(--color-bg); }
.reg-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-header-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.reg-header-wrap {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.reg-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--color-ink); }
.reg-header .brand-mark { display: inline-flex; width: 28px; height: 28px; }
.reg-header-actions { display: flex; align-items: center; gap: 8px; }
.reg-header-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--color-ink-soft);
}
.reg-header-link:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.reg-header-link svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .reg-header-wrap { padding: 12px 16px; }
  .reg-header-link { padding: 8px; }
}

.reg-main { padding: 32px 0 64px; }
.reg-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .reg-main { padding: 20px 0 48px; } .reg-container { padding: 0 16px; } }

.reg-step-count { font-size: 13.5px; font-weight: 600; color: var(--color-muted); margin: 4px 0 0; }

/* ---------- Step 1 reference-screenshot rail + feature strip (UI only) ---------- */
/* Gated purely by :has() on the real .active state wizard.js already sets —
   no JS, no changes to wizard.js/register-submit.js. Hides the generic
   top step bar + heading while step 1 is shown, and lays the decorative
   rail beside the step-1 card via CSS grid, restoring the normal single
   column .layout-2col flow for every other step untouched. */
.reg-step1-rail,
.reg-step1-features { display: none; }
#wizardForm:has(.reg-step1.active) { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
#wizardForm:has(.reg-step1.active) #wizardStepsBar { display: none; }
#wizardForm:has(.reg-step1.active) .reg-step1-rail { display: flex; grid-column: 1; grid-row: 1; }
#wizardForm:has(.reg-step1.active) .layout-2col { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; }
#wizardForm:has(.reg-step1.active) .layout-2col > .sidebar-col { display: none; }
/* the rail's own trust box replaces this inline duplicate while step 1 is active */
#wizardForm:has(.reg-step1.active) .reg-step1-trust { display: none; }
#registerWizard:has(.reg-step1.active) ~ .reg-step1-features { display: grid; }
#wizardHead:has(~ #registerWizard .reg-step1.active) { display: none; }

@media (max-width: 900px) {
  #wizardForm:has(.reg-step1.active) { grid-template-columns: 1fr; }
  #wizardForm:has(.reg-step1.active) .reg-step1-rail { grid-column: 1; grid-row: 1; }
  #wizardForm:has(.reg-step1.active) .layout-2col { grid-column: 1; grid-row: 2; }
  #wizardForm:has(.reg-step1.active) .wizard-action-bar { grid-column: 1; }
}
/* .wizard-action-bar is pinned to grid-column: 2 above for the desktop
   two-column layout (line ~1024); left unreset at 900px it forced an
   implicit second grid track on #wizardForm, shrinking the single 1fr
   column and pushing the rail/form off to one side instead of spanning
   full width on mobile. */

.reg-step1-rail {
  flex-direction: column;
  gap: 24px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 88px;
}
.reg-step1-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.reg-step1-rail-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 26px;
}
.reg-step1-rail-item::before {
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 4px;
  width: 2px;
  background: var(--color-border);
  border-left: 2px dashed var(--color-border);
  background: none;
}
.reg-step1-rail-item:last-child::before { display: none; }
.reg-step1-rail-item:last-child { padding-bottom: 0; }
.reg-step1-rail-dot {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13.5px;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  position: relative; z-index: 1;
}
.reg-step1-rail-item.is-active .reg-step1-rail-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.reg-step1-rail-text { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.reg-step1-rail-text strong { font-size: 14.5px; color: var(--color-ink); font-weight: 700; }
.reg-step1-rail-item.is-active .reg-step1-rail-text strong { color: var(--color-primary); }
.reg-step1-rail-text span { font-size: 12.5px; color: var(--color-muted); }

.reg-step1-rail-trust {
  display: flex; gap: 12px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-soft-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.reg-step1-rail-trust-icon { flex-shrink: 0; color: var(--color-primary); }
.reg-step1-rail-trust strong { display: block; font-size: 14px; color: var(--color-primary-dark); margin-bottom: 4px; }
.reg-step1-rail-trust p { margin: 0; font-size: 12.5px; color: var(--color-ink-soft); }

/* Below 640px the rail becomes a compact horizontal progress strip instead
   of the full vertical list with descriptions — the vertical version was
   pushing the actual step-1 form fields a full screen down on phones. */
@media (max-width: 640px) {
  .reg-step1-rail { position: static; padding: 14px 16px; gap: 14px; }
  .reg-step1-rail-list { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .reg-step1-rail-item { flex-direction: column; align-items: center; gap: 6px; padding-bottom: 0; flex: 1; text-align: center; }
  .reg-step1-rail-item::before {
    left: 50%; top: 15px; bottom: auto; right: auto; width: auto; height: 2px;
    transform: translateX(16px);
    border-left: none; border-top: 2px dashed var(--color-border);
  }
  .reg-step1-rail-dot { width: 28px; height: 28px; font-size: 12.5px; }
  .reg-step1-rail-text { padding-top: 0; align-items: center; }
  .reg-step1-rail-text span { display: none; }
  .reg-step1-rail-text strong { font-size: 11.5px; line-height: 1.2; }
  .reg-step1-rail-trust { padding: 12px; }
}

.reg-step1-features {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.reg-step1-feature { display: flex; gap: 14px; align-items: flex-start; }
.reg-step1-feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.reg-step1-feature strong { display: block; font-size: 14.5px; color: var(--color-ink); margin-bottom: 4px; }
.reg-step1-feature p { margin: 0; font-size: 13px; color: var(--color-muted); line-height: 1.5; }

@media (max-width: 760px) {
  .reg-step1-features { grid-template-columns: 1fr; }
}

/* Left-column card wrapper for each step */
.reg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
@media (max-width: 480px) { .reg-card { padding: 18px; } }
.reg-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.reg-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.reg-card-icon svg { width: 20px; height: 20px; }
.reg-card-head h3 { margin: 2px 0 4px; }
.reg-card-head .muted { font-size: 13.5px; margin: 0; }
.reg-card .form-field:last-child,
.reg-card .form-row:last-child .form-field { margin-bottom: 0; }

/* Term selection cards (replaces the old <select id="term">) */
.term-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .term-cards { grid-template-columns: 1fr; } }
.term-card { position: relative; cursor: pointer; display: block; }
.term-card input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.term-card-body {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; min-height: 64px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-card); transition: border-color .12s ease, background .12s ease;
}
.term-card:hover .term-card-body { border-color: var(--color-primary-soft-border); }
.term-card-radio {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--color-border); position: relative; transition: border-color .12s ease;
}
.term-card-text { display: flex; flex-direction: column; gap: 2px; }
.term-card-title { font-weight: 700; font-size: 14.5px; color: var(--color-ink); }
.term-card-sub { font-size: 12.5px; color: var(--color-muted); }
.term-card input:checked ~ .term-card-body {
  border-color: var(--color-primary); background: var(--color-primary-soft);
}
.term-card input:checked ~ .term-card-body .term-card-radio { border-color: var(--color-primary); }
.term-card input:checked ~ .term-card-body .term-card-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-primary);
}
.term-card input:focus-visible ~ .term-card-body {
  outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
#fieldTerm.has-error .term-card-body { border-color: var(--color-error); }

/* Inline validation (red only) for the date rules */
.reg-inline-error {
  margin-top: 4px; padding: 10px 12px;
  font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--color-error); border-radius: var(--radius-sm);
  background: var(--color-error-bg); color: var(--color-error-text);
}

/* Neutral info note at the bottom of the calendar card */
.reg-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; padding: 12px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  font-size: 12.5px; line-height: 1.5; color: var(--color-ink-soft);
}
.reg-note svg { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }

/* Sidebar panel headers with a small icon */
.reg-side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.reg-side-head h4 { margin: 0; }
.reg-side-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.reg-side-icon svg { width: 15px; height: 15px; }

/* Academic calendar preview body */
.reg-preview-empty { font-size: 12.5px; margin: 0; }
.calendar-preview-term {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border);
}
.calendar-preview-term .k { font-weight: 700; font-size: 13.5px; color: var(--color-ink); }
.calendar-preview-gap { height: 8px; }

/* ---------- Registration wizard: Step 5 (Address & subdomain) ---------- */
.reg-card > h3 { margin-bottom: 4px; }
.reg-card > .muted { margin-bottom: 20px; }

/* Searchable district combobox — a scoped popover, never a full-page layer */
.combo { position: relative; }
.combo-input { position: relative; display: flex; align-items: center; }
.combo-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--color-muted); pointer-events: none;
}
.combo-input input {
  width: 100%; padding-left: 36px; padding-right: 40px;
}
.combo-input input:disabled { opacity: .6; cursor: not-allowed; }
.combo-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; min-height: 0;
  background: none; border: none; cursor: pointer; color: var(--color-muted);
}
.combo-toggle:hover { color: var(--color-ink); }
.combo[data-open="true"] .combo-toggle svg { transform: rotate(180deg); }
.combo-toggle svg { transition: transform .15s ease; }

.combo-popover {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.combo-popover[hidden] { display: none; }
.combo-list {
  max-height: 240px; overflow-y: auto; padding: 6px;
  -webkit-overflow-scrolling: touch;
}
.combo-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--color-ink); cursor: pointer;
  scroll-margin: 6px;
}
.combo-option .combo-option-sub { font-size: 12.5px; color: var(--color-muted); }
.combo-option:hover,
.combo-option.is-active {
  background: var(--color-primary-soft); color: var(--color-primary);
}
.combo-option[aria-selected="true"] { font-weight: 600; }
.combo-empty {
  padding: 14px 14px; font-size: 13px; color: var(--color-muted); text-align: center;
}
.combo-empty[hidden] { display: none; }
.combo-foot {
  padding: 10px 14px; border-top: 1px solid var(--color-border);
  font-size: 12.5px; color: var(--color-muted);
}
.combo-foot a { color: var(--color-primary); font-weight: 600; }
.combo-foot a:hover { text-decoration: underline; }
#fieldDistrict.has-error .combo-input input { border-color: var(--color-error); }

/* Subdomain field: editable prefix + fixed suffix */
.subdomain-field { display: flex; align-items: stretch; gap: 0; }
.subdomain-entry { position: relative; flex: 1; display: flex; }
.subdomain-entry input {
  width: 100%; padding-right: 96px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.subdomain-result {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.subdomain-result[hidden] { display: none; }
.subdomain-result.is-available { color: var(--color-success-text); }
.subdomain-result.is-unavailable { color: var(--color-error-text); }
.subdomain-result.is-checking { color: var(--color-muted); }
.subdomain-result svg { width: 14px; height: 14px; }
.subdomain-suffix {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--color-surface); color: var(--color-ink-soft);
  border: 1px solid var(--color-border); border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px; white-space: nowrap;
}
.subdomain-url { color: var(--color-success-text); word-break: break-all; }
#fieldSubdomain.has-error .subdomain-entry input { border-color: var(--color-error); }

@media (max-width: 480px) {
  .subdomain-field { flex-direction: column; }
  .subdomain-entry input { border-radius: var(--radius-sm); }
  .subdomain-suffix {
    border-left: 1px solid var(--color-border); border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 8px 14px; justify-content: center;
  }
}

/* ---------- Registration wizard: Step 6 (Review & submit) ---------- */
.review-head { margin-bottom: 24px; }
.review-head h2 { margin: 0 0 8px; font-size: 24px; }
.review-head .muted { margin: 0; font-size: 14px; }

.review-cards { display: flex; flex-direction: column; gap: 14px; }

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.review-card-head {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 18px 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--color-ink); min-height: 0;
}
.review-card-head:hover { background: var(--color-surface-alt); }
.review-card-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-success); color: var(--color-success);
}
.review-card-check::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.review-card-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-ink-soft);
}
.review-card-icon svg { width: 18px; height: 18px; }
.review-card-title { flex: 1; font-weight: 700; font-size: 15.5px; }
.review-card-edit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--color-primary);
  padding: 4px 6px; border-radius: var(--radius-sm);
}
.review-card-edit:hover { background: var(--color-primary-soft); text-decoration: none; }
.review-card-edit svg { width: 14px; height: 14px; }
.review-card-chevron {
  flex-shrink: 0; display: flex; color: var(--color-muted);
  transition: transform .15s ease;
}
.review-card-chevron svg { width: 18px; height: 18px; }
.review-card.is-collapsed .review-card-chevron { transform: rotate(-90deg); }

.review-card-body { padding: 4px 20px 20px; }
.review-card.is-collapsed .review-card-body { display: none; }

.review-kv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px;
  padding-left: 46px;
}
@media (max-width: 560px) {
  .review-kv-grid { grid-template-columns: 1fr; gap: 14px; padding-left: 0; }
}
.review-kv { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.review-kv-k { font-size: 12px; color: var(--color-muted); }
.review-kv-v { font-size: 14px; font-weight: 600; color: var(--color-ink); word-break: break-word; }
.review-kv-empty { padding-left: 46px; font-size: 13px; margin: 0; }
@media (max-width: 560px) { .review-kv-empty { padding-left: 0; } }

/* Terms / accuracy confirmation gate */
.review-consent {
  margin-top: 20px; padding: 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface);
}
.review-consent-label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--color-ink-soft); cursor: pointer;
}
.review-consent-label input {
  flex-shrink: 0; width: 16px; height: 16px; margin: 1px 0 0;
  accent-color: var(--color-primary); cursor: pointer;
}
.review-consent-label a { color: var(--color-primary); font-weight: 600; }
.review-consent-label a:hover { text-decoration: underline; }
.review-consent .error-text { display: none; margin-top: 8px; font-size: 12.5px; color: var(--color-error-text); }
.review-consent.has-error { border-color: var(--color-error); }
.review-consent.has-error .error-text { display: block; }

/* Sidebar: termly subscription summary (Step 6) */
.summary-row--price { align-items: baseline; }
.summary-row--price .v { text-align: right; }
#subSummaryPrice { font-size: 16px; }
.sub-summary-per { display: block; font-size: 11.5px; font-weight: 500; color: var(--color-muted); }

/* Sidebar: what happens next */
.next-steps-icon { background: var(--color-warning-bg); color: var(--color-warning-text); }
.next-steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.next-steps-list li { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.next-steps-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  background: var(--color-warning-bg); color: var(--color-warning-text);
}
.next-steps-list li:not(:last-child) .next-steps-num::after {
  content: ""; position: absolute; left: 10px; top: 24px; bottom: -18px;
  width: 1px; background: var(--color-border);
}
.next-steps-text { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--color-muted); line-height: 1.5; }
.next-steps-text strong { font-size: 13.5px; font-weight: 700; color: var(--color-ink); }

/* ---------- Submit payment page ---------- */
.pay-container { max-width: 1040px; }
.pay-narrow { max-width: 480px; margin: 0 auto; }

.pay-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start;
}
.pay-col { display: flex; flex-direction: column; gap: 20px; }
.pay-col--pay { position: sticky; top: 84px; }

.pay-amount-card { padding: 20px 22px; }
.pay-amount-card .price-amount--num { margin: 4px 0 8px; }

.pay-section-title { margin: 0 0 14px; font-size: 15px; }

.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method-card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 14px 16px; cursor: pointer; background: var(--color-card);
}
.pay-method-card.selected { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.pay-method-card[data-disabled="true"] { opacity: .5; cursor: not-allowed; }
.pay-method-body { flex: 1; min-width: 0; }
.pay-method-card h4 { margin: 0 0 2px; font-size: 14.5px; }
.pay-method-card .method-number { font-size: 16px; font-weight: 800; margin: 2px 0; word-break: break-word; }
.pay-method-card .copy-btn { font-size: 12px; padding: 6px 12px; align-self: center; flex-shrink: 0; }
.pay-method-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--color-surface);
}
.pay-method-icon--mtn { background: #ffcc08; }
.pay-method-icon--airtel { background: #ed1c24; }
.pay-method-icon--bank { background: var(--color-primary-soft); }

.pay-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-muted); font-size: 12.5px; line-height: 1.5;
}

.upload-drop {
  border: 1px dashed var(--color-border); border-radius: var(--radius-sm);
  padding: 22px; text-align: center; cursor: pointer; color: var(--color-muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.upload-drop svg { color: var(--color-muted); margin-bottom: 4px; }
.upload-drop.has-file { border-style: solid; border-color: var(--color-primary); }
.progress-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--color-surface); overflow: hidden; margin-top: 10px; display: none; }
.progress-bar .fill { height: 100%; background: var(--color-primary); width: 0%; transition: width .2s; }

.pay-secure-line {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px 0 0; font-size: 12px; color: var(--color-muted);
}

.pay-footer { border-top: 1px solid var(--color-border); padding: 18px 0; margin-top: 40px; }
.pay-footer-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--color-muted);
}
.pay-footer-links { display: flex; gap: 16px; }
.pay-footer-links a { color: var(--color-muted); }
.pay-footer-links a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .pay-layout { grid-template-columns: 1fr; }
  .pay-col--pay { position: static; }
}
@media (max-width: 640px) {
  .pay-container { padding: 0 16px; }
  .pay-method-card { flex-wrap: wrap; }
  .pay-method-card .copy-btn { margin-left: 48px; }
}

/* ---------- For Schools: compact page rhythm ---------- */
.fs-hero { padding: 48px 0 36px; }
.fs-section { padding: 40px 0; }
.fs-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
}
.fs-help-text h3 { margin-bottom: 4px; }
.fs-help-text p { color: var(--color-ink-soft); margin: 0; }
.fs-cta-card { background: var(--color-ink); border-color: var(--color-ink); }
.fs-cta-card .fs-help-text h3 { color: #fff; }
.fs-cta-card .fs-help-text p { color: #CBD5E1; }
.fs-illustration { position: relative; color: var(--color-ink-soft); }
.fs-illustration svg { width: 100%; height: auto; }
.fs-illustration-badge {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.fs-illustration-badge svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .fs-illustration { display: none; }
}
@media (max-width: 640px) {
  .fs-hero { padding: 32px 0 24px; }
  .fs-section { padding: 28px 0; }
  .fs-help-card { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
  .fs-help-card .btn { width: 100%; }
}
