/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --bg:         #0c0b09;
  --bg2:        #121110;
  --bg3:        #1a1815;
  --fg:         #f0ece3;
  --fg-muted:   #8a8278;
  --teal:       #0b9d85;
  --teal-dim:   #065a4c;
  --teal-glow:  rgba(11,157,133,0.12);
  --orange:     #c95c2a;
  --orange-dim: rgba(201,92,42,0.15);
  --red:        #c94040;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Keyboard focus ring — applies to all focusable elements */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film-grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(12,11,9,0.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  background: #ebe8e3;
  padding: 2px 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.nav-alt { color: var(--orange); }
.nav-links a.nav-alt:hover { color: var(--orange); opacity: 0.85; }

.nav-cta {
  background: var(--teal);
  color: #0c0b09;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.15s;
  border-radius: 2px;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-login {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--fg); }

/* ─── SHARED SECTION CHROME ──────────────────────────────────── */
section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 48px;
}

.section-title .accent { color: var(--teal); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(11,157,133,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(201,64,64,0.04) 0%, transparent 60%),
    var(--bg);
}

/* Filmstrip decoration */
.filmstrip {
  position: absolute;
  top: 0;
  right: 120px;
  width: 64px;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0.18;
}

.filmstrip-hole {
  width: 64px;
  flex: 1;
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filmstrip-hole::before {
  content: '';
  width: 22px; height: 16px;
  border: 2px solid var(--orange);
  border-radius: 3px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 24px;
  position: relative;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 40px;
  position: relative;
}

.hero-headline .accent { color: var(--teal); }

.hero-subtitle {
  color: var(--fg-muted);
  font-size: 17px;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
}

.hero-subtitle strong { color: var(--fg); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #0c0b09;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border-radius: 2px;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-size: 15px;
  padding: 14px 32px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(240,236,227,0.2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 2px;
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(240,236,227,0.5); }

.btn-ghost--subtle {
  color: rgba(240,236,227,0.35);
  border-color: rgba(240,236,227,0.08);
  font-size: 13px;
}
.btn-ghost--subtle:hover { color: var(--fg-muted); border-color: rgba(240,236,227,0.2); }

/* ─── FERPA BADGE STRIP ──────────────────────────────────────── */
.badge-strip {
  background: var(--bg3);
  border-top: 1px solid rgba(240,236,227,0.06);
  border-bottom: 1px solid rgba(240,236,227,0.06);
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow-x: auto;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.badge-item svg { flex-shrink: 0; }

.badge-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

.badge-label.orange { color: var(--orange); }

.badge-divider {
  width: 1px;
  height: 28px;
  background: rgba(240,236,227,0.1);
  flex-shrink: 0;
}

/* ─── SCHOOLS BAR ────────────────────────────────────────────── */
.schools-bar {
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-bottom: 1px solid rgba(240,236,227,0.06);
  overflow-x: auto;
}

.schools-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.schools-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.school-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,227,0.35);
}

/* ─── FEATURES ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg2);
  padding: 40px 36px;
  position: relative;
  transition: background 0.25s;
}
.feature-card:hover { background: var(--bg3); }

.feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: block;
  margin-bottom: 20px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 14px;
}

.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
}

.feature-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  vertical-align: middle;
}

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

.how-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(240,236,227,0.07);
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.45;
}

.how-step.active { opacity: 1; }
.how-step:hover { opacity: 0.8; }

.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--teal);
  flex-shrink: 0;
  padding-top: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
}

.how-visual { position: sticky; top: 100px; }

.how-screen {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.screen-bar {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.screen-dot { width: 10px; height: 10px; border-radius: 50%; }

.screen-body { padding: 24px; }

/* Real screenshot (hidden until it successfully loads; mock is the fallback). */
.screen-shot { display: none; width: 100%; height: auto; }
.screen-body.has-shot { padding: 0; }
.screen-body.has-shot .screen-shot { display: block; }
.screen-body.has-shot .screen-mock { display: none; }

.screen-row {
  height: 10px;
  background: rgba(240,236,227,0.1);
  border-radius: 4px;
  margin-bottom: 10px;
}
.screen-row.w40 { width: 40%; }
.screen-row.w70 { width: 70%; }
.screen-row.accent { background: var(--teal); width: 55%; }

.screen-table { margin-top: 24px; }

.screen-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(240,236,227,0.06);
}

.screen-table-cell.name {
  height: 8px;
  width: 45%;
  background: rgba(240,236,227,0.12);
  border-radius: 3px;
}

.screen-table-cell.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(11,157,133,0.15);
  color: var(--teal);
}

/* ─── COMPARISON ─────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid rgba(240,236,227,0.1);
}

.compare-table th.slate-col {
  background: var(--teal-glow);
  color: var(--teal);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(240,236,227,0.05);
  color: var(--fg-muted);
  font-weight: 300;
}

.compare-table tr:hover td { background: rgba(240,236,227,0.02); }

.compare-table td:nth-child(2) { background: var(--teal-glow); }

.check { color: var(--teal); font-weight: 700; font-size: 16px; }
.cross { color: rgba(240,236,227,0.15); font-size: 18px; }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.07);
  padding: 36px 32px;
  border-radius: 4px;
}

.testimonial-stars {
  color: var(--teal);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 15px;
  font-weight: 300;
  color: var(--fg);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author { border-top: 1px solid rgba(240,236,227,0.08); padding-top: 18px; }

.author-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}

.author-role {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ─── PRICING ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: start;
}

.pricing-card {
  background: var(--bg2);
  padding: 40px 36px;
  position: relative;
}

.pricing-card.featured {
  background: var(--bg3);
  border: 1px solid rgba(11,157,133,0.3);
  margin: -12px 0;
  padding: 52px 36px;
}

.pricing-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 20px;
  border-radius: 2px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 6px;
}

.pricing-price span {
  font-size: 28px;
  vertical-align: super;
  color: var(--fg-muted);
}

.pricing-cadence {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

/* ─── BILLING PERIOD TOGGLE (monthly / yearly) ───────────────── */
.billing-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.billing-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: var(--bg2);
  border: 1px solid var(--bg3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.billing-opt:first-of-type { border-radius: 999px 0 0 999px; border-right: none; }
.billing-opt:last-of-type { border-radius: 0 999px 999px 0; }
.billing-save { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--teal); }

.pricing-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--teal-glow);
  border-radius: 4px;
}

#edu-monthly:checked ~ .billing-toggle label[for="edu-monthly"],
#edu-yearly:checked ~ .billing-toggle label[for="edu-yearly"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
}
#edu-yearly:checked ~ .billing-toggle label[for="edu-yearly"] .billing-save { color: var(--bg); }

/* Toggle swaps which price block is visible. */
.price-annual { display: none; }
#edu-yearly:checked ~ .pricing-grid .price-monthly { display: none; }
#edu-yearly:checked ~ .pricing-grid .price-annual { display: block; }

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg);
  padding: 9px 0;
  border-bottom: 1px solid rgba(240,236,227,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.off { color: var(--fg-muted); opacity: 0.4; }
.pricing-features li.off::before { content: '—'; color: var(--fg-muted); }
.tier-hint {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 1px 7px;
  opacity: 0.9;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}

.pricing-cta.primary {
  background: var(--teal);
  color: #0c0b09;
}

.pricing-cta.ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid rgba(240,236,227,0.2);
}

.pricing-cta:hover { opacity: 0.8; transform: translateY(-1px); }

/* ─── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: var(--bg3);
  border-top: 1px solid rgba(240,236,227,0.06);
  border-bottom: 1px solid rgba(240,236,227,0.06);
  padding: 80px 60px;
  text-align: center;
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 40px;
}

.cta-band-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 16px;
}

.btn-secondary {
  display: inline-block;
  background: #4b5563;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border-radius: 2px;
}
.btn-secondary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-dark {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 40px;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-dark:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(240,236,227,0.06);
  padding: 72px 60px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--fg-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(240,236,227,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ─── AUTH PANEL ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(11,157,133,0.06) 0%, transparent 70%),
    var(--bg);
}

.auth-card {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  border-radius: 6px;
  padding: 52px 48px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo-img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  background: #ebe8e3;
  padding: 2px 4px;
}

.auth-org-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
  margin-top: -4px;
}

.auth-heading {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 8px;
}

.auth-subheading {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-message {
  background: var(--teal-glow);
  border: 1px solid rgba(11,157,133,0.25);
  color: var(--fg);
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.auth-message--error {
  background: rgba(201,64,64,0.1);
  border-color: rgba(201,64,64,0.3);
}

.auth-message--pending {
  background: rgba(180,130,0,0.08);
  border-color: rgba(180,130,0,0.3);
}

.auth-link {
  display: inline-block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── FORM INPUTS ────────────────────────────────────────────── */
.form-field { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(240,236,227,0.12);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder { color: var(--fg-muted); }
.form-input:focus { border-color: var(--teal); }

.form-hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 6px;
}

.form-error {
  background: rgba(201,64,64,0.1);
  border: 1px solid rgba(201,64,64,0.3);
  color: #e88;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  background: var(--teal);
  color: #0c0b09;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }

/* Alpine cloak — hide until Alpine initialises */
[x-cloak] { display: none !important; }

/* daisyUI v5 dropped form-control's flex-col styling — restore it so labels stack on top of inputs */
.form-control { display: flex; flex-direction: column; }
.form-control > .input,
.form-control > .select,
.form-control > .textarea,
.form-control > .file-input { width: 100%; }

/* ─── SECTOR TOGGLE (createorg) ─────────────────────────────── */
.btn-sector,
.btn-sector-active {
  flex: 1;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-sector {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}
.btn-sector:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
}
.btn-sector-active {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #0c0b09;
}

.sector-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s, background 0.15s;
}
.sector-card:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.sector-card-active {
  border-color: var(--teal);
  background: rgba(0,200,180,0.08);
}

/* ─── AUTH DIVIDER ───────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(240,236,227,0.1);
}

.auth-divider span {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── OAUTH BUTTONS ──────────────────────────────────────────── */
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid rgba(240,236,227,0.1);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: not-allowed;
  opacity: 0.5;
  margin-bottom: 10px;
  text-align: left;
}

.oauth-coming-soon {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(240,236,227,0.07);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ─── STUDENT DASHBOARD ──────────────────────────────────────── */
.student-body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.student-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid rgba(240,236,227,0.07);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.student-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.student-nav-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.student-nav-org {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.student-nav-logout {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
}
.student-nav-logout:hover { color: var(--fg); }

.student-main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.student-main--wide {
  max-width: 1040px;
}

/* Dashboard uses more of the viewport than other wide pages.
   Scoped via :has(.dash-grid) so only the dashboard is affected, and it
   lives in the CSS file (live from disk) so no server restart is needed. */
.student-main--wide:has(.dash-grid) {
  max-width: 80%;
}

/* Budget modals — div overlay approach (no dialog element) */
.sched-drag-ghost { opacity: 0.4; background: var(--bg3) !important; }
.drag-handle:active { cursor: grabbing; }

.student-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.student-budget-modal-box {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.12);
  border-radius: 8px;
  padding: 28px 28px 24px;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--fg);
  position: relative;
}

.student-budget-modal-box--wide {
  width: min(560px, 92vw);
}

.student-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.student-welcome {
  flex: 1;
  min-width: 0;
}

.student-welcome-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 2px;
}

.student-welcome-sub {
  font-size: 14px;
  color: var(--fg-muted);
}

.student-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.student-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

.student-alert-warn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.student-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.student-alert-arrow {
  margin-left: auto;
  font-size: 14px;
}

.student-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.student-tile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  border-radius: 6px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
}
.student-tile:hover {
  border-color: var(--teal);
  background: var(--bg3);
}

.student-tile-icon {
  flex-shrink: 0;
  color: var(--teal);
  display: flex;
  align-items: center;
}

.student-tile-body {
  flex: 1;
}

.student-tile-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.student-tile-desc {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
}

.student-tile-arrow {
  font-size: 18px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.student-classes-section {
  flex-shrink: 0;
  text-align: right;
}

.student-classes-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.student-classes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.student-class-badge {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  color: var(--fg);
  text-align: right;
}

.student-class-badge-name {
  font-size: 13px;
  font-weight: 600;
}

.student-class-badge-instructor {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ============================================================
   Student dashboard — professional app layout
   ============================================================ */
.dash-banner {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
.dash-banner-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dash-banner-note   { background: #fefce8; border: 1px solid #fde047; color: #713f12; }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dash-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.dash-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.03em;
  color: var(--fg);
}
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(240,236,227,0.14);
  color: var(--fg);
  background: var(--bg2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.dash-btn:hover { border-color: var(--teal); background: var(--bg3); }
.dash-btn-primary { background: var(--teal); border-color: var(--teal); color: #04231d; }
.dash-btn-primary:hover { background: var(--teal); filter: brightness(1.08); }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
/* No In-Progress sidebar → projects table takes the full width */
.dash-grid:not(:has(.dash-side)) { grid-template-columns: 1fr; }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Keep every card in the column the same width (a wide table must not stretch its card) */
.dash-main > * { min-width: 0; width: 100%; box-sizing: border-box; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }

/* Top action bar */
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(240,236,227,0.08);
}
.dash-card-title { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--fg); }
.dash-card-count { font-size: 12px; color: var(--fg-muted); }

/* Projects table */
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(240,236,227,0.08);
  white-space: nowrap;
}
.dash-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(240,236,227,0.05);
  color: var(--fg);
  vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: rgba(240,236,227,0.02); }
.dash-proj-name { font-weight: 600; }
.dash-proj-class { color: var(--teal); white-space: nowrap; }
.dash-proj-dates { color: var(--fg-muted); white-space: nowrap; }
.dash-proj-action { font-size: 12px; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.dash-proj-action--warn { color: #f87171; }
.dash-muted { color: var(--fg-muted); }

.dash-empty { padding: 28px 18px; color: var(--fg-muted); font-size: 13px; text-align: center; }

/* In-progress list */
.dash-io { display: flex; flex-direction: column; }
.dash-io-group-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 12px 18px 4px;
}
.dash-io-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid rgba(240,236,227,0.05);
  font-size: 13px;
}
.dash-io-row:last-child { border-bottom: none; }
.dash-io-row:hover { background: rgba(240,236,227,0.03); }
.dash-io-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-io-meta { color: var(--fg-muted); flex-shrink: 0; }

/* Collapsible finished / cancelled cards */
.dash-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-collapse > summary::-webkit-details-marker { display: none; }
.dash-collapse > summary::before { content: "▸"; font-size: 10px; }
.dash-collapse[open] > summary::before { content: "▾"; }
.dash-collapse[open] > summary { border-bottom: 1px solid rgba(240,236,227,0.08); }

@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* Sub-pages */
.student-page-header {
  margin-bottom: 28px;
}

.student-back {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 10px;
}
.student-back:hover { color: var(--teal); }

.student-page-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.student-card {
  background: var(--bg2);
  border: 1px solid rgba(240,236,227,0.08);
  border-radius: 6px;
  padding: 24px;
}

.student-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(240,236,227,0.06);
}
.student-field:last-of-type { border-bottom: none; }

.student-field-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.student-field-value {
  font-size: 14px;
}

.student-field-hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 16px;
  line-height: 1.5;
}

.student-coming-soon {
  text-align: center;
  padding: 48px 24px;
}

.student-coming-soon-icon {
  color: var(--fg-muted);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.student-coming-soon-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.student-coming-soon-desc {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ── Student input overrides ──────────────────────────────────────────────────
   DaisyUI's default theme renders inputs with a light background.
   Override here so all inputs, selects, and textareas in the student pages
   match the app's dark palette and behave like .form-input on the admin side.
   --------------------------------------------------------------------------- */
.student-body input,
.student-body select,
.student-body textarea {
  background: var(--bg3);
  border: 1px solid rgba(240,236,227,0.12);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.student-body input::placeholder,
.student-body textarea::placeholder {
  color: var(--fg-muted);
}

.student-body input:focus,
.student-body select:focus,
.student-body textarea:focus {
  border-color: var(--teal);
  box-shadow: none;
  outline: none;
}

/* Checkbox: keep it visible on the dark bg */
.student-body input[type="checkbox"] {
  accent-color: var(--teal);
  background: var(--bg3);
  border-color: rgba(240,236,227,0.2);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Select arrow colour on dark background */
.student-body select option {
  background: var(--bg3);
  color: var(--fg);
}

/* DaisyUI utility size helpers still control padding/height —
   only reset the colour properties to avoid specificity fights */
.student-body .input,
.student-body .select {
  background-color: var(--bg3);
  color: var(--fg);
  border-color: rgba(240,236,227,0.12);
}

.student-body .input:focus,
.student-body .select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-glow);
  outline: none;
}

/* ─── STUDENT DATE-ROW GRID ──────────────────────────────────── */
.student-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .student-date-row { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────────── */

/* Hamburger button — hidden on desktop, shown on mobile via media query below */
.nav-hamburger { display: none; }

@media (max-width: 768px) {
  /* Nav */
  .nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--fg);
    padding: 8px;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--bg2);
    border-top: 1px solid rgba(240,236,227,0.08);
    padding: 8px 0;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 20px;
    font-size: 16px;
    display: block;
  }
  .nav-login { order: 3; }
  .nav-cta { order: 4; }

  /* Sections */
  section { padding: 60px 20px; }
  .hero { padding: 0 20px 60px; min-height: 90vh; }
  .badge-strip { padding: 16px 20px; gap: 24px; }
  .schools-bar { padding: 20px; gap: 24px; }
  .cta-band { padding: 60px 20px; }

  /* Footer */
  footer {
    grid-template-columns: 1fr;
    padding: 48px 20px 32px;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Grids — tablet: keep 2-col for features/testimonials */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-visual { position: static; }
  .pricing-card.featured { margin: 0; padding: 40px 36px; }
}

@media (max-width: 480px) {
  /* Grids — mobile: everything single column */
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Hero headline — prevent overflow on very small screens */
  .hero-headline { font-size: clamp(48px, 14vw, 120px); }

  /* Auth card — remove excess padding on small screens */
  .auth-card { padding: 36px 24px; }

  /* Student dashboard header stacks on very small screens */
  .dash-head { flex-direction: column; align-items: flex-start; }
}
